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 |
---|---|---|---|---|---|---|
private final String SYSTEM_ID = "sys_id"; | public WallpapersPreviewAdapter(Context context) {
super(context, ThemeWallpaperBaseAdapter.DATACHANGE_TYPE_WALLPAPER);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSystemID()\n/* */ {\n/* 1299 */ return this.systemID;\n/* */ }",
"int getSysID();",
"public String getSystemId();",
"public String getSystemId() {\n // TODO Auto-generated method stub\n return null;\n }",
"public String getSystemId() { return this.systemId; }",
"public String getSysId() {\n return sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public void setSystemId(String systemId);",
"public java.lang.Long getSystemId () {\r\n\t\treturn systemId;\r\n\t}",
"public String getSystemId() {\n\t\treturn mSystemId;\n\t}",
"public Integer getSysId() {\n return sysId;\n }",
"public int getSysID() {\n return sysID_;\n }",
"public Integer getSysid() {\r\n\t\treturn sysid;\r\n\t}",
"public String getSystemId() {\n return agentConfig.getSystemId();\n }",
"public void setSystemId(int val) {\n systemId = val;\n }",
"public static Serializable getSystemId() {\n Serializable ret = null;\n if (getSystemStatic() != null) {\n ret = getSystemStatic().getDistributionManager().getId();\n }\n return ret;\n }",
"public Number getSystemId() {\n return (Number)getAttributeInternal(SYSTEMID);\n }",
"public void setSystemId( String systemId ) { this.systemId = systemId; }",
"public abstract String getOsID();",
"@JsonProperty(\"system_id\")\n public int getSystemId() {\n return systemId;\n }",
"public String getMaternalID();",
"String getInstanceID();",
"public Number getSystemId() {\n return (Number) getAttributeInternal(SYSTEMID);\n }",
"public static String getSystemName()\n {\n return sSysName;\n }",
"String getGeneralID() throws ApplicationException;",
"String getSecId();",
"public String getSysNo() {\n return sysNo;\n }",
"public java.lang.String getSystemloguserid () {\n\t\treturn systemloguserid;\n\t}",
"public String getSysCode()\n/* */ {\n/* 80 */ return this.sysCode;\n/* */ }",
"java.lang.String getSOID();",
"public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }",
"long getInstanceID();",
"public void setSysid(Integer sysid) {\r\n\t\tthis.sysid = sysid;\r\n\t}",
"@ApiModelProperty(required = true, value = \"The id of the system where this file lives.\")\n public String getSystem() {\n return system;\n }",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"public void setSysId(String sysId) {\n this.sysId = sysId;\n }",
"public java.lang.String getSpId(){\r\n return localSpId;\r\n }",
"public abstract String getMachineID();",
"public abstract String getApplicationId();",
"int getSymbolicId();",
"public java.lang.String getUserExternalSystemId() {\r\n return userExternalSystemId;\r\n }",
"String getContextId();",
"public String getSystemId() {\n return this.source.getURI();\n }",
"public void setSysId(Integer sysId) {\n this.sysId = sysId;\n }",
"SystemData systemData();",
"SystemData systemData();",
"SystemData systemData();",
"SystemData systemData();",
"SystemData systemData();",
"public String getSystemId()\n {\n if (entityStack.empty())\n {\n return null;\n }\n else\n {\n return (String) entityStack.peek();\n }\n }",
"String getSessionID();",
"String getSessionID();",
"public abstract String getSystemName();",
"public void setSystem(String value) {\r\n this.system = value;\r\n }",
"public String getPaternalID();",
"public String getSystemName() {\n return systemName;\n }",
"public String getSystemName();",
"String getBbgGlobalId();",
"String getService_id();",
"boolean hasSysID();",
"public AS400 getSystem() {\r\n return system;\r\n }",
"public java.lang.String getSystemCode () {\r\n\t\treturn systemCode;\r\n\t}",
"public gov.ucore.ucore._2_0.StringType getSystemIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.StringType target = null;\n target = (gov.ucore.ucore._2_0.StringType)get_store().find_element_user(SYSTEMIDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public String getSystemName() {\n\t\treturn systemName;\n\t}",
"String getProgramId();",
"java.lang.String getLegacyId();",
"public abstract long getSdiId();",
"public java.lang.String getAuthId(){\r\n return localAuthId;\r\n }",
"java.lang.String getSID();",
"java.lang.String getSID();",
"java.lang.String getSID();",
"java.lang.String getSID();",
"java.lang.String getSID();",
"java.lang.String getSID();",
"java.lang.String getSID();",
"public java.lang.String getSystemCode() {\n return systemCode;\n }",
"String intermediateSystemName();",
"java.lang.String getSystem();",
"java.lang.String getSessionID();",
"public void setSysNo(String sysNo) {\n this.sysNo = sysNo;\n }",
"public String getApplicationId();",
"public int getSpid(){\n return localSpid;\n }",
"public String getForeignSystemId() {\n return foreignSystemId;\n }",
"public interface Constants {\n String NA = \"NA\";\n String ARG_USERS=\"user\";\n String SENDER_ID =\"fro9SbG2Eic:APA91bHzUBA35xjcDP7TXu5uG3JetLMENHfJpfKnRjS02-y8W4n1ZonIn9HYNAwjV8F3uiOAV2gXparORINEEps3t0kCZHI2rutU33DaUlDeGJYrKDK_fG9HCdXAq1gNHtfmfqHGDBve\" ;\n}",
"public Builder setSysID(int value) {\n bitField0_ |= 0x00002000;\n sysID_ = value;\n onChanged();\n return this;\n }",
"String getSlingId();",
"public String getSysCompanyId() {\n return sysCompanyId;\n }",
"public String getSystemUser()\n\t{\n\t\treturn \"postgres\";\n\t}",
"public java.lang.String getPresentid(){\r\n return localPresentid;\r\n }",
"public static java.lang.String getCanonicalID(java.lang.String id, boolean[] isSystemID) { throw new RuntimeException(\"Stub!\"); }",
"void setSystem(java.lang.String system);",
"private String createPID() {\n return \"7777\";\n }",
"String getServerId();",
"protected abstract String getDatabaseID();",
"int getServerId();",
"public java.lang.String getSystemName() {\r\n return systemName;\r\n }",
"String mo10312id();",
"@ApiModelProperty(required = true, value = \"System number for this event\")\n @NotNull\n\n\n public Integer getId() {\n return id;\n }",
"String getUserID();",
"public void setSystemId (java.lang.Long systemId) {\r\n\t\tthis.systemId = systemId;\r\n\t}"
]
| [
"0.77823097",
"0.7592835",
"0.7492786",
"0.7341246",
"0.7192818",
"0.71200264",
"0.71200264",
"0.7019461",
"0.6881622",
"0.68704355",
"0.68055505",
"0.6802886",
"0.6802262",
"0.6800087",
"0.6778867",
"0.6642326",
"0.65957445",
"0.65617913",
"0.65293926",
"0.6479922",
"0.6372904",
"0.6368315",
"0.6361804",
"0.63571364",
"0.63455665",
"0.629189",
"0.625972",
"0.62584966",
"0.62280226",
"0.62238204",
"0.6179019",
"0.61756396",
"0.61363065",
"0.6134613",
"0.6128545",
"0.6122793",
"0.6122793",
"0.6092341",
"0.60917336",
"0.60845464",
"0.606631",
"0.6055474",
"0.60427743",
"0.603702",
"0.6030213",
"0.602982",
"0.602982",
"0.602982",
"0.602982",
"0.602982",
"0.6010476",
"0.60102814",
"0.60102814",
"0.59974664",
"0.59767586",
"0.59670997",
"0.59615123",
"0.5940453",
"0.59347606",
"0.5904267",
"0.5898732",
"0.5888309",
"0.58841485",
"0.5875418",
"0.58632445",
"0.58613116",
"0.5859862",
"0.58565503",
"0.5851979",
"0.58467436",
"0.58467436",
"0.58467436",
"0.58467436",
"0.58467436",
"0.58467436",
"0.58467436",
"0.58458436",
"0.5841561",
"0.58408487",
"0.58295023",
"0.58284307",
"0.58161986",
"0.5809033",
"0.57998",
"0.57966644",
"0.57956445",
"0.5772015",
"0.5758689",
"0.57580703",
"0.5737179",
"0.5731249",
"0.5728826",
"0.5719839",
"0.5706605",
"0.5704679",
"0.569976",
"0.56949824",
"0.56860435",
"0.56734824",
"0.5665462",
"0.5658184"
]
| 0.0 | -1 |
Constructs a Token will null text. | public Token() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Token () { }",
"@Override\r\n\tpublic Token createToken() {\n\t\tToken token = new Token();\r\n\t\treturn token;\r\n\t}",
"public Token() {\n }",
"public Token() {\n this.clitic = \"none\";\n }",
"public Token newToken() {\r\n\t\tString value = UUID.randomUUID().toString();\r\n\t\treturn new Token(value);\r\n\t}",
"public Token() {\n token = new Random().nextLong();\n }",
"public DwollaTokens() {\n\t\tthis(\"dwolla_tokens\", null);\n\t}",
"public Token(Token other) {\n __isset_bitfield = other.__isset_bitfield;\n this.tokenIndex = other.tokenIndex;\n if (other.isSetText()) {\n this.text = other.text;\n }\n if (other.isSetTextSpan()) {\n this.textSpan = new edu.jhu.hlt.concrete.TextSpan(other.textSpan);\n }\n if (other.isSetRawTextSpan()) {\n this.rawTextSpan = new edu.jhu.hlt.concrete.TextSpan(other.rawTextSpan);\n }\n if (other.isSetAudioSpan()) {\n this.audioSpan = new edu.jhu.hlt.concrete.AudioSpan(other.audioSpan);\n }\n }",
"public ConceptToken(String token) {\n _multiToken = false;\n _text = \"\";\n _tokens = new String[]{token};\n }",
"public Tokenizer() {\n tokenInfos = new LinkedList<TokenInfo>();\n tokens = new LinkedList<Token>();\n\n }",
"public TemplexTokenMaker() {\r\n\t\tsuper();\r\n\t}",
"public VariableToken(String text) {\n super(text);\n }",
"private Token createToken(\n String type, String val, int start, int end) {\n return new Token(type, val, start, end);\n }",
"public Token(Type t, String c) {\r\n this.t = t;\r\n this.c = c;\r\n }",
"public JavaTokenMaker() {\n\t}",
"public Token(int ordinal) {\r\n\t\tthis.ordinal = ordinal;\r\n\t\tthis.value = null;\r\n\t}",
"public static TokenizerFactory<Word> factory()\n/* */ {\n/* 116 */ return new WhitespaceTokenizerFactory(false);\n/* */ }",
"@Override\r\n\tpublic Token getToken(String token) {\n\t\treturn null;\r\n\t}",
"public OtherTokenizer() {\n super();\n }",
"public String newToken(){\n String line = getLine(lines);\n String token = getToken(line);\n return token;\n }",
"public Token(I2PAppContext ctx) {\n super(null);\n byte[] data = new byte[MY_TOK_LEN];\n ctx.random().nextBytes(data);\n setData(data);\n setValid(MY_TOK_LEN);\n lastSeen = ctx.clock().now();\n }",
"public Tokenizer() {\r\n tokenList = new ArrayList<>();\r\n\r\n mathOperations = new ArrayList<>(5);\r\n mathOperations.add(\"+\");\r\n mathOperations.add(\"-\");\r\n mathOperations.add(\"*\");\r\n mathOperations.add(\"/\");\r\n mathOperations.add(\"%\");\r\n theBuilder = new TokenBuilder(\"\\\\s+\", mathOperations);\r\n }",
"Literal createLiteral();",
"Literal createLiteral();",
"public Builder setToken(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n token_ = value;\n onChanged();\n return this;\n }",
"public Token(String text, int start, int end, String typ) {\n termText = text;\n startOffset = start;\n endOffset = end;\n type = typ;\n }",
"public Builder clearToken() {\n bitField0_ = (bitField0_ & ~0x00000001);\n token_ = getDefaultInstance().getToken();\n onChanged();\n return this;\n }",
"public Builder clearToken() {\n bitField0_ = (bitField0_ & ~0x00000001);\n token_ = getDefaultInstance().getToken();\n onChanged();\n return this;\n }",
"public Builder clearToken() {\n bitField0_ = (bitField0_ & ~0x00000001);\n token_ = getDefaultInstance().getToken();\n onChanged();\n return this;\n }",
"public Builder clearToken() {\n bitField0_ = (bitField0_ & ~0x00000001);\n token_ = getDefaultInstance().getToken();\n onChanged();\n return this;\n }",
"public Builder clearToken() {\n bitField0_ = (bitField0_ & ~0x00000001);\n token_ = getDefaultInstance().getToken();\n onChanged();\n return this;\n }",
"public Token (String token, int position, int marker) {\n this.tokenString = token;\n this.position = position;\n this.marker = marker; \n }",
"public ConcordanceToken(String text, String tag, int tokenNum, int partNum, String... stems) {\r\n\t\tsuper(text, tag, 0l, stems);\r\n\t\tif(tokenNum < 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tif(partNum < 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tthis.tokenNum = tokenNum;\r\n\t\tthis.partNum = partNum;\r\n\t}",
"public Builder setToken(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }",
"public Builder setToken(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }",
"public Builder setToken(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }",
"public Builder setToken(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }",
"public Builder setToken(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }",
"public Token(String text, int start, int end) {\n termText = text;\n startOffset = start;\n endOffset = end;\n }",
"public Token(String text, int start, int end, int flags) {\n termText = text;\n startOffset = start;\n endOffset = end;\n this.flags = flags;\n }",
"Token(Type ttype, String v, int p, int l) {\n type = ttype;\n value = v;\n pos = p;\n line = l;\n }",
"public String toString() { return (tok == null) ? \"\" : tok; }",
"@Override\r\n\tpublic JavaToken nextToken() {\r\n\t\tif (!ready())\r\n\t\t\treturn null;\r\n\t\tint oldPos = this.pos;\r\n\t\tint type = PLAIN;\r\n\t\tif (LL(0) == ' ' || LL(0) == '\\t' || LL(0) == '\\n' || LL(0) == '\\r') {\r\n\t\t\tconsumeWhiteSpace();\r\n\t\t\ttype = WHITESPACE;\r\n\t\t} else if (Character.isJavaIdentifierStart(LL(0))) {\r\n\t\t\tconsumeIdentifier();\r\n\t\t} else if (LL(0) == '#') {\r\n\t\t\tconsumeSingleLineComment();\r\n\t\t\ttype = COMMENT;\r\n\t\t} else if (LL(0) == '\\\"') {\r\n\t\t\tif (LL(1) == '\\\"' && LL(2) == '\\\"') {\r\n\t\t\t\tconsumeMultiLineComment();\r\n\t\t\t\ttype = COMMENT;\r\n\t\t\t} else {\r\n\t\t\t\tconsumeStringLiteral();\r\n\t\t\t\ttype = LITERAL;\r\n\t\t\t}\r\n\t\t} else if (LL(0) == '\\'') {\r\n\t\t\tconsumeCharacterLiteral();\r\n\t\t\ttype = LITERAL;\r\n\t\t} else {\r\n\t\t\tconsumeCharacter();\r\n\t\t}\r\n\t\tString t = text.substring(oldPos, pos);\r\n\t\tif (type == PLAIN) {\r\n\t\t\tif (keywords.get(t) != null)\r\n\t\t\t\ttype = KEYWORD;\r\n\t\t}\r\n\t\treturn new JavaToken(t, off + oldPos, type);\r\n\t}",
"public Character() {\n this(null, null, null);\n }",
"public Token(String tipo, String lexema){\n\t\tthis.tipo = tipo;\n\t\tthis.lexema = lexema;\n\t}",
"public Tokenizer(String text) {\n this.tokens = new Vector<TokenNode>();\n text = TextPreprocessor.removeNoisySpaces(text);\n createTokens(text);\n }",
"public Builder clearToken() {\n \n token_ = getDefaultInstance().getToken();\n onChanged();\n return this;\n }",
"public Token zero() {\n\t\ttry {\n\t\t\treturn new LongMatrixToken(new long[_rowCount * _columnCount],\n\t\t\t\t\t_rowCount, _columnCount, DO_NOT_COPY);\n\t\t} catch (IllegalActionException illegalAction) {\n\t\t\t// should not happen\n\t\t\tthrow new InternalErrorException(\"LongMatrixToken.zero: \"\n\t\t\t\t\t+ \"Cannot create zero matrix.\");\n\t\t}\n\t}",
"private Token(char firstChar) {\r\n\t\tthis.text += firstChar;\r\n\t}",
"private Token(TokenType type, Range range, Range textRange, String id, String match) {\r\n \t\t\tsuper();\r\n \t\t\tthis.type = type;\r\n \t\t\tthis.range = range;\r\n \t\t\tthis.textRange = textRange == null ? range : textRange;\r\n \t\t\tthis.id = id;\r\n //\t\t\tthis.match = match;\r\n \t\t}",
"public Token createToken(TokenType token, String sequence, int precedence) {\n return new Token(token, sequence, precedence);\n }",
"public Token toToken(String s);",
"public Token(boolean killNode)\r\n {\r\n this.killNode = killNode; //sets local killNode variable to true\r\n\r\n }",
"public Token(int start)\n {\n this.start = start;\n }",
"public Spill() {\n\t\tthis(0, null);\n\t}",
"SimpleLiteral createSimpleLiteral();",
"public Token(String terme, int tf) {\r\n\t\t\r\n\t\tthis.Terme = terme;\r\n\t\tthis.tf = tf;\r\n\t}",
"private Token(int code)\n {\n myCode = code;\n }",
"public SpecialCharToken(char value) {\n this(value, null);\n }",
"public Token(TokenType type) {\n\t\tthis.type = type;\n\t\tthis.spelling = type.getSpelling();\n\t}",
"<C> NullLiteralExp<C> createNullLiteralExp();",
"TokenDef(String tokenname, String ANTLRCODE) {\n this.tokenname = tokenname;\n this.ANTLRCODE = ANTLRCODE;\n }",
"public BStarTokenMaker() {\n\t\tsuper();\n\t}",
"public AstParser(AstParserTokenManager tm) {\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 9; i++) jj_la1[i] = -1;\n }",
"public TextFragment()\n\t{\n\t}",
"public Token() {\n mTokenReceivedDate = new Date();\n }",
"protected String getTokenConstant() {\r\n return null;\r\n }",
"@Override\n public CommonTokenStream getTokens() {\n return null;\n }",
"public Token(int lineNum, int tokenId, String tokenName)\n\t{\n\t\tthis.lineNum = lineNum;\n\t\tthis.tokenId = tokenId;\n\t\tthis.tokenName = tokenName;\n\t\ttokenIdtoName(tokenId);\n\t}",
"private void setToken(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n token_ = value;\n }",
"private void setToken(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n token_ = value;\n }",
"private void setToken(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n token_ = value;\n }",
"private void clearToken() {\n \n token_ = getDefaultInstance().getToken();\n }",
"private void clearToken() {\n \n token_ = getDefaultInstance().getToken();\n }",
"private void clearToken() {\n \n token_ = getDefaultInstance().getToken();\n }",
"public Token(int start, int end, String typ) {\n startOffset = start;\n endOffset = end;\n type = typ;\n }",
"public BasicParser(BasicParserTokenManager tm) {\n\t token_source = tm;\n\t token = new Token();\n\t jj_ntk = -1;\n\t jj_gen = 0;\n\t for (int i = 0; i < 13; i++) jj_la1[i] = -1;\n }",
"public TokenTest (String name)\r\n {\r\n super (name);\r\n /*\r\n * This constructor should not be modified. Any initialization code\r\n * should be placed in the setUp() method instead.\r\n */\r\n }",
"@Nonnull\r\n public Token token()\r\n throws IOException,\r\n LexerException {\r\n Token tok = _token();\r\n if (getFeature(Feature.DEBUG))\r\n LOG.debug(\"pp: Returning \" + tok);\r\n return tok;\r\n }",
"public String getTokenValue() { return tok; }",
"public Token(byte[] identifier, byte[] password, Text kind, Text service) {\n this.identifier = (identifier == null)? new byte[0] : identifier;\n this.password = (password == null)? new byte[0] : password;\n this.kind = (kind == null)? new Text() : kind;\n this.service = (service == null)? new Text() : service;\n }",
"public static TokenizerFactory<Word> factory()\n/* */ {\n/* 111 */ return new ArabicTokenizerFactory(false);\n/* */ }",
"public UnaryExpNode() {\n }",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"protected AST_Node() {\r\n\t}",
"public Token(I2PAppContext ctx, byte[] data) {\n super(data);\n // lets not get carried away\n if (data.length > MAX_TOK_LEN)\n throw new IllegalArgumentException();\n lastSeen = ctx.clock().now();\n }",
"public Text()\n {\n super();\n initialize();\n }",
"public Parser(ParserTokenManager tm) {\r\n token_source = tm;\r\n token = new Token();\r\n jj_ntk = -1;\r\n }",
"public static String generateToken() {\n return new Generex(PatternValidator.TOKEN_PATTERN).random();\n }",
"protected ASTNode() {\n\t\t\n\t}",
"public TextFlow() {\n this(new String());\n }",
"public static StringLiteral fromToken (String pToken)\n {\n return new StringLiteral (getValueFromToken (pToken));\n }",
"public FreeTextNode(String content)\n {\n this.content = content == null ? \"\" : content;\n }",
"public TokenString(Token[] tokens) {\n\tthis.tokens = tokens;\n}",
"private Token makeOneToken(String word) {\n Tokenizer tokenizer = new Tokenizer(new StringReader(word), keywords);;\n return tokenizer.next();\n }"
]
| [
"0.7480406",
"0.7395141",
"0.7358577",
"0.72942513",
"0.6938433",
"0.6673813",
"0.65083134",
"0.6389287",
"0.6369",
"0.6358758",
"0.6343562",
"0.6331443",
"0.62676305",
"0.6238067",
"0.62348205",
"0.6216149",
"0.6195568",
"0.61934274",
"0.6179133",
"0.61665934",
"0.6143391",
"0.61426896",
"0.6098865",
"0.6098865",
"0.6071596",
"0.6069405",
"0.6065478",
"0.6065478",
"0.6065478",
"0.6065478",
"0.6065478",
"0.6046184",
"0.6030794",
"0.602879",
"0.602879",
"0.602879",
"0.602879",
"0.602879",
"0.596878",
"0.5962597",
"0.5953179",
"0.5937869",
"0.5930599",
"0.59251475",
"0.5921092",
"0.5915135",
"0.58865774",
"0.584864",
"0.58351773",
"0.583441",
"0.5834386",
"0.5825479",
"0.58237",
"0.58192664",
"0.58116984",
"0.58023125",
"0.5800913",
"0.579012",
"0.57868963",
"0.57383966",
"0.5733193",
"0.5727371",
"0.5723098",
"0.5717449",
"0.5698307",
"0.56979144",
"0.5695838",
"0.56926566",
"0.56781083",
"0.56730694",
"0.56730694",
"0.56730694",
"0.56641877",
"0.56641877",
"0.56641877",
"0.56630707",
"0.56463766",
"0.5626396",
"0.56063104",
"0.5592472",
"0.558682",
"0.5584419",
"0.55699503",
"0.5568569",
"0.5568569",
"0.5568569",
"0.5568569",
"0.5568569",
"0.5568569",
"0.55602765",
"0.5551699",
"0.5541269",
"0.55286646",
"0.55263615",
"0.55260086",
"0.552597",
"0.55066115",
"0.5504686",
"0.54900336",
"0.54813707"
]
| 0.72987336 | 3 |
Constructs a Token with null text and start & end offsets. | public Token(int start, int end) {
startOffset = start;
endOffset = end;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Token(String text, int start, int end) {\n termText = text;\n startOffset = start;\n endOffset = end;\n }",
"public Token(String text, int start, int end, int flags) {\n termText = text;\n startOffset = start;\n endOffset = end;\n this.flags = flags;\n }",
"public Token(int start, int end, String typ) {\n startOffset = start;\n endOffset = end;\n type = typ;\n }",
"public Token(int start, int end, int flags){\n startOffset = start;\n endOffset = end;\n this.flags = flags;\n }",
"public Token(String text, int start, int end, String typ) {\n termText = text;\n startOffset = start;\n endOffset = end;\n type = typ;\n }",
"private Token () { }",
"public Token(int start)\n {\n this.start = start;\n }",
"private Token createToken(\n String type, String val, int start, int end) {\n return new Token(type, val, start, end);\n }",
"public Token() {\n }",
"public Token() {\n }",
"@Override\r\n\tpublic Token createToken() {\n\t\tToken token = new Token();\r\n\t\treturn token;\r\n\t}",
"public Token() {\n this.clitic = \"none\";\n }",
"public Spill() {\n\t\tthis(0, null);\n\t}",
"public TextFragment()\n\t{\n\t}",
"public DwollaTokens() {\n\t\tthis(\"dwolla_tokens\", null);\n\t}",
"public Tokenizer() {\n tokenInfos = new LinkedList<TokenInfo>();\n tokens = new LinkedList<Token>();\n\n }",
"public Tokenizer() {\r\n tokenList = new ArrayList<>();\r\n\r\n mathOperations = new ArrayList<>(5);\r\n mathOperations.add(\"+\");\r\n mathOperations.add(\"-\");\r\n mathOperations.add(\"*\");\r\n mathOperations.add(\"/\");\r\n mathOperations.add(\"%\");\r\n theBuilder = new TokenBuilder(\"\\\\s+\", mathOperations);\r\n }",
"public Token(Token other) {\n __isset_bitfield = other.__isset_bitfield;\n this.tokenIndex = other.tokenIndex;\n if (other.isSetText()) {\n this.text = other.text;\n }\n if (other.isSetTextSpan()) {\n this.textSpan = new edu.jhu.hlt.concrete.TextSpan(other.textSpan);\n }\n if (other.isSetRawTextSpan()) {\n this.rawTextSpan = new edu.jhu.hlt.concrete.TextSpan(other.rawTextSpan);\n }\n if (other.isSetAudioSpan()) {\n this.audioSpan = new edu.jhu.hlt.concrete.AudioSpan(other.audioSpan);\n }\n }",
"public Character() {\n this(null, null, null);\n }",
"public OtherTokenizer() {\n super();\n }",
"public Token zero() {\n\t\ttry {\n\t\t\treturn new LongMatrixToken(new long[_rowCount * _columnCount],\n\t\t\t\t\t_rowCount, _columnCount, DO_NOT_COPY);\n\t\t} catch (IllegalActionException illegalAction) {\n\t\t\t// should not happen\n\t\t\tthrow new InternalErrorException(\"LongMatrixToken.zero: \"\n\t\t\t\t\t+ \"Cannot create zero matrix.\");\n\t\t}\n\t}",
"public Token newToken() {\r\n\t\tString value = UUID.randomUUID().toString();\r\n\t\treturn new Token(value);\r\n\t}",
"public static TokenizerFactory<Word> factory()\n/* */ {\n/* 116 */ return new WhitespaceTokenizerFactory(false);\n/* */ }",
"public Token(int ordinal) {\r\n\t\tthis.ordinal = ordinal;\r\n\t\tthis.value = null;\r\n\t}",
"public Token (String token, int position, int marker) {\n this.tokenString = token;\n this.position = position;\n this.marker = marker; \n }",
"private Token(TokenType type, Range range, Range textRange, String id, String match) {\r\n \t\t\tsuper();\r\n \t\t\tthis.type = type;\r\n \t\t\tthis.range = range;\r\n \t\t\tthis.textRange = textRange == null ? range : textRange;\r\n \t\t\tthis.id = id;\r\n //\t\t\tthis.match = match;\r\n \t\t}",
"public ListNode() {\n\t\tthis(0, null);\n\t}",
"@Override\n public CommonTokenStream getTokens() {\n return null;\n }",
"public NullUnit() {\n super(1, 0, new InvalidLocation(), 0);\n }",
"public Builder clearToken() {\n bitField0_ = (bitField0_ & ~0x00000001);\n token_ = getDefaultInstance().getToken();\n onChanged();\n return this;\n }",
"public Builder clearToken() {\n bitField0_ = (bitField0_ & ~0x00000001);\n token_ = getDefaultInstance().getToken();\n onChanged();\n return this;\n }",
"public Builder clearToken() {\n bitField0_ = (bitField0_ & ~0x00000001);\n token_ = getDefaultInstance().getToken();\n onChanged();\n return this;\n }",
"public Builder clearToken() {\n bitField0_ = (bitField0_ & ~0x00000001);\n token_ = getDefaultInstance().getToken();\n onChanged();\n return this;\n }",
"public Builder clearToken() {\n bitField0_ = (bitField0_ & ~0x00000001);\n token_ = getDefaultInstance().getToken();\n onChanged();\n return this;\n }",
"public Token() {\n token = new Random().nextLong();\n }",
"public Token makeToken(String s, int startPosition, int endPosition) {\r\n if (s.equals(\"//\")) { // filter comment\r\n try {\r\n int oldLine = source.getLineno();\r\n do {\r\n ch = source.read();\r\n } while (oldLine == source.getLineno());\r\n } catch (Exception e) {\r\n atEOF = true;\r\n }\r\n return nextToken();\r\n }\r\n Symbol sym = Symbol.symbol(s, Tokens.BogusToken); // be sure it's a valid token\r\n if (sym == null) {\r\n System.out.println(\"******** illegal character: \" + s);\r\n atEOF = true;\r\n return nextToken();\r\n }\r\n return new Token(startPosition, endPosition, sym);\r\n }",
"public TextPos() {\n this.value = 1;\n }",
"public ConcordanceToken(String text, String tag, int tokenNum, int partNum, String... stems) {\r\n\t\tsuper(text, tag, 0l, stems);\r\n\t\tif(tokenNum < 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tif(partNum < 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tthis.tokenNum = tokenNum;\r\n\t\tthis.partNum = partNum;\r\n\t}",
"public LeanTextGeometry() {}",
"public TextPos() {\n lineNumber = -1;\n linePos = -1; \n }",
"public JavaTokenMaker() {\n\t}",
"private Range() {\n this.length = 0;\n this.first = 0;\n this.last = -1;\n this.stride = 1;\n this.name = \"EMPTY\";\n }",
"public Indent()\n {\n this(\" \", 0);\n }",
"public DocumentWordPosition() {}",
"public TemplexTokenMaker() {\r\n\t\tsuper();\r\n\t}",
"protected Span() {/* intentionally empty block */}",
"public SLL()\r\n\t{\r\n\t\tstart = null;\r\n\t\tend = null;\r\n\t\tsize = 0;\r\n\t}",
"public Token(int TTL, String extraTimeHost, String startNodeID, String skipNode, String customFileName)\r\n {\r\n this.TTL = TTL;\r\n this.extraTimeHost = extraTimeHost;\r\n this.startNodeID = startNodeID;\r\n this.skipNode = skipNode;\r\n this.customFileName = customFileName;\r\n\r\n }",
"public Translation() {\n\n this(0, 0, 0);\n }",
"NullSt (int ln) { super (ln); }",
"public Builder clearToken() {\n \n token_ = getDefaultInstance().getToken();\n onChanged();\n return this;\n }",
"Literal createLiteral();",
"Literal createLiteral();",
"public String toString() { return (tok == null) ? \"\" : tok; }",
"private Token nextRawToken() throws NoSuchElementException {\n\t\t// Location of the char after the current projected token.\n\t\tint sLoc = 0;\n\n\t\twhile (latestLine.trim().isEmpty()) {\n\t\t\tlatestLine = fileScanner.nextLine();\n\t\t}\n\n\t\t// Find the next end segment\n\t\twhile (latestLine.length() != sLoc + 1\n\t\t\t\t&& latestLine.charAt(sLoc + 1) != ' ') {\n\t\t\t// && getType(document.substring(0, sLoc + 1)) == TokenType.INVALID)\n\t\t\t// {\n\t\t\tsLoc++;\n\t\t}\n\n\t\t// End indices of the token, inclusive.\n\t\tint endTestToken = sLoc;\n\n\t\t/*\n\t\t * Determine the longest sub-token by starting from the end and working\n\t\t * backwards.\n\t\t */\n\t\tboolean valid = false;\n\t\tfor (int i = endTestToken; i >= 0; i--) {\n\t\t\tString testToken = latestLine.substring(0, i + 1);\n\t\t\tif (getType(testToken) != TokenType.INVALID) {\n\t\t\t\tsLoc = i;\n\t\t\t\tvalid = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (!valid) {\n\t\t\tsLoc = 0;\n\t\t}\n\n\t\tString token = latestLine.substring(0, sLoc + 1);\n\n\t\tToken t = new Token(token, getType(token));\n\t\trunDiagnostic(t);\n\n\t\t// Consume the token form the document\n\t\tlatestLine = latestLine.substring(sLoc + 1).trim();\n\n\t\treturn t;\n\t}",
"public static TextPos fromBaseZeroValue(int value) {\n return new TextPos(TextPos.BASE_ZERO, value);\n }",
"public Nodo() {\n\t\tthis(null, null);\n\t}",
"Token(Type ttype, String v, int p, int l) {\n type = ttype;\n value = v;\n pos = p;\n line = l;\n }",
"public Text()\n {\n super();\n initialize();\n }",
"<C> NullLiteralExp<C> createNullLiteralExp();",
"public Builder clearTokenSegment() {\n if (tokenSegmentBuilder_ == null) {\n tokenSegment_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n tokenSegmentBuilder_.clear();\n }\n return this;\n }",
"SimpleLiteral createSimpleLiteral();",
"public BStarTokenMaker() {\n\t\tsuper();\n\t}",
"public Tokenizer(String text) {\n this.tokens = new Vector<TokenNode>();\n text = TextPreprocessor.removeNoisySpaces(text);\n createTokens(text);\n }",
"public Token(I2PAppContext ctx) {\n super(null);\n byte[] data = new byte[MY_TOK_LEN];\n ctx.random().nextBytes(data);\n setData(data);\n setValid(MY_TOK_LEN);\n lastSeen = ctx.clock().now();\n }",
"private Token(char firstChar) {\r\n\t\tthis.text += firstChar;\r\n\t}",
"public Token(Type t, String c) {\r\n this.t = t;\r\n this.c = c;\r\n }",
"public Token newIdToken(String id, int startPosition, int endPosition) {\r\n return new Token(startPosition, endPosition, Symbol.symbol(id, Tokens.Identifier));\r\n }",
"public WhitespaceTokenizer(Reader r)\n/* */ {\n/* 88 */ this(r, false);\n/* */ }",
"public Token newNumberToken(String number, int startPosition, int endPosition) {\r\n return new Token(startPosition, endPosition,\r\n Symbol.symbol(number, Tokens.INTeger));\r\n }",
"public ParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal,\n String[] tokenImageVal) {\n super(\"\");\n specialConstructor = true;\n currentToken = currentTokenVal;\n expectedTokenSequences = expectedTokenSequencesVal;\n tokenImage = tokenImageVal;\n }",
"@Test\n\tpublic void testJustEmptyChars() {\n\t\tSmartScriptLexer lexer = new SmartScriptLexer(\" \\r\\n\\t \");\n\t\t\n\t\tSmartScriptToken expected = new SmartScriptToken(SmartScriptTokenType.TEXT, \" \\r\\n\\t \");\n\t\tassertEquals(lexer.nextToken().getType(), SmartScriptTokenType.TEXT);\n\t\tassertEquals(lexer.getToken().getValue(), expected.getValue());\n\t}",
"private static Text createHeader() {\n StringBuilder stringBuilder = new StringBuilder();\n //noinspection HardCodedStringLiteral\n stringBuilder.append(\"Offset \");\n for (int i = 0; i < 16; i++) {\n stringBuilder.append(\" 0\");\n stringBuilder.append(Integer.toHexString(i));\n }\n stringBuilder.append(System.lineSeparator()).append(System.lineSeparator());\n Text result = new Text(stringBuilder.toString());\n //noinspection HardCodedStringLiteral\n result.getStyleClass().add(\"normal\");\n return result;\n }",
"public Token(Token other) {\n __isset_bitfield = other.__isset_bitfield;\n this.token_num = other.token_num;\n if (other.isSetToken()) {\n this.token = other.token;\n }\n if (other.isSetOffsets()) {\n Map<OffsetType,Offset> __this__offsets = new HashMap<OffsetType,Offset>();\n for (Map.Entry<OffsetType, Offset> other_element : other.offsets.entrySet()) {\n\n OffsetType other_element_key = other_element.getKey();\n Offset other_element_value = other_element.getValue();\n\n OffsetType __this__offsets_copy_key = other_element_key;\n\n Offset __this__offsets_copy_value = new Offset(other_element_value);\n\n __this__offsets.put(__this__offsets_copy_key, __this__offsets_copy_value);\n }\n this.offsets = __this__offsets;\n }\n this.sentence_pos = other.sentence_pos;\n if (other.isSetLemma()) {\n this.lemma = other.lemma;\n }\n if (other.isSetPos()) {\n this.pos = other.pos;\n }\n if (other.isSetEntity_type()) {\n this.entity_type = other.entity_type;\n }\n this.mention_id = other.mention_id;\n this.equiv_id = other.equiv_id;\n this.parent_id = other.parent_id;\n if (other.isSetDependency_path()) {\n this.dependency_path = other.dependency_path;\n }\n if (other.isSetLabels()) {\n Map<String,List<Label>> __this__labels = new HashMap<String,List<Label>>();\n for (Map.Entry<String, List<Label>> other_element : other.labels.entrySet()) {\n\n String other_element_key = other_element.getKey();\n List<Label> other_element_value = other_element.getValue();\n\n String __this__labels_copy_key = other_element_key;\n\n List<Label> __this__labels_copy_value = new ArrayList<Label>();\n for (Label other_element_value_element : other_element_value) {\n __this__labels_copy_value.add(new Label(other_element_value_element));\n }\n\n __this__labels.put(__this__labels_copy_key, __this__labels_copy_value);\n }\n this.labels = __this__labels;\n }\n if (other.isSetMention_type()) {\n this.mention_type = other.mention_type;\n }\n }",
"public static Tag emptyTag() {\n\t\treturn new Tag(NAME, \"\");\n\t}",
"protected AST_Node() {\r\n\t}",
"public Element(Token token) {\n if (token != null) {\n this.beginLine = token.beginLine;\n this.endLine = token.endLine;\n this.beginColumn = token.beginColumn;\n this.endColumn = token.endColumn;\n }\n }",
"public NullStringEditor () {\n super();\n editable = true;\n }",
"public UnaryExpNode() {\n }",
"public Token(I2PAppContext ctx, byte[] data) {\n super(data);\n // lets not get carried away\n if (data.length > MAX_TOK_LEN)\n throw new IllegalArgumentException();\n lastSeen = ctx.clock().now();\n }",
"public VariableToken(String text) {\n super(text);\n }",
"public LabelToken(String value, int line, long origin, long originOffset) {\n super(value, TokenType.LABEL, line);\n if ((this.origin = origin) < 0)\n throw new IllegalArgumentException(\"Origin address cannot be negative\");\n if ((this.originOffset = originOffset) < 0)\n throw new IllegalArgumentException(\"Origin address offset cannot be negative\");\n }",
"public AstParser(AstParserTokenManager tm) {\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 9; i++) jj_la1[i] = -1;\n }",
"public BasicLineParser() {\n/* 99 */ this(null);\n/* */ }",
"public SpecialCharToken(char value) {\n this(value, null);\n }",
"private void tokenStart() {\n tokenStartIndex = zzStartRead;\n }",
"public CText() {\r\n\t\ttext = new StringBuilder();\r\n\t\tline_index = new ArrayList<>();\r\n\t\tline_index.add(0);\r\n\t}",
"public String newToken(){\n String line = getLine(lines);\n String token = getToken(line);\n return token;\n }",
"@Override\r\n\tpublic JavaToken nextToken() {\r\n\t\tif (!ready())\r\n\t\t\treturn null;\r\n\t\tint oldPos = this.pos;\r\n\t\tint type = PLAIN;\r\n\t\tif (LL(0) == ' ' || LL(0) == '\\t' || LL(0) == '\\n' || LL(0) == '\\r') {\r\n\t\t\tconsumeWhiteSpace();\r\n\t\t\ttype = WHITESPACE;\r\n\t\t} else if (Character.isJavaIdentifierStart(LL(0))) {\r\n\t\t\tconsumeIdentifier();\r\n\t\t} else if (LL(0) == '#') {\r\n\t\t\tconsumeSingleLineComment();\r\n\t\t\ttype = COMMENT;\r\n\t\t} else if (LL(0) == '\\\"') {\r\n\t\t\tif (LL(1) == '\\\"' && LL(2) == '\\\"') {\r\n\t\t\t\tconsumeMultiLineComment();\r\n\t\t\t\ttype = COMMENT;\r\n\t\t\t} else {\r\n\t\t\t\tconsumeStringLiteral();\r\n\t\t\t\ttype = LITERAL;\r\n\t\t\t}\r\n\t\t} else if (LL(0) == '\\'') {\r\n\t\t\tconsumeCharacterLiteral();\r\n\t\t\ttype = LITERAL;\r\n\t\t} else {\r\n\t\t\tconsumeCharacter();\r\n\t\t}\r\n\t\tString t = text.substring(oldPos, pos);\r\n\t\tif (type == PLAIN) {\r\n\t\t\tif (keywords.get(t) != null)\r\n\t\t\t\ttype = KEYWORD;\r\n\t\t}\r\n\t\treturn new JavaToken(t, off + oldPos, type);\r\n\t}",
"@Test\n\tvoid testTokenizeEmptyString() {\n\t\ttokenizer.setColumns(new Range[] { new Range(1, 5), new Range(6, 10), new Range(11, 15) });\n\t\tvar exception = assertThrows(IncorrectLineLengthException.class, () -> tokenizer.tokenize(\"\"));\n\t\tassertEquals(15, exception.getExpectedLength());\n\t\tassertEquals(0, exception.getActualLength());\n\t\tassertEquals(\"\", exception.getInput());\n\t}",
"Span createSpan();",
"@Override\r\n\tpublic Token getToken(String token) {\n\t\treturn null;\r\n\t}",
"public FastString() {\n this(\"\");\n }",
"public EmptyType() {\n super(\"<EMPTY>\");\n }",
"public StintFragment() {\n }",
"public DoublyLL()\r\n\t{\r\n\t\tstart = null;\r\n\t\t//end = null;\r\n\t\tsize = 0;\r\n\t}",
"NullValue createNullValue();",
"NullValue createNullValue();",
"public BasicParser(BasicParserTokenManager tm) {\n\t token_source = tm;\n\t token = new Token();\n\t jj_ntk = -1;\n\t jj_gen = 0;\n\t for (int i = 0; i < 13; i++) jj_la1[i] = -1;\n }",
"@Override\n public String visit(TextBlockLiteralExpr n, Object arg) {\n return null;\n }"
]
| [
"0.6704183",
"0.6584024",
"0.6529618",
"0.6469613",
"0.6464761",
"0.62516415",
"0.6185708",
"0.6155076",
"0.61403346",
"0.6104455",
"0.60398954",
"0.60269564",
"0.5929311",
"0.57524365",
"0.57490015",
"0.56919384",
"0.5617411",
"0.56122845",
"0.5589181",
"0.55654013",
"0.5545464",
"0.5514192",
"0.54977626",
"0.54668844",
"0.5454604",
"0.54400575",
"0.5426361",
"0.5414386",
"0.5386676",
"0.5346219",
"0.5346219",
"0.5346219",
"0.5346219",
"0.5346219",
"0.53357744",
"0.5322442",
"0.5243344",
"0.5231564",
"0.5204858",
"0.5203924",
"0.5177337",
"0.5173676",
"0.5154191",
"0.5146171",
"0.5115978",
"0.5094444",
"0.5089083",
"0.50608116",
"0.5055971",
"0.5045599",
"0.5042258",
"0.50384456",
"0.50384456",
"0.5025466",
"0.50235826",
"0.5014832",
"0.50073594",
"0.4992026",
"0.4988856",
"0.49813426",
"0.49623245",
"0.49593252",
"0.49592307",
"0.49591082",
"0.49589595",
"0.4958938",
"0.49588174",
"0.49584764",
"0.49572852",
"0.49498385",
"0.49469468",
"0.49434355",
"0.49432707",
"0.4941354",
"0.49355227",
"0.49335182",
"0.49285245",
"0.49243945",
"0.49180725",
"0.49178442",
"0.49162257",
"0.49069175",
"0.49008685",
"0.48940757",
"0.4892727",
"0.4885215",
"0.4866431",
"0.48636407",
"0.4859922",
"0.48575428",
"0.48566574",
"0.48535872",
"0.4847741",
"0.48434103",
"0.48384035",
"0.4837607",
"0.4836717",
"0.4836717",
"0.48324046",
"0.48320925"
]
| 0.67595005 | 0 |
Constructs a Token with null text and start & end offsets plus the Token type. | public Token(int start, int end, String typ) {
startOffset = start;
endOffset = end;
type = typ;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Token(String text, int start, int end, String typ) {\n termText = text;\n startOffset = start;\n endOffset = end;\n type = typ;\n }",
"private Token createToken(\n String type, String val, int start, int end) {\n return new Token(type, val, start, end);\n }",
"public Token(String text, int start, int end, int flags) {\n termText = text;\n startOffset = start;\n endOffset = end;\n this.flags = flags;\n }",
"public Token(int start, int end) {\n startOffset = start;\n endOffset = end;\n }",
"public Token(String text, int start, int end) {\n termText = text;\n startOffset = start;\n endOffset = end;\n }",
"public Token(int start, int end, int flags){\n startOffset = start;\n endOffset = end;\n this.flags = flags;\n }",
"private Token () { }",
"@Override\r\n\tpublic Token createToken() {\n\t\tToken token = new Token();\r\n\t\treturn token;\r\n\t}",
"public Token(int start)\n {\n this.start = start;\n }",
"public Token() {\n }",
"public Token() {\n }",
"Token(Type ttype, String v, int p, int l) {\n type = ttype;\n value = v;\n pos = p;\n line = l;\n }",
"public Token(TokenType type) {\n\t\tthis.type = type;\n\t\tthis.spelling = type.getSpelling();\n\t}",
"private Token(TokenType type, Range range, Range textRange, String id, String match) {\r\n \t\t\tsuper();\r\n \t\t\tthis.type = type;\r\n \t\t\tthis.range = range;\r\n \t\t\tthis.textRange = textRange == null ? range : textRange;\r\n \t\t\tthis.id = id;\r\n //\t\t\tthis.match = match;\r\n \t\t}",
"public Token() {\n this.clitic = \"none\";\n }",
"public Tokenizer() {\n tokenInfos = new LinkedList<TokenInfo>();\n tokens = new LinkedList<Token>();\n\n }",
"public Token(Type t, String c) {\r\n this.t = t;\r\n this.c = c;\r\n }",
"public Token(Token other) {\n __isset_bitfield = other.__isset_bitfield;\n this.tokenIndex = other.tokenIndex;\n if (other.isSetText()) {\n this.text = other.text;\n }\n if (other.isSetTextSpan()) {\n this.textSpan = new edu.jhu.hlt.concrete.TextSpan(other.textSpan);\n }\n if (other.isSetRawTextSpan()) {\n this.rawTextSpan = new edu.jhu.hlt.concrete.TextSpan(other.rawTextSpan);\n }\n if (other.isSetAudioSpan()) {\n this.audioSpan = new edu.jhu.hlt.concrete.AudioSpan(other.audioSpan);\n }\n }",
"public OtherTokenizer() {\n super();\n }",
"public DwollaTokens() {\n\t\tthis(\"dwolla_tokens\", null);\n\t}",
"public Token newToken() {\r\n\t\tString value = UUID.randomUUID().toString();\r\n\t\treturn new Token(value);\r\n\t}",
"public Tokenizer() {\r\n tokenList = new ArrayList<>();\r\n\r\n mathOperations = new ArrayList<>(5);\r\n mathOperations.add(\"+\");\r\n mathOperations.add(\"-\");\r\n mathOperations.add(\"*\");\r\n mathOperations.add(\"/\");\r\n mathOperations.add(\"%\");\r\n theBuilder = new TokenBuilder(\"\\\\s+\", mathOperations);\r\n }",
"public Token (String token, int position, int marker) {\n this.tokenString = token;\n this.position = position;\n this.marker = marker; \n }",
"@Override\r\n\tpublic JavaToken nextToken() {\r\n\t\tif (!ready())\r\n\t\t\treturn null;\r\n\t\tint oldPos = this.pos;\r\n\t\tint type = PLAIN;\r\n\t\tif (LL(0) == ' ' || LL(0) == '\\t' || LL(0) == '\\n' || LL(0) == '\\r') {\r\n\t\t\tconsumeWhiteSpace();\r\n\t\t\ttype = WHITESPACE;\r\n\t\t} else if (Character.isJavaIdentifierStart(LL(0))) {\r\n\t\t\tconsumeIdentifier();\r\n\t\t} else if (LL(0) == '#') {\r\n\t\t\tconsumeSingleLineComment();\r\n\t\t\ttype = COMMENT;\r\n\t\t} else if (LL(0) == '\\\"') {\r\n\t\t\tif (LL(1) == '\\\"' && LL(2) == '\\\"') {\r\n\t\t\t\tconsumeMultiLineComment();\r\n\t\t\t\ttype = COMMENT;\r\n\t\t\t} else {\r\n\t\t\t\tconsumeStringLiteral();\r\n\t\t\t\ttype = LITERAL;\r\n\t\t\t}\r\n\t\t} else if (LL(0) == '\\'') {\r\n\t\t\tconsumeCharacterLiteral();\r\n\t\t\ttype = LITERAL;\r\n\t\t} else {\r\n\t\t\tconsumeCharacter();\r\n\t\t}\r\n\t\tString t = text.substring(oldPos, pos);\r\n\t\tif (type == PLAIN) {\r\n\t\t\tif (keywords.get(t) != null)\r\n\t\t\t\ttype = KEYWORD;\r\n\t\t}\r\n\t\treturn new JavaToken(t, off + oldPos, type);\r\n\t}",
"public Token(int ordinal) {\r\n\t\tthis.ordinal = ordinal;\r\n\t\tthis.value = null;\r\n\t}",
"public Token(TokenCode code, OpType otype, DataType dtype, int line, int column) {\n _code = code;\n _opType = otype;\n _dataType = dtype;\n _lineNumber = line;\n _columnNumber = column;\n }",
"public Token(TokenType type, String spelling) {\n\t\tthis.type = type;\n\t\tthis.spelling = spelling;\n\t}",
"public LexicalToken(TokenType type) {\n\t\tthis.type = type;\n\t}",
"public Token createToken(TokenType token, String sequence, int precedence) {\n return new Token(token, sequence, precedence);\n }",
"public Token makeToken(String s, int startPosition, int endPosition) {\r\n if (s.equals(\"//\")) { // filter comment\r\n try {\r\n int oldLine = source.getLineno();\r\n do {\r\n ch = source.read();\r\n } while (oldLine == source.getLineno());\r\n } catch (Exception e) {\r\n atEOF = true;\r\n }\r\n return nextToken();\r\n }\r\n Symbol sym = Symbol.symbol(s, Tokens.BogusToken); // be sure it's a valid token\r\n if (sym == null) {\r\n System.out.println(\"******** illegal character: \" + s);\r\n atEOF = true;\r\n return nextToken();\r\n }\r\n return new Token(startPosition, endPosition, sym);\r\n }",
"public Token(String tipo, String lexema){\n\t\tthis.tipo = tipo;\n\t\tthis.lexema = lexema;\n\t}",
"public Token() {\n token = new Random().nextLong();\n }",
"public static TokenizerFactory<Word> factory()\n/* */ {\n/* 116 */ return new WhitespaceTokenizerFactory(false);\n/* */ }",
"public Token getToken() throws IOException {\n\t\t// check if peek() was called\n\t\tif (nextToken != null) {\n\t\t\tToken token = nextToken;\n\t\t\tnextToken = null; // allow peek to call for next token\n\t\t\treturn token;\n\t\t}\n\n\t\t// skip whitespace character\n\t\twhile (Character.isWhitespace(nextChar)) {\n\t\t\t// check if whitespace char is a newline\n\t\t\tif (!skipNewline()) {\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t}\n\n\t\t\t// offset colNum for tab chars\n\t\t\tif (nextChar == '\\t')\n\t\t\t\tcolumnNumber += 3;\n\t\t}\n\t\t//skips comments\n\t\tif (nextChar == '@') {\n\t\t\tnextChar = getChar();\n\t\t\twhile (!skipNewline()) {\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t}\n\n\t\t\tnextChar = getChar();\n\t\t}\n\n\t\t// identifier or reserved word ([a-zA-Z][a-zA-Z0-9_]*)\n\n\t\tif (Character.isLetter(nextChar)) {\n\t\t\t// create new idVal starting with first char of identifier\n\t\t\tString current = Character.toString((char) nextChar);\n\t\t\tcolumnNumber++;\n\t\t\tnextChar = getChar();\n\n\t\t\t// include remaining sequence of chars that are letters, digits, or _\n\t\t\twhile (Character.isLetterOrDigit(nextChar)) {\n\t\t\t\tcurrent += (char) nextChar;\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t}\n\n\t\t\t// check if identifier is a reserved word\n\t\t\tTokenType type = reservedWords.get(current);\n\n\t\t\tif (type != null)\n\t\t\t\treturn new Token(type, new TokenAttribute());\n\n\n\n\t\t\t// token is an identifier\n\t\t\tresult.add(new Token(TokenType.IDENTIFIER, new TokenAttribute(current))); // adding token to results\n\t\t\treturn new Token(TokenType.IDENTIFIER, new TokenAttribute(current));\n\t\t}\n\n\t\t// integer literal ([0-9]+) OR float literal ([0-9]+.[0-9]+)\n\t\tif (Character.isDigit(nextChar)) {\n\n\t\t\t// create string representation of number\n\t\t\tString numString = Character.toString((char) nextChar);\n\t\t\tcolumnNumber++;\n\t\t\tnextChar = getChar();\n\n\t\t\t// concatenate remaining sequence of digits\n\t\t\twhile (Character.isDigit(nextChar)) {\n\t\t\t\tnumString += (char) nextChar;\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t}\n\n\t\t\tif (nextChar == '.') {\n\t\t\t\t//stream.mark(0);\n\t\t\t\tnextChar = getChar();\n\t\t\t\tcolumnNumber++;\n\n\t\t\t\tif (Character.isDigit(nextChar)) {\n\t\t\t\t\tnumString += '.';\n\t\t\t\t\t// concatenate remaining sequence of digits\n\t\t\t\t\twhile (Character.isDigit(nextChar)) {\n\t\t\t\t\t\tnumString += (char) nextChar;\n\t\t\t\t\t\tcolumnNumber++;\n\t\t\t\t\t\tnextChar = getChar();\n\t\t\t\t\t}\n\t\t\t\t\tresult.add(new Token(TokenType.FLOAT_CONST, new TokenAttribute(Float.parseFloat(numString))));\n\t\t\t\t\treturn new Token(TokenType.FLOAT_CONST, new TokenAttribute(Float.parseFloat(numString)));\n\t\t\t\t}\n\t\t\t\twhile (!Character.isWhitespace(nextChar)) {\n\t\t\t\t\tcolumnNumber++;\n\t\t\t\t\tnumString += nextChar;\n\t\t\t\t\tnextChar = getChar();\n\t\t\t\t}\n\n\t\t\t\t//return new Token(TokenType.UNKNOWN, new TokenAttribute());\n\t\t\t}\n\n\t\t\t// return integer literal token\n\t\t\tresult.add(new Token(TokenType.INT_CONST, new TokenAttribute(Integer.parseInt(numString))));\n\t\t\treturn new Token(TokenType.INT_CONST, new TokenAttribute(Integer.parseInt(numString)));\n\t\t}\n\n\n\t\t//EOF --> end of file reached\n\t\tif (nextChar == -1) {\n\t\t\treturn new Token(TokenType.EOF, new TokenAttribute());\n\t\t}\n\n\n\t\t// check for binops\n\t\tswitch (nextChar) {\n\n\t\t\t//Checks for strings\n\t\t\tcase '\"':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tString current = Character.toString((char) nextChar);\n\t\t\t\tnextChar = getChar();\n\t\t\t\tcurrent += (char)nextChar;\n\n\t\t\t\twhile (nextChar != '\"') {\n\t\t\t\t\tnextChar = getChar();\n\t\t\t\t\tcurrent += (char)nextChar;\n\t\t\t\t}\n\t\t\t\tnextChar = getChar();\n\t\t\t\tresult.add(new Token(TokenType.STRING, new TokenAttribute(current)));\n\t\t\t\treturn new Token(TokenType.STRING, new TokenAttribute(current));\n\n\t\t\tcase '=':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\n\t\t\t\t// check if next char is '=' to match '==' binop\n\t\t\t\tif (nextChar == '=') {\n\t\t\t\t\tnextChar = getChar();\n\t\t\t\t\tresult.add(new Token(TokenType.EQ, new TokenAttribute()));\n\t\t\t\t\treturn new Token(TokenType.EQ, new TokenAttribute());\n\t\t\t\t} else\n\t\t\t\t\tresult.add(new Token(TokenType.ASSIGN, new TokenAttribute()));\n\t\t\t\treturn new Token(TokenType.ASSIGN, new TokenAttribute());\n\n\t\t\tcase '!':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\n\t\t\t\t// check if next char is '!' to match '!=' binop\n\t\t\t\tif (nextChar == '^') {\n\t\t\t\t\tnextChar = getChar();\n\t\t\t\t\tresult.add(new Token(TokenType.NEQ, new TokenAttribute()));\n\t\t\t\t\treturn new Token(TokenType.NEQ, new TokenAttribute());\n\t\t\t\t}\n\n\t\t\tcase '<':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\n\t\t\t\t// check if next char is '<' to match '<=' binop\n\t\t\t\tif (nextChar == '=') {\n\t\t\t\t\tnextChar = getChar();\n\t\t\t\t\tresult.add(new Token(TokenType.LT_EQ, new TokenAttribute()));\n\t\t\t\t\treturn new Token(TokenType.LT_EQ, new TokenAttribute());\n\t\t\t\t} else\n\t\t\t\t\tresult.add(new Token(TokenType.LT, new TokenAttribute()));\n\t\t\t\treturn new Token(TokenType.LT, new TokenAttribute());\n\n\t\t\tcase '>':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\n\t\t\t\t// check if next char is '<' to match '<=' binop\n\t\t\t\tif (nextChar == '=') {\n\t\t\t\t\tnextChar = getChar();\n\t\t\t\t\tresult.add(new Token(TokenType.GT_EQ, new TokenAttribute()));\n\t\t\t\t\treturn new Token(TokenType.GT_EQ, new TokenAttribute());\n\t\t\t\t} else\n\t\t\t\t\tresult.add(new Token(TokenType.RT, new TokenAttribute()));\n\t\t\t\treturn new Token(TokenType.RT, new TokenAttribute());\n\n\t\t\tcase '+':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t\tresult.add(new Token(TokenType.PLUS, new TokenAttribute()));\n\t\t\t\treturn new Token(TokenType.PLUS, new TokenAttribute());\n\n\t\t\tcase '-':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t\tresult.add(new Token(TokenType.MINUS, new TokenAttribute()));\n\t\t\t\treturn new Token(TokenType.MINUS, new TokenAttribute());\n\n\t\t\tcase '*':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t\tresult.add(new Token(TokenType.MULTIPLY, new TokenAttribute()));\n\t\t\t\treturn new Token(TokenType.MULTIPLY, new TokenAttribute());\n\n\t\t\tcase '/':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t\tresult.add(new Token(TokenType.DIVIDE, new TokenAttribute()));\n\t\t\t\treturn new Token(TokenType.DIVIDE, new TokenAttribute());\n\n\n\t\t}\n\n\t\t// check for punctuation\n\t\tTokenType type = punctuation.get((char) nextChar);\n\t\tcolumnNumber++;\n\t\tnextChar = getChar();\n\n\t\t// found punctuation token\n\t\tif (type != null) {\n\t\t\tresult.add(new Token(type, new TokenAttribute()));\n\t\t\treturn new Token(type, new TokenAttribute());\n\t\t}\n\n\t\t// token type is unknown\n\t\tresult.add(new Token(TokenType.UNKNOWN, new TokenAttribute()));\n\t\treturn new Token(TokenType.UNKNOWN, new TokenAttribute());\n\t}",
"private Token(TokenType type, String value, Expression expression, TokenLine tokens) {\n TYPE = type;\n VALUE = value;\n EXPRESSION = expression;\n CHILDREN = tokens;\n }",
"public Token(String content, TokenType type) {\n\t\tthis.content = content;\n\t\tthis.type = type;\n\t}",
"public TemplexTokenMaker() {\r\n\t\tsuper();\r\n\t}",
"public Token(TokenCode code, OpType otype, DataType dtype, \n SymbolTableEntry entry, int line, int column) {\n _code = code;\n _opType = otype;\n _dataType = dtype;\n _symbolTableEntry = entry;\n _lineNumber = line;\n _columnNumber = column;\n }",
"public Token(char value, TokenType type, int lineNumber) {\n\t\tthis.value = String.valueOf(value);\n\t\tthis.type = type;\n\t\tthis.lineNumber = lineNumber;\n\t\tthis.numVal = 0;\n\t\tthis.wordVal = null;\n\t}",
"public Spill() {\n\t\tthis(0, null);\n\t}",
"public JavaTokenMaker() {\n\t}",
"private Token nextRawToken() throws NoSuchElementException {\n\t\t// Location of the char after the current projected token.\n\t\tint sLoc = 0;\n\n\t\twhile (latestLine.trim().isEmpty()) {\n\t\t\tlatestLine = fileScanner.nextLine();\n\t\t}\n\n\t\t// Find the next end segment\n\t\twhile (latestLine.length() != sLoc + 1\n\t\t\t\t&& latestLine.charAt(sLoc + 1) != ' ') {\n\t\t\t// && getType(document.substring(0, sLoc + 1)) == TokenType.INVALID)\n\t\t\t// {\n\t\t\tsLoc++;\n\t\t}\n\n\t\t// End indices of the token, inclusive.\n\t\tint endTestToken = sLoc;\n\n\t\t/*\n\t\t * Determine the longest sub-token by starting from the end and working\n\t\t * backwards.\n\t\t */\n\t\tboolean valid = false;\n\t\tfor (int i = endTestToken; i >= 0; i--) {\n\t\t\tString testToken = latestLine.substring(0, i + 1);\n\t\t\tif (getType(testToken) != TokenType.INVALID) {\n\t\t\t\tsLoc = i;\n\t\t\t\tvalid = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (!valid) {\n\t\t\tsLoc = 0;\n\t\t}\n\n\t\tString token = latestLine.substring(0, sLoc + 1);\n\n\t\tToken t = new Token(token, getType(token));\n\t\trunDiagnostic(t);\n\n\t\t// Consume the token form the document\n\t\tlatestLine = latestLine.substring(sLoc + 1).trim();\n\n\t\treturn t;\n\t}",
"@Override\n public CommonTokenStream getTokens() {\n return null;\n }",
"private void addToken(TokenType type) {\n addToken(type, null);\n }",
"public Token newNumberToken(String number, int startPosition, int endPosition) {\r\n return new Token(startPosition, endPosition,\r\n Symbol.symbol(number, Tokens.INTeger));\r\n }",
"public Token getTokenList(Segment text, int initialTokenType, int startOffset) {\n\n\t\tresetTokenList();\n\t\tthis.offsetShift = -text.offset + startOffset;\n\n\t\t// Start off in the proper state.\n\t\tint state = Token.NULL;\n\t\tswitch (initialTokenType) {\n\t\t\tcase Token.COMMENT_MULTILINE:\n\t\t\t\tstate = MLC;\n\t\t\t\tstart = text.offset;\n\t\t\t\tbreak;\n\t\t\tcase Token.COMMENT_DOCUMENTATION:\n\t\t\t\tstate = DOCCOMMENT;\n\t\t\t\tstart = text.offset;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tstate = Token.NULL;\n\t\t}\n\n\t\ts = text;\n\t\ttry {\n\t\t\tyyreset(zzReader);\n\t\t\tyybegin(state);\n\t\t\treturn yylex();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t\treturn new TokenImpl();\n\t\t}\n\n\t}",
"public Token getTokenList(Segment text, int initialTokenType, int startOffset) {\n\n\t\tresetTokenList();\n\t\tthis.offsetShift = -text.offset + startOffset;\n\n\t\t// Start off in the proper state.\n\t\tint state = Token.NULL;\n\t\tswitch (initialTokenType) {\n\t\t\tcase Token.COMMENT_MULTILINE:\n\t\t\t\tstate = MLC;\n\t\t\t\tstart = text.offset;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tstate = Token.NULL;\n\t\t}\n\n\t\ts = text;\n\t\ttry {\n\t\t\tyyreset(zzReader);\n\t\t\tyybegin(state);\n\t\t\treturn yylex();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t\treturn new TokenImpl();\n\t\t}\n\n\t}",
"public Character() {\n this(null, null, null);\n }",
"public ConcordanceToken(String text, String tag, int tokenNum, int partNum, String... stems) {\r\n\t\tsuper(text, tag, 0l, stems);\r\n\t\tif(tokenNum < 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tif(partNum < 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tthis.tokenNum = tokenNum;\r\n\t\tthis.partNum = partNum;\r\n\t}",
"private Token(char firstChar) {\r\n\t\tthis.text += firstChar;\r\n\t}",
"public Token getTokenList(Segment text, int initialTokenType, int startOffset) {\r\n\r\n\t\tresetTokenList();\r\n\t\tthis.offsetShift = -text.offset + startOffset;\r\n\r\n\t\t// Start off in the proper state.\r\n\t\tint state = Token.NULL;\r\n\t\tswitch (initialTokenType) {\r\n\t\t\tcase Token.LITERAL_STRING_DOUBLE_QUOTE:\r\n\t\t\t\tstate = STRING;\r\n\t\t\t\tstart = text.offset;\r\n\t\t\t\tbreak;\r\n\t\t\tcase Token.LITERAL_CHAR:\r\n\t\t\t\tstate = CHAR;\r\n\t\t\t\tstart = text.offset;\r\n\t\t\t\tbreak;\r\n\t\t\tcase Token.COMMENT_MULTILINE:\r\n\t\t\t\tstate = MLC;\r\n\t\t\t\tstart = text.offset;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tstate = Token.NULL;\r\n\t\t}\r\n\r\n\t\ts = text;\r\n\t\ttry {\r\n\t\t\tyyreset(zzReader);\r\n\t\t\tyybegin(state);\r\n\t\t\treturn yylex();\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tioe.printStackTrace();\r\n\t\t\treturn new TokenImpl();\r\n\t\t}\r\n\r\n\t}",
"Literal createLiteral();",
"Literal createLiteral();",
"private void tokenStart() {\n tokenStartIndex = zzStartRead;\n }",
"public Token(I2PAppContext ctx) {\n super(null);\n byte[] data = new byte[MY_TOK_LEN];\n ctx.random().nextBytes(data);\n setData(data);\n setValid(MY_TOK_LEN);\n lastSeen = ctx.clock().now();\n }",
"public ListNode() {\n\t\tthis(0, null);\n\t}",
"public TextFragment()\n\t{\n\t}",
"private void addToken(int start, int end, int tokenType) {\r\n\t\tint so = start + offsetShift;\r\n\t\taddToken(zzBuffer, start,end, tokenType, so);\r\n\t}",
"public VariableToken(String text) {\n super(text);\n }",
"private Token(int code)\n {\n myCode = code;\n }",
"public Token newIdToken(String id, int startPosition, int endPosition) {\r\n return new Token(startPosition, endPosition, Symbol.symbol(id, Tokens.Identifier));\r\n }",
"public LiteralOPToken(String s, int nTypeCode, String sNudASTName)\n {\n this(s, nTypeCode);\n m_sNudASTName = sNudASTName;\n }",
"public Token(int TTL, String extraTimeHost, String startNodeID, String skipNode, String customFileName)\r\n {\r\n this.TTL = TTL;\r\n this.extraTimeHost = extraTimeHost;\r\n this.startNodeID = startNodeID;\r\n this.skipNode = skipNode;\r\n this.customFileName = customFileName;\r\n\r\n }",
"public Token(String terme, int tf) {\r\n\t\t\r\n\t\tthis.Terme = terme;\r\n\t\tthis.tf = tf;\r\n\t}",
"private void addToken(int start, int end, int tokenType) {\n\t\tint so = start + offsetShift;\n\t\taddToken(zzBuffer, start,end, tokenType, so);\n\t}",
"public Token(I2PAppContext ctx, byte[] data) {\n super(data);\n // lets not get carried away\n if (data.length > MAX_TOK_LEN)\n throw new IllegalArgumentException();\n lastSeen = ctx.clock().now();\n }",
"public EmptyType() {\n super(\"<EMPTY>\");\n }",
"private void addToken(int start, int end, int tokenType) {\n\t\tint so = start + offsetShift;\n\t\taddToken(zzBuffer, start,end, tokenType, so, false);\n\t}",
"public Token(Token other) {\n __isset_bitfield = other.__isset_bitfield;\n this.token_num = other.token_num;\n if (other.isSetToken()) {\n this.token = other.token;\n }\n if (other.isSetOffsets()) {\n Map<OffsetType,Offset> __this__offsets = new HashMap<OffsetType,Offset>();\n for (Map.Entry<OffsetType, Offset> other_element : other.offsets.entrySet()) {\n\n OffsetType other_element_key = other_element.getKey();\n Offset other_element_value = other_element.getValue();\n\n OffsetType __this__offsets_copy_key = other_element_key;\n\n Offset __this__offsets_copy_value = new Offset(other_element_value);\n\n __this__offsets.put(__this__offsets_copy_key, __this__offsets_copy_value);\n }\n this.offsets = __this__offsets;\n }\n this.sentence_pos = other.sentence_pos;\n if (other.isSetLemma()) {\n this.lemma = other.lemma;\n }\n if (other.isSetPos()) {\n this.pos = other.pos;\n }\n if (other.isSetEntity_type()) {\n this.entity_type = other.entity_type;\n }\n this.mention_id = other.mention_id;\n this.equiv_id = other.equiv_id;\n this.parent_id = other.parent_id;\n if (other.isSetDependency_path()) {\n this.dependency_path = other.dependency_path;\n }\n if (other.isSetLabels()) {\n Map<String,List<Label>> __this__labels = new HashMap<String,List<Label>>();\n for (Map.Entry<String, List<Label>> other_element : other.labels.entrySet()) {\n\n String other_element_key = other_element.getKey();\n List<Label> other_element_value = other_element.getValue();\n\n String __this__labels_copy_key = other_element_key;\n\n List<Label> __this__labels_copy_value = new ArrayList<Label>();\n for (Label other_element_value_element : other_element_value) {\n __this__labels_copy_value.add(new Label(other_element_value_element));\n }\n\n __this__labels.put(__this__labels_copy_key, __this__labels_copy_value);\n }\n this.labels = __this__labels;\n }\n if (other.isSetMention_type()) {\n this.mention_type = other.mention_type;\n }\n }",
"public String newToken(){\n String line = getLine(lines);\n String token = getToken(line);\n return token;\n }",
"public ConceptToken(String token) {\n _multiToken = false;\n _text = \"\";\n _tokens = new String[]{token};\n }",
"public Builder clearToken() {\n bitField0_ = (bitField0_ & ~0x00000001);\n token_ = getDefaultInstance().getToken();\n onChanged();\n return this;\n }",
"public Builder clearToken() {\n bitField0_ = (bitField0_ & ~0x00000001);\n token_ = getDefaultInstance().getToken();\n onChanged();\n return this;\n }",
"public Builder clearToken() {\n bitField0_ = (bitField0_ & ~0x00000001);\n token_ = getDefaultInstance().getToken();\n onChanged();\n return this;\n }",
"public Builder clearToken() {\n bitField0_ = (bitField0_ & ~0x00000001);\n token_ = getDefaultInstance().getToken();\n onChanged();\n return this;\n }",
"public Builder clearToken() {\n bitField0_ = (bitField0_ & ~0x00000001);\n token_ = getDefaultInstance().getToken();\n onChanged();\n return this;\n }",
"public Token zero() {\n\t\ttry {\n\t\t\treturn new LongMatrixToken(new long[_rowCount * _columnCount],\n\t\t\t\t\t_rowCount, _columnCount, DO_NOT_COPY);\n\t\t} catch (IllegalActionException illegalAction) {\n\t\t\t// should not happen\n\t\t\tthrow new InternalErrorException(\"LongMatrixToken.zero: \"\n\t\t\t\t\t+ \"Cannot create zero matrix.\");\n\t\t}\n\t}",
"SimpleLiteral createSimpleLiteral();",
"public AstParser(AstParserTokenManager tm) {\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 9; i++) jj_la1[i] = -1;\n }",
"public TextPos() {\n this.value = 1;\n }",
"public void testTokenTypeStringStringLengthConstructor(){\r\n //Testing throwing of exception for violation of precondition\r\n // type != null\r\n try{\r\n token = new Token(null, \"\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type != EOF => value != null\r\n try{\r\n token = new Token(TokenType.STRING, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.SCHEMES, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.FACTS, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.RULES, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.QUERIES, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.COLON_DASH, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.COLON, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.COMMA, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.PERIOD, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.LEFT_PAREN, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.RIGHT_PAREN, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.Q_MARK, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type != EOF and type != STRING => |value| > 0\r\n\r\n try{\r\n token = new Token(TokenType.SCHEMES, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.FACTS, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.RULES, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.QUERIES, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.COLON_DASH, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.COLON, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.COMMA, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.PERIOD, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.LEFT_PAREN, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.RIGHT_PAREN, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.Q_MARK, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n //Testing throwing of exception for violation of precondition\r\n // type == SCHEMES => value == \"Schemes\" -- ignoring case\r\n try{\r\n token = new Token(TokenType.SCHEMES, \"scheme\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type == FACTS => value == \"Facts\" -- ignoring case\r\n try{\r\n token = new Token(TokenType.FACTS, \"Fact\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type == RULES => value == \"Rules\" -- ignoring case\r\n try{\r\n token = new Token(TokenType.RULES, \"Rule\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type == QUERIES => value == \"Queries\" -- ignoring case\r\n try{\r\n token = new Token(TokenType.QUERIES, \"Query\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type == COLON_DASH => value == \":-\" -- ignoring case\r\n try{\r\n token = new Token(TokenType.COLON_DASH, \":\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.COLON_DASH, \"-\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.COLON_DASH, \"::-\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type == COLON => value == \":\" -- ignoring case\r\n try{\r\n token = new Token(TokenType.COLON, \"a\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.COLON, \"::\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type == COMMA => value == \",\" -- ignoring case\r\n try{\r\n token = new Token(TokenType.COMMA, \";\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type == PERIOD => value == \".\" -- ignoring case\r\n try{\r\n token = new Token(TokenType.PERIOD, \",\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type == LEFT_PAREN => value == \"(\" -- ignoring case\r\n try{\r\n token = new Token(TokenType.LEFT_PAREN, \")\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.LEFT_PAREN, \"[\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.LEFT_PAREN, \"{\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.LEFT_PAREN, \"9\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type == RIGHT_PAREN => value == \")\" -- ignoring case\r\n try{\r\n token = new Token(TokenType.RIGHT_PAREN, \"(\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.RIGHT_PAREN, \"]\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.RIGHT_PAREN, \"}\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.RIGHT_PAREN, \"0\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type == Q_MARK => value == \"?\" -- ignoring case\r\n try{\r\n token = new Token(TokenType.Q_MARK, \"!\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // lineNunmber >= 1\r\n try{\r\n token = new Token(TokenType.Q_MARK, \"?\", 0);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.Q_MARK, \"?\", -1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type = ID => the length is > 0, the first character must be a\r\n // letter and all of the rest must be letters or digits.\r\n try{\r\n token = new Token(TokenType.ID, \"\", -1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.ID, \"1\", -1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.ID, \"a?\", -1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.ID, \"a1b2.\", -1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n\r\n try{ //all of the follow can but should not throw exceptions.\r\n //Thus we wrap them in a try block, but, shoud never use it.\r\n\r\n //Testing EOF constructor\r\n token = new Token(TokenType.EOF, null, 2);\r\n assertTrue(token.getTokenType() == TokenType.EOF);\r\n assertTrue(token.getValue().equals(\"\"));\r\n assertTrue(token.getLineNumber() == 2);\r\n\r\n token = new Token(TokenType.EOF, \"cat\", 50);\r\n assertTrue(token.getTokenType() == TokenType.EOF);\r\n assertTrue(token.getValue().equals(\"\"));\r\n assertTrue(token.getLineNumber() == 50);\r\n\r\n //Testing the STRING constructor\r\n token = new Token(TokenType.STRING, \"\", 30);\r\n assertTrue(token.getTokenType() == TokenType.STRING);\r\n assertTrue(token.getValue().equals(\"''\"));\r\n assertTrue(token.getLineNumber() == 30);\r\n\r\n token = new Token(TokenType.STRING, \"'a'\", 30);\r\n assertTrue(token.getTokenType() == TokenType.STRING);\r\n assertTrue(token.getValue().equals(\"''a''\"));\r\n assertTrue(token.getLineNumber() == 30);\r\n\r\n //Testing the ID constructor\r\n token = new Token(TokenType.ID, \"a\", 3);\r\n assertTrue(token.getTokenType() == TokenType.ID);\r\n assertTrue(token.getValue().equals(\"a\"));\r\n assertTrue(token.getLineNumber() == 3);\r\n\r\n token = new Token(TokenType.ID, \"A123456789\", 3);\r\n assertTrue(token.getTokenType() == TokenType.ID);\r\n assertTrue(token.getValue().equals(\"A123456789\"));\r\n assertTrue(token.getLineNumber() == 3);\r\n\r\n token = new Token(TokenType.ID, \"z2\", 3);\r\n assertTrue(token.getTokenType() == TokenType.ID);\r\n assertTrue(token.getValue().equals(\"z2\"));\r\n assertTrue(token.getLineNumber() == 3);\r\n\r\n //Testing SCHEMES constructor\r\n token = new Token(TokenType.SCHEMES, \"schemes\", 1);\r\n assertTrue(token.getTokenType() == TokenType.SCHEMES);\r\n assertTrue(token.getValue().equals(\"schemes\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n token = new Token(TokenType.SCHEMES, \"SCHEMES\", 1);\r\n assertTrue(token.getTokenType() == TokenType.SCHEMES);\r\n assertTrue(token.getValue().equals(\"SCHEMES\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n token = new Token(TokenType.SCHEMES, \"Schemes\", 1);\r\n assertTrue(token.getTokenType() == TokenType.SCHEMES);\r\n assertTrue(token.getValue().equals(\"Schemes\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n //Testing FACTS constructor\r\n token = new Token(TokenType.FACTS, \"facts\", 1);\r\n assertTrue(token.getTokenType() == TokenType.FACTS);\r\n assertTrue(token.getValue().equals(\"facts\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n token = new Token(TokenType.FACTS, \"FACTS\", 1);\r\n assertTrue(token.getTokenType() == TokenType.FACTS);\r\n assertTrue(token.getValue().equals(\"FACTS\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n token = new Token(TokenType.FACTS, \"Facts\", 1);\r\n assertTrue(token.getTokenType() == TokenType.FACTS);\r\n assertTrue(token.getValue().equals(\"Facts\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n //Testing RULES constructor\r\n token = new Token(TokenType.RULES, \"rules\", 1);\r\n assertTrue(token.getTokenType() == TokenType.RULES);\r\n assertTrue(token.getValue().equals(\"rules\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n token = new Token(TokenType.RULES, \"RULES\", 1);\r\n assertTrue(token.getTokenType() == TokenType.RULES);\r\n assertTrue(token.getValue().equals(\"RULES\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n token = new Token(TokenType.RULES, \"RULEs\", 1);\r\n assertTrue(token.getTokenType() == TokenType.RULES);\r\n assertTrue(token.getValue().equals(\"RULEs\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n //Testing QUERIES constructor\r\n token = new Token(TokenType.QUERIES, \"queries\", 1);\r\n assertTrue(token.getTokenType() == TokenType.QUERIES);\r\n assertTrue(token.getValue().equals(\"queries\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n token = new Token(TokenType.QUERIES, \"QUERIES\", 1);\r\n assertTrue(token.getTokenType() == TokenType.QUERIES);\r\n assertTrue(token.getValue().equals(\"QUERIES\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n token = new Token(TokenType.QUERIES, \"Queries\", 1);\r\n assertTrue(token.getTokenType() == TokenType.QUERIES);\r\n assertTrue(token.getValue().equals(\"Queries\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n //Testing COLON_DASH constructor\r\n token = new Token(TokenType.COLON_DASH, \":-\", 1);\r\n assertTrue(token.getTokenType() == TokenType.COLON_DASH);\r\n assertTrue(token.getValue().equals(\":-\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n //Testing COLON constructor\r\n token = new Token(TokenType.COLON, \":\", 1);\r\n assertTrue(token.getTokenType() == TokenType.COLON);\r\n assertTrue(token.getValue().equals(\":\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n //Testing COMMA constructor\r\n token = new Token(TokenType.COMMA, \",\", 1);\r\n assertTrue(token.getTokenType() == TokenType.COMMA);\r\n assertTrue(token.getValue().equals(\",\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n //Testing PERIOD constructor\r\n token = new Token(TokenType.PERIOD, \".\", 1);\r\n assertTrue(token.getTokenType() == TokenType.PERIOD);\r\n assertTrue(token.getValue().equals(\".\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n //Testing LEFT_PAREN constructor\r\n token = new Token(TokenType.LEFT_PAREN, \"(\", 1);\r\n assertTrue(token.getTokenType() == TokenType.LEFT_PAREN);\r\n assertTrue(token.getValue().equals(\"(\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n //Testing RIGHT_PAREN constructor\r\n token = new Token(TokenType.RIGHT_PAREN, \")\", 1);\r\n assertTrue(token.getTokenType() == TokenType.RIGHT_PAREN);\r\n assertTrue(token.getValue().equals(\")\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n //Testing Q_MARK constructor\r\n token = new Token(TokenType.Q_MARK, \"?\", 1);\r\n assertTrue(token.getTokenType() == TokenType.Q_MARK);\r\n assertTrue(token.getValue().equals(\"?\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n }catch(ParserException e){\r\n System.err.println(\"ERROR in TokenTest::\" +\r\n \"testTokenTypeStringStringLengthConstructor(\" +\r\n \"TokenType,String,int)\\n\" +\r\n \"Should NOT be able to get here\");\r\n };\r\n }",
"public DocumentWordPosition() {}",
"TokenDef(String tokenname, String ANTLRCODE) {\n this.tokenname = tokenname;\n this.ANTLRCODE = ANTLRCODE;\n }",
"public BStarTokenMaker() {\n\t\tsuper();\n\t}",
"public Token(byte[] identifier, byte[] password, Text kind, Text service) {\n this.identifier = (identifier == null)? new byte[0] : identifier;\n this.password = (password == null)? new byte[0] : password;\n this.kind = (kind == null)? new Text() : kind;\n this.service = (service == null)? new Text() : service;\n }",
"public Token(byte[] data) {\n super(data);\n lastSeen = 0;\n }",
"public LeanTextGeometry() {}",
"@Nonnull\r\n public Token token()\r\n throws IOException,\r\n LexerException {\r\n Token tok = _token();\r\n if (getFeature(Feature.DEBUG))\r\n LOG.debug(\"pp: Returning \" + tok);\r\n return tok;\r\n }",
"public SpecialCharToken(char value) {\n this(value, null);\n }",
"public CharTokenizer() {\n this(\",\", \"\\n\");\n }",
"@Override\r\n\tpublic void addToken(char[] array, int start, int end, int tokenType, int startOffset) {\r\n\t\tsuper.addToken(array, start,end, tokenType, startOffset);\r\n\t\tzzStartRead = zzMarkedPos;\r\n\t}",
"public BasicParser(BasicParserTokenManager tm) {\n\t token_source = tm;\n\t token = new Token();\n\t jj_ntk = -1;\n\t jj_gen = 0;\n\t for (int i = 0; i < 13; i++) jj_la1[i] = -1;\n }",
"TypeLiteralExp createTypeLiteralExp();",
"@Override\n\tpublic void addToken(char[] array, int start, int end, int tokenType, int startOffset) {\n\t\tsuper.addToken(array, start,end, tokenType, startOffset);\n\t\tzzStartRead = zzMarkedPos;\n\t}",
"public String toString() { return (tok == null) ? \"\" : tok; }",
"@Override\n public Iterator<Token> iterator() {\n return new Iterator<Token>() {\n private int left;\n private int right;\n private TokenType type;\n\n @Override\n public void remove() {\n throw new UnsupportedOperationException();\n }\n\n @Override\n public boolean hasNext() {\n lex();\n return type != null;\n }\n\n @Override\n public Token next() {\n lex();\n if (type == null) {\n throw new NoSuchElementException();\n }\n Token t = new Token(type, left, right);\n left = right;\n right = -1;\n type = null;\n return t;\n }\n\n @SuppressWarnings(\"synthetic-access\")\n private void lex() {\n int n = content.length();\n while (type == null && left < n) {\n Matcher m = TOKEN.matcher(content);\n if (m.find(left)) {\n right = m.end();\n } else {\n // Do orphaned-surrogates cause this?\n throw new AssertionError(\"Index \" + left + \" in \" + content);\n }\n int cp = content.codePointAt(left);\n switch (cp) {\n case '\\t': case '\\n': case '\\r': case ' ':\n break;\n case '/':\n if (right - left == 1) {\n type = TokenType.PUNCTUATION;\n } else {\n type = null;\n if (preserveDocComments && left + 2 < right) {\n if (content.charAt(left + 1) == '*'\n && content.charAt(left + 2) == '*') {\n type = TokenType.DOC_COMMENT;\n }\n }\n }\n break;\n case '\"': case '\\'':\n type = TokenType.STRING;\n break;\n case '.':\n type = right - left == 1\n ? TokenType.PUNCTUATION : TokenType.NUMBER;\n break;\n case '0': case '1': case '2': case '3': case '4':\n case '5': case '6': case '7': case '8': case '9':\n type = TokenType.NUMBER;\n break;\n default:\n if (Character.isUnicodeIdentifierStart(cp) || cp == '$') {\n type = TokenType.WORD;\n right = left;\n do {\n right += Character.charCount(cp);\n } while (\n right < n\n && ((cp = content.codePointAt(right)) == '$'\n || Character.isUnicodeIdentifierPart(cp)));\n } else {\n type = TokenType.PUNCTUATION;\n }\n break;\n }\n if (type == null) {\n Preconditions.checkState(right > left);\n left = right;\n }\n }\n }\n };\n }",
"DOMType() {\n // Constructs an empty type node\n }",
"public Token(int lineNum, int tokenId, String tokenName)\n\t{\n\t\tthis.lineNum = lineNum;\n\t\tthis.tokenId = tokenId;\n\t\tthis.tokenName = tokenName;\n\t\ttokenIdtoName(tokenId);\n\t}",
"public Tokenizer(String text) {\n this.tokens = new Vector<TokenNode>();\n text = TextPreprocessor.removeNoisySpaces(text);\n createTokens(text);\n }",
"public Token(int lineNumber) {\n\t\tthis.value = null;\n\t\tthis.type = TokenType.EOF;\n\t\tthis.lineNumber = lineNumber;\n\t\tthis.numVal = 0;\n\t\tthis.wordVal = null;\n\t}"
]
| [
"0.71060973",
"0.70166254",
"0.67474174",
"0.6670236",
"0.66480464",
"0.66295356",
"0.6585864",
"0.647147",
"0.6465761",
"0.63792086",
"0.6326742",
"0.6283614",
"0.62412256",
"0.6162848",
"0.6108619",
"0.5931231",
"0.5926707",
"0.58951974",
"0.58923906",
"0.5878034",
"0.58544207",
"0.5821825",
"0.57318395",
"0.5698831",
"0.56737864",
"0.566465",
"0.56449383",
"0.56333125",
"0.5557768",
"0.55576885",
"0.5554296",
"0.5551345",
"0.5550612",
"0.5539821",
"0.55211484",
"0.5515739",
"0.55052036",
"0.5482325",
"0.54712117",
"0.546403",
"0.54593027",
"0.54481405",
"0.54465455",
"0.54342633",
"0.5427129",
"0.5417475",
"0.5375857",
"0.5349192",
"0.53424555",
"0.5339947",
"0.52988076",
"0.5289096",
"0.5289096",
"0.52843845",
"0.5275041",
"0.52606255",
"0.52578425",
"0.52507573",
"0.522982",
"0.5227445",
"0.5224255",
"0.5223242",
"0.5222838",
"0.5216051",
"0.52099633",
"0.52035725",
"0.5202146",
"0.51971304",
"0.51932615",
"0.5189018",
"0.51827115",
"0.5179786",
"0.5179786",
"0.5179786",
"0.5179786",
"0.5179786",
"0.51431614",
"0.51358426",
"0.51272666",
"0.5124913",
"0.51225877",
"0.510258",
"0.5102341",
"0.5098952",
"0.509001",
"0.50895685",
"0.50870687",
"0.50866705",
"0.5085322",
"0.50828564",
"0.5079896",
"0.5077359",
"0.5074836",
"0.505213",
"0.5038959",
"0.5035471",
"0.503196",
"0.50221825",
"0.5006292",
"0.50012106"
]
| 0.731765 | 0 |
Constructs a Token with null text and start & end offsets plus the Token type. | public Token(int start, int end, int flags){
startOffset = start;
endOffset = end;
this.flags = flags;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Token(int start, int end, String typ) {\n startOffset = start;\n endOffset = end;\n type = typ;\n }",
"public Token(String text, int start, int end, String typ) {\n termText = text;\n startOffset = start;\n endOffset = end;\n type = typ;\n }",
"private Token createToken(\n String type, String val, int start, int end) {\n return new Token(type, val, start, end);\n }",
"public Token(String text, int start, int end, int flags) {\n termText = text;\n startOffset = start;\n endOffset = end;\n this.flags = flags;\n }",
"public Token(int start, int end) {\n startOffset = start;\n endOffset = end;\n }",
"public Token(String text, int start, int end) {\n termText = text;\n startOffset = start;\n endOffset = end;\n }",
"private Token () { }",
"@Override\r\n\tpublic Token createToken() {\n\t\tToken token = new Token();\r\n\t\treturn token;\r\n\t}",
"public Token(int start)\n {\n this.start = start;\n }",
"public Token() {\n }",
"public Token() {\n }",
"Token(Type ttype, String v, int p, int l) {\n type = ttype;\n value = v;\n pos = p;\n line = l;\n }",
"public Token(TokenType type) {\n\t\tthis.type = type;\n\t\tthis.spelling = type.getSpelling();\n\t}",
"private Token(TokenType type, Range range, Range textRange, String id, String match) {\r\n \t\t\tsuper();\r\n \t\t\tthis.type = type;\r\n \t\t\tthis.range = range;\r\n \t\t\tthis.textRange = textRange == null ? range : textRange;\r\n \t\t\tthis.id = id;\r\n //\t\t\tthis.match = match;\r\n \t\t}",
"public Token() {\n this.clitic = \"none\";\n }",
"public Tokenizer() {\n tokenInfos = new LinkedList<TokenInfo>();\n tokens = new LinkedList<Token>();\n\n }",
"public Token(Type t, String c) {\r\n this.t = t;\r\n this.c = c;\r\n }",
"public Token(Token other) {\n __isset_bitfield = other.__isset_bitfield;\n this.tokenIndex = other.tokenIndex;\n if (other.isSetText()) {\n this.text = other.text;\n }\n if (other.isSetTextSpan()) {\n this.textSpan = new edu.jhu.hlt.concrete.TextSpan(other.textSpan);\n }\n if (other.isSetRawTextSpan()) {\n this.rawTextSpan = new edu.jhu.hlt.concrete.TextSpan(other.rawTextSpan);\n }\n if (other.isSetAudioSpan()) {\n this.audioSpan = new edu.jhu.hlt.concrete.AudioSpan(other.audioSpan);\n }\n }",
"public OtherTokenizer() {\n super();\n }",
"public DwollaTokens() {\n\t\tthis(\"dwolla_tokens\", null);\n\t}",
"public Token newToken() {\r\n\t\tString value = UUID.randomUUID().toString();\r\n\t\treturn new Token(value);\r\n\t}",
"public Tokenizer() {\r\n tokenList = new ArrayList<>();\r\n\r\n mathOperations = new ArrayList<>(5);\r\n mathOperations.add(\"+\");\r\n mathOperations.add(\"-\");\r\n mathOperations.add(\"*\");\r\n mathOperations.add(\"/\");\r\n mathOperations.add(\"%\");\r\n theBuilder = new TokenBuilder(\"\\\\s+\", mathOperations);\r\n }",
"public Token (String token, int position, int marker) {\n this.tokenString = token;\n this.position = position;\n this.marker = marker; \n }",
"@Override\r\n\tpublic JavaToken nextToken() {\r\n\t\tif (!ready())\r\n\t\t\treturn null;\r\n\t\tint oldPos = this.pos;\r\n\t\tint type = PLAIN;\r\n\t\tif (LL(0) == ' ' || LL(0) == '\\t' || LL(0) == '\\n' || LL(0) == '\\r') {\r\n\t\t\tconsumeWhiteSpace();\r\n\t\t\ttype = WHITESPACE;\r\n\t\t} else if (Character.isJavaIdentifierStart(LL(0))) {\r\n\t\t\tconsumeIdentifier();\r\n\t\t} else if (LL(0) == '#') {\r\n\t\t\tconsumeSingleLineComment();\r\n\t\t\ttype = COMMENT;\r\n\t\t} else if (LL(0) == '\\\"') {\r\n\t\t\tif (LL(1) == '\\\"' && LL(2) == '\\\"') {\r\n\t\t\t\tconsumeMultiLineComment();\r\n\t\t\t\ttype = COMMENT;\r\n\t\t\t} else {\r\n\t\t\t\tconsumeStringLiteral();\r\n\t\t\t\ttype = LITERAL;\r\n\t\t\t}\r\n\t\t} else if (LL(0) == '\\'') {\r\n\t\t\tconsumeCharacterLiteral();\r\n\t\t\ttype = LITERAL;\r\n\t\t} else {\r\n\t\t\tconsumeCharacter();\r\n\t\t}\r\n\t\tString t = text.substring(oldPos, pos);\r\n\t\tif (type == PLAIN) {\r\n\t\t\tif (keywords.get(t) != null)\r\n\t\t\t\ttype = KEYWORD;\r\n\t\t}\r\n\t\treturn new JavaToken(t, off + oldPos, type);\r\n\t}",
"public Token(int ordinal) {\r\n\t\tthis.ordinal = ordinal;\r\n\t\tthis.value = null;\r\n\t}",
"public Token(TokenCode code, OpType otype, DataType dtype, int line, int column) {\n _code = code;\n _opType = otype;\n _dataType = dtype;\n _lineNumber = line;\n _columnNumber = column;\n }",
"public Token(TokenType type, String spelling) {\n\t\tthis.type = type;\n\t\tthis.spelling = spelling;\n\t}",
"public LexicalToken(TokenType type) {\n\t\tthis.type = type;\n\t}",
"public Token makeToken(String s, int startPosition, int endPosition) {\r\n if (s.equals(\"//\")) { // filter comment\r\n try {\r\n int oldLine = source.getLineno();\r\n do {\r\n ch = source.read();\r\n } while (oldLine == source.getLineno());\r\n } catch (Exception e) {\r\n atEOF = true;\r\n }\r\n return nextToken();\r\n }\r\n Symbol sym = Symbol.symbol(s, Tokens.BogusToken); // be sure it's a valid token\r\n if (sym == null) {\r\n System.out.println(\"******** illegal character: \" + s);\r\n atEOF = true;\r\n return nextToken();\r\n }\r\n return new Token(startPosition, endPosition, sym);\r\n }",
"public Token createToken(TokenType token, String sequence, int precedence) {\n return new Token(token, sequence, precedence);\n }",
"public Token(String tipo, String lexema){\n\t\tthis.tipo = tipo;\n\t\tthis.lexema = lexema;\n\t}",
"public static TokenizerFactory<Word> factory()\n/* */ {\n/* 116 */ return new WhitespaceTokenizerFactory(false);\n/* */ }",
"public Token() {\n token = new Random().nextLong();\n }",
"public Token getToken() throws IOException {\n\t\t// check if peek() was called\n\t\tif (nextToken != null) {\n\t\t\tToken token = nextToken;\n\t\t\tnextToken = null; // allow peek to call for next token\n\t\t\treturn token;\n\t\t}\n\n\t\t// skip whitespace character\n\t\twhile (Character.isWhitespace(nextChar)) {\n\t\t\t// check if whitespace char is a newline\n\t\t\tif (!skipNewline()) {\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t}\n\n\t\t\t// offset colNum for tab chars\n\t\t\tif (nextChar == '\\t')\n\t\t\t\tcolumnNumber += 3;\n\t\t}\n\t\t//skips comments\n\t\tif (nextChar == '@') {\n\t\t\tnextChar = getChar();\n\t\t\twhile (!skipNewline()) {\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t}\n\n\t\t\tnextChar = getChar();\n\t\t}\n\n\t\t// identifier or reserved word ([a-zA-Z][a-zA-Z0-9_]*)\n\n\t\tif (Character.isLetter(nextChar)) {\n\t\t\t// create new idVal starting with first char of identifier\n\t\t\tString current = Character.toString((char) nextChar);\n\t\t\tcolumnNumber++;\n\t\t\tnextChar = getChar();\n\n\t\t\t// include remaining sequence of chars that are letters, digits, or _\n\t\t\twhile (Character.isLetterOrDigit(nextChar)) {\n\t\t\t\tcurrent += (char) nextChar;\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t}\n\n\t\t\t// check if identifier is a reserved word\n\t\t\tTokenType type = reservedWords.get(current);\n\n\t\t\tif (type != null)\n\t\t\t\treturn new Token(type, new TokenAttribute());\n\n\n\n\t\t\t// token is an identifier\n\t\t\tresult.add(new Token(TokenType.IDENTIFIER, new TokenAttribute(current))); // adding token to results\n\t\t\treturn new Token(TokenType.IDENTIFIER, new TokenAttribute(current));\n\t\t}\n\n\t\t// integer literal ([0-9]+) OR float literal ([0-9]+.[0-9]+)\n\t\tif (Character.isDigit(nextChar)) {\n\n\t\t\t// create string representation of number\n\t\t\tString numString = Character.toString((char) nextChar);\n\t\t\tcolumnNumber++;\n\t\t\tnextChar = getChar();\n\n\t\t\t// concatenate remaining sequence of digits\n\t\t\twhile (Character.isDigit(nextChar)) {\n\t\t\t\tnumString += (char) nextChar;\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t}\n\n\t\t\tif (nextChar == '.') {\n\t\t\t\t//stream.mark(0);\n\t\t\t\tnextChar = getChar();\n\t\t\t\tcolumnNumber++;\n\n\t\t\t\tif (Character.isDigit(nextChar)) {\n\t\t\t\t\tnumString += '.';\n\t\t\t\t\t// concatenate remaining sequence of digits\n\t\t\t\t\twhile (Character.isDigit(nextChar)) {\n\t\t\t\t\t\tnumString += (char) nextChar;\n\t\t\t\t\t\tcolumnNumber++;\n\t\t\t\t\t\tnextChar = getChar();\n\t\t\t\t\t}\n\t\t\t\t\tresult.add(new Token(TokenType.FLOAT_CONST, new TokenAttribute(Float.parseFloat(numString))));\n\t\t\t\t\treturn new Token(TokenType.FLOAT_CONST, new TokenAttribute(Float.parseFloat(numString)));\n\t\t\t\t}\n\t\t\t\twhile (!Character.isWhitespace(nextChar)) {\n\t\t\t\t\tcolumnNumber++;\n\t\t\t\t\tnumString += nextChar;\n\t\t\t\t\tnextChar = getChar();\n\t\t\t\t}\n\n\t\t\t\t//return new Token(TokenType.UNKNOWN, new TokenAttribute());\n\t\t\t}\n\n\t\t\t// return integer literal token\n\t\t\tresult.add(new Token(TokenType.INT_CONST, new TokenAttribute(Integer.parseInt(numString))));\n\t\t\treturn new Token(TokenType.INT_CONST, new TokenAttribute(Integer.parseInt(numString)));\n\t\t}\n\n\n\t\t//EOF --> end of file reached\n\t\tif (nextChar == -1) {\n\t\t\treturn new Token(TokenType.EOF, new TokenAttribute());\n\t\t}\n\n\n\t\t// check for binops\n\t\tswitch (nextChar) {\n\n\t\t\t//Checks for strings\n\t\t\tcase '\"':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tString current = Character.toString((char) nextChar);\n\t\t\t\tnextChar = getChar();\n\t\t\t\tcurrent += (char)nextChar;\n\n\t\t\t\twhile (nextChar != '\"') {\n\t\t\t\t\tnextChar = getChar();\n\t\t\t\t\tcurrent += (char)nextChar;\n\t\t\t\t}\n\t\t\t\tnextChar = getChar();\n\t\t\t\tresult.add(new Token(TokenType.STRING, new TokenAttribute(current)));\n\t\t\t\treturn new Token(TokenType.STRING, new TokenAttribute(current));\n\n\t\t\tcase '=':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\n\t\t\t\t// check if next char is '=' to match '==' binop\n\t\t\t\tif (nextChar == '=') {\n\t\t\t\t\tnextChar = getChar();\n\t\t\t\t\tresult.add(new Token(TokenType.EQ, new TokenAttribute()));\n\t\t\t\t\treturn new Token(TokenType.EQ, new TokenAttribute());\n\t\t\t\t} else\n\t\t\t\t\tresult.add(new Token(TokenType.ASSIGN, new TokenAttribute()));\n\t\t\t\treturn new Token(TokenType.ASSIGN, new TokenAttribute());\n\n\t\t\tcase '!':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\n\t\t\t\t// check if next char is '!' to match '!=' binop\n\t\t\t\tif (nextChar == '^') {\n\t\t\t\t\tnextChar = getChar();\n\t\t\t\t\tresult.add(new Token(TokenType.NEQ, new TokenAttribute()));\n\t\t\t\t\treturn new Token(TokenType.NEQ, new TokenAttribute());\n\t\t\t\t}\n\n\t\t\tcase '<':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\n\t\t\t\t// check if next char is '<' to match '<=' binop\n\t\t\t\tif (nextChar == '=') {\n\t\t\t\t\tnextChar = getChar();\n\t\t\t\t\tresult.add(new Token(TokenType.LT_EQ, new TokenAttribute()));\n\t\t\t\t\treturn new Token(TokenType.LT_EQ, new TokenAttribute());\n\t\t\t\t} else\n\t\t\t\t\tresult.add(new Token(TokenType.LT, new TokenAttribute()));\n\t\t\t\treturn new Token(TokenType.LT, new TokenAttribute());\n\n\t\t\tcase '>':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\n\t\t\t\t// check if next char is '<' to match '<=' binop\n\t\t\t\tif (nextChar == '=') {\n\t\t\t\t\tnextChar = getChar();\n\t\t\t\t\tresult.add(new Token(TokenType.GT_EQ, new TokenAttribute()));\n\t\t\t\t\treturn new Token(TokenType.GT_EQ, new TokenAttribute());\n\t\t\t\t} else\n\t\t\t\t\tresult.add(new Token(TokenType.RT, new TokenAttribute()));\n\t\t\t\treturn new Token(TokenType.RT, new TokenAttribute());\n\n\t\t\tcase '+':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t\tresult.add(new Token(TokenType.PLUS, new TokenAttribute()));\n\t\t\t\treturn new Token(TokenType.PLUS, new TokenAttribute());\n\n\t\t\tcase '-':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t\tresult.add(new Token(TokenType.MINUS, new TokenAttribute()));\n\t\t\t\treturn new Token(TokenType.MINUS, new TokenAttribute());\n\n\t\t\tcase '*':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t\tresult.add(new Token(TokenType.MULTIPLY, new TokenAttribute()));\n\t\t\t\treturn new Token(TokenType.MULTIPLY, new TokenAttribute());\n\n\t\t\tcase '/':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t\tresult.add(new Token(TokenType.DIVIDE, new TokenAttribute()));\n\t\t\t\treturn new Token(TokenType.DIVIDE, new TokenAttribute());\n\n\n\t\t}\n\n\t\t// check for punctuation\n\t\tTokenType type = punctuation.get((char) nextChar);\n\t\tcolumnNumber++;\n\t\tnextChar = getChar();\n\n\t\t// found punctuation token\n\t\tif (type != null) {\n\t\t\tresult.add(new Token(type, new TokenAttribute()));\n\t\t\treturn new Token(type, new TokenAttribute());\n\t\t}\n\n\t\t// token type is unknown\n\t\tresult.add(new Token(TokenType.UNKNOWN, new TokenAttribute()));\n\t\treturn new Token(TokenType.UNKNOWN, new TokenAttribute());\n\t}",
"private Token(TokenType type, String value, Expression expression, TokenLine tokens) {\n TYPE = type;\n VALUE = value;\n EXPRESSION = expression;\n CHILDREN = tokens;\n }",
"public Token(String content, TokenType type) {\n\t\tthis.content = content;\n\t\tthis.type = type;\n\t}",
"public TemplexTokenMaker() {\r\n\t\tsuper();\r\n\t}",
"public Token(TokenCode code, OpType otype, DataType dtype, \n SymbolTableEntry entry, int line, int column) {\n _code = code;\n _opType = otype;\n _dataType = dtype;\n _symbolTableEntry = entry;\n _lineNumber = line;\n _columnNumber = column;\n }",
"public Token(char value, TokenType type, int lineNumber) {\n\t\tthis.value = String.valueOf(value);\n\t\tthis.type = type;\n\t\tthis.lineNumber = lineNumber;\n\t\tthis.numVal = 0;\n\t\tthis.wordVal = null;\n\t}",
"public Spill() {\n\t\tthis(0, null);\n\t}",
"public JavaTokenMaker() {\n\t}",
"@Override\n public CommonTokenStream getTokens() {\n return null;\n }",
"private Token nextRawToken() throws NoSuchElementException {\n\t\t// Location of the char after the current projected token.\n\t\tint sLoc = 0;\n\n\t\twhile (latestLine.trim().isEmpty()) {\n\t\t\tlatestLine = fileScanner.nextLine();\n\t\t}\n\n\t\t// Find the next end segment\n\t\twhile (latestLine.length() != sLoc + 1\n\t\t\t\t&& latestLine.charAt(sLoc + 1) != ' ') {\n\t\t\t// && getType(document.substring(0, sLoc + 1)) == TokenType.INVALID)\n\t\t\t// {\n\t\t\tsLoc++;\n\t\t}\n\n\t\t// End indices of the token, inclusive.\n\t\tint endTestToken = sLoc;\n\n\t\t/*\n\t\t * Determine the longest sub-token by starting from the end and working\n\t\t * backwards.\n\t\t */\n\t\tboolean valid = false;\n\t\tfor (int i = endTestToken; i >= 0; i--) {\n\t\t\tString testToken = latestLine.substring(0, i + 1);\n\t\t\tif (getType(testToken) != TokenType.INVALID) {\n\t\t\t\tsLoc = i;\n\t\t\t\tvalid = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (!valid) {\n\t\t\tsLoc = 0;\n\t\t}\n\n\t\tString token = latestLine.substring(0, sLoc + 1);\n\n\t\tToken t = new Token(token, getType(token));\n\t\trunDiagnostic(t);\n\n\t\t// Consume the token form the document\n\t\tlatestLine = latestLine.substring(sLoc + 1).trim();\n\n\t\treturn t;\n\t}",
"private void addToken(TokenType type) {\n addToken(type, null);\n }",
"public Token newNumberToken(String number, int startPosition, int endPosition) {\r\n return new Token(startPosition, endPosition,\r\n Symbol.symbol(number, Tokens.INTeger));\r\n }",
"public Token getTokenList(Segment text, int initialTokenType, int startOffset) {\n\n\t\tresetTokenList();\n\t\tthis.offsetShift = -text.offset + startOffset;\n\n\t\t// Start off in the proper state.\n\t\tint state = Token.NULL;\n\t\tswitch (initialTokenType) {\n\t\t\tcase Token.COMMENT_MULTILINE:\n\t\t\t\tstate = MLC;\n\t\t\t\tstart = text.offset;\n\t\t\t\tbreak;\n\t\t\tcase Token.COMMENT_DOCUMENTATION:\n\t\t\t\tstate = DOCCOMMENT;\n\t\t\t\tstart = text.offset;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tstate = Token.NULL;\n\t\t}\n\n\t\ts = text;\n\t\ttry {\n\t\t\tyyreset(zzReader);\n\t\t\tyybegin(state);\n\t\t\treturn yylex();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t\treturn new TokenImpl();\n\t\t}\n\n\t}",
"public Token getTokenList(Segment text, int initialTokenType, int startOffset) {\n\n\t\tresetTokenList();\n\t\tthis.offsetShift = -text.offset + startOffset;\n\n\t\t// Start off in the proper state.\n\t\tint state = Token.NULL;\n\t\tswitch (initialTokenType) {\n\t\t\tcase Token.COMMENT_MULTILINE:\n\t\t\t\tstate = MLC;\n\t\t\t\tstart = text.offset;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tstate = Token.NULL;\n\t\t}\n\n\t\ts = text;\n\t\ttry {\n\t\t\tyyreset(zzReader);\n\t\t\tyybegin(state);\n\t\t\treturn yylex();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t\treturn new TokenImpl();\n\t\t}\n\n\t}",
"public Character() {\n this(null, null, null);\n }",
"public ConcordanceToken(String text, String tag, int tokenNum, int partNum, String... stems) {\r\n\t\tsuper(text, tag, 0l, stems);\r\n\t\tif(tokenNum < 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tif(partNum < 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tthis.tokenNum = tokenNum;\r\n\t\tthis.partNum = partNum;\r\n\t}",
"private Token(char firstChar) {\r\n\t\tthis.text += firstChar;\r\n\t}",
"public Token getTokenList(Segment text, int initialTokenType, int startOffset) {\r\n\r\n\t\tresetTokenList();\r\n\t\tthis.offsetShift = -text.offset + startOffset;\r\n\r\n\t\t// Start off in the proper state.\r\n\t\tint state = Token.NULL;\r\n\t\tswitch (initialTokenType) {\r\n\t\t\tcase Token.LITERAL_STRING_DOUBLE_QUOTE:\r\n\t\t\t\tstate = STRING;\r\n\t\t\t\tstart = text.offset;\r\n\t\t\t\tbreak;\r\n\t\t\tcase Token.LITERAL_CHAR:\r\n\t\t\t\tstate = CHAR;\r\n\t\t\t\tstart = text.offset;\r\n\t\t\t\tbreak;\r\n\t\t\tcase Token.COMMENT_MULTILINE:\r\n\t\t\t\tstate = MLC;\r\n\t\t\t\tstart = text.offset;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tstate = Token.NULL;\r\n\t\t}\r\n\r\n\t\ts = text;\r\n\t\ttry {\r\n\t\t\tyyreset(zzReader);\r\n\t\t\tyybegin(state);\r\n\t\t\treturn yylex();\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tioe.printStackTrace();\r\n\t\t\treturn new TokenImpl();\r\n\t\t}\r\n\r\n\t}",
"Literal createLiteral();",
"Literal createLiteral();",
"private void tokenStart() {\n tokenStartIndex = zzStartRead;\n }",
"public Token(I2PAppContext ctx) {\n super(null);\n byte[] data = new byte[MY_TOK_LEN];\n ctx.random().nextBytes(data);\n setData(data);\n setValid(MY_TOK_LEN);\n lastSeen = ctx.clock().now();\n }",
"public ListNode() {\n\t\tthis(0, null);\n\t}",
"public TextFragment()\n\t{\n\t}",
"private void addToken(int start, int end, int tokenType) {\r\n\t\tint so = start + offsetShift;\r\n\t\taddToken(zzBuffer, start,end, tokenType, so);\r\n\t}",
"public VariableToken(String text) {\n super(text);\n }",
"private Token(int code)\n {\n myCode = code;\n }",
"public Token(int TTL, String extraTimeHost, String startNodeID, String skipNode, String customFileName)\r\n {\r\n this.TTL = TTL;\r\n this.extraTimeHost = extraTimeHost;\r\n this.startNodeID = startNodeID;\r\n this.skipNode = skipNode;\r\n this.customFileName = customFileName;\r\n\r\n }",
"public Token newIdToken(String id, int startPosition, int endPosition) {\r\n return new Token(startPosition, endPosition, Symbol.symbol(id, Tokens.Identifier));\r\n }",
"public LiteralOPToken(String s, int nTypeCode, String sNudASTName)\n {\n this(s, nTypeCode);\n m_sNudASTName = sNudASTName;\n }",
"public Token(String terme, int tf) {\r\n\t\t\r\n\t\tthis.Terme = terme;\r\n\t\tthis.tf = tf;\r\n\t}",
"private void addToken(int start, int end, int tokenType) {\n\t\tint so = start + offsetShift;\n\t\taddToken(zzBuffer, start,end, tokenType, so);\n\t}",
"public EmptyType() {\n super(\"<EMPTY>\");\n }",
"public Token(I2PAppContext ctx, byte[] data) {\n super(data);\n // lets not get carried away\n if (data.length > MAX_TOK_LEN)\n throw new IllegalArgumentException();\n lastSeen = ctx.clock().now();\n }",
"private void addToken(int start, int end, int tokenType) {\n\t\tint so = start + offsetShift;\n\t\taddToken(zzBuffer, start,end, tokenType, so, false);\n\t}",
"public Token(Token other) {\n __isset_bitfield = other.__isset_bitfield;\n this.token_num = other.token_num;\n if (other.isSetToken()) {\n this.token = other.token;\n }\n if (other.isSetOffsets()) {\n Map<OffsetType,Offset> __this__offsets = new HashMap<OffsetType,Offset>();\n for (Map.Entry<OffsetType, Offset> other_element : other.offsets.entrySet()) {\n\n OffsetType other_element_key = other_element.getKey();\n Offset other_element_value = other_element.getValue();\n\n OffsetType __this__offsets_copy_key = other_element_key;\n\n Offset __this__offsets_copy_value = new Offset(other_element_value);\n\n __this__offsets.put(__this__offsets_copy_key, __this__offsets_copy_value);\n }\n this.offsets = __this__offsets;\n }\n this.sentence_pos = other.sentence_pos;\n if (other.isSetLemma()) {\n this.lemma = other.lemma;\n }\n if (other.isSetPos()) {\n this.pos = other.pos;\n }\n if (other.isSetEntity_type()) {\n this.entity_type = other.entity_type;\n }\n this.mention_id = other.mention_id;\n this.equiv_id = other.equiv_id;\n this.parent_id = other.parent_id;\n if (other.isSetDependency_path()) {\n this.dependency_path = other.dependency_path;\n }\n if (other.isSetLabels()) {\n Map<String,List<Label>> __this__labels = new HashMap<String,List<Label>>();\n for (Map.Entry<String, List<Label>> other_element : other.labels.entrySet()) {\n\n String other_element_key = other_element.getKey();\n List<Label> other_element_value = other_element.getValue();\n\n String __this__labels_copy_key = other_element_key;\n\n List<Label> __this__labels_copy_value = new ArrayList<Label>();\n for (Label other_element_value_element : other_element_value) {\n __this__labels_copy_value.add(new Label(other_element_value_element));\n }\n\n __this__labels.put(__this__labels_copy_key, __this__labels_copy_value);\n }\n this.labels = __this__labels;\n }\n if (other.isSetMention_type()) {\n this.mention_type = other.mention_type;\n }\n }",
"public String newToken(){\n String line = getLine(lines);\n String token = getToken(line);\n return token;\n }",
"public ConceptToken(String token) {\n _multiToken = false;\n _text = \"\";\n _tokens = new String[]{token};\n }",
"public Builder clearToken() {\n bitField0_ = (bitField0_ & ~0x00000001);\n token_ = getDefaultInstance().getToken();\n onChanged();\n return this;\n }",
"public Builder clearToken() {\n bitField0_ = (bitField0_ & ~0x00000001);\n token_ = getDefaultInstance().getToken();\n onChanged();\n return this;\n }",
"public Builder clearToken() {\n bitField0_ = (bitField0_ & ~0x00000001);\n token_ = getDefaultInstance().getToken();\n onChanged();\n return this;\n }",
"public Builder clearToken() {\n bitField0_ = (bitField0_ & ~0x00000001);\n token_ = getDefaultInstance().getToken();\n onChanged();\n return this;\n }",
"public Builder clearToken() {\n bitField0_ = (bitField0_ & ~0x00000001);\n token_ = getDefaultInstance().getToken();\n onChanged();\n return this;\n }",
"public Token zero() {\n\t\ttry {\n\t\t\treturn new LongMatrixToken(new long[_rowCount * _columnCount],\n\t\t\t\t\t_rowCount, _columnCount, DO_NOT_COPY);\n\t\t} catch (IllegalActionException illegalAction) {\n\t\t\t// should not happen\n\t\t\tthrow new InternalErrorException(\"LongMatrixToken.zero: \"\n\t\t\t\t\t+ \"Cannot create zero matrix.\");\n\t\t}\n\t}",
"SimpleLiteral createSimpleLiteral();",
"public AstParser(AstParserTokenManager tm) {\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 9; i++) jj_la1[i] = -1;\n }",
"public TextPos() {\n this.value = 1;\n }",
"public void testTokenTypeStringStringLengthConstructor(){\r\n //Testing throwing of exception for violation of precondition\r\n // type != null\r\n try{\r\n token = new Token(null, \"\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type != EOF => value != null\r\n try{\r\n token = new Token(TokenType.STRING, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.SCHEMES, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.FACTS, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.RULES, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.QUERIES, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.COLON_DASH, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.COLON, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.COMMA, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.PERIOD, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.LEFT_PAREN, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.RIGHT_PAREN, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.Q_MARK, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type != EOF and type != STRING => |value| > 0\r\n\r\n try{\r\n token = new Token(TokenType.SCHEMES, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.FACTS, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.RULES, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.QUERIES, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.COLON_DASH, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.COLON, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.COMMA, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.PERIOD, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.LEFT_PAREN, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.RIGHT_PAREN, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.Q_MARK, null, 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n //Testing throwing of exception for violation of precondition\r\n // type == SCHEMES => value == \"Schemes\" -- ignoring case\r\n try{\r\n token = new Token(TokenType.SCHEMES, \"scheme\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type == FACTS => value == \"Facts\" -- ignoring case\r\n try{\r\n token = new Token(TokenType.FACTS, \"Fact\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type == RULES => value == \"Rules\" -- ignoring case\r\n try{\r\n token = new Token(TokenType.RULES, \"Rule\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type == QUERIES => value == \"Queries\" -- ignoring case\r\n try{\r\n token = new Token(TokenType.QUERIES, \"Query\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type == COLON_DASH => value == \":-\" -- ignoring case\r\n try{\r\n token = new Token(TokenType.COLON_DASH, \":\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.COLON_DASH, \"-\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.COLON_DASH, \"::-\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type == COLON => value == \":\" -- ignoring case\r\n try{\r\n token = new Token(TokenType.COLON, \"a\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.COLON, \"::\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type == COMMA => value == \",\" -- ignoring case\r\n try{\r\n token = new Token(TokenType.COMMA, \";\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type == PERIOD => value == \".\" -- ignoring case\r\n try{\r\n token = new Token(TokenType.PERIOD, \",\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type == LEFT_PAREN => value == \"(\" -- ignoring case\r\n try{\r\n token = new Token(TokenType.LEFT_PAREN, \")\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.LEFT_PAREN, \"[\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.LEFT_PAREN, \"{\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.LEFT_PAREN, \"9\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type == RIGHT_PAREN => value == \")\" -- ignoring case\r\n try{\r\n token = new Token(TokenType.RIGHT_PAREN, \"(\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.RIGHT_PAREN, \"]\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.RIGHT_PAREN, \"}\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.RIGHT_PAREN, \"0\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type == Q_MARK => value == \"?\" -- ignoring case\r\n try{\r\n token = new Token(TokenType.Q_MARK, \"!\", 1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // lineNunmber >= 1\r\n try{\r\n token = new Token(TokenType.Q_MARK, \"?\", 0);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.Q_MARK, \"?\", -1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n //Testing throwing of exception for violation of precondition\r\n // type = ID => the length is > 0, the first character must be a\r\n // letter and all of the rest must be letters or digits.\r\n try{\r\n token = new Token(TokenType.ID, \"\", -1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.ID, \"1\", -1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.ID, \"a?\", -1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n try{\r\n token = new Token(TokenType.ID, \"a1b2.\", -1);\r\n assertTrue(false);\r\n }catch(ParserException e){\r\n assertTrue(true);\r\n };\r\n\r\n\r\n try{ //all of the follow can but should not throw exceptions.\r\n //Thus we wrap them in a try block, but, shoud never use it.\r\n\r\n //Testing EOF constructor\r\n token = new Token(TokenType.EOF, null, 2);\r\n assertTrue(token.getTokenType() == TokenType.EOF);\r\n assertTrue(token.getValue().equals(\"\"));\r\n assertTrue(token.getLineNumber() == 2);\r\n\r\n token = new Token(TokenType.EOF, \"cat\", 50);\r\n assertTrue(token.getTokenType() == TokenType.EOF);\r\n assertTrue(token.getValue().equals(\"\"));\r\n assertTrue(token.getLineNumber() == 50);\r\n\r\n //Testing the STRING constructor\r\n token = new Token(TokenType.STRING, \"\", 30);\r\n assertTrue(token.getTokenType() == TokenType.STRING);\r\n assertTrue(token.getValue().equals(\"''\"));\r\n assertTrue(token.getLineNumber() == 30);\r\n\r\n token = new Token(TokenType.STRING, \"'a'\", 30);\r\n assertTrue(token.getTokenType() == TokenType.STRING);\r\n assertTrue(token.getValue().equals(\"''a''\"));\r\n assertTrue(token.getLineNumber() == 30);\r\n\r\n //Testing the ID constructor\r\n token = new Token(TokenType.ID, \"a\", 3);\r\n assertTrue(token.getTokenType() == TokenType.ID);\r\n assertTrue(token.getValue().equals(\"a\"));\r\n assertTrue(token.getLineNumber() == 3);\r\n\r\n token = new Token(TokenType.ID, \"A123456789\", 3);\r\n assertTrue(token.getTokenType() == TokenType.ID);\r\n assertTrue(token.getValue().equals(\"A123456789\"));\r\n assertTrue(token.getLineNumber() == 3);\r\n\r\n token = new Token(TokenType.ID, \"z2\", 3);\r\n assertTrue(token.getTokenType() == TokenType.ID);\r\n assertTrue(token.getValue().equals(\"z2\"));\r\n assertTrue(token.getLineNumber() == 3);\r\n\r\n //Testing SCHEMES constructor\r\n token = new Token(TokenType.SCHEMES, \"schemes\", 1);\r\n assertTrue(token.getTokenType() == TokenType.SCHEMES);\r\n assertTrue(token.getValue().equals(\"schemes\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n token = new Token(TokenType.SCHEMES, \"SCHEMES\", 1);\r\n assertTrue(token.getTokenType() == TokenType.SCHEMES);\r\n assertTrue(token.getValue().equals(\"SCHEMES\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n token = new Token(TokenType.SCHEMES, \"Schemes\", 1);\r\n assertTrue(token.getTokenType() == TokenType.SCHEMES);\r\n assertTrue(token.getValue().equals(\"Schemes\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n //Testing FACTS constructor\r\n token = new Token(TokenType.FACTS, \"facts\", 1);\r\n assertTrue(token.getTokenType() == TokenType.FACTS);\r\n assertTrue(token.getValue().equals(\"facts\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n token = new Token(TokenType.FACTS, \"FACTS\", 1);\r\n assertTrue(token.getTokenType() == TokenType.FACTS);\r\n assertTrue(token.getValue().equals(\"FACTS\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n token = new Token(TokenType.FACTS, \"Facts\", 1);\r\n assertTrue(token.getTokenType() == TokenType.FACTS);\r\n assertTrue(token.getValue().equals(\"Facts\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n //Testing RULES constructor\r\n token = new Token(TokenType.RULES, \"rules\", 1);\r\n assertTrue(token.getTokenType() == TokenType.RULES);\r\n assertTrue(token.getValue().equals(\"rules\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n token = new Token(TokenType.RULES, \"RULES\", 1);\r\n assertTrue(token.getTokenType() == TokenType.RULES);\r\n assertTrue(token.getValue().equals(\"RULES\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n token = new Token(TokenType.RULES, \"RULEs\", 1);\r\n assertTrue(token.getTokenType() == TokenType.RULES);\r\n assertTrue(token.getValue().equals(\"RULEs\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n //Testing QUERIES constructor\r\n token = new Token(TokenType.QUERIES, \"queries\", 1);\r\n assertTrue(token.getTokenType() == TokenType.QUERIES);\r\n assertTrue(token.getValue().equals(\"queries\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n token = new Token(TokenType.QUERIES, \"QUERIES\", 1);\r\n assertTrue(token.getTokenType() == TokenType.QUERIES);\r\n assertTrue(token.getValue().equals(\"QUERIES\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n token = new Token(TokenType.QUERIES, \"Queries\", 1);\r\n assertTrue(token.getTokenType() == TokenType.QUERIES);\r\n assertTrue(token.getValue().equals(\"Queries\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n //Testing COLON_DASH constructor\r\n token = new Token(TokenType.COLON_DASH, \":-\", 1);\r\n assertTrue(token.getTokenType() == TokenType.COLON_DASH);\r\n assertTrue(token.getValue().equals(\":-\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n //Testing COLON constructor\r\n token = new Token(TokenType.COLON, \":\", 1);\r\n assertTrue(token.getTokenType() == TokenType.COLON);\r\n assertTrue(token.getValue().equals(\":\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n //Testing COMMA constructor\r\n token = new Token(TokenType.COMMA, \",\", 1);\r\n assertTrue(token.getTokenType() == TokenType.COMMA);\r\n assertTrue(token.getValue().equals(\",\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n //Testing PERIOD constructor\r\n token = new Token(TokenType.PERIOD, \".\", 1);\r\n assertTrue(token.getTokenType() == TokenType.PERIOD);\r\n assertTrue(token.getValue().equals(\".\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n //Testing LEFT_PAREN constructor\r\n token = new Token(TokenType.LEFT_PAREN, \"(\", 1);\r\n assertTrue(token.getTokenType() == TokenType.LEFT_PAREN);\r\n assertTrue(token.getValue().equals(\"(\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n //Testing RIGHT_PAREN constructor\r\n token = new Token(TokenType.RIGHT_PAREN, \")\", 1);\r\n assertTrue(token.getTokenType() == TokenType.RIGHT_PAREN);\r\n assertTrue(token.getValue().equals(\")\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n //Testing Q_MARK constructor\r\n token = new Token(TokenType.Q_MARK, \"?\", 1);\r\n assertTrue(token.getTokenType() == TokenType.Q_MARK);\r\n assertTrue(token.getValue().equals(\"?\"));\r\n assertTrue(token.getLineNumber() == 1);\r\n\r\n }catch(ParserException e){\r\n System.err.println(\"ERROR in TokenTest::\" +\r\n \"testTokenTypeStringStringLengthConstructor(\" +\r\n \"TokenType,String,int)\\n\" +\r\n \"Should NOT be able to get here\");\r\n };\r\n }",
"public DocumentWordPosition() {}",
"TokenDef(String tokenname, String ANTLRCODE) {\n this.tokenname = tokenname;\n this.ANTLRCODE = ANTLRCODE;\n }",
"public BStarTokenMaker() {\n\t\tsuper();\n\t}",
"public Token(byte[] identifier, byte[] password, Text kind, Text service) {\n this.identifier = (identifier == null)? new byte[0] : identifier;\n this.password = (password == null)? new byte[0] : password;\n this.kind = (kind == null)? new Text() : kind;\n this.service = (service == null)? new Text() : service;\n }",
"public Token(byte[] data) {\n super(data);\n lastSeen = 0;\n }",
"public LeanTextGeometry() {}",
"@Nonnull\r\n public Token token()\r\n throws IOException,\r\n LexerException {\r\n Token tok = _token();\r\n if (getFeature(Feature.DEBUG))\r\n LOG.debug(\"pp: Returning \" + tok);\r\n return tok;\r\n }",
"public SpecialCharToken(char value) {\n this(value, null);\n }",
"public CharTokenizer() {\n this(\",\", \"\\n\");\n }",
"@Override\r\n\tpublic void addToken(char[] array, int start, int end, int tokenType, int startOffset) {\r\n\t\tsuper.addToken(array, start,end, tokenType, startOffset);\r\n\t\tzzStartRead = zzMarkedPos;\r\n\t}",
"public BasicParser(BasicParserTokenManager tm) {\n\t token_source = tm;\n\t token = new Token();\n\t jj_ntk = -1;\n\t jj_gen = 0;\n\t for (int i = 0; i < 13; i++) jj_la1[i] = -1;\n }",
"TypeLiteralExp createTypeLiteralExp();",
"@Override\n\tpublic void addToken(char[] array, int start, int end, int tokenType, int startOffset) {\n\t\tsuper.addToken(array, start,end, tokenType, startOffset);\n\t\tzzStartRead = zzMarkedPos;\n\t}",
"public String toString() { return (tok == null) ? \"\" : tok; }",
"@Override\n public Iterator<Token> iterator() {\n return new Iterator<Token>() {\n private int left;\n private int right;\n private TokenType type;\n\n @Override\n public void remove() {\n throw new UnsupportedOperationException();\n }\n\n @Override\n public boolean hasNext() {\n lex();\n return type != null;\n }\n\n @Override\n public Token next() {\n lex();\n if (type == null) {\n throw new NoSuchElementException();\n }\n Token t = new Token(type, left, right);\n left = right;\n right = -1;\n type = null;\n return t;\n }\n\n @SuppressWarnings(\"synthetic-access\")\n private void lex() {\n int n = content.length();\n while (type == null && left < n) {\n Matcher m = TOKEN.matcher(content);\n if (m.find(left)) {\n right = m.end();\n } else {\n // Do orphaned-surrogates cause this?\n throw new AssertionError(\"Index \" + left + \" in \" + content);\n }\n int cp = content.codePointAt(left);\n switch (cp) {\n case '\\t': case '\\n': case '\\r': case ' ':\n break;\n case '/':\n if (right - left == 1) {\n type = TokenType.PUNCTUATION;\n } else {\n type = null;\n if (preserveDocComments && left + 2 < right) {\n if (content.charAt(left + 1) == '*'\n && content.charAt(left + 2) == '*') {\n type = TokenType.DOC_COMMENT;\n }\n }\n }\n break;\n case '\"': case '\\'':\n type = TokenType.STRING;\n break;\n case '.':\n type = right - left == 1\n ? TokenType.PUNCTUATION : TokenType.NUMBER;\n break;\n case '0': case '1': case '2': case '3': case '4':\n case '5': case '6': case '7': case '8': case '9':\n type = TokenType.NUMBER;\n break;\n default:\n if (Character.isUnicodeIdentifierStart(cp) || cp == '$') {\n type = TokenType.WORD;\n right = left;\n do {\n right += Character.charCount(cp);\n } while (\n right < n\n && ((cp = content.codePointAt(right)) == '$'\n || Character.isUnicodeIdentifierPart(cp)));\n } else {\n type = TokenType.PUNCTUATION;\n }\n break;\n }\n if (type == null) {\n Preconditions.checkState(right > left);\n left = right;\n }\n }\n }\n };\n }",
"DOMType() {\n // Constructs an empty type node\n }",
"public Token(int lineNum, int tokenId, String tokenName)\n\t{\n\t\tthis.lineNum = lineNum;\n\t\tthis.tokenId = tokenId;\n\t\tthis.tokenName = tokenName;\n\t\ttokenIdtoName(tokenId);\n\t}",
"public Tokenizer(String text) {\n this.tokens = new Vector<TokenNode>();\n text = TextPreprocessor.removeNoisySpaces(text);\n createTokens(text);\n }",
"public Token(int lineNumber) {\n\t\tthis.value = null;\n\t\tthis.type = TokenType.EOF;\n\t\tthis.lineNumber = lineNumber;\n\t\tthis.numVal = 0;\n\t\tthis.wordVal = null;\n\t}"
]
| [
"0.73149997",
"0.7103405",
"0.7013195",
"0.67458117",
"0.6668556",
"0.66460335",
"0.6584466",
"0.64680254",
"0.6463818",
"0.63781244",
"0.6325554",
"0.6281098",
"0.62374705",
"0.61613363",
"0.61086816",
"0.59309816",
"0.5924403",
"0.5893639",
"0.5891966",
"0.58796006",
"0.58514315",
"0.5821516",
"0.57300884",
"0.5696216",
"0.56728715",
"0.56630427",
"0.56411386",
"0.56300914",
"0.5555439",
"0.55538774",
"0.5552752",
"0.5551054",
"0.5549443",
"0.5537644",
"0.55192477",
"0.5512013",
"0.5504263",
"0.5480867",
"0.54686314",
"0.5466948",
"0.54583144",
"0.54484063",
"0.5447374",
"0.5431954",
"0.54240674",
"0.54161114",
"0.53744715",
"0.5349826",
"0.53423107",
"0.53377676",
"0.5297266",
"0.5286615",
"0.5286615",
"0.5283405",
"0.5273523",
"0.5261676",
"0.52584344",
"0.5247726",
"0.52276134",
"0.5225883",
"0.52227134",
"0.52216685",
"0.5221371",
"0.5213501",
"0.5206961",
"0.5203576",
"0.52023584",
"0.51940656",
"0.519288",
"0.5187464",
"0.51804024",
"0.51802826",
"0.51802826",
"0.51802826",
"0.51802826",
"0.51802826",
"0.51443565",
"0.5134303",
"0.51272166",
"0.51260084",
"0.5122486",
"0.51039994",
"0.5099021",
"0.50987583",
"0.5088357",
"0.5088191",
"0.5087452",
"0.5084257",
"0.50841653",
"0.50823",
"0.50790185",
"0.50773305",
"0.507201",
"0.50512445",
"0.5039883",
"0.5033846",
"0.50314486",
"0.502083",
"0.5005107",
"0.5001225"
]
| 0.6628297 | 6 |
Constructs a Token with the given term text, and start & end offsets. The type defaults to "word." NOTE: for better indexing speed you should instead use the char[] termBuffer methods to set the term text. | public Token(String text, int start, int end) {
termText = text;
startOffset = start;
endOffset = end;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Token(String text, int start, int end, String typ) {\n termText = text;\n startOffset = start;\n endOffset = end;\n type = typ;\n }",
"public Token(String text, int start, int end, int flags) {\n termText = text;\n startOffset = start;\n endOffset = end;\n this.flags = flags;\n }",
"private Token createToken(\n String type, String val, int start, int end) {\n return new Token(type, val, start, end);\n }",
"public Token(int start, int end, String typ) {\n startOffset = start;\n endOffset = end;\n type = typ;\n }",
"public Word(Position position, CharSequence word) {\n this.position = position;\n this.word = word;\n }",
"public Word(String text) {\n\t\tsuper();\n\t\tthis.text = text;\n\t}",
"public Token(TokenType type, String spelling) {\n\t\tthis.type = type;\n\t\tthis.spelling = spelling;\n\t}",
"public WordTokenizer( char[] texts ) {\n\t\t// this constructor will tokenize the input texts (usually it is the char array for a whole document)\n\t\t\n\t\tString s=String.valueOf(texts);//convert character array to string\n\t\twords = s.split(\"\\\\W+\");//split string through various character\n\t\t// \\W means all the demoninate except [a-zA-Z0-9]\n\t}",
"public Token(int start, int end) {\n startOffset = start;\n endOffset = end;\n }",
"public Token(TokenType type) {\n\t\tthis.type = type;\n\t\tthis.spelling = type.getSpelling();\n\t}",
"public Word(String text, String postag) {\n\t\tsuper();\n\t\tthis.text = text;\n\t\tthis.postag = postag;\n\t}",
"private Token makeOneToken(String word) {\n Tokenizer tokenizer = new Tokenizer(new StringReader(word), keywords);;\n return tokenizer.next();\n }",
"WordConstant createWordConstant();",
"public Element compileTerm() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tString varName;\n\n\t\tElement termParent = document.createElement(\"term\");\n\n\t\ttoken = jTokenizer.returnTokenVal();\n\t\ttokenType = jTokenizer.tokenType();\n\n\t\t// Case 1: ( expression )\n\n\t\tif (token.equals(\"(\")) {\n\t\t\t// (\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\n\t\t\t// exp\n\t\t\tjTokenizer.advance();\n\t\t\ttermParent.appendChild(compileExpression());\n\n\t\t\t// )\n\t\t\tjTokenizer.advance();\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\n\t\t}\n\n\t\t// Case 2: unaryOp term\n\t\telse if (token.matches(\"\\\\-|~\")) {\n\n\t\t\t// unary op\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tString op = jTokenizer.returnTokenVal();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\t\n\t\t\t\n\t\t\t//Since it is postfix, the term comes first\n\t\t\t\n\t\t\t// term\n\t\t\tjTokenizer.advance();\n\t\t\ttermParent.appendChild(compileTerm());\n\n\t\t\t// appending the op\n\t\t\tif (op.equals(\"~\")) {\n\t\t\t\twriter.writeArithmetic(\"not\");\n\t\t\t} else {\n\t\t\t\twriter.writeArithmetic(\"neg\");\n\t\t\t}\n\n\t\t}\n\t\t\n\t\t// Any constant or keyword\n\t\telse if (tokenType.matches(\"keyword|integerConstant|stringConstant\")) {\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\t\n\t\t\t//pushing an integer constant\n\t\t\tif (tokenType.equals(\"integerConstant\")) {\n\t\t\t\twriter.writePush(\"constant\", Integer.parseInt(token));\t\n\t\t\t}\n\t\t\t//For string, have to iterate along the length of the string and call string.append\n\t\t\telse if (tokenType.equals(\"stringConstant\")) {\n\t\t\t\twriter.writePush(\"constant\", token.length());\n\t\t\t\twriter.writeCall(\"String.new\", 1);\n\n\t\t\t\tfor (int i = 0; i < token.length(); i++) {\n\t\t\t\t\twriter.writePush(\"constant\", (int) token.charAt(i));\n\t\t\t\t\twriter.writeCall(\"String.appendChar\", 2);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} \n\t\t\t//Pushing the keyword onto the stack, depending on what it is\n\t\t\telse if (tokenType.equals(\"keyword\")) {\n\t\t\t\tif (token.equals(\"true\")) {\n\t\t\t\t\twriter.writePush(\"constant\", 0);\n\t\t\t\t\twriter.writeArithmetic(\"not\");\n\t\t\t\t} else if (token.equals(\"this\")) {\n\t\t\t\t\twriter.writePush(\"pointer\", 0);\n\t\t\t\t} else if (token.equals(\"false\") || token.equals(\"null\")) {\n\t\t\t\t\twriter.writePush(\"constant\", 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Variable, Variable[expression] or subroutineCall\n\t\telse if (tokenType.equals(\"identifier\")) {\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\tvarName = jTokenizer.returnTokenVal();\n\t\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\t\tclone.advance();\n\t\t\ttoken = clone.returnTokenVal();\n\n\t\t\t// Case 1: Array dereferencing\n\t\t\tif (token.equals(\"[\")) {\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// push base id\n\t\t\t\twriter.writePush(symTable.lookup(varName).kind, symTable.lookup(varName).index);\n\n\t\t\t\t// Exp\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttermParent.appendChild(compileExpression());\n\n\t\t\t\t// ]\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// base + offset\n\t\t\t\twriter.writeArithmetic(\"add\");\n\n\t\t\t\t// pop into that\n\t\t\t\twriter.writePop(\"pointer\", 1);\n\t\t\t\t// push value into stack\n\t\t\t\twriter.writePush(\"that\", 0);\n\t\t\t}\n\n\t\t\t// Case 2: variable/class.subroutine call\n\t\t\telse if (token.equals(\".\")) {\n\n\t\t\t\tboolean method = false;\n\n\t\t\t\t// .\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// subroutine name\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tString subName = jTokenizer.returnTokenVal();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// (\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\tString firstName = varName;\n\t\t\t\t//Similar to the compileDo method, have to distinguish between\n\t\t\t\t//method and function\n\t\t\t\tif (symTable.lookup(firstName) != null) {\n\t\t\t\t\tmethod = true;\n\t\t\t\t\twriter.writePush(symTable.lookup(firstName).kind, symTable.lookup(firstName).index);\n\t\t\t\t\tvarName = symTable.lookup(firstName).type;\n\t\t\t\t}\n\t\t\t\t// expressionList\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tElement compileExpression = compileExpressionList();\n\t\t\t\tint nArgs = compileExpression.getChildNodes().getLength();\n\t\t\t\ttermParent.appendChild(compileExpression);\n\n\t\t\t\t// Checking if method or function\n\t\t\t\tif (method) {\n\t\t\t\t\tnArgs++;\n\t\t\t\t}\n\t\t\t\twriter.writeCall(varName + \".\" + subName, nArgs);\n\n\t\t\t\t// )\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\t\t\t}\n\n\t\t\t// Case 3: function call\n\t\t\telse if (token.equals(\"(\")) {\n\t\t\t\t// (\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// expression list\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tElement node = compileExpressionList();\n\t\t\t\tint nArgs = node.getChildNodes().getLength();\n\t\t\t\ttermParent.appendChild(node);\n\n\t\t\t\t// )\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// Writing the VML for a method call\n\t\t\t\twriter.writePush(\"pointer\", 0);\n\t\t\t\twriter.writeCall(className + \".\" + varName, ++nArgs);\n\t\t\t}\n\t\t\t// Case 4: Variable name.\n\t\t\telse {\n\t\t\t\twriter.writePush(symTable.lookup(varName).kind, symTable.lookup(varName).index);\n\t\t\t}\n\t\t}\n\t\treturn termParent;\n\t}",
"public static TokenizerFactory<Word> factory()\n/* */ {\n/* 111 */ return new ArabicTokenizerFactory(false);\n/* */ }",
"private Token(TokenType type, Range range, Range textRange, String id, String match) {\r\n \t\t\tsuper();\r\n \t\t\tthis.type = type;\r\n \t\t\tthis.range = range;\r\n \t\t\tthis.textRange = textRange == null ? range : textRange;\r\n \t\t\tthis.id = id;\r\n //\t\t\tthis.match = match;\r\n \t\t}",
"public void addWord(int id, int start, int length, int[] type);",
"public Token(int start, int end, int flags){\n startOffset = start;\n endOffset = end;\n this.flags = flags;\n }",
"public static TokenizerFactory<Word> factory()\n/* */ {\n/* 116 */ return new WhitespaceTokenizerFactory(false);\n/* */ }",
"protected static void addToken(String textStr, int tokenBegin,\n\t\t\tint tokenEnd, int tokenCount, List<Token> tokens) {\n\t\tToken token;\n\t\ttoken= new Token();\n\t\ttoken.setCharacterOffsetBegin(tokenBegin);\n\t\ttoken.setCharacterOffsetEnd(tokenEnd); \n\t\ttoken.setIndex(tokenCount);\n\t\tString word= textStr.substring(tokenBegin, tokenEnd);\n\t\ttoken.setWord(word);\n\t\ttokens.add(token);\n\t}",
"Term getTerm();",
"public SuggestedTerm(String term, int editDistance){\n this.term = term;\n this.editDistance = editDistance;\n }",
"private Token extendedNextWordToken() {\n\t\t StringBuilder sb = new StringBuilder();\n\t\t \n\t\t while(currentIndex < data.length) {\n\t\t\t char c = data[currentIndex];\n\t\t\t \n\t\t\t if(c == '#') break;\n\t\t\t if(c == ' ' || c == '\\n' || c== '\\t' || c == '\\r') break;\n\t\t\t \n\t\t\t sb.append(c);\n\t\t\t currentIndex++;\n\t\t }\n\t\t return new Token(TokenType.WORD, sb.toString());\n\t }",
"public Token(int start)\n {\n this.start = start;\n }",
"public DocumentWordPosition() {}",
"GeneralTerm createGeneralTerm();",
"public Term(String t) {\n this.t = t;\n \n RepCheck();\n }",
"public Token(String terme, int tf) {\r\n\t\t\r\n\t\tthis.Terme = terme;\r\n\t\tthis.tf = tf;\r\n\t}",
"SingleTerm(Term t)\n {\n term = t;\n }",
"public Token(String content, TokenType type) {\n\t\tthis.content = content;\n\t\tthis.type = type;\n\t}",
"QuoteTerm createQuoteTerm();",
"public static Token word(char firstChar, Source source) {\r\n\t\tToken token = new Token(firstChar);\r\n\t\ttoken.lineNumber = source.lineNumber();\r\n\r\n\t\t// Loop to get the rest of the characters of the word token.\r\n\t\t// Append letters and digits to the token.\r\n\t\tfor (char ch = source.nextChar(); Character.isLetterOrDigit(ch); ch = source.nextChar()) {\r\n\t\t\ttoken.text += ch;\r\n\t\t}\r\n\r\n\t\t// Is it a reserved word or an identifier?\r\n\t\ttoken.type = reservedWords.get(token.text.toUpperCase());\r\n\t\tif (token.type == null)\r\n\t\t\ttoken.type = TokenType.IDENTIFIER;\r\n\r\n\t\treturn token;\r\n\t}",
"abstract public TermDocs termDocs(Term t) throws IOException;",
"public Word (String word) {\n\t\t// Call another constructor\n\t\tthis(word.length());\n\t\t// save the input word in this.theWord\n\t\tthis.theWord = word.toCharArray();\n\t}",
"private void createWord() {\n\t\tString value = \"\";\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isWhitespace(data[currentIndex])) {\n\t\t\tcurrentIndex++;\n\t\t}\n\t\tif (currentIndex + 1 < data.length && data[currentIndex] == '$'\n\t\t\t\t&& data[currentIndex + 1] == '}') {\n\t\t\tvalue += data[currentIndex++];\n\t\t\tvalue += data[currentIndex++];\n\t\t\ttoken = new Token(TokenType.WORD, value);\n\t\t\treturn;\n\t\t}\n\t\t// no escaping!\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& !Character.isWhitespace(data[currentIndex])) {\n\t\t\tif (data[currentIndex] == '\\\\') {\n\t\t\t\tthrow new LexerException(\"No exceping alowed.\");\n\t\t\t}\n\t\t\tvalue += data[currentIndex++];\n\t\t}\n\t\ttoken = new Token(TokenType.WORD, value);\n\n\t}",
"public ConceptToken(String token) {\n _multiToken = false;\n _text = \"\";\n _tokens = new String[]{token};\n }",
"public Token getTokenList(Segment text, int initialTokenType, int startOffset) {\n\n\t\tresetTokenList();\n\t\tthis.offsetShift = -text.offset + startOffset;\n\n\t\t// Start off in the proper state.\n\t\tint state = Token.NULL;\n\t\tswitch (initialTokenType) {\n\t\t\tcase Token.COMMENT_MULTILINE:\n\t\t\t\tstate = MLC;\n\t\t\t\tstart = text.offset;\n\t\t\t\tbreak;\n\t\t\tcase Token.COMMENT_DOCUMENTATION:\n\t\t\t\tstate = DOCCOMMENT;\n\t\t\t\tstart = text.offset;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tstate = Token.NULL;\n\t\t}\n\n\t\ts = text;\n\t\ttry {\n\t\t\tyyreset(zzReader);\n\t\t\tyybegin(state);\n\t\t\treturn yylex();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t\treturn new TokenImpl();\n\t\t}\n\n\t}",
"public void setTermText(String text) {\n termText = text;\n termBuffer = null;\n }",
"private void createTermFreqVector(JCas jcas, Document doc) {\n\n String docText = doc.getText().toLowerCase();\n\n // TODO: construct a vector of tokens and update the tokenList in CAS\n\n String[] wordList = docText.split(\" \");\n HashMap<String, Integer> tokenCount = new HashMap<String, Integer>();\n for (String word : wordList) {\n String newWord = word;\n if(word.charAt(word.length()-1)<'a' || word.charAt(word.length()-1)>'z'){\n newWord = word.substring(0, word.length()-1);\n }\n //if(Utils.GetStopWordFilter().isStopword(newWord))continue;\n if (!tokenCount.containsKey(newWord)) {\n tokenCount.put(newWord, 1);\n } else {\n tokenCount.put(newWord, tokenCount.get(newWord) + 1);\n }\n }\n\n ArrayList<Token> tokenList = new ArrayList<Token>();\n for (String word : tokenCount.keySet()) {\n Token token = new Token(jcas);\n token.setText(word);\n token.setFrequency(tokenCount.get(word));\n tokenList.add(token);\n }\n FSList tokenFSList = Utils.fromCollectionToFSList(jcas, tokenList);\n doc.setTokenList(tokenFSList);\n }",
"public StringWordTokenizer(WordFinder wf) {\n\t\tsuper(wf);\n\t}",
"public TermData(String term)\n\t{\n\t\tthis.term = term;\n\t}",
"public WordTokenizer(final InputStream is) {\n\t\tthis(new BufferedReader(new InputStreamReader(is)));\n\t}",
"public Tokenizer(String text) {\n this.tokens = new Vector<TokenNode>();\n text = TextPreprocessor.removeNoisySpaces(text);\n createTokens(text);\n }",
"public Token getTokenList(Segment text, int initialTokenType, int startOffset) {\r\n\r\n\t\tresetTokenList();\r\n\t\tthis.offsetShift = -text.offset + startOffset;\r\n\r\n\t\t// Start off in the proper state.\r\n\t\tint state = Token.NULL;\r\n\t\tswitch (initialTokenType) {\r\n\t\t\tcase Token.LITERAL_STRING_DOUBLE_QUOTE:\r\n\t\t\t\tstate = STRING;\r\n\t\t\t\tstart = text.offset;\r\n\t\t\t\tbreak;\r\n\t\t\tcase Token.LITERAL_CHAR:\r\n\t\t\t\tstate = CHAR;\r\n\t\t\t\tstart = text.offset;\r\n\t\t\t\tbreak;\r\n\t\t\tcase Token.COMMENT_MULTILINE:\r\n\t\t\t\tstate = MLC;\r\n\t\t\t\tstart = text.offset;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tstate = Token.NULL;\r\n\t\t}\r\n\r\n\t\ts = text;\r\n\t\ttry {\r\n\t\t\tyyreset(zzReader);\r\n\t\t\tyybegin(state);\r\n\t\t\treturn yylex();\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tioe.printStackTrace();\r\n\t\t\treturn new TokenImpl();\r\n\t\t}\r\n\r\n\t}",
"LWordConstant createLWordConstant();",
"TermType getTermType();",
"protected Term createTermFrom(String tag) {\n\t\tTerm tmp = terms.getOrDefault(tag, new Term(tag, this, terms.size()));\n\t\tterms.put(tag, tmp);\n\t\t// termCounts.put(tmp, termCounts.getOrDefault(tmp,0)+1);\n\t\ttermsInCorpus += 1;\n\t\treturn tmp;\n\t}",
"Token(Type ttype, String v, int p, int l) {\n type = ttype;\n value = v;\n pos = p;\n line = l;\n }",
"public String getTermText() {\n return termText;\n }",
"public WordTokenizer(Reader input, String[] separatorTokens) {\r\n this(input, separatorTokens, false, true);\r\n }",
"public abstract boolean isStopWord(String term);",
"@Override\r\n\tpublic Token createToken() {\n\t\tToken token = new Token();\r\n\t\treturn token;\r\n\t}",
"public Token(String tipo, String lexema){\n\t\tthis.tipo = tipo;\n\t\tthis.lexema = lexema;\n\t}",
"public Token(String value, int lineNumber) {\n\t\tthis.value = value;\n\t\tthis.type = TokenType.WORD;\n\t\tthis.lineNumber = lineNumber;\n\t\tthis.numVal = 0;\n\t\tthis.wordVal = this.value.toUpperCase(Locale.ENGLISH);\n\t}",
"private TokenType(String spelling) {\n\t\t\tthis.spelling = spelling;\n\t\t}",
"public Token (String token, int position, int marker) {\n this.tokenString = token;\n this.position = position;\n this.marker = marker; \n }",
"public ConcordanceToken(String text, String tag, int tokenNum, int partNum, String... stems) {\r\n\t\tsuper(text, tag, 0l, stems);\r\n\t\tif(tokenNum < 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tif(partNum < 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tthis.tokenNum = tokenNum;\r\n\t\tthis.partNum = partNum;\r\n\t}",
"public Token getTokenList(Segment text, int initialTokenType, int startOffset) {\n\n\t\tresetTokenList();\n\t\tthis.offsetShift = -text.offset + startOffset;\n\n\t\t// Start off in the proper state.\n\t\tint state = Token.NULL;\n\t\tswitch (initialTokenType) {\n\t\t\tcase Token.COMMENT_MULTILINE:\n\t\t\t\tstate = MLC;\n\t\t\t\tstart = text.offset;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tstate = Token.NULL;\n\t\t}\n\n\t\ts = text;\n\t\ttry {\n\t\t\tyyreset(zzReader);\n\t\t\tyybegin(state);\n\t\t\treturn yylex();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t\treturn new TokenImpl();\n\t\t}\n\n\t}",
"public StringWordTokenizer(String s) {\n\t\tsuper(s);\n\t}",
"private void addToken(int start, int end, int tokenType) {\r\n\t\tint so = start + offsetShift;\r\n\t\taddToken(zzBuffer, start,end, tokenType, so);\r\n\t}",
"public SpellingError(Position startPosition, Position endPosition, String text, Object highlightTag) {\n this.text = text;\n this.startPosition = startPosition;\n this.endPosition = endPosition;\n this.highlightTag = highlightTag;\n }",
"public Word (String word){\n this.word = word;\n count = 0;\n }",
"private void createTokens(String text) {\n int i;\n StringTokenizer sTokenizer = new StringTokenizer(text, \" \\n\", true);\n String tok;\n TokenNode node;\n String grWord = \"\\\\p{InGreek}*\";\n String enWord = \"[a-zA-Z]*\";\n String number = \"[0-9]*\";\n String prevChar = \"\";\n // The values of prevCharsType and currCharType are:\n // 0. nothing\n // 1. greek character\n // 2. english character\n // 3. digit\n // 4. dot\n // 5. other\n int prevCharsType, currCharType;\n String prevChars;\n char currChar;\n\n while (sTokenizer.hasMoreTokens()) {\n tok = sTokenizer.nextToken();\n if ((tok.compareTo(\" \") == 0) || (tok.compareTo(\"\\n\") == 0)) {\n prevChar = tok;\n } // if\n else {\n // If tok contains only one token, that is if tok is greek word or\n // english word or a number.\n if (Pattern.matches(grWord, tok) || Pattern.matches(enWord, tok) ||\n Pattern.matches(number, tok)) {\n node = new TokenNode(tok, false, prevChar);\n tokens.add(node);\n } // if\n else {\n prevCharsType = 0;\n prevChars = \"\";\n // For each characer of tok.\n for (i = 0; i < tok.length(); i++) {\n currChar = tok.charAt(i);\n // The type of currChar is...\n if (isGrLetter(currChar)) {\n currCharType = 1;\n } // if\n else if (isEnLetter(currChar)) {\n currCharType = 2;\n } // else if\n else if (isDigit(currChar)) {\n currCharType = 3;\n } // else if\n else if (currChar == '.') {\n currCharType = 4;\n } // else\n else {\n currCharType = 5;\n } // else\n\n // If currCharType is same as previousCharsType, add currChar to\n // prevChars. This is the case where prevCharsType is:\n // 1. Greek character\n // 2. English character\n // 3. Digit\n if (currCharType == prevCharsType) {\n prevChars = prevChars.concat(String.valueOf(currChar));\n } // if\n else {\n if (prevCharsType != 0) {\n node = new TokenNode(prevChars, false, prevChar);\n prevChar = \"\";\n tokens.add(node);\n } // if\n if (currCharType == 5) {\n node = new TokenNode(String.valueOf(currChar), false, prevChar);\n prevChar = \"\";\n tokens.add(node);\n prevChars = \"\";\n prevCharsType = 0;\n } // if\n else if (currCharType == 4) {\n if ( (i == (tok.length() - 1)) || (i == (tok.length() - 2))) {\n node = new TokenNode(String.valueOf(currChar), false, prevChar);\n } // if\n else {\n char ch1 = tok.charAt(i + 1);\n char ch2 = tok.charAt(i + 2);\n if ( (ch1 == '\\\\') && (ch2 == 'y')) {\n node = new TokenNode(String.valueOf(currChar), true, prevChar);\n i += 2;\n } // if\n else {\n if ( (ch1 == '\\\\') && (ch2 == 'n')) {\n i += 2;\n } // if\n node = new TokenNode(String.valueOf(currChar), false, prevChar);\n } // else\n } // else if\n\n prevChar = \"\";\n tokens.add(node);\n prevChars = \"\";\n prevCharsType = 0;\n } // else if\n // If currCharType is:\n // 1. Greek character\n // 2. English character\n // 3. Digit\n else {\n prevChars = String.valueOf(currChar);\n prevCharsType = currCharType;\n } // else\n } // else\n } // for\n if (prevCharsType != 0) {\n node = new TokenNode(prevChars, false, \"\");\n tokens.add(node);\n } // if\n } // else\n } // else\n } // while\n }",
"public Word(String word) throws Exception{\n\t\tsuper();\n\t\tif(!isWordValid(word))\n\t\t\tthrow new Exception();\t\t\n\t\tkey = word;\n\t\tdefinition = \"\";\n\t}",
"private void addToken(int start, int end, int tokenType) {\n\t\tint so = start + offsetShift;\n\t\taddToken(zzBuffer, start,end, tokenType, so);\n\t}",
"private String makeToken(int start, int end, boolean lowerCaseParam) {\n\n int sl = Math.max(1, (end - start));\n char c = '\\0';\n StringBuilder newToken = new StringBuilder(sl);\n\n for (int i = 0; i < sl; i++) {\n c = (lowerCaseParam)\n ? (Character.toLowerCase(this.inputString.charAt(i + start)))\n : this.inputString.charAt(i + start);\n newToken.append(c);\n }\n //String outputString = newToken.toString()+\"[\"+(start)+\":\"+(start+sl)+\"]\";\n String outputString = newToken.toString();\n return outputString;\n }",
"public Token createToken(TokenType token, String sequence, int precedence) {\n return new Token(token, sequence, precedence);\n }",
"public WordNode(String word, ISentence restOfSentence) {\n this.word = word;\n this.restOfSentence = restOfSentence;\n }",
"private void addToken(int start, int end, int tokenType) {\n\t\tint so = start + offsetShift;\n\t\taddToken(zzBuffer, start,end, tokenType, so, false);\n\t}",
"public String getTerm() {\n return term;\n }",
"public Word(String str, ArrayList<Location> locations, ArrayList<Location> curlocations) {\n String curstr = \"\";\n for (Location loc : locations) {\n curstr += loc.getTile().getLetter();\n }\n this.str = curstr;\n this.locations = locations;\n this.curlocations = curlocations;\n }",
"public static List<Term> findByG_T(\n\t\tlong groupId, long termId, int start, int end) {\n\n\t\treturn getPersistence().findByG_T(groupId, termId, start, end);\n\t}",
"public AcademicTerm(int termIndex, Term term) {\n this.termIndex = termIndex;\n this.term = term;\n }",
"void createKeyword(String name);",
"@Override\r\n\tpublic void addToken(char[] array, int start, int end, int tokenType, int startOffset) {\r\n\t\tsuper.addToken(array, start,end, tokenType, startOffset);\r\n\t\tzzStartRead = zzMarkedPos;\r\n\t}",
"TermNode() {\n this.fac = new FacNode();\n this.term = null;\n this.selection = 1;\n }",
"public abstract Tokenizer getTokenizer();",
"static TermVectorEntry of(TermsEnum te) throws IOException {\n Objects.requireNonNull(te);\n\n String termText = BytesRefUtils.decode(te.term());\n\n List<TermVectorEntry.TermVectorPosition> tvPositions = new ArrayList<>();\n PostingsEnum pe = te.postings(null, PostingsEnum.OFFSETS);\n pe.nextDoc();\n int freq = pe.freq();\n for (int i = 0; i < freq; i++) {\n int pos = pe.nextPosition();\n if (pos < 0) {\n // no position information available\n continue;\n }\n TermVectorPosition tvPos = TermVectorPosition.of(pos, pe);\n tvPositions.add(tvPos);\n }\n\n return new TermVectorEntry(termText, te.totalTermFreq(), tvPositions);\n }",
"public int getTermIndex() {return termIndex;}",
"public Word(String word, String meaning) throws Exception{\n\t\tsuper();\n\t\tif(!isWordValid(word))\n\t\t\tthrow new Exception();\n\t\tkey = word;\n\t\tdefinition = meaning;\n\t}",
"public Word(final String word1, final String level1,\n final String hint11, final String hint21) {\n\n\n this.word = word1;\n this.level = level1;\n this.hint1 = hint11;\n this.hint2 = hint21;\n }",
"@Override\r\n\t\t\tpublic boolean isStopWord(String term) {\n\t\t\t\treturn false;\r\n\t\t\t}",
"public Token(Type t, String c) {\r\n this.t = t;\r\n this.c = c;\r\n }",
"@Override\n\tpublic void addToken(char[] array, int start, int end, int tokenType, int startOffset) {\n\t\tsuper.addToken(array, start,end, tokenType, startOffset);\n\t\tzzStartRead = zzMarkedPos;\n\t}",
"public void makeWord(String inputText,String pageId,createIndex createindex,String contentType)\n {\n int length,i;\n char c;\n boolean linkFound=false;\n int count1,count2,count3,count4,count5,count6,count7,count8,count9;\n\n\n\n StringBuilder word=new StringBuilder();\n // String finalWord=null,stemmedWord=null;\n docId=Integer.parseInt(pageId.trim());\n\n ci=createindex;\n // Stemmer st=new Stemmer();\n //createIndex createindex=new createIndex();\n\n length=inputText.length();\n\n for(i=0;i<length;i++)\n {\n c=inputText.charAt(i);\n if(c<123 && c>96)\n {\n word.append(c);\n }\n\n else if(c=='{')\n {\n if ( i+9 < length && inputText.substring(i+1,i+9).equals(\"{infobox\") )\n {\n\n StringBuilder infoboxString = new StringBuilder();\n\n count1 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n infoboxString.append(c);\n if ( c == '{') {\n count1++;\n }\n else if ( c == '}') {\n count1--;\n }\n if ( count1 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n if ( c == '=' ) {infoboxString.deleteCharAt(infoboxString.length()-1);}\n break;\n }\n }\n\n processInfobox(infoboxString);\n\n }\n\n else if ( i+8 < length && inputText.substring(i+1,i+8).equals(\"{geobox\") )\n {\n\n StringBuilder geoboxString = new StringBuilder();\n\n count2 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n geoboxString.append(c);\n if ( c == '{') {\n count2++;\n }\n else if ( c == '}') {\n count2--;\n }\n if ( count2 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n if ( c == '=' ) {geoboxString.deleteCharAt(geoboxString.length()-1);}\n break;\n }\n }\n\n // processGeobox(geoboxString);\n }\n\n else if ( i+6 < length && inputText.substring(i+1,i+6).equals(\"{cite\") )\n {\n\n /*\n * Citations are to be removed.\n */\n\n count3 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n if ( c == '{') {\n count3++;\n }\n else if ( c == '}') {\n count3--;\n }\n if ( count3 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n\n else if ( i+4 < length && inputText.substring(i+1,i+4).equals(\"{gr\") )\n {\n\n /*\n * {{GR .. to be removed\n */\n\n count4 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n if ( c == '{') {\n count4++;\n }\n else if ( c == '}') {\n count4--;\n }\n if ( count4 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n else if ( i+7 < length && inputText.substring(i+1,i+7).equals(\"{coord\") )\n {\n\n /**\n * Coords to be removed\n */\n\n count5 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n\n if ( c == '{') {\n count5++;\n }\n else if ( c == '}') {\n count5--;\n }\n if ( count5 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n\n //System.out.println(\"process infobox\");\n }\n else if(c=='[')\n {\n // System.out.println(\"process square brace\");\n\n if ( i+11 < length && inputText.substring(i+1,i+11).equalsIgnoreCase(\"[category:\"))\n {\n\n StringBuilder categoryString = new StringBuilder();\n\n count6 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n categoryString.append(c);\n if ( c == '[') {\n count6++;\n }\n else if ( c == ']') {\n count6--;\n }\n if ( count6 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n if ( c == '=' ) {categoryString.deleteCharAt(categoryString.length()-1);}\n break;\n }\n }\n\n // System.out.println(\"category string=\"+categoryString.toString());\n processCategories(categoryString);\n\n }\n else if ( i+8 < length && inputText.substring(i+1,i+8).equalsIgnoreCase(\"[image:\") ) {\n\n /**\n * Images to be removed\n */\n\n count7 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n if ( c == '[') {\n count7++;\n }\n else if ( c == ']') {\n count7--;\n }\n if ( count7 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n else if ( i+7 < length && inputText.substring(i+1,i+7).equalsIgnoreCase(\"[file:\") ) {\n\n /**\n * File to be removed\n */\n\n count8 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n\n if ( c == '[') {\n count8++;\n }\n else if ( c == ']') {\n count8--;\n }\n if ( count8 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n\n }\n else if(c=='<')\n {\n //System.out.println(\"Process < >\");\n\n if ( i+4 < length && inputText.substring(i+1,i+4).equalsIgnoreCase(\"!--\") ) {\n\n /**\n * Comments to be removed\n */\n\n int locationClose = inputText.indexOf(\"-->\" , i+1);\n if ( locationClose == -1 || locationClose+2 > length ) {\n i = length-1;\n }\n else {\n i = locationClose+2;\n }\n\n }\n else if ( i+5 < length && inputText.substring(i+1,i+5).equalsIgnoreCase(\"ref>\") ) {\n\n /**\n * References to be removed\n */\n int locationClose = inputText.indexOf(\"</ref>\" , i+1);\n if ( locationClose == -1 || locationClose+5 > length ) {\n i = length-1;\n }\n else {\n i = locationClose+5;\n }\n\n }\n else if ( i+8 < length && inputText.substring(i+1,i+8).equalsIgnoreCase(\"gallery\") ) {\n\n /**\n * Gallery to be removed\n */\n int locationClose = inputText.indexOf(\"</gallery>\" , i+1);\n if ( locationClose == -1 || locationClose+9 > length) {\n i = length-1;\n }\n else {\n i = locationClose+9;\n }\n }\n\n }\n else if ( c == '=' && i+1 < length && inputText.charAt(i+1) == '=')\n {\n\n linkFound = false;\n i+=2;\n while ( i < length && ((c = inputText.charAt(i)) == ' ' || (c = inputText.charAt(i)) == '\\t') )\n {\n i++;\n }\n\n if ( i+14 < length && inputText.substring(i , i+14 ).equals(\"external links\") )\n {\n //System.out.println(\"External link found\");\n linkFound = true;\n i+= 14;\n }\n\n }\n else if ( c == '*' && linkFound == true )\n {\n\n //System.out.println(\"Link found\");\n count9 = 0;\n boolean spaceParsed = false;\n StringBuilder link = new StringBuilder();\n while ( count9 != 2 && i < length )\n {\n c = inputText.charAt(i);\n if ( c == '[' || c == ']' )\n {\n count9++;\n }\n if ( count9 == 1 && spaceParsed == true)\n {\n link.append(c);\n }\n else if ( count9 != 0 && spaceParsed == false && c == ' ')\n {\n spaceParsed = true;\n }\n i++;\n }\n\n StringBuilder linkWord = new StringBuilder();\n for ( int j = 0 ; j < link.length() ; j++ )\n {\n char currentCharTemp = link.charAt(j);\n if ( (int)currentCharTemp >= 'a' && (int)currentCharTemp <= 'z' )\n {\n linkWord.append(currentCharTemp);\n }\n else\n {\n\n // System.out.println(\"link : \" + linkWord.toString());\n processLink(linkWord);\n linkWord.setLength(0);\n }\n }\n if ( linkWord.length() > 1 )\n {\n //System.out.println(\"link : \" + linkWord.toString());\n processLink(linkWord);\n linkWord.setLength(0);\n }\n\n }\n else\n {\n if(word.length()>1)\n filterAndAddWord(word,contentType);\n\n word.setLength(0);\n }\n }\n\n\n if(word.length()>1)\n filterAndAddWord(word,contentType);\n\n word.setLength(0);\n /*\n if(word.length()>0)\n {\n finalWord=new String(word);\n if(!(checkStopword(finalWord)))\n {\n st.add(finalWord.toCharArray(),finalWord.length());\n stemmedWord=st.stem();\n\n createindex.addToTreeSet(stemmedWord,docId);\n\n }\n\n word.delete(0, word.length());\n } */\n\n }",
"@Override\r\n\tpublic JavaToken nextToken() {\r\n\t\tif (!ready())\r\n\t\t\treturn null;\r\n\t\tint oldPos = this.pos;\r\n\t\tint type = PLAIN;\r\n\t\tif (LL(0) == ' ' || LL(0) == '\\t' || LL(0) == '\\n' || LL(0) == '\\r') {\r\n\t\t\tconsumeWhiteSpace();\r\n\t\t\ttype = WHITESPACE;\r\n\t\t} else if (Character.isJavaIdentifierStart(LL(0))) {\r\n\t\t\tconsumeIdentifier();\r\n\t\t} else if (LL(0) == '#') {\r\n\t\t\tconsumeSingleLineComment();\r\n\t\t\ttype = COMMENT;\r\n\t\t} else if (LL(0) == '\\\"') {\r\n\t\t\tif (LL(1) == '\\\"' && LL(2) == '\\\"') {\r\n\t\t\t\tconsumeMultiLineComment();\r\n\t\t\t\ttype = COMMENT;\r\n\t\t\t} else {\r\n\t\t\t\tconsumeStringLiteral();\r\n\t\t\t\ttype = LITERAL;\r\n\t\t\t}\r\n\t\t} else if (LL(0) == '\\'') {\r\n\t\t\tconsumeCharacterLiteral();\r\n\t\t\ttype = LITERAL;\r\n\t\t} else {\r\n\t\t\tconsumeCharacter();\r\n\t\t}\r\n\t\tString t = text.substring(oldPos, pos);\r\n\t\tif (type == PLAIN) {\r\n\t\t\tif (keywords.get(t) != null)\r\n\t\t\t\ttype = KEYWORD;\r\n\t\t}\r\n\t\treturn new JavaToken(t, off + oldPos, type);\r\n\t}",
"@Nonnull\n @SuppressWarnings(\"unchecked\")\n public static <T extends Word> T parse(Type type, String line) {\n\n String[] parsedParts = line.split(\"[ ]*,[ ]*\");\n ArrayList<String> parts = new ArrayList<>(parsedParts.length);\n for (String part : parsedParts) {\n parts.add(part.replace('_',' '));\n }\n\n Preconditions.checkState(parts.size() > 0, \"Did not find word with attributes: {}\", line);\n LOGGER.trace(\"Parsing type={} with line={}\", type, line);\n final T word;\n switch(type) {\n case Pronoun:\n word = (T)new Pronoun(parts);\n break;\n\n case Conjunction:\n word = (T)new Conjunction(parts);\n break;\n\n case Noun:\n word = (T)new Noun(parts);\n break;\n\n case Adjective:\n word = (T)new Adjective(parts);\n break;\n\n case Verb:\n word = (T)new Verb(parts);\n break;\n\n case Adverb:\n word = (T)new Adverb(parts);\n break;\n\n case Preposition:\n word = (T)new Preposition(parts);\n break;\n\n default:\n word = (T)new Text(parts);\n }\n return word;\n }",
"public LexicalToken(TokenType type) {\n\t\tthis.type = type;\n\t}",
"public void setTerm(Expression term) {\n this.term = term;\n }",
"public VocabularyTerms() {}",
"private Token token(final TermToken tt) {\n return tt.hasLexicalToken() ? tt.token().token() : null;\n }",
"public VariableToken(String text) {\n super(text);\n }",
"void tokenize(TextDocument document, TokenFactory tokens) throws IOException;",
"public String getTerm(){\n return this.term;\n }",
"public Token(char value, TokenType type, int lineNumber) {\n\t\tthis.value = String.valueOf(value);\n\t\tthis.type = type;\n\t\tthis.lineNumber = lineNumber;\n\t\tthis.numVal = 0;\n\t\tthis.wordVal = null;\n\t}",
"private Token basicNextWordToken() {\n\t\t \n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\twhile(currentIndex < data.length) {\n\t\t\t\t\n\t\t\tif( Character.isLetter(data[currentIndex]) ) {\n\t\t\t\tsb.append(data[currentIndex]);\n\t\t\t\t\n\t\t\t} else if (data[currentIndex] == '\\\\') {\n\t\t\t\t\t\n\t\t\t\t//the following condition is here to ensure that the '\\' char is\n\t\t\t\t//not the last element in the data array, or that the char after\n\t\t\t\t//the '\\' is not a letter because that is the invalid escape\n\t\t\t\tif(currentIndex + 1 >= data.length || \n\t\t\t\t\t\tCharacter.isLetter(data[currentIndex + 1])) {\n\t\t\t\t\t\n\t\t\t\t\tthrow new LexerException(\"Invalid escape sequence!\");\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcurrentIndex++;\n\t\t\t\tsb.append(data[currentIndex]);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t}\n\t\t\tcurrentIndex++;\n\t\t}\n\t\t\n\t\treturn new Token(TokenType.WORD, sb.toString());\n\t }",
"private static String handleNonPhraseToken(String stringPart) {\r\n // Set of final terms to be used (no empty elements, right syntax of index fields)\r\n ArrayList <String> terms = new ArrayList <String> ();\r\n \r\n /** Case Index field **/\r\n if(stringPart.contains(\"[\") | stringPart.contains(\"[\")){ // at least an Index field contained here\r\n //separate brackets for term with one space (extra spaces dont matter, trim() is used later)\r\n stringPart = stringPart.replace(\"[\", \" [\");\r\n stringPart = stringPart.replace(\"]\", \"] \");\r\n }\r\n\r\n /** Case Bag of terms **/\r\n //replace space with AND (change default operator to match pubMed's)\r\n // No need for this if setDefaultOperator(QueryParser.Operator.AND) is used\r\n \r\n String[] tokens = stringPart.split(\"\\\\s\");\r\n if(tokens.length > 0){ \r\n for(int i = 1 ; i < tokens.length ; i++){\r\n tokens[i] = tokens[i].trim();\r\n /* Case index field [fieldName] */\r\n if(tokens[i].startsWith(\"[\") & tokens[i].endsWith(\"]\")){\r\n tokens[i] = tokens[i].replace(\"[\",\"\");// clean field name from brackets\r\n tokens[i] = tokens[i].replace(\"]\",\"\");// clean field name from brackets\r\n //Add index field as prefix to previus (not empty) term (as opening index fields handled separately, this index field should not be the first term of string part)\r\n int tmp = i-1;\r\n boolean perviusTermFound = false;\r\n while(!perviusTermFound & tmp >= 0){\r\n if(!tokens[tmp].equals(\"\")){\r\n perviusTermFound = true;\r\n //TO DO : handle wrong syntax (e.g. ... AND [ArticleTitle])\r\n String luceneField = supportedIndexFields.get(tokens[i]);\r\n if(luceneField != null){\r\n tokens[tmp] = luceneField + \":\" + tokens[tmp];\r\n } // else : Lucene counterpart not found, unsupported field - do nothing\r\n } else {\r\n tmp--;\r\n }\r\n }\r\n //Empty field to not be added as a search term in query\r\n tokens[i] = \"\";\r\n } \r\n \r\n /*\r\n \r\n else if(!tokens[i].equals(\"AND\") & !tokens[i].equals(\"\")) {\r\n terms.add(tokens[i]);\r\n }\r\n */\r\n }\r\n }\r\n \r\n String luceneQueryPart = \"\";\r\n boolean notWaiting = false;\r\n boolean orWaiting = false;\r\n for(int i = 0 ; i < tokens.length ; i++){\r\n\r\n if(!tokens[i].equals(\"AND\") & !tokens[i].equals(\"\")){\r\n //in case of AND nothing should happen, it is the default operator\r\n //empty elements are also ignored as useless\r\n \r\n if(!tokens[i].equals(\"NOT\") & !tokens[i].equals(\"OR\") ){ // it's not an operator, it's a term\r\n \r\n if(!luceneQueryPart.endsWith(\" OR \") & !luceneQueryPart.endsWith(\" -\") ) { \r\n luceneQueryPart += \" +\"; \r\n } \r\n luceneQueryPart += tokens[i];\r\n } else {\r\n if(tokens[i].equals(\"NOT\")) {\r\n luceneQueryPart += \" -\";\r\n }\r\n if(tokens[i].equals(\"OR\")){\r\n luceneQueryPart += \" OR \";\r\n }\r\n \r\n } \r\n } \r\n }\r\n \r\n return luceneQueryPart;\r\n }",
"public Token makeToken(String s, int startPosition, int endPosition) {\r\n if (s.equals(\"//\")) { // filter comment\r\n try {\r\n int oldLine = source.getLineno();\r\n do {\r\n ch = source.read();\r\n } while (oldLine == source.getLineno());\r\n } catch (Exception e) {\r\n atEOF = true;\r\n }\r\n return nextToken();\r\n }\r\n Symbol sym = Symbol.symbol(s, Tokens.BogusToken); // be sure it's a valid token\r\n if (sym == null) {\r\n System.out.println(\"******** illegal character: \" + s);\r\n atEOF = true;\r\n return nextToken();\r\n }\r\n return new Token(startPosition, endPosition, sym);\r\n }",
"abstract public TermPositions termPositions(Term t) throws IOException;",
"public Token(Token other) {\n __isset_bitfield = other.__isset_bitfield;\n this.tokenIndex = other.tokenIndex;\n if (other.isSetText()) {\n this.text = other.text;\n }\n if (other.isSetTextSpan()) {\n this.textSpan = new edu.jhu.hlt.concrete.TextSpan(other.textSpan);\n }\n if (other.isSetRawTextSpan()) {\n this.rawTextSpan = new edu.jhu.hlt.concrete.TextSpan(other.rawTextSpan);\n }\n if (other.isSetAudioSpan()) {\n this.audioSpan = new edu.jhu.hlt.concrete.AudioSpan(other.audioSpan);\n }\n }"
]
| [
"0.80816525",
"0.7263781",
"0.7089128",
"0.69994044",
"0.61734027",
"0.6164655",
"0.60794884",
"0.6029235",
"0.5991199",
"0.5980423",
"0.5913732",
"0.59059703",
"0.58396006",
"0.58141065",
"0.57752246",
"0.5744346",
"0.57161814",
"0.5696067",
"0.5685154",
"0.56746113",
"0.56655043",
"0.56336296",
"0.5630027",
"0.5621061",
"0.55664545",
"0.5561139",
"0.5551699",
"0.55371076",
"0.55152327",
"0.547905",
"0.5478101",
"0.5463115",
"0.5453541",
"0.5448716",
"0.5436143",
"0.5430926",
"0.54112935",
"0.5402525",
"0.53951454",
"0.538505",
"0.53815866",
"0.53784525",
"0.5377776",
"0.53767437",
"0.53753215",
"0.53580886",
"0.5351928",
"0.53495085",
"0.53394294",
"0.53331417",
"0.5325876",
"0.5322216",
"0.5315341",
"0.52965593",
"0.5290759",
"0.528418",
"0.5255631",
"0.52553767",
"0.52486783",
"0.5230901",
"0.52215695",
"0.52142084",
"0.5213886",
"0.51924664",
"0.5188982",
"0.51841164",
"0.51837856",
"0.517869",
"0.51783293",
"0.51767606",
"0.51760215",
"0.51756936",
"0.5164995",
"0.51533085",
"0.5152305",
"0.51519763",
"0.51471955",
"0.51361823",
"0.51247096",
"0.51184416",
"0.5109911",
"0.51087797",
"0.51064825",
"0.50922525",
"0.5081522",
"0.5080558",
"0.5063031",
"0.5051689",
"0.5047884",
"0.50406855",
"0.5039377",
"0.50381726",
"0.5036044",
"0.50247633",
"0.5021532",
"0.5021164",
"0.5012327",
"0.50068283",
"0.500631",
"0.5004613"
]
| 0.76121134 | 1 |
Constructs a Token with the given text, start and end offsets, & type. NOTE: for better indexing speed you should instead use the char[] termBuffer methods to set the term text. | public Token(String text, int start, int end, String typ) {
termText = text;
startOffset = start;
endOffset = end;
type = typ;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Token(String text, int start, int end) {\n termText = text;\n startOffset = start;\n endOffset = end;\n }",
"public Token(String text, int start, int end, int flags) {\n termText = text;\n startOffset = start;\n endOffset = end;\n this.flags = flags;\n }",
"private Token createToken(\n String type, String val, int start, int end) {\n return new Token(type, val, start, end);\n }",
"public Token(int start, int end, String typ) {\n startOffset = start;\n endOffset = end;\n type = typ;\n }",
"public Token(int start, int end) {\n startOffset = start;\n endOffset = end;\n }",
"private Token(TokenType type, Range range, Range textRange, String id, String match) {\r\n \t\t\tsuper();\r\n \t\t\tthis.type = type;\r\n \t\t\tthis.range = range;\r\n \t\t\tthis.textRange = textRange == null ? range : textRange;\r\n \t\t\tthis.id = id;\r\n //\t\t\tthis.match = match;\r\n \t\t}",
"public Token(int start, int end, int flags){\n startOffset = start;\n endOffset = end;\n this.flags = flags;\n }",
"public Token(TokenType type) {\n\t\tthis.type = type;\n\t\tthis.spelling = type.getSpelling();\n\t}",
"Token(Type ttype, String v, int p, int l) {\n type = ttype;\n value = v;\n pos = p;\n line = l;\n }",
"public Token(int start)\n {\n this.start = start;\n }",
"public Token getTokenList(Segment text, int initialTokenType, int startOffset) {\n\n\t\tresetTokenList();\n\t\tthis.offsetShift = -text.offset + startOffset;\n\n\t\t// Start off in the proper state.\n\t\tint state = Token.NULL;\n\t\tswitch (initialTokenType) {\n\t\t\tcase Token.COMMENT_MULTILINE:\n\t\t\t\tstate = MLC;\n\t\t\t\tstart = text.offset;\n\t\t\t\tbreak;\n\t\t\tcase Token.COMMENT_DOCUMENTATION:\n\t\t\t\tstate = DOCCOMMENT;\n\t\t\t\tstart = text.offset;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tstate = Token.NULL;\n\t\t}\n\n\t\ts = text;\n\t\ttry {\n\t\t\tyyreset(zzReader);\n\t\t\tyybegin(state);\n\t\t\treturn yylex();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t\treturn new TokenImpl();\n\t\t}\n\n\t}",
"public Token(String content, TokenType type) {\n\t\tthis.content = content;\n\t\tthis.type = type;\n\t}",
"public Token getTokenList(Segment text, int initialTokenType, int startOffset) {\r\n\r\n\t\tresetTokenList();\r\n\t\tthis.offsetShift = -text.offset + startOffset;\r\n\r\n\t\t// Start off in the proper state.\r\n\t\tint state = Token.NULL;\r\n\t\tswitch (initialTokenType) {\r\n\t\t\tcase Token.LITERAL_STRING_DOUBLE_QUOTE:\r\n\t\t\t\tstate = STRING;\r\n\t\t\t\tstart = text.offset;\r\n\t\t\t\tbreak;\r\n\t\t\tcase Token.LITERAL_CHAR:\r\n\t\t\t\tstate = CHAR;\r\n\t\t\t\tstart = text.offset;\r\n\t\t\t\tbreak;\r\n\t\t\tcase Token.COMMENT_MULTILINE:\r\n\t\t\t\tstate = MLC;\r\n\t\t\t\tstart = text.offset;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tstate = Token.NULL;\r\n\t\t}\r\n\r\n\t\ts = text;\r\n\t\ttry {\r\n\t\t\tyyreset(zzReader);\r\n\t\t\tyybegin(state);\r\n\t\t\treturn yylex();\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tioe.printStackTrace();\r\n\t\t\treturn new TokenImpl();\r\n\t\t}\r\n\r\n\t}",
"private void addToken(int start, int end, int tokenType) {\r\n\t\tint so = start + offsetShift;\r\n\t\taddToken(zzBuffer, start,end, tokenType, so);\r\n\t}",
"public Token getTokenList(Segment text, int initialTokenType, int startOffset) {\n\n\t\tresetTokenList();\n\t\tthis.offsetShift = -text.offset + startOffset;\n\n\t\t// Start off in the proper state.\n\t\tint state = Token.NULL;\n\t\tswitch (initialTokenType) {\n\t\t\tcase Token.COMMENT_MULTILINE:\n\t\t\t\tstate = MLC;\n\t\t\t\tstart = text.offset;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tstate = Token.NULL;\n\t\t}\n\n\t\ts = text;\n\t\ttry {\n\t\t\tyyreset(zzReader);\n\t\t\tyybegin(state);\n\t\t\treturn yylex();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t\treturn new TokenImpl();\n\t\t}\n\n\t}",
"private void addToken(int start, int end, int tokenType) {\n\t\tint so = start + offsetShift;\n\t\taddToken(zzBuffer, start,end, tokenType, so);\n\t}",
"private void addToken(int start, int end, int tokenType) {\n\t\tint so = start + offsetShift;\n\t\taddToken(zzBuffer, start,end, tokenType, so, false);\n\t}",
"protected static void addToken(String textStr, int tokenBegin,\n\t\t\tint tokenEnd, int tokenCount, List<Token> tokens) {\n\t\tToken token;\n\t\ttoken= new Token();\n\t\ttoken.setCharacterOffsetBegin(tokenBegin);\n\t\ttoken.setCharacterOffsetEnd(tokenEnd); \n\t\ttoken.setIndex(tokenCount);\n\t\tString word= textStr.substring(tokenBegin, tokenEnd);\n\t\ttoken.setWord(word);\n\t\ttokens.add(token);\n\t}",
"public Token(TokenType type, String spelling) {\n\t\tthis.type = type;\n\t\tthis.spelling = spelling;\n\t}",
"@Override\r\n\tpublic void addToken(char[] array, int start, int end, int tokenType, int startOffset) {\r\n\t\tsuper.addToken(array, start,end, tokenType, startOffset);\r\n\t\tzzStartRead = zzMarkedPos;\r\n\t}",
"public Token(Type t, String c) {\r\n this.t = t;\r\n this.c = c;\r\n }",
"@Override\n\tpublic void addToken(char[] array, int start, int end, int tokenType, int startOffset) {\n\t\tsuper.addToken(array, start,end, tokenType, startOffset);\n\t\tzzStartRead = zzMarkedPos;\n\t}",
"@Override\r\n\tpublic Token createToken() {\n\t\tToken token = new Token();\r\n\t\treturn token;\r\n\t}",
"private void addToken(TokenType type, Object literal) {\n String text = source.substring(start, current);\n tokens.add(new Token(type, text, literal, line));\n }",
"public Token (String token, int position, int marker) {\n this.tokenString = token;\n this.position = position;\n this.marker = marker; \n }",
"public Tokenizer(String text) {\n this.tokens = new Vector<TokenNode>();\n text = TextPreprocessor.removeNoisySpaces(text);\n createTokens(text);\n }",
"private void createTokens(String text) {\n int i;\n StringTokenizer sTokenizer = new StringTokenizer(text, \" \\n\", true);\n String tok;\n TokenNode node;\n String grWord = \"\\\\p{InGreek}*\";\n String enWord = \"[a-zA-Z]*\";\n String number = \"[0-9]*\";\n String prevChar = \"\";\n // The values of prevCharsType and currCharType are:\n // 0. nothing\n // 1. greek character\n // 2. english character\n // 3. digit\n // 4. dot\n // 5. other\n int prevCharsType, currCharType;\n String prevChars;\n char currChar;\n\n while (sTokenizer.hasMoreTokens()) {\n tok = sTokenizer.nextToken();\n if ((tok.compareTo(\" \") == 0) || (tok.compareTo(\"\\n\") == 0)) {\n prevChar = tok;\n } // if\n else {\n // If tok contains only one token, that is if tok is greek word or\n // english word or a number.\n if (Pattern.matches(grWord, tok) || Pattern.matches(enWord, tok) ||\n Pattern.matches(number, tok)) {\n node = new TokenNode(tok, false, prevChar);\n tokens.add(node);\n } // if\n else {\n prevCharsType = 0;\n prevChars = \"\";\n // For each characer of tok.\n for (i = 0; i < tok.length(); i++) {\n currChar = tok.charAt(i);\n // The type of currChar is...\n if (isGrLetter(currChar)) {\n currCharType = 1;\n } // if\n else if (isEnLetter(currChar)) {\n currCharType = 2;\n } // else if\n else if (isDigit(currChar)) {\n currCharType = 3;\n } // else if\n else if (currChar == '.') {\n currCharType = 4;\n } // else\n else {\n currCharType = 5;\n } // else\n\n // If currCharType is same as previousCharsType, add currChar to\n // prevChars. This is the case where prevCharsType is:\n // 1. Greek character\n // 2. English character\n // 3. Digit\n if (currCharType == prevCharsType) {\n prevChars = prevChars.concat(String.valueOf(currChar));\n } // if\n else {\n if (prevCharsType != 0) {\n node = new TokenNode(prevChars, false, prevChar);\n prevChar = \"\";\n tokens.add(node);\n } // if\n if (currCharType == 5) {\n node = new TokenNode(String.valueOf(currChar), false, prevChar);\n prevChar = \"\";\n tokens.add(node);\n prevChars = \"\";\n prevCharsType = 0;\n } // if\n else if (currCharType == 4) {\n if ( (i == (tok.length() - 1)) || (i == (tok.length() - 2))) {\n node = new TokenNode(String.valueOf(currChar), false, prevChar);\n } // if\n else {\n char ch1 = tok.charAt(i + 1);\n char ch2 = tok.charAt(i + 2);\n if ( (ch1 == '\\\\') && (ch2 == 'y')) {\n node = new TokenNode(String.valueOf(currChar), true, prevChar);\n i += 2;\n } // if\n else {\n if ( (ch1 == '\\\\') && (ch2 == 'n')) {\n i += 2;\n } // if\n node = new TokenNode(String.valueOf(currChar), false, prevChar);\n } // else\n } // else if\n\n prevChar = \"\";\n tokens.add(node);\n prevChars = \"\";\n prevCharsType = 0;\n } // else if\n // If currCharType is:\n // 1. Greek character\n // 2. English character\n // 3. Digit\n else {\n prevChars = String.valueOf(currChar);\n prevCharsType = currCharType;\n } // else\n } // else\n } // for\n if (prevCharsType != 0) {\n node = new TokenNode(prevChars, false, \"\");\n tokens.add(node);\n } // if\n } // else\n } // else\n } // while\n }",
"public LexicalToken(TokenType type) {\n\t\tthis.type = type;\n\t}",
"public Token createToken(TokenType token, String sequence, int precedence) {\n return new Token(token, sequence, precedence);\n }",
"public Token(String tipo, String lexema){\n\t\tthis.tipo = tipo;\n\t\tthis.lexema = lexema;\n\t}",
"@Override\n public LeafElement createLeaf(IElementType type, CharSequence text) {\n\t\tLeafElement t;\n\t\tif ( type == ANTLRv4TokenTypes.TOKEN_ELEMENT_TYPES.get(ANTLRv4Lexer.RULE_REF) ) {\n\t\t\tt = new ParserRuleRefNode(type, text);\n\t\t}\n\t\telse if ( type == ANTLRv4TokenTypes.TOKEN_ELEMENT_TYPES.get(ANTLRv4Lexer.TOKEN_REF) ) {\n\t\t\tt = new LexerRuleRefNode(type, text);\n\t\t}\n\t\telse if ( type == ANTLRv4TokenTypes.TOKEN_ELEMENT_TYPES.get(ANTLRv4Lexer.STRING_LITERAL) ) {\n\t\t\tt = new StringLiteralElement(type, text);\n\t\t}\n\t\telse {\n\t\t\tt = new LeafPsiElement(type, text);\n\t\t}\n\t\treturn t;\n }",
"public Element compileTerm() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tString varName;\n\n\t\tElement termParent = document.createElement(\"term\");\n\n\t\ttoken = jTokenizer.returnTokenVal();\n\t\ttokenType = jTokenizer.tokenType();\n\n\t\t// Case 1: ( expression )\n\n\t\tif (token.equals(\"(\")) {\n\t\t\t// (\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\n\t\t\t// exp\n\t\t\tjTokenizer.advance();\n\t\t\ttermParent.appendChild(compileExpression());\n\n\t\t\t// )\n\t\t\tjTokenizer.advance();\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\n\t\t}\n\n\t\t// Case 2: unaryOp term\n\t\telse if (token.matches(\"\\\\-|~\")) {\n\n\t\t\t// unary op\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tString op = jTokenizer.returnTokenVal();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\t\n\t\t\t\n\t\t\t//Since it is postfix, the term comes first\n\t\t\t\n\t\t\t// term\n\t\t\tjTokenizer.advance();\n\t\t\ttermParent.appendChild(compileTerm());\n\n\t\t\t// appending the op\n\t\t\tif (op.equals(\"~\")) {\n\t\t\t\twriter.writeArithmetic(\"not\");\n\t\t\t} else {\n\t\t\t\twriter.writeArithmetic(\"neg\");\n\t\t\t}\n\n\t\t}\n\t\t\n\t\t// Any constant or keyword\n\t\telse if (tokenType.matches(\"keyword|integerConstant|stringConstant\")) {\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\t\n\t\t\t//pushing an integer constant\n\t\t\tif (tokenType.equals(\"integerConstant\")) {\n\t\t\t\twriter.writePush(\"constant\", Integer.parseInt(token));\t\n\t\t\t}\n\t\t\t//For string, have to iterate along the length of the string and call string.append\n\t\t\telse if (tokenType.equals(\"stringConstant\")) {\n\t\t\t\twriter.writePush(\"constant\", token.length());\n\t\t\t\twriter.writeCall(\"String.new\", 1);\n\n\t\t\t\tfor (int i = 0; i < token.length(); i++) {\n\t\t\t\t\twriter.writePush(\"constant\", (int) token.charAt(i));\n\t\t\t\t\twriter.writeCall(\"String.appendChar\", 2);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} \n\t\t\t//Pushing the keyword onto the stack, depending on what it is\n\t\t\telse if (tokenType.equals(\"keyword\")) {\n\t\t\t\tif (token.equals(\"true\")) {\n\t\t\t\t\twriter.writePush(\"constant\", 0);\n\t\t\t\t\twriter.writeArithmetic(\"not\");\n\t\t\t\t} else if (token.equals(\"this\")) {\n\t\t\t\t\twriter.writePush(\"pointer\", 0);\n\t\t\t\t} else if (token.equals(\"false\") || token.equals(\"null\")) {\n\t\t\t\t\twriter.writePush(\"constant\", 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Variable, Variable[expression] or subroutineCall\n\t\telse if (tokenType.equals(\"identifier\")) {\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\tvarName = jTokenizer.returnTokenVal();\n\t\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\t\tclone.advance();\n\t\t\ttoken = clone.returnTokenVal();\n\n\t\t\t// Case 1: Array dereferencing\n\t\t\tif (token.equals(\"[\")) {\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// push base id\n\t\t\t\twriter.writePush(symTable.lookup(varName).kind, symTable.lookup(varName).index);\n\n\t\t\t\t// Exp\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttermParent.appendChild(compileExpression());\n\n\t\t\t\t// ]\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// base + offset\n\t\t\t\twriter.writeArithmetic(\"add\");\n\n\t\t\t\t// pop into that\n\t\t\t\twriter.writePop(\"pointer\", 1);\n\t\t\t\t// push value into stack\n\t\t\t\twriter.writePush(\"that\", 0);\n\t\t\t}\n\n\t\t\t// Case 2: variable/class.subroutine call\n\t\t\telse if (token.equals(\".\")) {\n\n\t\t\t\tboolean method = false;\n\n\t\t\t\t// .\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// subroutine name\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tString subName = jTokenizer.returnTokenVal();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// (\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\tString firstName = varName;\n\t\t\t\t//Similar to the compileDo method, have to distinguish between\n\t\t\t\t//method and function\n\t\t\t\tif (symTable.lookup(firstName) != null) {\n\t\t\t\t\tmethod = true;\n\t\t\t\t\twriter.writePush(symTable.lookup(firstName).kind, symTable.lookup(firstName).index);\n\t\t\t\t\tvarName = symTable.lookup(firstName).type;\n\t\t\t\t}\n\t\t\t\t// expressionList\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tElement compileExpression = compileExpressionList();\n\t\t\t\tint nArgs = compileExpression.getChildNodes().getLength();\n\t\t\t\ttermParent.appendChild(compileExpression);\n\n\t\t\t\t// Checking if method or function\n\t\t\t\tif (method) {\n\t\t\t\t\tnArgs++;\n\t\t\t\t}\n\t\t\t\twriter.writeCall(varName + \".\" + subName, nArgs);\n\n\t\t\t\t// )\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\t\t\t}\n\n\t\t\t// Case 3: function call\n\t\t\telse if (token.equals(\"(\")) {\n\t\t\t\t// (\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// expression list\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tElement node = compileExpressionList();\n\t\t\t\tint nArgs = node.getChildNodes().getLength();\n\t\t\t\ttermParent.appendChild(node);\n\n\t\t\t\t// )\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// Writing the VML for a method call\n\t\t\t\twriter.writePush(\"pointer\", 0);\n\t\t\t\twriter.writeCall(className + \".\" + varName, ++nArgs);\n\t\t\t}\n\t\t\t// Case 4: Variable name.\n\t\t\telse {\n\t\t\t\twriter.writePush(symTable.lookup(varName).kind, symTable.lookup(varName).index);\n\t\t\t}\n\t\t}\n\t\treturn termParent;\n\t}",
"public Token(String terme, int tf) {\r\n\t\t\r\n\t\tthis.Terme = terme;\r\n\t\tthis.tf = tf;\r\n\t}",
"private String makeToken(int start, int end, boolean lowerCaseParam) {\n\n int sl = Math.max(1, (end - start));\n char c = '\\0';\n StringBuilder newToken = new StringBuilder(sl);\n\n for (int i = 0; i < sl; i++) {\n c = (lowerCaseParam)\n ? (Character.toLowerCase(this.inputString.charAt(i + start)))\n : this.inputString.charAt(i + start);\n newToken.append(c);\n }\n //String outputString = newToken.toString()+\"[\"+(start)+\":\"+(start+sl)+\"]\";\n String outputString = newToken.toString();\n return outputString;\n }",
"public Token makeToken(String s, int startPosition, int endPosition) {\r\n if (s.equals(\"//\")) { // filter comment\r\n try {\r\n int oldLine = source.getLineno();\r\n do {\r\n ch = source.read();\r\n } while (oldLine == source.getLineno());\r\n } catch (Exception e) {\r\n atEOF = true;\r\n }\r\n return nextToken();\r\n }\r\n Symbol sym = Symbol.symbol(s, Tokens.BogusToken); // be sure it's a valid token\r\n if (sym == null) {\r\n System.out.println(\"******** illegal character: \" + s);\r\n atEOF = true;\r\n return nextToken();\r\n }\r\n return new Token(startPosition, endPosition, sym);\r\n }",
"@Override\n\tpublic void addToken(char[] array, int start, int end, int tokenType,\n\t\t\t\t\t\tint startOffset, boolean hyperlink) {\n\t\tsuper.addToken(array, start,end, tokenType, startOffset, hyperlink);\n\t\tzzStartRead = zzMarkedPos;\n\t}",
"public ConcordanceToken(String text, String tag, int tokenNum, int partNum, String... stems) {\r\n\t\tsuper(text, tag, 0l, stems);\r\n\t\tif(tokenNum < 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tif(partNum < 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tthis.tokenNum = tokenNum;\r\n\t\tthis.partNum = partNum;\r\n\t}",
"QuoteTerm createQuoteTerm();",
"public Token newNumberToken(String number, int startPosition, int endPosition) {\r\n return new Token(startPosition, endPosition,\r\n Symbol.symbol(number, Tokens.INTeger));\r\n }",
"private Token(TokenType type, String value, Expression expression, TokenLine tokens) {\n TYPE = type;\n VALUE = value;\n EXPRESSION = expression;\n CHILDREN = tokens;\n }",
"public Token(char value, TokenType type, int lineNumber) {\n\t\tthis.value = String.valueOf(value);\n\t\tthis.type = type;\n\t\tthis.lineNumber = lineNumber;\n\t\tthis.numVal = 0;\n\t\tthis.wordVal = null;\n\t}",
"public SpellingError(Position startPosition, Position endPosition, String text, Object highlightTag) {\n this.text = text;\n this.startPosition = startPosition;\n this.endPosition = endPosition;\n this.highlightTag = highlightTag;\n }",
"public Word(String text) {\n\t\tsuper();\n\t\tthis.text = text;\n\t}",
"@NonNull\n public static PositionedGlyphs shapeTextRun(\n @NonNull char[] text, int start, int count, int contextStart, int contextCount,\n float xOffset, float yOffset, boolean isRtl, @NonNull Paint paint) {\n Preconditions.checkNotNull(text);\n Preconditions.checkNotNull(paint);\n return new PositionedGlyphs(\n nativeShapeTextRun(text, start, count, contextStart, contextCount, isRtl,\n paint.getNativeInstance()),\n xOffset, yOffset);\n }",
"public Token(Token other) {\n __isset_bitfield = other.__isset_bitfield;\n this.tokenIndex = other.tokenIndex;\n if (other.isSetText()) {\n this.text = other.text;\n }\n if (other.isSetTextSpan()) {\n this.textSpan = new edu.jhu.hlt.concrete.TextSpan(other.textSpan);\n }\n if (other.isSetRawTextSpan()) {\n this.rawTextSpan = new edu.jhu.hlt.concrete.TextSpan(other.rawTextSpan);\n }\n if (other.isSetAudioSpan()) {\n this.audioSpan = new edu.jhu.hlt.concrete.AudioSpan(other.audioSpan);\n }\n }",
"public Token newIdToken(String id, int startPosition, int endPosition) {\r\n return new Token(startPosition, endPosition, Symbol.symbol(id, Tokens.Identifier));\r\n }",
"public Token(TokenCode code, OpType otype, DataType dtype, int line, int column) {\n _code = code;\n _opType = otype;\n _dataType = dtype;\n _lineNumber = line;\n _columnNumber = column;\n }",
"public Word(String text, String postag) {\n\t\tsuper();\n\t\tthis.text = text;\n\t\tthis.postag = postag;\n\t}",
"private static void buildTokens (Document doc, String block, boolean[] newToken,\n int offset, int nextBlockStart, boolean firstBlock) {\n int tokenStart = 0;\n \tfor (int i=1; i<=block.length(); i++) {\n \t\tif(newToken[i]) {\n \t\t\tint tokenEnd = i;\n \t\t\tFeatureSet fs = null;\n \t\t\t// if number, compute value (set value=-1 if not a number)\n \t\t\tint value = 0;\n \t\t\tfor (int j=tokenStart; j<tokenEnd; j++) {\n \t\t\t\tif (Character.isDigit(block.charAt(j))) {\n \t\t\t\t\tvalue = (value * 10) + Character.digit(block.charAt(j),10);\n \t\t\t\t} else if (block.charAt(j) == ',' && value > 0) {\n \t\t\t\t\t// skip comma if preceded by non-zero digit\n \t\t\t\t} else {\n \t\t\t\t\tvalue = -1;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \t\t\tString type = specialTokenType.get(tokenStart + offset);\n \t\t\tif (type != null) {\n \t\t\t\tfs = new FeatureSet (\"type\", type);\n \t\t\t} else if (Character.isUpperCase(block.charAt(tokenStart))) {\n \t\t\t\tif (firstBlock ||\n \t\t\t\t // for ACE\n \t\t\t\t lastToken.equals(\"_\") ||\n \t\t\t\t lastToken.equals(\"\\\"\") || lastToken.equals(\"``\") || lastToken.equals(\"`\")) {\n \t\t\t\t\tfs = new FeatureSet (\"case\", \"forcedCap\");\n \t\t\t\t} else {\n \t\t\t\t\tfs = new FeatureSet (\"case\", \"cap\");\n \t\t\t\t}\n \t\t\t} else if (value >= 0) {\n \t\t\t\tfs = new FeatureSet (\"intvalue\", new Integer(value));\n \t\t\t} else {\n \t\t\t\tfs = new FeatureSet ();\n \t\t\t}\n \t\t\t// create token\n \t\t\tint spanEnd = (tokenEnd == block.length()) ? nextBlockStart : tokenEnd + offset;\n \t\t\tString tokenString = block.substring(tokenStart, tokenEnd);\n \t\t\trecordToken (doc, tokenString, tokenStart + offset, spanEnd, fs);\n \t\t\ttokenStart = tokenEnd;\n \t\t\tlastToken = tokenString;\n \t\t}\n \t}\n\t}",
"public static TokenizerFactory<Word> factory()\n/* */ {\n/* 111 */ return new ArabicTokenizerFactory(false);\n/* */ }",
"@Override\r\n\tpublic JavaToken nextToken() {\r\n\t\tif (!ready())\r\n\t\t\treturn null;\r\n\t\tint oldPos = this.pos;\r\n\t\tint type = PLAIN;\r\n\t\tif (LL(0) == ' ' || LL(0) == '\\t' || LL(0) == '\\n' || LL(0) == '\\r') {\r\n\t\t\tconsumeWhiteSpace();\r\n\t\t\ttype = WHITESPACE;\r\n\t\t} else if (Character.isJavaIdentifierStart(LL(0))) {\r\n\t\t\tconsumeIdentifier();\r\n\t\t} else if (LL(0) == '#') {\r\n\t\t\tconsumeSingleLineComment();\r\n\t\t\ttype = COMMENT;\r\n\t\t} else if (LL(0) == '\\\"') {\r\n\t\t\tif (LL(1) == '\\\"' && LL(2) == '\\\"') {\r\n\t\t\t\tconsumeMultiLineComment();\r\n\t\t\t\ttype = COMMENT;\r\n\t\t\t} else {\r\n\t\t\t\tconsumeStringLiteral();\r\n\t\t\t\ttype = LITERAL;\r\n\t\t\t}\r\n\t\t} else if (LL(0) == '\\'') {\r\n\t\t\tconsumeCharacterLiteral();\r\n\t\t\ttype = LITERAL;\r\n\t\t} else {\r\n\t\t\tconsumeCharacter();\r\n\t\t}\r\n\t\tString t = text.substring(oldPos, pos);\r\n\t\tif (type == PLAIN) {\r\n\t\t\tif (keywords.get(t) != null)\r\n\t\t\t\ttype = KEYWORD;\r\n\t\t}\r\n\t\treturn new JavaToken(t, off + oldPos, type);\r\n\t}",
"public Term(String t) {\n this.t = t;\n \n RepCheck();\n }",
"public Token(TokenCode code, OpType otype, DataType dtype, \n SymbolTableEntry entry, int line, int column) {\n _code = code;\n _opType = otype;\n _dataType = dtype;\n _symbolTableEntry = entry;\n _lineNumber = line;\n _columnNumber = column;\n }",
"Text createText();",
"public Lexer(String text) {\n\t\tif(text == null) {\n\t\t\tthrow new IllegalArgumentException(\"The argument must not be null!\");\n\t\t\t\n\t\t}\n\t\tdata = text.toCharArray();\n\t\tcurrentIndex = 0;\n\t}",
"public VariableToken(String text) {\n super(text);\n }",
"private void addToken(int tokenType) {\r\n\t\taddToken(zzStartRead, zzMarkedPos-1, tokenType);\r\n\t}",
"public Lexer(String text) {\n this.data = text.toCharArray();\n this.currentIndex = 0;\n this.state = LexerState.TEXT;\n }",
"private Token () { }",
"private void addToken(int tokenType) {\n\t\taddToken(zzStartRead, zzMarkedPos-1, tokenType);\n\t}",
"private void addToken(int tokenType) {\n\t\taddToken(zzStartRead, zzMarkedPos-1, tokenType);\n\t}",
"public Token setText(java.lang.String text) {\n this.text = text;\n return this;\n }",
"private static void findTokensByPattern (Document doc, String text, int start, int end) {\n\tMatcher emailMatcher = emailPat.matcher(text).region(start,end);\n\tspecialTokenEnd = new HashMap<Integer, Integer>();\n\tspecialTokenType = new HashMap<Integer, String>();\n\twhile (emailMatcher.find()) {\n\t\tint tokenStart = emailMatcher.start();\n\t\tint tokenEnd = emailMatcher.end();\n\t\tspecialTokenEnd.put(tokenStart, tokenEnd);\n\t\tspecialTokenType.put(tokenStart, \"email\");\n\t}\n\tMatcher urlMatcher = urlPat.matcher(text).region(start,end);\n\twhile (urlMatcher.find()) {\n\t\tint tokenStart = urlMatcher.start();\n\t\tint tokenEnd = urlMatcher.end();\n\t\tspecialTokenEnd.put(tokenStart, tokenEnd);\n\t\tspecialTokenType.put(tokenStart, \"url\");\n\t}\n}",
"public Tokenizer() {\r\n tokenList = new ArrayList<>();\r\n\r\n mathOperations = new ArrayList<>(5);\r\n mathOperations.add(\"+\");\r\n mathOperations.add(\"-\");\r\n mathOperations.add(\"*\");\r\n mathOperations.add(\"/\");\r\n mathOperations.add(\"%\");\r\n theBuilder = new TokenBuilder(\"\\\\s+\", mathOperations);\r\n }",
"public void addWord(int id, int start, int length, int[] type);",
"public ConceptToken(String token) {\n _multiToken = false;\n _text = \"\";\n _tokens = new String[]{token};\n }",
"public static Symbol atom(String text)\r\n\t{\r\n\t\tint linepos = line_;\r\n\t\tint charpos = char_;\r\n\t\tint colpos = col_;\r\n\t\tscan(text);\r\n\t\tToken token = new Token(fname, text, linepos, charpos, colpos);\r\n\t\tif (keywords.get(text) != null)\r\n\t\t{\r\n\t\t\tint type = keywords.get(text);\r\n\t\t\treturn new Symbol(type, linepos, colpos, token);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn new Symbol(sym.ATOM, linepos, colpos, token);\r\n\t\t}\r\n\t}",
"public Tokenizer() {\n tokenInfos = new LinkedList<TokenInfo>();\n tokens = new LinkedList<Token>();\n\n }",
"public WordTokenizer( char[] texts ) {\n\t\t// this constructor will tokenize the input texts (usually it is the char array for a whole document)\n\t\t\n\t\tString s=String.valueOf(texts);//convert character array to string\n\t\twords = s.split(\"\\\\W+\");//split string through various character\n\t\t// \\W means all the demoninate except [a-zA-Z0-9]\n\t}",
"public Sentence(int addr, TOP_Type type) {\n super(addr, type);\n readObject();\n }",
"private Text createText(String text, int offset) {\n\t\tText res = new Text(text);\n\t\tres.setFont(new Font(\"Minecraftia\", 60));\n\t\tres.setFill(Color.YELLOW);\n\t\tres.getTransforms().add(new Rotate(-50, 300, 200, 20, Rotate.X_AXIS));\n\t\tres.setX(canvas.getWidth() / 2);\n\t\tres.setY(canvas.getHeight() / 2 + offset);\n\t\tres.setId(\"handCursor\");\n\t\tres.setOnMouseEntered(e -> {\n\t\t\tres.setText(\"> \" + res.getText() + \" <\");\n\t\t});\n\t\tres.setOnMouseExited(e -> {\n\t\t\tres.setText(res.getText().replaceAll(\"[<> ]\", \"\"));\n\t\t});\n\t\treturn res;\n\t}",
"public CitationMention newCitationMention(Document doc, String type, SpanList sp, SpanList headSp, String text) {\t\n\t\tSurfaceElement si = doc.getSurfaceElementFactory().createSurfaceElementIfNecessary(doc, sp, headSp, true);\n\t\tCitationMention men = new CitationMention(\"C\" + getNextId(CitationMention.class),type,sp,headSp,si);\n\t\tmen.setSurfaceElement(si);\n\t\tsi.addSemantics(men);\n\t\tdoc.addSemanticItem(men);\n\t\treturn men;\n\t}",
"public DocumentWordPosition() {}",
"private static TokenizerFactory<CoreLabel> initFactory(TokenizerType type, Properties props, String extraOptions) throws IllegalArgumentException{\n TokenizerFactory<CoreLabel> factory;\n String options = props.getProperty(\"tokenize.options\", null);\n\n // set it to the equivalent of both extraOptions and options\n // TODO: maybe we should always have getDefaultOptions() and\n // expect the user to turn off default options. That would\n // require all options to have negated options, but\n // currently there are some which don't have that\n if (options == null) {\n options = type.getDefaultOptions();\n }\n if (extraOptions != null) {\n if (extraOptions.endsWith(\",\")) {\n options = extraOptions + options;\n } else {\n options = extraOptions + ',' + options;\n }\n }\n\n switch(type) {\n case Spanish:\n factory = SpanishTokenizer.factory(new CoreLabelTokenFactory(), options);\n break;\n\n case French:\n factory = FrenchTokenizer.factory(new CoreLabelTokenFactory(), options);\n break;\n\n case Whitespace:\n boolean eolIsSignificant = Boolean.valueOf(props.getProperty(EOL_PROPERTY, \"false\"));\n eolIsSignificant = eolIsSignificant || Boolean.valueOf(props.getProperty(StanfordCoreNLP.NEWLINE_SPLITTER_PROPERTY, \"false\"));\n factory = new WhitespaceTokenizer.WhitespaceTokenizerFactory<>(new CoreLabelTokenFactory(), eolIsSignificant);\n break;\n\n case English:\n case German:\n factory = PTBTokenizer.factory(new CoreLabelTokenFactory(), options);\n break;\n\n case Unspecified:\n System.err.println(\"TokenizerAnnotator: No tokenizer type provided. Defaulting to PTBTokenizer.\");\n factory = PTBTokenizer.factory(new CoreLabelTokenFactory(), options);\n break;\n\n default:\n throw new IllegalArgumentException(\"No valid tokenizer type provided.\\n\" +\n \"Use -tokenize.language, -tokenize.class, or -tokenize.whitespace \\n\" +\n \"to specify a tokenizer.\");\n\n }\n return factory;\n }",
"public abstract Tokenizer getTokenizer();",
"void tokenize(TextDocument document, TokenFactory tokens) throws IOException;",
"public Word(Position position, CharSequence word) {\n this.position = position;\n this.word = word;\n }",
"@Override\n public Iterator<Token> iterator() {\n return new Iterator<Token>() {\n private int left;\n private int right;\n private TokenType type;\n\n @Override\n public void remove() {\n throw new UnsupportedOperationException();\n }\n\n @Override\n public boolean hasNext() {\n lex();\n return type != null;\n }\n\n @Override\n public Token next() {\n lex();\n if (type == null) {\n throw new NoSuchElementException();\n }\n Token t = new Token(type, left, right);\n left = right;\n right = -1;\n type = null;\n return t;\n }\n\n @SuppressWarnings(\"synthetic-access\")\n private void lex() {\n int n = content.length();\n while (type == null && left < n) {\n Matcher m = TOKEN.matcher(content);\n if (m.find(left)) {\n right = m.end();\n } else {\n // Do orphaned-surrogates cause this?\n throw new AssertionError(\"Index \" + left + \" in \" + content);\n }\n int cp = content.codePointAt(left);\n switch (cp) {\n case '\\t': case '\\n': case '\\r': case ' ':\n break;\n case '/':\n if (right - left == 1) {\n type = TokenType.PUNCTUATION;\n } else {\n type = null;\n if (preserveDocComments && left + 2 < right) {\n if (content.charAt(left + 1) == '*'\n && content.charAt(left + 2) == '*') {\n type = TokenType.DOC_COMMENT;\n }\n }\n }\n break;\n case '\"': case '\\'':\n type = TokenType.STRING;\n break;\n case '.':\n type = right - left == 1\n ? TokenType.PUNCTUATION : TokenType.NUMBER;\n break;\n case '0': case '1': case '2': case '3': case '4':\n case '5': case '6': case '7': case '8': case '9':\n type = TokenType.NUMBER;\n break;\n default:\n if (Character.isUnicodeIdentifierStart(cp) || cp == '$') {\n type = TokenType.WORD;\n right = left;\n do {\n right += Character.charCount(cp);\n } while (\n right < n\n && ((cp = content.codePointAt(right)) == '$'\n || Character.isUnicodeIdentifierPart(cp)));\n } else {\n type = TokenType.PUNCTUATION;\n }\n break;\n }\n if (type == null) {\n Preconditions.checkState(right > left);\n left = right;\n }\n }\n }\n };\n }",
"Literal createLiteral();",
"Literal createLiteral();",
"protected Token newToken(TokenPattern pattern,\n String image,\n int line,\n int column) {\n\n return new Token(pattern, image, line, column);\n }",
"private void addHyperlinkToken(int start, int end, int tokenType) {\n\t\tint so = start + offsetShift;\n\t\taddToken(zzBuffer, start,end, tokenType, so, true);\n\t}",
"private void addHyperlinkToken(int start, int end, int tokenType) {\n\t\tint so = start + offsetShift;\n\t\taddToken(zzBuffer, start,end, tokenType, so, true);\n\t}",
"GeneralTerm createGeneralTerm();",
"private CompleteTokenDefinition createNewToken(\r\n\t\t\tConcreteSyntax syntax,\r\n\t\t\tAntlrTokenDerivator tokenDerivator, \r\n\t\t\tPlaceholderInQuotes placeholder) {\r\n\t\t// a token definition must be created\r\n\t\tQuotedTokenDefinition newToken = ConcretesyntaxFactory.eINSTANCE.createQuotedTokenDefinition();\r\n\t\t\r\n\t\tString name = tokenDerivator.deriveTokenName(placeholder);\r\n\t\tnewToken.setName(name);\r\n\t\t\r\n\t\tString expression = tokenDerivator.deriveTokenExpression(placeholder);\r\n\t\tnewToken.setSynthesizedRegex(expression);\r\n\t\t\r\n\t\tnewToken.setPrefix(placeholder.getNormalizedPrefix());\r\n\t\tnewToken.setSuffix(placeholder.getNormalizedSuffix());\r\n\t\tnewToken.setEscapeCharacter(placeholder.getNormalizedEscapeCharacter());\r\n\t\t\r\n\t\tsyntax.getSyntheticTokens().add(newToken);\r\n\t\treturn newToken;\r\n\t}",
"public static TokenizerFactory<Word> factory()\n/* */ {\n/* 116 */ return new WhitespaceTokenizerFactory(false);\n/* */ }",
"speech_formatting.SegmentedTextOuterClass.TokenSegment getTokenSegment(int index);",
"public interface Tokenizer {\n\n List<Token> parse(String text);\n}",
"public String newToken(){\n String line = getLine(lines);\n String token = getToken(line);\n return token;\n }",
"void createLabelToken( String name, int id );",
"public Token() {\n }",
"private Token makeOneToken(String word) {\n Tokenizer tokenizer = new Tokenizer(new StringReader(word), keywords);;\n return tokenizer.next();\n }",
"public Token(String lexeme, int lineNum, int colNum){\r\n this.kind = \"ERROR\";\r\n this.lexeme = lexeme;\r\n this.lineNum = lineNum;\r\n this.colNum = colNum;\r\n }",
"public QueryLexer(String text) {\n\t\tthis.text = text.toCharArray();\n\t}",
"public TextPos() {\n this.value = 1;\n }",
"public TextExpression(String text) {\n this.text = text;\n }",
"@Override\n public List<Token> getTokens(String text) {\n TokenizerME tokenizerME = new TokenizerME(openNLPTokenizerModel);\n Span[] tokensPos = tokenizerME.tokenizePos(text);\n String[] tokens = tokenizerME.tokenize(text);\n List<Token> tokenList = new ArrayList<>();\n\n for (int i = 0; i < tokens.length; i++) {\n tokenList.add(new Token(tokens[i], tokensPos[i].getStart(), tokensPos[i].getEnd()));\n }\n\n return tokenList;\n }",
"public TextNode(String text) {\n\t\tthis.text = text;\n\t}",
"public void setTermText(String text) {\n termText = text;\n termBuffer = null;\n }",
"TypeLiteralExp createTypeLiteralExp();"
]
| [
"0.7862147",
"0.7690103",
"0.7584119",
"0.74259746",
"0.6415723",
"0.63828576",
"0.6295933",
"0.61477536",
"0.6046796",
"0.6001108",
"0.5919364",
"0.58720785",
"0.58587486",
"0.58274066",
"0.5802376",
"0.58006185",
"0.5782386",
"0.5777628",
"0.5733865",
"0.57092875",
"0.5707619",
"0.56508565",
"0.5646967",
"0.5614781",
"0.5601254",
"0.55525476",
"0.5541946",
"0.54897475",
"0.5484132",
"0.54712737",
"0.5461155",
"0.5441977",
"0.5383773",
"0.537611",
"0.5358222",
"0.5355406",
"0.5338304",
"0.5329977",
"0.5310539",
"0.5310051",
"0.52877766",
"0.5258385",
"0.5243434",
"0.52098817",
"0.5208699",
"0.5204943",
"0.52025795",
"0.51940954",
"0.5192233",
"0.51866585",
"0.5152471",
"0.51464957",
"0.51373553",
"0.51348335",
"0.51207894",
"0.5118977",
"0.5093427",
"0.50798917",
"0.5065664",
"0.5062596",
"0.5062596",
"0.5061203",
"0.50570124",
"0.5053116",
"0.5030122",
"0.50300825",
"0.5025956",
"0.5020537",
"0.50169253",
"0.5011215",
"0.5003041",
"0.49985066",
"0.4996909",
"0.49903667",
"0.49883008",
"0.49803454",
"0.4973791",
"0.49721155",
"0.49568725",
"0.49568725",
"0.49524444",
"0.4918906",
"0.4918906",
"0.49129006",
"0.49042505",
"0.48892075",
"0.48797172",
"0.48795748",
"0.48705482",
"0.4851708",
"0.48509753",
"0.48498464",
"0.48475197",
"0.48461613",
"0.4838574",
"0.48353398",
"0.4831883",
"0.4831069",
"0.48199844",
"0.48184144"
]
| 0.8349793 | 0 |
Constructs a Token with the given text, start and end offsets, & type. NOTE: for better indexing speed you should instead use the char[] termBuffer methods to set the term text. | public Token(String text, int start, int end, int flags) {
termText = text;
startOffset = start;
endOffset = end;
this.flags = flags;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Token(String text, int start, int end, String typ) {\n termText = text;\n startOffset = start;\n endOffset = end;\n type = typ;\n }",
"public Token(String text, int start, int end) {\n termText = text;\n startOffset = start;\n endOffset = end;\n }",
"private Token createToken(\n String type, String val, int start, int end) {\n return new Token(type, val, start, end);\n }",
"public Token(int start, int end, String typ) {\n startOffset = start;\n endOffset = end;\n type = typ;\n }",
"public Token(int start, int end) {\n startOffset = start;\n endOffset = end;\n }",
"private Token(TokenType type, Range range, Range textRange, String id, String match) {\r\n \t\t\tsuper();\r\n \t\t\tthis.type = type;\r\n \t\t\tthis.range = range;\r\n \t\t\tthis.textRange = textRange == null ? range : textRange;\r\n \t\t\tthis.id = id;\r\n //\t\t\tthis.match = match;\r\n \t\t}",
"public Token(int start, int end, int flags){\n startOffset = start;\n endOffset = end;\n this.flags = flags;\n }",
"public Token(TokenType type) {\n\t\tthis.type = type;\n\t\tthis.spelling = type.getSpelling();\n\t}",
"Token(Type ttype, String v, int p, int l) {\n type = ttype;\n value = v;\n pos = p;\n line = l;\n }",
"public Token(int start)\n {\n this.start = start;\n }",
"public Token getTokenList(Segment text, int initialTokenType, int startOffset) {\n\n\t\tresetTokenList();\n\t\tthis.offsetShift = -text.offset + startOffset;\n\n\t\t// Start off in the proper state.\n\t\tint state = Token.NULL;\n\t\tswitch (initialTokenType) {\n\t\t\tcase Token.COMMENT_MULTILINE:\n\t\t\t\tstate = MLC;\n\t\t\t\tstart = text.offset;\n\t\t\t\tbreak;\n\t\t\tcase Token.COMMENT_DOCUMENTATION:\n\t\t\t\tstate = DOCCOMMENT;\n\t\t\t\tstart = text.offset;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tstate = Token.NULL;\n\t\t}\n\n\t\ts = text;\n\t\ttry {\n\t\t\tyyreset(zzReader);\n\t\t\tyybegin(state);\n\t\t\treturn yylex();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t\treturn new TokenImpl();\n\t\t}\n\n\t}",
"public Token(String content, TokenType type) {\n\t\tthis.content = content;\n\t\tthis.type = type;\n\t}",
"public Token getTokenList(Segment text, int initialTokenType, int startOffset) {\r\n\r\n\t\tresetTokenList();\r\n\t\tthis.offsetShift = -text.offset + startOffset;\r\n\r\n\t\t// Start off in the proper state.\r\n\t\tint state = Token.NULL;\r\n\t\tswitch (initialTokenType) {\r\n\t\t\tcase Token.LITERAL_STRING_DOUBLE_QUOTE:\r\n\t\t\t\tstate = STRING;\r\n\t\t\t\tstart = text.offset;\r\n\t\t\t\tbreak;\r\n\t\t\tcase Token.LITERAL_CHAR:\r\n\t\t\t\tstate = CHAR;\r\n\t\t\t\tstart = text.offset;\r\n\t\t\t\tbreak;\r\n\t\t\tcase Token.COMMENT_MULTILINE:\r\n\t\t\t\tstate = MLC;\r\n\t\t\t\tstart = text.offset;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tstate = Token.NULL;\r\n\t\t}\r\n\r\n\t\ts = text;\r\n\t\ttry {\r\n\t\t\tyyreset(zzReader);\r\n\t\t\tyybegin(state);\r\n\t\t\treturn yylex();\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tioe.printStackTrace();\r\n\t\t\treturn new TokenImpl();\r\n\t\t}\r\n\r\n\t}",
"private void addToken(int start, int end, int tokenType) {\r\n\t\tint so = start + offsetShift;\r\n\t\taddToken(zzBuffer, start,end, tokenType, so);\r\n\t}",
"public Token getTokenList(Segment text, int initialTokenType, int startOffset) {\n\n\t\tresetTokenList();\n\t\tthis.offsetShift = -text.offset + startOffset;\n\n\t\t// Start off in the proper state.\n\t\tint state = Token.NULL;\n\t\tswitch (initialTokenType) {\n\t\t\tcase Token.COMMENT_MULTILINE:\n\t\t\t\tstate = MLC;\n\t\t\t\tstart = text.offset;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tstate = Token.NULL;\n\t\t}\n\n\t\ts = text;\n\t\ttry {\n\t\t\tyyreset(zzReader);\n\t\t\tyybegin(state);\n\t\t\treturn yylex();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t\treturn new TokenImpl();\n\t\t}\n\n\t}",
"private void addToken(int start, int end, int tokenType) {\n\t\tint so = start + offsetShift;\n\t\taddToken(zzBuffer, start,end, tokenType, so);\n\t}",
"private void addToken(int start, int end, int tokenType) {\n\t\tint so = start + offsetShift;\n\t\taddToken(zzBuffer, start,end, tokenType, so, false);\n\t}",
"protected static void addToken(String textStr, int tokenBegin,\n\t\t\tint tokenEnd, int tokenCount, List<Token> tokens) {\n\t\tToken token;\n\t\ttoken= new Token();\n\t\ttoken.setCharacterOffsetBegin(tokenBegin);\n\t\ttoken.setCharacterOffsetEnd(tokenEnd); \n\t\ttoken.setIndex(tokenCount);\n\t\tString word= textStr.substring(tokenBegin, tokenEnd);\n\t\ttoken.setWord(word);\n\t\ttokens.add(token);\n\t}",
"public Token(TokenType type, String spelling) {\n\t\tthis.type = type;\n\t\tthis.spelling = spelling;\n\t}",
"@Override\r\n\tpublic void addToken(char[] array, int start, int end, int tokenType, int startOffset) {\r\n\t\tsuper.addToken(array, start,end, tokenType, startOffset);\r\n\t\tzzStartRead = zzMarkedPos;\r\n\t}",
"public Token(Type t, String c) {\r\n this.t = t;\r\n this.c = c;\r\n }",
"@Override\n\tpublic void addToken(char[] array, int start, int end, int tokenType, int startOffset) {\n\t\tsuper.addToken(array, start,end, tokenType, startOffset);\n\t\tzzStartRead = zzMarkedPos;\n\t}",
"@Override\r\n\tpublic Token createToken() {\n\t\tToken token = new Token();\r\n\t\treturn token;\r\n\t}",
"private void addToken(TokenType type, Object literal) {\n String text = source.substring(start, current);\n tokens.add(new Token(type, text, literal, line));\n }",
"public Token (String token, int position, int marker) {\n this.tokenString = token;\n this.position = position;\n this.marker = marker; \n }",
"public Tokenizer(String text) {\n this.tokens = new Vector<TokenNode>();\n text = TextPreprocessor.removeNoisySpaces(text);\n createTokens(text);\n }",
"private void createTokens(String text) {\n int i;\n StringTokenizer sTokenizer = new StringTokenizer(text, \" \\n\", true);\n String tok;\n TokenNode node;\n String grWord = \"\\\\p{InGreek}*\";\n String enWord = \"[a-zA-Z]*\";\n String number = \"[0-9]*\";\n String prevChar = \"\";\n // The values of prevCharsType and currCharType are:\n // 0. nothing\n // 1. greek character\n // 2. english character\n // 3. digit\n // 4. dot\n // 5. other\n int prevCharsType, currCharType;\n String prevChars;\n char currChar;\n\n while (sTokenizer.hasMoreTokens()) {\n tok = sTokenizer.nextToken();\n if ((tok.compareTo(\" \") == 0) || (tok.compareTo(\"\\n\") == 0)) {\n prevChar = tok;\n } // if\n else {\n // If tok contains only one token, that is if tok is greek word or\n // english word or a number.\n if (Pattern.matches(grWord, tok) || Pattern.matches(enWord, tok) ||\n Pattern.matches(number, tok)) {\n node = new TokenNode(tok, false, prevChar);\n tokens.add(node);\n } // if\n else {\n prevCharsType = 0;\n prevChars = \"\";\n // For each characer of tok.\n for (i = 0; i < tok.length(); i++) {\n currChar = tok.charAt(i);\n // The type of currChar is...\n if (isGrLetter(currChar)) {\n currCharType = 1;\n } // if\n else if (isEnLetter(currChar)) {\n currCharType = 2;\n } // else if\n else if (isDigit(currChar)) {\n currCharType = 3;\n } // else if\n else if (currChar == '.') {\n currCharType = 4;\n } // else\n else {\n currCharType = 5;\n } // else\n\n // If currCharType is same as previousCharsType, add currChar to\n // prevChars. This is the case where prevCharsType is:\n // 1. Greek character\n // 2. English character\n // 3. Digit\n if (currCharType == prevCharsType) {\n prevChars = prevChars.concat(String.valueOf(currChar));\n } // if\n else {\n if (prevCharsType != 0) {\n node = new TokenNode(prevChars, false, prevChar);\n prevChar = \"\";\n tokens.add(node);\n } // if\n if (currCharType == 5) {\n node = new TokenNode(String.valueOf(currChar), false, prevChar);\n prevChar = \"\";\n tokens.add(node);\n prevChars = \"\";\n prevCharsType = 0;\n } // if\n else if (currCharType == 4) {\n if ( (i == (tok.length() - 1)) || (i == (tok.length() - 2))) {\n node = new TokenNode(String.valueOf(currChar), false, prevChar);\n } // if\n else {\n char ch1 = tok.charAt(i + 1);\n char ch2 = tok.charAt(i + 2);\n if ( (ch1 == '\\\\') && (ch2 == 'y')) {\n node = new TokenNode(String.valueOf(currChar), true, prevChar);\n i += 2;\n } // if\n else {\n if ( (ch1 == '\\\\') && (ch2 == 'n')) {\n i += 2;\n } // if\n node = new TokenNode(String.valueOf(currChar), false, prevChar);\n } // else\n } // else if\n\n prevChar = \"\";\n tokens.add(node);\n prevChars = \"\";\n prevCharsType = 0;\n } // else if\n // If currCharType is:\n // 1. Greek character\n // 2. English character\n // 3. Digit\n else {\n prevChars = String.valueOf(currChar);\n prevCharsType = currCharType;\n } // else\n } // else\n } // for\n if (prevCharsType != 0) {\n node = new TokenNode(prevChars, false, \"\");\n tokens.add(node);\n } // if\n } // else\n } // else\n } // while\n }",
"public LexicalToken(TokenType type) {\n\t\tthis.type = type;\n\t}",
"public Token createToken(TokenType token, String sequence, int precedence) {\n return new Token(token, sequence, precedence);\n }",
"public Token(String tipo, String lexema){\n\t\tthis.tipo = tipo;\n\t\tthis.lexema = lexema;\n\t}",
"@Override\n public LeafElement createLeaf(IElementType type, CharSequence text) {\n\t\tLeafElement t;\n\t\tif ( type == ANTLRv4TokenTypes.TOKEN_ELEMENT_TYPES.get(ANTLRv4Lexer.RULE_REF) ) {\n\t\t\tt = new ParserRuleRefNode(type, text);\n\t\t}\n\t\telse if ( type == ANTLRv4TokenTypes.TOKEN_ELEMENT_TYPES.get(ANTLRv4Lexer.TOKEN_REF) ) {\n\t\t\tt = new LexerRuleRefNode(type, text);\n\t\t}\n\t\telse if ( type == ANTLRv4TokenTypes.TOKEN_ELEMENT_TYPES.get(ANTLRv4Lexer.STRING_LITERAL) ) {\n\t\t\tt = new StringLiteralElement(type, text);\n\t\t}\n\t\telse {\n\t\t\tt = new LeafPsiElement(type, text);\n\t\t}\n\t\treturn t;\n }",
"public Element compileTerm() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tString varName;\n\n\t\tElement termParent = document.createElement(\"term\");\n\n\t\ttoken = jTokenizer.returnTokenVal();\n\t\ttokenType = jTokenizer.tokenType();\n\n\t\t// Case 1: ( expression )\n\n\t\tif (token.equals(\"(\")) {\n\t\t\t// (\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\n\t\t\t// exp\n\t\t\tjTokenizer.advance();\n\t\t\ttermParent.appendChild(compileExpression());\n\n\t\t\t// )\n\t\t\tjTokenizer.advance();\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\n\t\t}\n\n\t\t// Case 2: unaryOp term\n\t\telse if (token.matches(\"\\\\-|~\")) {\n\n\t\t\t// unary op\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tString op = jTokenizer.returnTokenVal();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\t\n\t\t\t\n\t\t\t//Since it is postfix, the term comes first\n\t\t\t\n\t\t\t// term\n\t\t\tjTokenizer.advance();\n\t\t\ttermParent.appendChild(compileTerm());\n\n\t\t\t// appending the op\n\t\t\tif (op.equals(\"~\")) {\n\t\t\t\twriter.writeArithmetic(\"not\");\n\t\t\t} else {\n\t\t\t\twriter.writeArithmetic(\"neg\");\n\t\t\t}\n\n\t\t}\n\t\t\n\t\t// Any constant or keyword\n\t\telse if (tokenType.matches(\"keyword|integerConstant|stringConstant\")) {\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\t\n\t\t\t//pushing an integer constant\n\t\t\tif (tokenType.equals(\"integerConstant\")) {\n\t\t\t\twriter.writePush(\"constant\", Integer.parseInt(token));\t\n\t\t\t}\n\t\t\t//For string, have to iterate along the length of the string and call string.append\n\t\t\telse if (tokenType.equals(\"stringConstant\")) {\n\t\t\t\twriter.writePush(\"constant\", token.length());\n\t\t\t\twriter.writeCall(\"String.new\", 1);\n\n\t\t\t\tfor (int i = 0; i < token.length(); i++) {\n\t\t\t\t\twriter.writePush(\"constant\", (int) token.charAt(i));\n\t\t\t\t\twriter.writeCall(\"String.appendChar\", 2);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} \n\t\t\t//Pushing the keyword onto the stack, depending on what it is\n\t\t\telse if (tokenType.equals(\"keyword\")) {\n\t\t\t\tif (token.equals(\"true\")) {\n\t\t\t\t\twriter.writePush(\"constant\", 0);\n\t\t\t\t\twriter.writeArithmetic(\"not\");\n\t\t\t\t} else if (token.equals(\"this\")) {\n\t\t\t\t\twriter.writePush(\"pointer\", 0);\n\t\t\t\t} else if (token.equals(\"false\") || token.equals(\"null\")) {\n\t\t\t\t\twriter.writePush(\"constant\", 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Variable, Variable[expression] or subroutineCall\n\t\telse if (tokenType.equals(\"identifier\")) {\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\tvarName = jTokenizer.returnTokenVal();\n\t\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\t\tclone.advance();\n\t\t\ttoken = clone.returnTokenVal();\n\n\t\t\t// Case 1: Array dereferencing\n\t\t\tif (token.equals(\"[\")) {\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// push base id\n\t\t\t\twriter.writePush(symTable.lookup(varName).kind, symTable.lookup(varName).index);\n\n\t\t\t\t// Exp\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttermParent.appendChild(compileExpression());\n\n\t\t\t\t// ]\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// base + offset\n\t\t\t\twriter.writeArithmetic(\"add\");\n\n\t\t\t\t// pop into that\n\t\t\t\twriter.writePop(\"pointer\", 1);\n\t\t\t\t// push value into stack\n\t\t\t\twriter.writePush(\"that\", 0);\n\t\t\t}\n\n\t\t\t// Case 2: variable/class.subroutine call\n\t\t\telse if (token.equals(\".\")) {\n\n\t\t\t\tboolean method = false;\n\n\t\t\t\t// .\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// subroutine name\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tString subName = jTokenizer.returnTokenVal();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// (\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\tString firstName = varName;\n\t\t\t\t//Similar to the compileDo method, have to distinguish between\n\t\t\t\t//method and function\n\t\t\t\tif (symTable.lookup(firstName) != null) {\n\t\t\t\t\tmethod = true;\n\t\t\t\t\twriter.writePush(symTable.lookup(firstName).kind, symTable.lookup(firstName).index);\n\t\t\t\t\tvarName = symTable.lookup(firstName).type;\n\t\t\t\t}\n\t\t\t\t// expressionList\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tElement compileExpression = compileExpressionList();\n\t\t\t\tint nArgs = compileExpression.getChildNodes().getLength();\n\t\t\t\ttermParent.appendChild(compileExpression);\n\n\t\t\t\t// Checking if method or function\n\t\t\t\tif (method) {\n\t\t\t\t\tnArgs++;\n\t\t\t\t}\n\t\t\t\twriter.writeCall(varName + \".\" + subName, nArgs);\n\n\t\t\t\t// )\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\t\t\t}\n\n\t\t\t// Case 3: function call\n\t\t\telse if (token.equals(\"(\")) {\n\t\t\t\t// (\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// expression list\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tElement node = compileExpressionList();\n\t\t\t\tint nArgs = node.getChildNodes().getLength();\n\t\t\t\ttermParent.appendChild(node);\n\n\t\t\t\t// )\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// Writing the VML for a method call\n\t\t\t\twriter.writePush(\"pointer\", 0);\n\t\t\t\twriter.writeCall(className + \".\" + varName, ++nArgs);\n\t\t\t}\n\t\t\t// Case 4: Variable name.\n\t\t\telse {\n\t\t\t\twriter.writePush(symTable.lookup(varName).kind, symTable.lookup(varName).index);\n\t\t\t}\n\t\t}\n\t\treturn termParent;\n\t}",
"public Token(String terme, int tf) {\r\n\t\t\r\n\t\tthis.Terme = terme;\r\n\t\tthis.tf = tf;\r\n\t}",
"private String makeToken(int start, int end, boolean lowerCaseParam) {\n\n int sl = Math.max(1, (end - start));\n char c = '\\0';\n StringBuilder newToken = new StringBuilder(sl);\n\n for (int i = 0; i < sl; i++) {\n c = (lowerCaseParam)\n ? (Character.toLowerCase(this.inputString.charAt(i + start)))\n : this.inputString.charAt(i + start);\n newToken.append(c);\n }\n //String outputString = newToken.toString()+\"[\"+(start)+\":\"+(start+sl)+\"]\";\n String outputString = newToken.toString();\n return outputString;\n }",
"public Token makeToken(String s, int startPosition, int endPosition) {\r\n if (s.equals(\"//\")) { // filter comment\r\n try {\r\n int oldLine = source.getLineno();\r\n do {\r\n ch = source.read();\r\n } while (oldLine == source.getLineno());\r\n } catch (Exception e) {\r\n atEOF = true;\r\n }\r\n return nextToken();\r\n }\r\n Symbol sym = Symbol.symbol(s, Tokens.BogusToken); // be sure it's a valid token\r\n if (sym == null) {\r\n System.out.println(\"******** illegal character: \" + s);\r\n atEOF = true;\r\n return nextToken();\r\n }\r\n return new Token(startPosition, endPosition, sym);\r\n }",
"@Override\n\tpublic void addToken(char[] array, int start, int end, int tokenType,\n\t\t\t\t\t\tint startOffset, boolean hyperlink) {\n\t\tsuper.addToken(array, start,end, tokenType, startOffset, hyperlink);\n\t\tzzStartRead = zzMarkedPos;\n\t}",
"public ConcordanceToken(String text, String tag, int tokenNum, int partNum, String... stems) {\r\n\t\tsuper(text, tag, 0l, stems);\r\n\t\tif(tokenNum < 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tif(partNum < 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tthis.tokenNum = tokenNum;\r\n\t\tthis.partNum = partNum;\r\n\t}",
"QuoteTerm createQuoteTerm();",
"public Token newNumberToken(String number, int startPosition, int endPosition) {\r\n return new Token(startPosition, endPosition,\r\n Symbol.symbol(number, Tokens.INTeger));\r\n }",
"private Token(TokenType type, String value, Expression expression, TokenLine tokens) {\n TYPE = type;\n VALUE = value;\n EXPRESSION = expression;\n CHILDREN = tokens;\n }",
"public Token(char value, TokenType type, int lineNumber) {\n\t\tthis.value = String.valueOf(value);\n\t\tthis.type = type;\n\t\tthis.lineNumber = lineNumber;\n\t\tthis.numVal = 0;\n\t\tthis.wordVal = null;\n\t}",
"public SpellingError(Position startPosition, Position endPosition, String text, Object highlightTag) {\n this.text = text;\n this.startPosition = startPosition;\n this.endPosition = endPosition;\n this.highlightTag = highlightTag;\n }",
"public Word(String text) {\n\t\tsuper();\n\t\tthis.text = text;\n\t}",
"@NonNull\n public static PositionedGlyphs shapeTextRun(\n @NonNull char[] text, int start, int count, int contextStart, int contextCount,\n float xOffset, float yOffset, boolean isRtl, @NonNull Paint paint) {\n Preconditions.checkNotNull(text);\n Preconditions.checkNotNull(paint);\n return new PositionedGlyphs(\n nativeShapeTextRun(text, start, count, contextStart, contextCount, isRtl,\n paint.getNativeInstance()),\n xOffset, yOffset);\n }",
"public Token(Token other) {\n __isset_bitfield = other.__isset_bitfield;\n this.tokenIndex = other.tokenIndex;\n if (other.isSetText()) {\n this.text = other.text;\n }\n if (other.isSetTextSpan()) {\n this.textSpan = new edu.jhu.hlt.concrete.TextSpan(other.textSpan);\n }\n if (other.isSetRawTextSpan()) {\n this.rawTextSpan = new edu.jhu.hlt.concrete.TextSpan(other.rawTextSpan);\n }\n if (other.isSetAudioSpan()) {\n this.audioSpan = new edu.jhu.hlt.concrete.AudioSpan(other.audioSpan);\n }\n }",
"public Token newIdToken(String id, int startPosition, int endPosition) {\r\n return new Token(startPosition, endPosition, Symbol.symbol(id, Tokens.Identifier));\r\n }",
"public Token(TokenCode code, OpType otype, DataType dtype, int line, int column) {\n _code = code;\n _opType = otype;\n _dataType = dtype;\n _lineNumber = line;\n _columnNumber = column;\n }",
"public Word(String text, String postag) {\n\t\tsuper();\n\t\tthis.text = text;\n\t\tthis.postag = postag;\n\t}",
"private static void buildTokens (Document doc, String block, boolean[] newToken,\n int offset, int nextBlockStart, boolean firstBlock) {\n int tokenStart = 0;\n \tfor (int i=1; i<=block.length(); i++) {\n \t\tif(newToken[i]) {\n \t\t\tint tokenEnd = i;\n \t\t\tFeatureSet fs = null;\n \t\t\t// if number, compute value (set value=-1 if not a number)\n \t\t\tint value = 0;\n \t\t\tfor (int j=tokenStart; j<tokenEnd; j++) {\n \t\t\t\tif (Character.isDigit(block.charAt(j))) {\n \t\t\t\t\tvalue = (value * 10) + Character.digit(block.charAt(j),10);\n \t\t\t\t} else if (block.charAt(j) == ',' && value > 0) {\n \t\t\t\t\t// skip comma if preceded by non-zero digit\n \t\t\t\t} else {\n \t\t\t\t\tvalue = -1;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \t\t\tString type = specialTokenType.get(tokenStart + offset);\n \t\t\tif (type != null) {\n \t\t\t\tfs = new FeatureSet (\"type\", type);\n \t\t\t} else if (Character.isUpperCase(block.charAt(tokenStart))) {\n \t\t\t\tif (firstBlock ||\n \t\t\t\t // for ACE\n \t\t\t\t lastToken.equals(\"_\") ||\n \t\t\t\t lastToken.equals(\"\\\"\") || lastToken.equals(\"``\") || lastToken.equals(\"`\")) {\n \t\t\t\t\tfs = new FeatureSet (\"case\", \"forcedCap\");\n \t\t\t\t} else {\n \t\t\t\t\tfs = new FeatureSet (\"case\", \"cap\");\n \t\t\t\t}\n \t\t\t} else if (value >= 0) {\n \t\t\t\tfs = new FeatureSet (\"intvalue\", new Integer(value));\n \t\t\t} else {\n \t\t\t\tfs = new FeatureSet ();\n \t\t\t}\n \t\t\t// create token\n \t\t\tint spanEnd = (tokenEnd == block.length()) ? nextBlockStart : tokenEnd + offset;\n \t\t\tString tokenString = block.substring(tokenStart, tokenEnd);\n \t\t\trecordToken (doc, tokenString, tokenStart + offset, spanEnd, fs);\n \t\t\ttokenStart = tokenEnd;\n \t\t\tlastToken = tokenString;\n \t\t}\n \t}\n\t}",
"public static TokenizerFactory<Word> factory()\n/* */ {\n/* 111 */ return new ArabicTokenizerFactory(false);\n/* */ }",
"@Override\r\n\tpublic JavaToken nextToken() {\r\n\t\tif (!ready())\r\n\t\t\treturn null;\r\n\t\tint oldPos = this.pos;\r\n\t\tint type = PLAIN;\r\n\t\tif (LL(0) == ' ' || LL(0) == '\\t' || LL(0) == '\\n' || LL(0) == '\\r') {\r\n\t\t\tconsumeWhiteSpace();\r\n\t\t\ttype = WHITESPACE;\r\n\t\t} else if (Character.isJavaIdentifierStart(LL(0))) {\r\n\t\t\tconsumeIdentifier();\r\n\t\t} else if (LL(0) == '#') {\r\n\t\t\tconsumeSingleLineComment();\r\n\t\t\ttype = COMMENT;\r\n\t\t} else if (LL(0) == '\\\"') {\r\n\t\t\tif (LL(1) == '\\\"' && LL(2) == '\\\"') {\r\n\t\t\t\tconsumeMultiLineComment();\r\n\t\t\t\ttype = COMMENT;\r\n\t\t\t} else {\r\n\t\t\t\tconsumeStringLiteral();\r\n\t\t\t\ttype = LITERAL;\r\n\t\t\t}\r\n\t\t} else if (LL(0) == '\\'') {\r\n\t\t\tconsumeCharacterLiteral();\r\n\t\t\ttype = LITERAL;\r\n\t\t} else {\r\n\t\t\tconsumeCharacter();\r\n\t\t}\r\n\t\tString t = text.substring(oldPos, pos);\r\n\t\tif (type == PLAIN) {\r\n\t\t\tif (keywords.get(t) != null)\r\n\t\t\t\ttype = KEYWORD;\r\n\t\t}\r\n\t\treturn new JavaToken(t, off + oldPos, type);\r\n\t}",
"public Term(String t) {\n this.t = t;\n \n RepCheck();\n }",
"public Token(TokenCode code, OpType otype, DataType dtype, \n SymbolTableEntry entry, int line, int column) {\n _code = code;\n _opType = otype;\n _dataType = dtype;\n _symbolTableEntry = entry;\n _lineNumber = line;\n _columnNumber = column;\n }",
"Text createText();",
"public Lexer(String text) {\n\t\tif(text == null) {\n\t\t\tthrow new IllegalArgumentException(\"The argument must not be null!\");\n\t\t\t\n\t\t}\n\t\tdata = text.toCharArray();\n\t\tcurrentIndex = 0;\n\t}",
"public VariableToken(String text) {\n super(text);\n }",
"private void addToken(int tokenType) {\r\n\t\taddToken(zzStartRead, zzMarkedPos-1, tokenType);\r\n\t}",
"public Lexer(String text) {\n this.data = text.toCharArray();\n this.currentIndex = 0;\n this.state = LexerState.TEXT;\n }",
"private Token () { }",
"private void addToken(int tokenType) {\n\t\taddToken(zzStartRead, zzMarkedPos-1, tokenType);\n\t}",
"private void addToken(int tokenType) {\n\t\taddToken(zzStartRead, zzMarkedPos-1, tokenType);\n\t}",
"public Token setText(java.lang.String text) {\n this.text = text;\n return this;\n }",
"private static void findTokensByPattern (Document doc, String text, int start, int end) {\n\tMatcher emailMatcher = emailPat.matcher(text).region(start,end);\n\tspecialTokenEnd = new HashMap<Integer, Integer>();\n\tspecialTokenType = new HashMap<Integer, String>();\n\twhile (emailMatcher.find()) {\n\t\tint tokenStart = emailMatcher.start();\n\t\tint tokenEnd = emailMatcher.end();\n\t\tspecialTokenEnd.put(tokenStart, tokenEnd);\n\t\tspecialTokenType.put(tokenStart, \"email\");\n\t}\n\tMatcher urlMatcher = urlPat.matcher(text).region(start,end);\n\twhile (urlMatcher.find()) {\n\t\tint tokenStart = urlMatcher.start();\n\t\tint tokenEnd = urlMatcher.end();\n\t\tspecialTokenEnd.put(tokenStart, tokenEnd);\n\t\tspecialTokenType.put(tokenStart, \"url\");\n\t}\n}",
"public Tokenizer() {\r\n tokenList = new ArrayList<>();\r\n\r\n mathOperations = new ArrayList<>(5);\r\n mathOperations.add(\"+\");\r\n mathOperations.add(\"-\");\r\n mathOperations.add(\"*\");\r\n mathOperations.add(\"/\");\r\n mathOperations.add(\"%\");\r\n theBuilder = new TokenBuilder(\"\\\\s+\", mathOperations);\r\n }",
"public ConceptToken(String token) {\n _multiToken = false;\n _text = \"\";\n _tokens = new String[]{token};\n }",
"public void addWord(int id, int start, int length, int[] type);",
"public static Symbol atom(String text)\r\n\t{\r\n\t\tint linepos = line_;\r\n\t\tint charpos = char_;\r\n\t\tint colpos = col_;\r\n\t\tscan(text);\r\n\t\tToken token = new Token(fname, text, linepos, charpos, colpos);\r\n\t\tif (keywords.get(text) != null)\r\n\t\t{\r\n\t\t\tint type = keywords.get(text);\r\n\t\t\treturn new Symbol(type, linepos, colpos, token);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn new Symbol(sym.ATOM, linepos, colpos, token);\r\n\t\t}\r\n\t}",
"public Tokenizer() {\n tokenInfos = new LinkedList<TokenInfo>();\n tokens = new LinkedList<Token>();\n\n }",
"public WordTokenizer( char[] texts ) {\n\t\t// this constructor will tokenize the input texts (usually it is the char array for a whole document)\n\t\t\n\t\tString s=String.valueOf(texts);//convert character array to string\n\t\twords = s.split(\"\\\\W+\");//split string through various character\n\t\t// \\W means all the demoninate except [a-zA-Z0-9]\n\t}",
"public Sentence(int addr, TOP_Type type) {\n super(addr, type);\n readObject();\n }",
"private Text createText(String text, int offset) {\n\t\tText res = new Text(text);\n\t\tres.setFont(new Font(\"Minecraftia\", 60));\n\t\tres.setFill(Color.YELLOW);\n\t\tres.getTransforms().add(new Rotate(-50, 300, 200, 20, Rotate.X_AXIS));\n\t\tres.setX(canvas.getWidth() / 2);\n\t\tres.setY(canvas.getHeight() / 2 + offset);\n\t\tres.setId(\"handCursor\");\n\t\tres.setOnMouseEntered(e -> {\n\t\t\tres.setText(\"> \" + res.getText() + \" <\");\n\t\t});\n\t\tres.setOnMouseExited(e -> {\n\t\t\tres.setText(res.getText().replaceAll(\"[<> ]\", \"\"));\n\t\t});\n\t\treturn res;\n\t}",
"public CitationMention newCitationMention(Document doc, String type, SpanList sp, SpanList headSp, String text) {\t\n\t\tSurfaceElement si = doc.getSurfaceElementFactory().createSurfaceElementIfNecessary(doc, sp, headSp, true);\n\t\tCitationMention men = new CitationMention(\"C\" + getNextId(CitationMention.class),type,sp,headSp,si);\n\t\tmen.setSurfaceElement(si);\n\t\tsi.addSemantics(men);\n\t\tdoc.addSemanticItem(men);\n\t\treturn men;\n\t}",
"public DocumentWordPosition() {}",
"private static TokenizerFactory<CoreLabel> initFactory(TokenizerType type, Properties props, String extraOptions) throws IllegalArgumentException{\n TokenizerFactory<CoreLabel> factory;\n String options = props.getProperty(\"tokenize.options\", null);\n\n // set it to the equivalent of both extraOptions and options\n // TODO: maybe we should always have getDefaultOptions() and\n // expect the user to turn off default options. That would\n // require all options to have negated options, but\n // currently there are some which don't have that\n if (options == null) {\n options = type.getDefaultOptions();\n }\n if (extraOptions != null) {\n if (extraOptions.endsWith(\",\")) {\n options = extraOptions + options;\n } else {\n options = extraOptions + ',' + options;\n }\n }\n\n switch(type) {\n case Spanish:\n factory = SpanishTokenizer.factory(new CoreLabelTokenFactory(), options);\n break;\n\n case French:\n factory = FrenchTokenizer.factory(new CoreLabelTokenFactory(), options);\n break;\n\n case Whitespace:\n boolean eolIsSignificant = Boolean.valueOf(props.getProperty(EOL_PROPERTY, \"false\"));\n eolIsSignificant = eolIsSignificant || Boolean.valueOf(props.getProperty(StanfordCoreNLP.NEWLINE_SPLITTER_PROPERTY, \"false\"));\n factory = new WhitespaceTokenizer.WhitespaceTokenizerFactory<>(new CoreLabelTokenFactory(), eolIsSignificant);\n break;\n\n case English:\n case German:\n factory = PTBTokenizer.factory(new CoreLabelTokenFactory(), options);\n break;\n\n case Unspecified:\n System.err.println(\"TokenizerAnnotator: No tokenizer type provided. Defaulting to PTBTokenizer.\");\n factory = PTBTokenizer.factory(new CoreLabelTokenFactory(), options);\n break;\n\n default:\n throw new IllegalArgumentException(\"No valid tokenizer type provided.\\n\" +\n \"Use -tokenize.language, -tokenize.class, or -tokenize.whitespace \\n\" +\n \"to specify a tokenizer.\");\n\n }\n return factory;\n }",
"public abstract Tokenizer getTokenizer();",
"void tokenize(TextDocument document, TokenFactory tokens) throws IOException;",
"public Word(Position position, CharSequence word) {\n this.position = position;\n this.word = word;\n }",
"@Override\n public Iterator<Token> iterator() {\n return new Iterator<Token>() {\n private int left;\n private int right;\n private TokenType type;\n\n @Override\n public void remove() {\n throw new UnsupportedOperationException();\n }\n\n @Override\n public boolean hasNext() {\n lex();\n return type != null;\n }\n\n @Override\n public Token next() {\n lex();\n if (type == null) {\n throw new NoSuchElementException();\n }\n Token t = new Token(type, left, right);\n left = right;\n right = -1;\n type = null;\n return t;\n }\n\n @SuppressWarnings(\"synthetic-access\")\n private void lex() {\n int n = content.length();\n while (type == null && left < n) {\n Matcher m = TOKEN.matcher(content);\n if (m.find(left)) {\n right = m.end();\n } else {\n // Do orphaned-surrogates cause this?\n throw new AssertionError(\"Index \" + left + \" in \" + content);\n }\n int cp = content.codePointAt(left);\n switch (cp) {\n case '\\t': case '\\n': case '\\r': case ' ':\n break;\n case '/':\n if (right - left == 1) {\n type = TokenType.PUNCTUATION;\n } else {\n type = null;\n if (preserveDocComments && left + 2 < right) {\n if (content.charAt(left + 1) == '*'\n && content.charAt(left + 2) == '*') {\n type = TokenType.DOC_COMMENT;\n }\n }\n }\n break;\n case '\"': case '\\'':\n type = TokenType.STRING;\n break;\n case '.':\n type = right - left == 1\n ? TokenType.PUNCTUATION : TokenType.NUMBER;\n break;\n case '0': case '1': case '2': case '3': case '4':\n case '5': case '6': case '7': case '8': case '9':\n type = TokenType.NUMBER;\n break;\n default:\n if (Character.isUnicodeIdentifierStart(cp) || cp == '$') {\n type = TokenType.WORD;\n right = left;\n do {\n right += Character.charCount(cp);\n } while (\n right < n\n && ((cp = content.codePointAt(right)) == '$'\n || Character.isUnicodeIdentifierPart(cp)));\n } else {\n type = TokenType.PUNCTUATION;\n }\n break;\n }\n if (type == null) {\n Preconditions.checkState(right > left);\n left = right;\n }\n }\n }\n };\n }",
"Literal createLiteral();",
"Literal createLiteral();",
"protected Token newToken(TokenPattern pattern,\n String image,\n int line,\n int column) {\n\n return new Token(pattern, image, line, column);\n }",
"private void addHyperlinkToken(int start, int end, int tokenType) {\n\t\tint so = start + offsetShift;\n\t\taddToken(zzBuffer, start,end, tokenType, so, true);\n\t}",
"private void addHyperlinkToken(int start, int end, int tokenType) {\n\t\tint so = start + offsetShift;\n\t\taddToken(zzBuffer, start,end, tokenType, so, true);\n\t}",
"GeneralTerm createGeneralTerm();",
"private CompleteTokenDefinition createNewToken(\r\n\t\t\tConcreteSyntax syntax,\r\n\t\t\tAntlrTokenDerivator tokenDerivator, \r\n\t\t\tPlaceholderInQuotes placeholder) {\r\n\t\t// a token definition must be created\r\n\t\tQuotedTokenDefinition newToken = ConcretesyntaxFactory.eINSTANCE.createQuotedTokenDefinition();\r\n\t\t\r\n\t\tString name = tokenDerivator.deriveTokenName(placeholder);\r\n\t\tnewToken.setName(name);\r\n\t\t\r\n\t\tString expression = tokenDerivator.deriveTokenExpression(placeholder);\r\n\t\tnewToken.setSynthesizedRegex(expression);\r\n\t\t\r\n\t\tnewToken.setPrefix(placeholder.getNormalizedPrefix());\r\n\t\tnewToken.setSuffix(placeholder.getNormalizedSuffix());\r\n\t\tnewToken.setEscapeCharacter(placeholder.getNormalizedEscapeCharacter());\r\n\t\t\r\n\t\tsyntax.getSyntheticTokens().add(newToken);\r\n\t\treturn newToken;\r\n\t}",
"public static TokenizerFactory<Word> factory()\n/* */ {\n/* 116 */ return new WhitespaceTokenizerFactory(false);\n/* */ }",
"public interface Tokenizer {\n\n List<Token> parse(String text);\n}",
"speech_formatting.SegmentedTextOuterClass.TokenSegment getTokenSegment(int index);",
"public String newToken(){\n String line = getLine(lines);\n String token = getToken(line);\n return token;\n }",
"void createLabelToken( String name, int id );",
"private Token makeOneToken(String word) {\n Tokenizer tokenizer = new Tokenizer(new StringReader(word), keywords);;\n return tokenizer.next();\n }",
"public Token() {\n }",
"public Token(String lexeme, int lineNum, int colNum){\r\n this.kind = \"ERROR\";\r\n this.lexeme = lexeme;\r\n this.lineNum = lineNum;\r\n this.colNum = colNum;\r\n }",
"public QueryLexer(String text) {\n\t\tthis.text = text.toCharArray();\n\t}",
"public TextPos() {\n this.value = 1;\n }",
"public TextExpression(String text) {\n this.text = text;\n }",
"@Override\n public List<Token> getTokens(String text) {\n TokenizerME tokenizerME = new TokenizerME(openNLPTokenizerModel);\n Span[] tokensPos = tokenizerME.tokenizePos(text);\n String[] tokens = tokenizerME.tokenize(text);\n List<Token> tokenList = new ArrayList<>();\n\n for (int i = 0; i < tokens.length; i++) {\n tokenList.add(new Token(tokens[i], tokensPos[i].getStart(), tokensPos[i].getEnd()));\n }\n\n return tokenList;\n }",
"public TextNode(String text) {\n\t\tthis.text = text;\n\t}",
"TypeLiteralExp createTypeLiteralExp();",
"public void setTermText(String text) {\n termText = text;\n termBuffer = null;\n }"
]
| [
"0.83501464",
"0.7862959",
"0.7585196",
"0.74269384",
"0.6417432",
"0.6381718",
"0.62975186",
"0.6146807",
"0.6046451",
"0.60026896",
"0.5920133",
"0.58713907",
"0.5859559",
"0.5826473",
"0.58031696",
"0.57996905",
"0.57814467",
"0.5779242",
"0.5733222",
"0.5709018",
"0.5707819",
"0.5650602",
"0.5648217",
"0.56133384",
"0.56031775",
"0.55533254",
"0.5541603",
"0.54893565",
"0.5485855",
"0.5472634",
"0.5460849",
"0.54417217",
"0.538483",
"0.5377053",
"0.5359929",
"0.5355404",
"0.533935",
"0.5328874",
"0.5311221",
"0.5310443",
"0.5286919",
"0.52583134",
"0.52430147",
"0.52102435",
"0.5209022",
"0.5206724",
"0.52031684",
"0.5193838",
"0.5191766",
"0.5186994",
"0.5151792",
"0.51455367",
"0.51382834",
"0.5133729",
"0.51204574",
"0.5118628",
"0.50926465",
"0.5079323",
"0.50665504",
"0.5061784",
"0.5061784",
"0.50599366",
"0.5056236",
"0.5053431",
"0.50305",
"0.50291246",
"0.5026628",
"0.5021727",
"0.50187063",
"0.5010838",
"0.5002839",
"0.49982727",
"0.4996484",
"0.49900004",
"0.49886847",
"0.49815857",
"0.49741635",
"0.49711654",
"0.49564448",
"0.49564448",
"0.4953449",
"0.49192584",
"0.49192584",
"0.49115795",
"0.49046403",
"0.48906097",
"0.48804966",
"0.4880496",
"0.48724678",
"0.48530942",
"0.48527297",
"0.4852348",
"0.48498592",
"0.48451856",
"0.48372358",
"0.483472",
"0.48327193",
"0.48301122",
"0.4817032",
"0.48169544"
]
| 0.76910216 | 2 |
Returns the position increment of this Token. | public int getPositionIncrement() {
return positionIncrement;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getIncrement() {\n \tcheckWidget();\n \treturn increment;\n }",
"public Integer getIncrement() {\n return increment;\n }",
"public double getIncrement() {\n return increment;\n }",
"public final long getAndIncrement() {\n\t\treturn value++;\n\t}",
"public int valueAndIncrement() {\n\t\tint x = offset;\n\t\tnext();\n\t\treturn x;\n\t}",
"public static int GetIncrement(){\n\t\treturn m_Incrementer;\n\t}",
"public int getMatchIncrement() {\n return getIntegerProperty(\"Increment\");\n }",
"public Integer getPositionnum() {\n\t\treturn positionnum;\n\t}",
"public int IncrementOffset() {\n int oldOffset = offset;\n offset += MachineDependent.WORDSIZE;\n return oldOffset;\n }",
"public int getLineNumber() {\n\t\treturn _tokenizer.getLineNumber();\n\t}",
"public int getIncrementBy() {\n\t\treturn _incrementBy;\n\t}",
"public int increase()\n {\n return this.increase(1);\n }",
"public int getLineNumber()\n {\n // LineNumberReader counts lines from 0. So add 1\n\n return lineNumberReader.getLineNumber() + 1;\n }",
"public java.lang.Integer getPosition() {\n return position;\n }",
"public java.lang.Integer getPosition() {\n return position;\n }",
"public final int getLineNumber()\n {\n return _lineNumber + 1;\n }",
"public int increase() {\r\n return ++value;\r\n }",
"public int getCurToken() {\n return curToken;\n }",
"public int getIncrementoInteligencia() {\n\t\treturn incrementoInteligencia;\n\t}",
"public int getInputPositionIncrement () { return 1; }",
"public int getLineNumber() {\n\t\treturn _parser.getLineNumber();\n\t}",
"public final long incrementAndGet() {\n\t\treturn ++value;\n\t}",
"public int position() {\n return pos;\n }",
"public double getRelativeHorizontalIncrement() {\n var pane = (ScrollPane) getNode();\n var region = getRegionToScroll();\n return region == null ? 0 : increment / (region.getWidth() - pane.getViewportBounds().getWidth());\n }",
"public int getOutputPositionIncrement () { return 1; }",
"public int getPosition()\n {\n return m_sequence;\n }",
"public int getPageIncrement() {\n \tcheckWidget();\n \treturn pageIncrement;\n }",
"long getAndIncrement();",
"@Override\n public long getPosition() {\n return startPosition + super.getPosition();\n }",
"public final int getPos() { return i; }",
"public IntegerTulep getPosition() {\n return position;\n }",
"private Token advance() {\n if(!isAtEnd()) current++;\n return previous();\n }",
"public Integer getPosition() {\n return position;\n }",
"public int getLineNumber()\n {\n return parser.getLineNumber();\n }",
"public long position() {\n return _pos;\n }",
"public int getPosition()\n\t{\n\t\treturn position;\n\t}",
"public int getPosition() {\r\n\t\treturn position;\r\n\t}",
"public Integer getPosition()\n {\n return position;\n }",
"public int getPos()\n {\n return pos;\n }",
"public int getPosition() {\n\treturn (_current);\n }",
"public Integer getPosition();",
"public int getPosition()\r\n {\r\n return position;\r\n }",
"public int getPosition() {\n return position;\n }",
"public Integer nextOffset() {\n return this.nextOffset;\n }",
"@Override\n public int getPositionFirstOperand() {\n return position + 1;\n }",
"public int getPosition() {\r\n return position;\r\n }",
"public int getPos()\n {\n return pos;\n }",
"public int pos() {\r\n return cbyte;\r\n }",
"public int getAndIncrement( String key )\n {\n if ( !context.containsKey( key ) )\n {\n context.put( key, 0 );\n }\n int value = (int) context.get( key );\n context.put( key, value + 1 );\n return value;\n }",
"public int getNext() {\n return value++;\n }",
"public Integer getPosition() {\n return this.position;\n }",
"public int getPosition() {\n return position;\n }",
"public int getPosition() {\n return position;\n }",
"public int getPosition() {\n return position;\n }",
"public final int getPosition() {\n return position;\n }",
"public long getStartOffset() {\n return mStartOffset;\n }",
"public void incOffset( Integer increment ) {\n offset += increment;\n }",
"public int getLinePosition() {\n return linePosition;\n }",
"public int getPosition();",
"public double getRoundingIncrement() {\n return roundingIncrement;\n }",
"GlobalVariable getStartOffsetCounterVariable();",
"public int value() {\n\t\treturn offset;\n\t}",
"public int getLineNumber() {\n\t\t\treturn startLineNumber;\n\t\t}",
"public void inc(){\n this.current += 1;\n }",
"private long increment() {\n\t\tlong ts = latestTimestamp.incrementAndGet();\n\t\treturn ts;\n\t}",
"public void increaseStartPos(int num) {\r\n this.startPos += num;\r\n }",
"public int getPosition()\n {\n return getInt(\"Position\");\n }",
"public int xIncriment(){\n\t\tswitch (direction){\n\t\t\tcase NORTH: \n\t\t\t\treturn 0;\n\t\t\tcase NORTHEAST:\n\t\t\t\treturn 1;\n\t\t\tcase EAST:\n\t\t\t\treturn 1;\n\t\t\tcase SOUTHEAST:\n\t\t\t\treturn 1;\n\t\t\tcase SOUTH:\n\t\t\t\treturn 0;\n\t\t\tcase SOUTHWEST:\n\t\t\t\treturn -1;\n\t\t\tcase WEST:\n\t\t\t\treturn -1;\n\t\t\tdefault: //NORTHWEST\n\t\t\t\treturn -1;\n\t\t}\n\t}",
"public boolean incrementX()\n {\n return setPosition(this.position.getXPosition() + 1, this.position.getYPosition());\n }",
"public int cursorLineNum() {\n return cursor;\n }",
"public static int offset_counter() {\n return (8 / 8);\n }",
"public long getPosition();",
"public String getLineNumber() \n\t{\n\t\treturn getNumber().substring(9,13);\n\t}",
"public int getBlockIndex() {\n return mCursorPosition;\n }",
"public int getMovectr() {\n\t\t\n\t\treturn moveCtr;\n\t}",
"Term incrementTerm() {\n Term prior = currentTerm;\n long nextTerm = currentTerm.getNumber() + 1;\n currentTerm = Term.newBuilder()\n .setNumber(nextTerm)\n .build();\n return prior;\n }",
"protected int getNextToken(){\n if( currentToken == 1){\n currentToken = -1;\n }else{\n currentToken = 1;\n }\n return currentToken;\n }",
"public int getPosition() {\n log.log(Level.FINE, \"position: \" + position + \"ms\");\n return position;\n }",
"public Number getLineNumber() {\n return (Number)getAttributeInternal(LINENUMBER);\n }",
"Constant getStartOffsetConstant();",
"public long getPos()\n\t{\n\t\treturn -1;\n\t}",
"public int getStartOffset() {\n return startPosition.getOffset();\n }",
"public String getAndIncrement() {\n Integer value = transactionId.get();\n transactionId.set(value + 1);\n return String.format(\"T_%08d\", value);\n }",
"public int getPos();",
"public int getPos();",
"public int getSequenceNumber() {\n return mSequenceGenerator.incrementAndGet();\n }",
"public int getIncrementAmount() throws DfException {\n\t\treturn object.getInt(INCREMENT_AMOUNT);\n\t}",
"public int lineNum() {\n return myId.lineNum();\n }",
"public int getCurrentPosition(){\n return Integer.parseInt(currentPosition);\n }",
"public int getToken_num() {\n return this.token_num;\n }",
"public String getAndIncrement() throws DfException {\n\t\tfinal int incrementValue = getIncrementAmount();\n\t\tint currentValue = getCurrentValue();\n\t\tfinal String retVal = String.valueOf(currentValue);\n\t\tcurrentValue += incrementValue;\n\t\tsetCurrentValue(currentValue);\n\t\tsave();\n\t\treturn retVal;\n\t}",
"public int getLineNumber()\r\n {\r\n return lineNum;\r\n }",
"public int nextOffset(int curr) {\n return curr + 1;\n }",
"public int getLineNumber() {\n return line;\n }",
"public int getCurrentLine() {\n return buffer.lineNumber();\n }",
"private int getNextLine() {\n return peekToken().location.start.line;\n }",
"private int forwardPosition() {\n\t\treturn (position + 1) % (maxPosition + 1);\n\t}",
"@Override\n public int currentParagraphNumber() {\n return this.paragraphIndex + 1;\n }",
"public int getIncline() { return incline; }",
"public int getTagPosition() {\n\t\treturn (position);\n\t}"
]
| [
"0.7024213",
"0.7008241",
"0.6800475",
"0.6744003",
"0.67429113",
"0.6701479",
"0.6567715",
"0.63443696",
"0.633953",
"0.63154733",
"0.626521",
"0.61845636",
"0.61822194",
"0.61660767",
"0.61569273",
"0.61413425",
"0.6133486",
"0.6111115",
"0.61086875",
"0.6085623",
"0.6015379",
"0.60136914",
"0.60095567",
"0.5985343",
"0.5975265",
"0.5940459",
"0.5928972",
"0.59209484",
"0.5919267",
"0.59043914",
"0.59037554",
"0.58982205",
"0.5891319",
"0.5883258",
"0.5867776",
"0.58637834",
"0.5853561",
"0.5850341",
"0.5847327",
"0.5821848",
"0.58147776",
"0.57941246",
"0.5783344",
"0.57775754",
"0.5773138",
"0.57730466",
"0.5752723",
"0.57351017",
"0.5733341",
"0.57328665",
"0.5729262",
"0.5724498",
"0.5724498",
"0.5724498",
"0.5720607",
"0.5701127",
"0.56847465",
"0.5682028",
"0.5668069",
"0.5661157",
"0.56521696",
"0.56497365",
"0.56439745",
"0.564224",
"0.5629148",
"0.5628733",
"0.5617796",
"0.56128913",
"0.56119484",
"0.561143",
"0.5610453",
"0.5603393",
"0.55963045",
"0.5593823",
"0.55732876",
"0.55686885",
"0.5566564",
"0.55631113",
"0.5556716",
"0.55554944",
"0.554821",
"0.5547784",
"0.5545429",
"0.5541028",
"0.5541028",
"0.5537522",
"0.5533331",
"0.5528506",
"0.5528501",
"0.55239266",
"0.552148",
"0.55178",
"0.5515496",
"0.5514351",
"0.55131906",
"0.55131376",
"0.55124485",
"0.5503092",
"0.5494703",
"0.54930776"
]
| 0.78758943 | 0 |
Sets the Token's term text. NOTE: for better indexing speed you should instead use the char[] termBuffer methods to set the term text. | public void setTermText(String text) {
termText = text;
termBuffer = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getTermText() {\n return termText;\n }",
"public void setTerm(Expression term) {\n this.term = term;\n }",
"public void setTerm(String value) {\r\n setAttributeInternal(TERM, value);\r\n }",
"public Token setText(java.lang.String text) {\n this.text = text;\n return this;\n }",
"private void initTermBuffer() {\n if (termBuffer == null) {\n if (termText == null) {\n termBuffer = new char[MIN_BUFFER_SIZE];\n termLength = 0;\n } else {\n int length = termText.length();\n if (length < MIN_BUFFER_SIZE) length = MIN_BUFFER_SIZE;\n termBuffer = new char[length];\n termLength = termText.length();\n termText.getChars(0, termText.length(), termBuffer, 0);\n termText = null;\n }\n } else if (termText != null)\n termText = null;\n }",
"public final void getText(CharTermAttribute t) {\n t.copyBuffer(zzBuffer, zzStartRead, zzMarkedPos-zzStartRead);\n}",
"public void set(Term t) {\n \t\ttry {\n \t\t\tsetFunctor(t.functor);\n \t\t\tterms = t.getDeepCopyOfTerms();\n \t\t} catch (Exception e) {\n \t\t\tSystem.err.println(\"Error setting value for term \");\n \t\t\te.printStackTrace();\n \t\t}\n \t}",
"TermNode() {\n this.fac = new FacNode();\n this.term = null;\n this.selection = 1;\n }",
"public String getTerm() {\n return term;\n }",
"final void getText(CharTermAttribute t) {\n t.copyBuffer(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);\n }",
"public final void setTermLength(int length) {\n initTermBuffer();\n termLength = length;\n }",
"public void setText(String s)\n {\n \tLongTermResult.setText(s);\n }",
"public void setTermFrequency(double termFreq) {\n\t\ttermFrequency = termFreq;\n\t}",
"public void setText(String t) {\n\t\t\ttext.set(t);\n\t\t}",
"public void parseTerm(Tokenizer t) {\n\n // parse the fac node\n this.fac.parseFac(t);\n\n // check selection\n if(t.currentToken().equals(\"*\")) {\n\n // Chomp \"*\" token\n t.nextToken();\n\n // update selection\n this.selection = 2;\n\n // parse term node\n this.term = new TermNode();\n this.term.parseTerm(t);\n\n }\n\n }",
"public Term(String t) {\n this.t = t;\n \n RepCheck();\n }",
"public void setTerm(java.lang.Integer value) {\n this.term = value;\n }",
"public TermData(String term)\n\t{\n\t\tthis.term = term;\n\t}",
"public AcademicTerm(int termIndex, Term term) {\n this.termIndex = termIndex;\n this.term = term;\n }",
"public void setTermCount(int termCount) {\n\t\tthis.termCount = termCount;\n\t}",
"public void setTermweig(String value) {\r\n setAttributeInternal(TERMWEIG, value);\r\n }",
"public void setStem (Glyph stem)\r\n {\r\n this.stem = stem;\r\n }",
"public int getTermIndex() {return termIndex;}",
"private void createTermFreqVector(JCas jcas, Document doc) {\n\n String docText = doc.getText().toLowerCase();\n\n // TODO: construct a vector of tokens and update the tokenList in CAS\n\n String[] wordList = docText.split(\" \");\n HashMap<String, Integer> tokenCount = new HashMap<String, Integer>();\n for (String word : wordList) {\n String newWord = word;\n if(word.charAt(word.length()-1)<'a' || word.charAt(word.length()-1)>'z'){\n newWord = word.substring(0, word.length()-1);\n }\n //if(Utils.GetStopWordFilter().isStopword(newWord))continue;\n if (!tokenCount.containsKey(newWord)) {\n tokenCount.put(newWord, 1);\n } else {\n tokenCount.put(newWord, tokenCount.get(newWord) + 1);\n }\n }\n\n ArrayList<Token> tokenList = new ArrayList<Token>();\n for (String word : tokenCount.keySet()) {\n Token token = new Token(jcas);\n token.setText(word);\n token.setFrequency(tokenCount.get(word));\n tokenList.add(token);\n }\n FSList tokenFSList = Utils.fromCollectionToFSList(jcas, tokenList);\n doc.setTokenList(tokenFSList);\n }",
"public Token(String text, int start, int end) {\n termText = text;\n startOffset = start;\n endOffset = end;\n }",
"public String getTerm(){\n return this.term;\n }",
"private void setText(Text text) {\n \t\tthis.text = text;\n \t}",
"public ConceptToken(String token) {\n _multiToken = false;\n _text = \"\";\n _tokens = new String[]{token};\n }",
"public void setContent( Term content ) {\n this.content = content;\n }",
"@Override\n\tpublic void setToken(Token token) {\n\t\tthis.token = token;\n\t\t\n\t}",
"public Value.Builder setTerm(java.lang.Integer value) {\n validate(fields()[14], value);\n this.term = value;\n fieldSetFlags()[14] = true;\n return this;\n }",
"public Word(String text) {\n\t\tsuper();\n\t\tthis.text = text;\n\t}",
"SingleTerm(Term t)\n {\n term = t;\n }",
"public Token(String text, int start, int end, String typ) {\n termText = text;\n startOffset = start;\n endOffset = end;\n type = typ;\n }",
"public void setTermcat(String value) {\r\n setAttributeInternal(TERMCAT, value);\r\n }",
"public void setText(String text) {\r\n\t\tthis.text = text;\r\n\t}",
"public void setText(String text) {\n\t\tthis.text = text;\n\t}",
"public void setText(String text) {\n\t\tthis.text = text;\n\t}",
"public void setText(String text) {\n\t\tthis.text = text;\n\t}",
"public void setText(java.lang.String newText) {\n \t\ttext = newText;\n \t}",
"public void setText(CharSequence newText) {\n getTextBuffer().replace(new SelectionSetter(), 0, getTextBuffer().length(), newText, new SelectionSetter(0));\n }",
"public void setText(String text) {\r\n this.text = text;\r\n }",
"public void setTerms(Term[] terms) { this.terms = terms; }",
"public void setText(String text) {\r\n\t\tthis.text= text;\r\n\t}",
"public void setText(String text) {\n this.text = text;\n }",
"public void setText(String text) {\n this.text = text;\n }",
"public void setText(String text) {\n this.text = text;\n }",
"public void setText(String text) {\n this.text = text;\n }",
"public void setText(String text) {\n this.text = text;\n }",
"public void setText(String text) {\n this.text = text;\n }",
"public void setText(String text) {\n this.text = text;\n }",
"public void setText(String text)\n\t{\n\t\tthis.text = text;\n\t}",
"public void setText(String text)\n\t{\n\t\tthis.text = text;\n\t}",
"public SuggestedTerm(String term, int editDistance){\n this.term = term;\n this.editDistance = editDistance;\n }",
"public Token(String text, int start, int end, int flags) {\n termText = text;\n startOffset = start;\n endOffset = end;\n this.flags = flags;\n }",
"public void setText(String text)\n {\n this.text = text;\n }",
"void setWord(Word word);",
"public void setText(String text) {\n this.textData = text;\n }",
"public Token(Token other) {\n __isset_bitfield = other.__isset_bitfield;\n this.tokenIndex = other.tokenIndex;\n if (other.isSetText()) {\n this.text = other.text;\n }\n if (other.isSetTextSpan()) {\n this.textSpan = new edu.jhu.hlt.concrete.TextSpan(other.textSpan);\n }\n if (other.isSetRawTextSpan()) {\n this.rawTextSpan = new edu.jhu.hlt.concrete.TextSpan(other.rawTextSpan);\n }\n if (other.isSetAudioSpan()) {\n this.audioSpan = new edu.jhu.hlt.concrete.AudioSpan(other.audioSpan);\n }\n }",
"private void setResult(String term){\n\t\taddResponseToResult(term);\n\t}",
"void set(ITokenizable aTokenizable);",
"public void setText(String text) {\n\t\t\n\t}",
"private void setNextToken() {\n\t\t\n\t\tif (token != null && token.getType() == TokenType.EOF)\n\t\t\tthrow new QueryLexerException(\"There is no more tokens\");\n\n\t\tskipWhitespaces();\n\t\t\n\t\tif (currentIndex >= data.length) {\n\t\t\ttoken = new Token(TokenType.EOF, null);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (Character.isLetter(data[currentIndex])) {\n\t\t\tint beginningOfWord = currentIndex;\n\t\t\tcurrentIndex++;\n\t\t\twhile(currentIndex < data.length && Character.isLetter(data[currentIndex])) {\n\t\t\t\tcurrentIndex++;\n\t\t\t}\n\t\t\tString word = new String(data, beginningOfWord, currentIndex - beginningOfWord);\n\t\t\tToken mappedToken = keywordsTokenMap.get(word.toUpperCase());\n\t\t\tif (mappedToken != null) {\n\t\t\t\ttoken = mappedToken;\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\tthrow new QueryLexerException(\"Word that you inputed is not keyword.\\n You entered: \" + word);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tif (data[currentIndex] == '\\\"') {\n\t\t\tcurrentIndex++;\n\t\t\tint beginningOfText = currentIndex;\n\t\t\t\n\t\t\twhile (true) {\n\t\t\t\tif (currentIndex >= data.length)\n\t\t\t\t\tthrow new QueryLexerException(\"Wrong input. Missing one double quote.\");\n\t\t\t\t\n\t\t\t\tif (data[currentIndex] == '\\\"') \n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcurrentIndex++;\n\t\t\t}\n\t\t\t\n\t\t\tString text = new String(data, beginningOfText, currentIndex - beginningOfText);\n\t\t\ttoken = new Token(TokenType.TEXT, text);\n\t\t\tcurrentIndex++;\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (isOperator(data[currentIndex])) {\n\t\t\tsetOperatorToken();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// everything else is invalid\n\t\tthrow new QueryLexerException(\"Invalid input: Last character was: \" + data[currentIndex]);\n\t}",
"protected String stem(String term) {\r\n\t\tStemmer stemmer = new Stemmer();\r\n\t\tfor(char a : term.toCharArray()){\r\n\t\t\tstemmer.add(a);\r\n\t\t}\r\n\t\tstemmer.stem();\r\n\t\treturn stemmer.toString();\r\n\t}",
"public void setText(String text) {\n this.text.setText(text);\n }",
"Term getTerm();",
"public Builder setToken(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }",
"public Builder setToken(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }",
"public Builder setToken(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }",
"public Builder setToken(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }",
"public Builder setToken(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }",
"public void printTerm(){\n\n // print fac node\n this.fac.printFac();\n\n // check selection\n if (this.selection == 2) {\n\n // print \"*\"\n System.out.print(\" * \");\n\n // print term node\n this.term.printTerm();\n\n }\n\n }",
"public void setText(String text) {\n mText = text;\n }",
"public InputBox setText(String text) {\n\t\tthis.text = text;\n\t\tfontRenderer.reallocateText(text);\n\t\t\n\t\treturn this;\n\t}",
"public void setText(String text) {\r\n\r\n\t}",
"@Override\n\tpublic void setText(String str) {\n\t\tStringBuilder buf = new StringBuilder();\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tchar ch = str.charAt(i);\n\t\t\tif (!(ch == '\\t' || ch == '\\n' || ch == '\\r')) {\n\t\t\t\tbuf.append(ch);\n\t\t\t}\n\t\t}\n\t\tsuper.setText(buf.toString());\n\t}",
"public void setText(String text) {\n\t\ttry {\n\t\t\tdoc.remove(0, doc.getLength());\n\t\t\tdoc.insertString(0, text, PLAIN);\n\t\t} catch (BadLocationException ignore) {\n\t\t\tignore.printStackTrace();\n\t\t\teditor.setCaretPosition(0);\n\t\t}\n\t}",
"public void updateText( String text ) {\n\t\tthis.text = text;\n\t}",
"public void setText(String text) {\n\t\tthis.textPane.setText(text);\n\t}",
"public Value.Builder clearTerm() {\n term = null;\n fieldSetFlags()[14] = false;\n return this;\n }",
"public void setCurrent_word(String current_word){\n\t\tthis.current_word = current_word;\n\t}",
"String highlightTerm(String term);",
"public void setTermCode(String termCode) {\n this.termCode = termCode == null ? null : termCode.trim();\n }",
"public void setText(String text) {\n\t\tthis.text = text;\n\t\thandleConfig(\"text\", text);\n\t}",
"@Override\n\tpublic void setText(String str) {\n\t\tStringBuilder buf = new StringBuilder();\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tchar ch = str.charAt(i);\n\t\t\tif (!(ch == '\\t' || (!multiline && (ch == '\\n' || ch == '\\r')))) {\n\t\t\t\tbuf.append(ch);\n\t\t\t}\n\t\t}\n\t\tsuper.setText(buf.toString());\n\t}",
"private void applyTermOptions() {\n\tif (term == null)\n\t return;\n\n term.setFixedFont(true);\n term.setFont(termOptions().getFont());\n\n\tterm.setBackground(termOptions().getBackground());\n\tterm.setForeground(termOptions().getForeground());\n\tterm.setHighlightColor(termOptions().getSelectionBackground());\n\tterm.setHistorySize(termOptions().getHistorySize());\n\tterm.setTabSize(termOptions().getTabSize());\n\n\tterm.setClickToType(termOptions().getClickToType());\n\tterm.setScrollOnInput(termOptions().getScrollOnInput());\n\tterm.setScrollOnOutput(termOptions().getScrollOnOutput());\n\tterm.setHorizontallyScrollable(!termOptions().getLineWrap());\n\n\t// If we change the font from smaller to bigger, the size\n\t// calculations go awry and the last few lines are forever hidden. \n\t//\n\t// One usually uses 'pack()' but it doesn't work because it\n\t// applies only to JFrames an under vulcan in MDI mode it had\n\t// catastrophic results (the whole window gets maximized, etc.)\n\t//\n\t// The following is a workaround used in the Rtc windows' \n\t// componentShown() as a fix for\n\t// 4652678 (Memory Usage window and Access Errors window are ...)\n\n\tsetSize(getPreferredSize());\n\tvalidate();\n }",
"protected void updateTextChange() {\n \t\t\tfText= fDocumentUndoManager.fTextBuffer.toString();\n \t\t\tfDocumentUndoManager.fTextBuffer.setLength(0);\n \t\t\tfPreservedText= fDocumentUndoManager.fPreservedTextBuffer.toString();\n \t\t\tfDocumentUndoManager.fPreservedTextBuffer.setLength(0);\n \t\t}",
"public void setTermPath(String value) {\r\n setAttributeInternal(TERMPATH, value);\r\n }",
"public void setText(String t) {\n\t\ttext = t;\n\t\tb.setText(t);\n\t}",
"public StreamTerm term() {\n return term;\n }",
"private void createTermFreqVector(JCas jcas, Document doc) {\n\n String docText = doc.getText();\n // construct a vector of tokens and update the tokenList in CAS\n // use tokenize0 from above\n List<String> ls = tokenize0(docText);\n Map<String, Integer> map = new HashMap<String, Integer>();\n Collection<Token> token_collection = new ArrayList<Token>();\n for (String d : ls) {\n if (map.containsKey(d)) {\n int inc = map.get(d) + 1;\n map.put(d, inc);\n } else {\n map.put(d, 1);\n }\n }\n Iterator it = map.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry pairs = (Map.Entry) it.next();\n Token t = new Token(jcas);\n String k = pairs.getKey().toString();\n int v = Integer.parseInt(pairs.getValue().toString());\n t.setFrequency(v);\n t.setText(k);\n token_collection.add(t);\n it.remove(); // avoids a ConcurrentModificationException\n }\n // use util tool to convert to FSList\n doc.setTokenList(Utils.fromCollectionToFSList(jcas, token_collection));\n doc.addToIndexes(jcas);\n\n }",
"private void setToken(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n token_ = value;\n }",
"private void setToken(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n token_ = value;\n }",
"private void setToken(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n token_ = value;\n }",
"abstract public TermDocs termDocs(Term t) throws IOException;",
"private void selectCurrentToken() {\r\n setCurrentItem(currentTextItem);\r\n setPosition(currentTextItem.getEndPosition());\r\n }",
"public void setText(String s) {\n text = s;\n }",
"public void setToken(final String token) {\n this.token = token;\n }",
"public void setText( String text );",
"public Token(String terme, int tf) {\r\n\t\t\r\n\t\tthis.Terme = terme;\r\n\t\tthis.tf = tf;\r\n\t}"
]
| [
"0.6751961",
"0.66692305",
"0.65492916",
"0.6464226",
"0.61836344",
"0.6101775",
"0.6022481",
"0.5943541",
"0.5883462",
"0.58166736",
"0.5802558",
"0.57893854",
"0.57685363",
"0.5692213",
"0.56451154",
"0.560427",
"0.5602311",
"0.5592857",
"0.559174",
"0.55705726",
"0.55605483",
"0.55371517",
"0.55366117",
"0.553482",
"0.55341315",
"0.5516113",
"0.5495764",
"0.5478021",
"0.54582846",
"0.544941",
"0.5438625",
"0.5429005",
"0.54081386",
"0.53972197",
"0.53816676",
"0.537443",
"0.5360244",
"0.5360244",
"0.5360244",
"0.53541994",
"0.5352924",
"0.53426504",
"0.53419673",
"0.5340158",
"0.533818",
"0.533818",
"0.533818",
"0.533818",
"0.533818",
"0.533818",
"0.533818",
"0.5330972",
"0.5330972",
"0.5326356",
"0.53239536",
"0.5308324",
"0.52943224",
"0.5287786",
"0.52568257",
"0.52386206",
"0.52259266",
"0.522251",
"0.52135456",
"0.52130896",
"0.52041197",
"0.5200032",
"0.51987237",
"0.51987237",
"0.51987237",
"0.51987237",
"0.51987237",
"0.5195897",
"0.51933914",
"0.51859003",
"0.5184655",
"0.5184381",
"0.51787066",
"0.51711184",
"0.5168474",
"0.5160568",
"0.5136305",
"0.51331663",
"0.5128042",
"0.51217073",
"0.5108455",
"0.5101527",
"0.5098596",
"0.5096901",
"0.509529",
"0.50928813",
"0.5089138",
"0.5077845",
"0.5077845",
"0.5077845",
"0.50734663",
"0.50424683",
"0.5036266",
"0.5032116",
"0.5027847",
"0.5022027"
]
| 0.8120283 | 0 |
Grows the termBuffer to at least size newSize. | public char[] resizeTermBuffer(int newSize) {
initTermBuffer();
if (newSize > termBuffer.length) {
int size = termBuffer.length;
while(size < newSize)
size *= 2;
char[] newBuffer = new char[size];
System.arraycopy(termBuffer, 0, newBuffer, 0, termBuffer.length);
termBuffer = newBuffer;
}
return termBuffer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final char[] resizeBuffer(int newSize) { \n\t\tif (mTermBuffer.length < newSize){\n\t\t\t// Not big enough; create a new array with slight\n\t\t\t// over allocation and preserve content\n\t\t\tfinal char[] newCharBuffer = new char[ArrayUtil.oversize(newSize, JvmUtil.NUM_BYTES_CHAR)];\n\t System.arraycopy(mTermBuffer, 0, newCharBuffer, 0, mTermBuffer.length);\n\t mTermBuffer = newCharBuffer;\n\t\t}\n\t\treturn mTermBuffer;\n\t}",
"private void grow() {\n int growSize = size + (size<<1);\n array = Arrays.copyOf(array, growSize);\n }",
"public void resize( final AtomicInteger _newMaxMessageSize ) {\n\n // if we're asking for a smaller (or same) sized buffer, just leave...\n int newMaxMessageSize = _newMaxMessageSize.get();\n if( newMaxMessageSize <= maxMessageSize ) return;\n\n // allocate new buffer of the right size...\n maxMessageSize = newMaxMessageSize;\n ByteBuffer newBuffer = allocateBuffer();\n\n // copy any bytes we already have into the new one...\n newBuffer.put( buffer );\n newBuffer.flip();\n buffer = newBuffer;\n }",
"private void grow() {\n int oldCapacity = this.values.length;\n int newCapacity = oldCapacity + (oldCapacity >> 1);\n Object[] newValues = new Object[newCapacity];\n System.arraycopy(this.values, 0, newValues, 0, oldCapacity);\n this.values = newValues;\n }",
"private void grow() {\n capacity *= 2;\n Object[] temp = new Object[capacity];\n for (int i = 0; i < values.length; i++) temp[i] = values[i];\n values = temp;\n }",
"private void grow() {\n final int new_size = Math.min(size * 2, Const.MAX_TIMESPAN);\n if (new_size == size) {\n throw new AssertionError(\"Can't grow \" + this + \" larger than \" + size);\n }\n values = Arrays.copyOf(values, new_size);\n qualifiers = Arrays.copyOf(qualifiers, new_size);\n }",
"private void growSize() {\n size++;\n\n if (size > maxSize) {\n if (keys.length == Integer.MAX_VALUE) {\n throw new IllegalStateException(\"Max capacity reached at size=\" + size);\n }\n\n // Double the capacity.\n rehash(keys.length << 1);\n }\n }",
"private void grow(int minCapacity) {\n // overflow-conscious code\n int oldCapacity = buf.length;\n int newCapacity = oldCapacity << 1;\n if (newCapacity - minCapacity < 0) {\n newCapacity = minCapacity;\n }\n if (newCapacity - MAX_ARRAY_SIZE > 0) {\n newCapacity = hugeCapacity(minCapacity);\n }\n buf = Arrays.copyOf(buf, newCapacity);\n }",
"protected void grow() {\n }",
"private void resize(int newCapacity){\n ArrayList<ArrayList<Entry>> newBuckets = new ArrayList<>();\n for (int i = 0; i < newCapacity; i++) {\n newBuckets.add(new ArrayList<>());\n }\n\n for(K key:this){\n int newIndex=reduce(key,newCapacity);\n newBuckets.get(newIndex).add(new Entry(key,get(key)));\n\n }\n\n buckets=newBuckets;\n numBuckets=newCapacity;\n\n }",
"public void grow(int cap) {}",
"protected void ensureBufferSpace(int expectedAdditions) {\n final int bufferLen = (buffer == null ? 0 : buffer.length);\n if (elementsCount + expectedAdditions > bufferLen) {\n final int newSize = resizer.grow(bufferLen, elementsCount, expectedAdditions);\n assert newSize >= elementsCount + expectedAdditions : \"Resizer failed to\" + \" return sensible new size: \"\n + newSize + \" <= \" + (elementsCount + expectedAdditions);\n\n this.buffer = Arrays.copyOf(buffer, newSize);\n }\n }",
"private ByteBuffer grow(int length) {\n if (!mBuffers.isEmpty()) {\n ByteBuffer b = mBuffers.peekLast();\n if (b.limit() + length < b.capacity()) {\n b.mark();\n b.position(b.limit());\n b.limit(b.limit() + length);\n remaining += length;\n return b.order(order);\n }\n }\n\n ByteBuffer ret = obtain(length);\n ret.mark();\n ret.limit(length);\n add(ret);\n\n return ret.order(order);\n }",
"void resize(int newSize);",
"private void grow() {\n Book[] temp = new Book[books.length + GROWTH_SIZE];\n for (int i = 0; i < books.length; i ++){\n temp[i] = books[i];\n }\n books = temp;\n }",
"public void grow() {\n\t\thtmlFontSize += 40;\n\t}",
"void setBufferSize(int bufferSize);",
"private void resize() {\n Object[] newQueue = new Object[(int) (queue.length * 1.75)];\n System.arraycopy(queue, startPos, newQueue, 0, queue.length - startPos);\n\n currentPos = queue.length - startPos;\n startPos = 0;\n queue = newQueue;\n\n }",
"public void increaseSize() {\n Estimate[] newQueue = new Estimate[queue.length * 2];\n\n for (int i = 0; i < queue.length; i++) {\n newQueue[i] = queue[i];\n }\n\n queue = newQueue;\n }",
"public void resizeByLinearize(int newCapacity) {\r\n Object[] temp = new Object[newCapacity];\r\n int k = start;\r\n for (int i = 0; i < size; i++) {\r\n temp[i] = cir[k];\r\n k = (k + 1) % cir.length;\r\n }\r\n cir = temp;\r\n start = 0;\r\n }",
"public void setSize(int newSize);",
"public void setSize(int newSize);",
"protected void grow()\r\n\t{\t\r\n\t\tif(debug)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Debug - Starting grow\");\r\n\t\t}\r\n\t\t\r\n\t\tint[] temp = new int[count*2];\r\n\t\t\r\n\t\tfor(int index = 0; index < count; index++)\r\n\t\t{\r\n\t\t\ttemp[index] = numArray[index];\r\n\t\t\t\r\n\t\t\tif(debug)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Debug - temp[index] = \" + temp[index]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tnumArray = temp;\r\n\t\t\r\n\t\tif(debug)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Debug - Ending grow\");\r\n\t\t}\r\n\t}",
"private void growQueue() {\n int newSize = (int)(QUEUE.length * 1.5f);\n \n Logger.log(\"INFO\", \"Queue is full, growing to new size: \" + Integer.toString(newSize));\n \n Object[] newQueue = new Object[newSize];\n lockQueue();\n copyQueue(newQueue);\n unlockQueue();\n }",
"public static ByteBuffer resizeBuffer(ByteBuffer buffer, int newCapacity) {\n ByteBuffer newBuffer = BufferUtils.createByteBuffer(newCapacity);\n buffer.flip();\n newBuffer.put(buffer);\n return newBuffer;\n }",
"private void grow(int n) {\n\t\tint newSize = length + n;\n\t\tif (newSize > limit) {\n\t\t\t// find smallest power of 2 greater than newSize\n\t\t\tlimit = (int) Math.pow(2, Math.ceil(Math.log(newSize) / LN2));\n\t\t\tfloat[] newBuffer = new float[limit];\n\t\t\tSystem.arraycopy(data, 0, newBuffer, 0, length);\n\t\t\tdata = newBuffer;\n\t\t}\n\t}",
"public abstract void grow();",
"@Override\n\tpublic MemBufferHolder<A> resize(long size) {\n\t\treturn m_allocator.resizeBuffer(this, size);\n\t}",
"private void resize(int newCapacity)\n {\n Node[] buffer = new Node[newCapacity];\n\n for (Node bucket : buckets)\n {\n if (bucket != null)\n {\n Node current = bucket;\n while (current != null)\n {\n int h = current.hashCode();\n h = h % buffer.length;\n if (h < 0) { h = -h; }\n\n buffer[h] = current;\n current = current.next;\n }\n }\n }\n buckets = buffer;\n }",
"protected void grow(int size) {\n if (size < 128) {\n size = 128;\n }\n if (size < table.length) {\n return;\n }\n char [] newTable = new char[size];\n System.arraycopy(table, 0, newTable, 0, table.length);\n for(int i = table.length; i < size; i++) {\n newTable[i] = (char)i;\n }\n table = newTable;\n }",
"public void resizeByLinearize(int newcapacity){\n Object []lin=new Object[newcapacity];\n int k=start;\n for(int i=0;i<size;i++){\n lin[i]=cir[k];\n k=(k+1)%cir.length;\n }\n cir=new Object[newcapacity];\n for(int i=0;i<size;i++){\n cir[i]=lin[i];\n }\n \n }",
"public void setLength(int newLength) {\r\n\t\tif (cursor + newLength > buffer.length)\r\n\t\t\tthrow new IllegalArgumentException(\"Can't set new length if it exceeds buffer\");\r\n\t\tlimit = cursor + newLength;\r\n\t}",
"private void resize(int newCapacity) {\n\n E[] temp = (E[]) new Object[newCapacity];\n for(int i = 0; i < size(); i++)\n temp[i] = data[calculate(i)];\n data = temp;\n head = 0;\n tail = size()-1;\n\n\n }",
"private void resizeBuffer(int size) {\n if (size > m_maxImgBufferSize) {\n if (size > MAX_IMG_SIZE_BYTES) {\n size = MAX_IMG_SIZE_BYTES;\n }\n\n m_maxImgBufferSize = size + 100;\n m_imgBuffer = new byte[m_maxImgBufferSize];\n m_baistream = new ByteArrayInputStream(m_imgBuffer);\n }\n }",
"public void reSize() {\n int newSize = arr.length * 2;\n arr = Arrays.copyOf(arr, newSize);\n }",
"private void grow() {\n int oldCapacity = heap.length;\n // Double size if small; else grow by 50%\n int newCapacity = oldCapacity + ((oldCapacity < 64) ?\n (oldCapacity + 2) :\n (oldCapacity >> 1));\n Object[] newQueue = new Object[newCapacity];\n for (int i = 0; i < heap.length; i++) {\n newQueue[i] = heap[i];\n }\n heap = newQueue;\n }",
"public void grow() {\n this.diameterInMicrometers += growthIncrementInMicrometers;\n if (this.diameterInMicrometers > 1000) throw new Error(\"TestTube will explode in 5 seconds\");\n }",
"@Override\r\n\tpublic void resize() {\n\t\t\r\n\t}",
"private void resize() {\n }",
"private void increaseSize() {\n data = Arrays.copyOf(data, size * 3 / 2);\n }",
"private void grow(int bucketIndex) {\n StopWatch.start(false);\n //String procRID = ProvenanceRecorder.documentProcedure(ProvUtils.getStoreOfCurrentThread(), this, \"grow\", \"label\", true, new String[]{\"bucketIndex\"}, new Object[]{bucketIndex}, true);\n // double the bucket size\n int[] newBucket = new int[table[bucketIndex].length * 2];\n\n int index = 0;\n for (; index < table[bucketIndex].length; index++) {\n newBucket[index] = table[bucketIndex][index];\n }\n for (; index < newBucket.length; index++) {\n newBucket[index] = NULL_ELEMENT;\n }\n table[bucketIndex] = newBucket;\n //ProvenanceRecorder.endProcedureDocumentation(ProvUtils.getStoreOfCurrentThread(), this, \"grow\", procRID, null, null, null, null, true, false, false, true);\n StopWatch.stop(false);\n }",
"private void queueResize() {\n queue = Arrays.copyOf(queue, queue.length + 1);\n }",
"private void expand(int newCapacity) {\r\n\t\tcapacity = newCapacity;\r\n\t\tsize = 0;\r\n\t\tLinkedList<KVPair>[] hashMapNew = hashMapArray;\r\n\t\thashMapArray = new LinkedList[newCapacity];\r\n\t\tfor (LinkedList<KVPair> i : hashMapNew) {\r\n\t\t\tif (i != null) {\r\n\t\t\t\tfor (int j = 0; j < i.size(); j++) {\r\n\t\t\t\t\tK putKey = i.get(j).getKey();\r\n\t\t\t\t\tV putValue = i.get(j).getValue();\r\n\t\t\t\t\tput(putKey, putValue);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tprivate void resize(int newSize){\n\t\tif(newSize > max){\n\t\t\tnewSize = max;\n\t\t}\n\t\tT[] newData = (T[])new Object[newSize];\n\t\tfor(int i = 0; i < size; i++){\n\t\t\tnewData[i] = data[i];\n\t\t}\n\t\tdata = newData;\n\t}",
"@Override\n\tpublic void setBufferSize(int size) {\n\t}",
"void resize() {\n capacity = array.size();\n }",
"private void growQueue() {\n Runnable[] oldQ = queue;\n int oldSize = oldQ.length;\n int newSize = oldSize << 1;\n if (newSize > MAXIMUM_QUEUE_CAPACITY)\n throw new RejectedExecutionException(\"Queue capacity exceeded\");\n Runnable[] newQ = queue = new Runnable[newSize];\n\n int b = base;\n int bf = b + oldSize;\n int oldMask = oldSize - 1;\n int newMask = newSize - 1;\n do {\n int oldIndex = b & oldMask;\n Runnable t = oldQ[oldIndex];\n if (t != null && !casSlotNull(oldQ, oldIndex, t))\n t = null;\n setSlot(newQ, b & newMask, t);\n } while (++b != bf);\n pool.signalWork();\n }",
"@SuppressWarnings(\"unchecked\")\n\t private boolean grow() {\n\n\t /* \n\t * Add code here \n\t * Expand capacity (double it) and copy old array contents to the\n\t * new one. \n\t */\n\t\t \n\t\t capacity = (capacity*2);\n\t\t E[] new_elements = elements;\n\t\t elements = (E[])new Object[capacity];\n\t\t for(int i=0; i<new_elements.length;i++){\n\t\t\t elements[i] = new_elements[i];\n\t\t }\n\t System.out.println(\"Capacity reached. Increasing storage...\");\n\t System.out.println(\"New capacity is \" + capacity + \" elements\");\n\n\t return true;\n\t }",
"public ByteBuf capacity(int newCapacity)\r\n/* 745: */ {\r\n/* 746:754 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 747:755 */ return super.capacity(newCapacity);\r\n/* 748: */ }",
"public static native void sq_realloc(long p, long oldSize, long newSize);",
"private void enlargeCapacity() {\n Object[] tmp = this.container;\n this.container = new Object[this.container.length + this.capacity];\n System.arraycopy(tmp, 0, this.container, 0, tmp.length);\n }",
"@Override\n\tpublic void resize() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tprivate void increaseCapacity()\r\n\t{\r\n\t\t// Store a reference to the old table\r\n\t\tHashEntry<K, V>[] oldTable = table;\r\n\r\n\t\t// Attempt to resize the table\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Make a new table full of empty entries\r\n\t\t\ttable = new HashEntry[SIZES[++sizeIdx]];\r\n\t\t}\r\n\t\t// We have too many entries in the hash table: no more sizes left\r\n\t\tcatch (ArrayIndexOutOfBoundsException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Too many entries in hash table. Exiting.\");\r\n\t\t\tSystem.exit(4);\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < oldTable.length; ++i)\r\n\t\t{\r\n\t\t\t// If we are at an entry with a key and value\r\n\t\t\tif (oldTable[i] != null && !oldTable[i].isTombstone)\r\n\t\t\t{\r\n\t\t\t\t// Add every value at that key to the bigger table\r\n\t\t\t\tfor (V value : oldTable[i].value)\r\n\t\t\t\t{\r\n\t\t\t\t\tinsert(oldTable[i].key, value);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void ensureCapacity() {\n if(size() >= (0.75 * data.length)) // size() == curSize\n resize(2 * size());\n }",
"public ByteBuffer rent(int expSize) {\n\t\t\tArguments.validate(expSize >= 0, \"expSize must be positive\");\n\t\t\tDeque<Reference<ByteBuffer>> cache = buffers.get(expSize);\n\t\t\tif (cache != null) {\n\t\t\t\twhile (!cache.isEmpty()) {\n\t\t\t\t\tReference<ByteBuffer> ref = cache.pollLast();\n\t\t\t\t\tif (ref == null)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tByteBuffer buf = ref.get();\n\t\t\t\t\tif (buf != null)\n\t\t\t\t\t\treturn buf;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn ByteBuffer.allocateDirect(1 << expSize);\n\t\t}",
"public void grow(int n) {\r\n\t\t// implementation not shown\r\n\t}",
"private void reallocate(){\n capacity = 2 * capacity;\n theData = Arrays.copyOf(theData, capacity);\n }",
"private void expandCapacity() {\n heap = Arrays.copyOf(heap, heap.length * 2);\n }",
"private void table_resized()\n {\n int ne = pt_.num_of_visible_rows();\n int max = vsb_.getModel().getMaximum();\n \n int val = vsb_.getModel().getValue();\n val = Math.min(val, max - ne);\n\n vsb_.getModel().setValue(val);\n vsb_.getModel().setExtent(ne);\n\n // Readjust value, extent of the horizontal scroll bar\n max = max_horz_scroll_;\n ne = Math.min(this.pt_.as_component().getWidth(), max);\n\n val = hsb_.getModel().getValue();\n val = Math.min(val, max - ne);\n\n// Misc.log.println(\"max=\" + max + \", ne=\" + ne + \", val=\" + val);\n// Misc.log.flush();\n\n hsb_.getModel().setExtent(ne); \n hsb_.getModel().setValue(val);\n }",
"protected void newSize() {\r\n adjustSize();\r\n halt();\r\n newGame();\r\n }",
"private static ByteBuffer resizeByteBuffer(ByteBuffer buffer, int size)\n {\n ByteBuffer newBuffer = BufferUtils.createByteBuffer(size);\n buffer.flip();\n newBuffer.put(buffer);\n\n return newBuffer;\n }",
"private void grow() {\n T[] arr_temp = (T[]) new Object[arr.length*2];\n for (int i=0; i<arr.length; i++){\n arr_temp[i] = arr[i];\n }\n arr = arr_temp;\n }",
"@Override\n public DataBuffer reallocate(long length) {\n val oldPointer = ptrDataBuffer.primaryBuffer();\n\n if (isAttached()) {\n val capacity = length * getElementSize();\n val nPtr = getParentWorkspace().alloc(capacity, dataType(), false);\n this.ptrDataBuffer.setPrimaryBuffer(new PagedPointer(nPtr, 0), length);\n\n switch (dataType()) {\n case BOOL:\n pointer = nPtr.asBoolPointer();\n indexer = new DeviceBooleanIndexer((BooleanPointer) pointer);\n break;\n case UTF8:\n case BYTE:\n case UBYTE:\n pointer = nPtr.asBytePointer();\n indexer = new DeviceByteIndexer((BytePointer) pointer);\n break;\n case UINT16:\n case SHORT:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceShortIndexer((ShortPointer) pointer);\n break;\n case UINT32:\n pointer = nPtr.asIntPointer();\n indexer = new DeviceUIntIndexer((IntPointer) pointer);\n break;\n case INT:\n pointer = nPtr.asIntPointer();\n indexer = new DeviceIntIndexer((IntPointer) pointer);\n break;\n case DOUBLE:\n pointer = nPtr.asDoublePointer();\n indexer = new DeviceDoubleIndexer((DoublePointer) pointer);\n break;\n case FLOAT:\n pointer = nPtr.asFloatPointer();\n indexer = new DeviceFloatIndexer((FloatPointer) pointer);\n break;\n case HALF:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceHalfIndexer((ShortPointer) pointer);\n break;\n case BFLOAT16:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceBfloat16Indexer((ShortPointer) pointer);\n break;\n case UINT64:\n case LONG:\n pointer = nPtr.asLongPointer();\n indexer = new DeviceLongIndexer((LongPointer) pointer);\n break;\n }\n\n nativeOps.memcpySync(pointer, oldPointer, this.length() * getElementSize(), 3, null);\n workspaceGenerationId = getParentWorkspace().getGenerationId();\n } else {\n this.ptrDataBuffer.expand(length);\n val nPtr = new PagedPointer(this.ptrDataBuffer.primaryBuffer(), length);\n\n switch (dataType()) {\n case BOOL:\n pointer = nPtr.asBoolPointer();\n indexer = new DeviceBooleanIndexer((BooleanPointer) pointer);\n break;\n case UTF8:\n case BYTE:\n case UBYTE:\n pointer = nPtr.asBytePointer();\n indexer = new DeviceByteIndexer((BytePointer) pointer);\n break;\n case UINT16:\n case SHORT:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceShortIndexer((ShortPointer) pointer);\n break;\n case UINT32:\n pointer = nPtr.asIntPointer();\n indexer = new DeviceUIntIndexer((IntPointer) pointer);\n break;\n case INT:\n pointer = nPtr.asIntPointer();\n indexer = new DeviceIntIndexer((IntPointer) pointer);\n break;\n case DOUBLE:\n pointer = nPtr.asDoublePointer();\n indexer = new DeviceDoubleIndexer((DoublePointer) pointer);\n break;\n case FLOAT:\n pointer = nPtr.asFloatPointer();\n indexer = new DeviceFloatIndexer((FloatPointer) pointer);\n break;\n case HALF:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceHalfIndexer((ShortPointer) pointer);\n break;\n case BFLOAT16:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceBfloat16Indexer((ShortPointer) pointer);\n break;\n case UINT64:\n case LONG:\n pointer = nPtr.asLongPointer();\n indexer = new DeviceLongIndexer((LongPointer) pointer);\n break;\n }\n }\n\n this.underlyingLength = length;\n this.length = length;\n return this;\n }",
"private void grow() {\n OmaLista<OmaPari<K, V>>[] newList = new OmaLista[this.values.length * 2];\n\n for (int i = 0; i < this.values.length; i++) {\n copy(newList, i);\n }\n\n this.values = newList;\n }",
"private final void resizeVertex(int capacity) {\n\t\tif (vertex.length < capacity) {\n\t\t\tvertex = new float[capacity];\n\t\t}\n\t}",
"private void reallocArray() {\n this.stringArray = Arrays.copyOf\n (stringArray, stringArray.length*INCREMENT);\n }",
"private void resize(int newCap) {\n\t\tE[] newArray = (E[]) new Object[newCap];\n\t\tfor(int x = 0; x < newCap && x < capacity; x++) {\n\t\t\tnewArray[x] = elements[x];\n\t\t}\n\t\telements = newArray;\n\t\tcapacity = newCap;\n\t}",
"private void controlResized() {\n disposeBackBuffer();\n initializeBackBuffer();\n\n redraw();\n }",
"private void resize(long oldMask, E[] oldBuffer, long pIndex, E e)\r\n/* 389: */ {\r\n/* 390:680 */ int newBufferLength = getNextBufferSize(oldBuffer);\r\n/* 391:681 */ E[] newBuffer = CircularArrayOffsetCalculator.allocate(newBufferLength);\r\n/* 392: */ \r\n/* 393:683 */ this.producerBuffer = newBuffer;\r\n/* 394:684 */ int newMask = newBufferLength - 2 << 1;\r\n/* 395:685 */ this.producerMask = newMask;\r\n/* 396: */ \r\n/* 397:687 */ long offsetInOld = LinkedArrayQueueUtil.modifiedCalcElementOffset(pIndex, oldMask);\r\n/* 398:688 */ long offsetInNew = LinkedArrayQueueUtil.modifiedCalcElementOffset(pIndex, newMask);\r\n/* 399: */ \r\n/* 400:690 */ UnsafeRefArrayAccess.soElement(newBuffer, offsetInNew, e);\r\n/* 401:691 */ UnsafeRefArrayAccess.soElement(oldBuffer, nextArrayOffset(oldMask), newBuffer);\r\n/* 402: */ \r\n/* 403: */ \r\n/* 404:694 */ long cIndex = lvConsumerIndex();\r\n/* 405:695 */ long availableInQueue = availableInQueue(pIndex, cIndex);\r\n/* 406:696 */ RangeUtil.checkPositive(availableInQueue, \"availableInQueue\");\r\n/* 407: */ \r\n/* 408: */ \r\n/* 409: */ \r\n/* 410:700 */ soProducerLimit(pIndex + Math.min(newMask, availableInQueue));\r\n/* 411: */ \r\n/* 412: */ \r\n/* 413:703 */ soProducerIndex(pIndex + 2L);\r\n/* 414: */ \r\n/* 415: */ \r\n/* 416: */ \r\n/* 417: */ \r\n/* 418:708 */ UnsafeRefArrayAccess.soElement(oldBuffer, offsetInOld, JUMP);\r\n/* 419: */ }",
"private void resize() {\n contents = Arrays.copyOf(contents, top*2);\r\n }",
"public static native boolean Grow(long lpjFbxArrayVector2, int pSize);",
"@Override\n public void setBufferSize(int arg0) {\n\n }",
"private void reallocate() {\n\t\tthis.capacity *= 2;\n\t\tObject[] newElements = new Object[this.capacity];\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tnewElements[i] = this.elements[i];\n\t\t}\n\n\t\tthis.elements = newElements;\n\t}",
"private ByteBuffer resizeApplicationBuffer(ByteBuffer app) {\n if (app.remaining() < appBuffSize) {\r\n ByteBuffer bb = ByteBuffer.allocate(app.capacity() + appBuffSize);\r\n app.flip();\r\n bb.put(app);\r\n return bb;\r\n } else {\r\n return app;\r\n }\r\n }",
"public void resizeStartUnchanged(int newcapacity){\n Object []lin=new Object[newcapacity];\n int k=start;\n for(int i=0;i<size;i++){\n lin[i]=cir[k];\n k=(k+1)%cir.length;\n }\n cir=new Object[newcapacity];\n for(int i=0;i<size;i++){\n cir[k]=lin[i];\n k=(k+1)%cir.length;\n }\n }",
"@Override\n\tpublic void resized() {\n\t}",
"private void resize(int newSize){\n Item[] temp = (Item[]) new Object[newSize]; //newsize\n for(int i=0; i<itemCount; i++){\n temp[i] = array[i]; // fill temp with array's stuff\n }\n array = temp; // reset array to temp\n }",
"public void reallocateBuckets() { }",
"public void resizeEditNode(StringBuffer buffer) {\r\n if (nodeEdit != null) {\r\n Rectangle rectangle = MyMath.stringBounds(buffer.toString(), nodeEdit.getFont());\r\n if (rectangle.width > nodeEdit.getRectangle().width - 41) {\r\n nodeEdit.getRectangle().width = rectangle.width + 41;\r\n }\r\n nodeEdit.setMinWidth(rectangle.width + 41);\r\n }\r\n }",
"private void reallocateDoubleCapacity() {\n\t\tObject oldElements[] = elements;\n\t\tcapacity *= reallocateFactor;\n\t\tsize = 0;\n\t\telements = new Object[capacity];\n\n\t\tfor (Object object : oldElements) {\n\t\t\tthis.add(object);\n\t\t}\n\t}",
"private void reallocateIfOverfilled() {\r\n\t\tif ((size * 1.0 / table.length) > MAX_FULLNESS_PERCENTAGE) {\r\n\t\t\treallocateArray();\r\n\t\t}\r\n\t}",
"private void growTable() {\n // Instantiate new array double the size\n LinkedList<Entry<K, V>>[] tmp = (LinkedList<Entry<K, V>>[]) new LinkedList<?>[this.array.length * 2];\n for (int i = 0; i < this.array.length; i++) {\n // Visit every chain of our current array\n if (this.array[i] != null) {\n // If there's a linked list there, instantiate a new linked list\n // with all the same key, values into the new, expanded array\n tmp[i] = new LinkedList<Entry<K, V>>(this.array[i]);\n }\n }\n // Set the current array to be the updated expanded array\n this.array = tmp;\n }",
"private void resize(int newCapacity) {\n MapEntryImpl[] newEntries = new MapEntryImpl[newCapacity];\n int newMask = newEntries.length - 1;\n for (int i = 0, n = entries.length; i < n; i++) {\n MapEntryImpl entry = entries[i];\n if (entry == null) continue;\n int newIndex = entry.hash & newMask;\n while (newEntries[newIndex] != null) { // Find empty slot.\n newIndex = (newIndex + 1) & newMask;\n }\n newEntries[newIndex] = entry;\n }\n entries = newEntries;\n }",
"private void grow(){\n\t\tberries.replaceAll((p, v) -> v + 1);\n\t\tapples.replaceAll((p, v) -> v + 1);\n\t}",
"private void grow()\r\n\t{\r\n\t\tint [] temp = new int[count * 2]; // new array to hold the data\r\n\r\n\t\t// copy old data in new array\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t\ttemp[i] = array[i];\r\n\r\n\t\tarray = temp; // update the new array\r\n\t}",
"private void initTermBuffer() {\n if (termBuffer == null) {\n if (termText == null) {\n termBuffer = new char[MIN_BUFFER_SIZE];\n termLength = 0;\n } else {\n int length = termText.length();\n if (length < MIN_BUFFER_SIZE) length = MIN_BUFFER_SIZE;\n termBuffer = new char[length];\n termLength = termText.length();\n termText.getChars(0, termText.length(), termBuffer, 0);\n termText = null;\n }\n } else if (termText != null)\n termText = null;\n }",
"@SuppressWarnings(\"unchecked\")\n\tprotected void grow(){\n\t\t// makes new arraylist\n\t\tT[] temp = (T[]) new Object[data.length *2];\n\t\tfor(int i = 0; i < data.length; i++ ){\n\t\t\ttemp[i] = data[i];\n\t\t}\n\t\tdata = temp;\n\t}",
"private void maybeResize() {\n\t\tif ( this.size <= this.table.length / 2) return;\r\n\t\t\r\n\t\t//store the current entries\r\n\t\tList<Entry<K,V>> temp = new ArrayList<>();\r\n\t\tfor (Entry<K,V> entry : this.entrySet())\r\n\t\t\ttemp.add(temp.size(), entry);\r\n\t\t\r\n\t\t//create new table\r\n\t\tthis.createTable(this.table.length * 2);\r\n\t\t\r\n\t\t//reinsert the old entries (since the capacity has changed, indices will be different)\r\n\t\tfor (Entry<K,V> entry : temp ) \r\n\t\t\tthis.put(entry.getKey(), entry.getValue());\r\n\t\t\r\n\t}",
"public void upgradeCapacity()\r\n\t{\r\n\t\tcapacity++;\r\n\t}",
"private void increaseSize() {\r\n\t\tE[] biggerE = (E[]) new Object[this.capacity * 2];\r\n\t\tdouble[] biggerC = new double[this.capacity * 2];\r\n\t\tfor (int i = 0; i < this.size; i++) {\r\n\t\t\tbiggerE[i] = this.objectHeap[i];\r\n\t\t\tbiggerC[i] = this.costHeap[i];\r\n\t\t}\r\n\t\tthis.costHeap = biggerC;\r\n\t\tthis.objectHeap = biggerE;\r\n\t\tthis.capacity = this.capacity * 2;\r\n\t}",
"private void resizeBatteryArrays(int newSize) {\n if(newSize != mNumBatteries) {\n mNumBatteries = newSize;\n Float[] tempVoltages = new Float[mNumBatteries];\n Integer[] tempStatuses = new Integer[mNumBatteries];\n for (int i = 0; i < (mNumBatteries < mBatteryVoltages.length ? mNumBatteries : mBatteryVoltages.length); i++) {\n tempVoltages[i] = mBatteryVoltages[i];\n tempStatuses[i] = mBatteryStatuses[i];\n }\n if (mNumBatteries > mBatteryVoltages.length) {\n for (int j = mBatteryVoltages.length; j < mNumBatteries; j++) {\n tempVoltages[j] = DEFAULT_BATT_VOLTAGE;\n tempStatuses[j] = 0;\n }\n }\n mBatteryVoltages = tempVoltages;\n mBatteryStatuses = tempStatuses;\n mAdapter = new BatteryAdapter(mBatteryVoltages, mBatteryStatuses);\n recyclerView.setAdapter(mAdapter);\n recyclerView.postInvalidate();\n }\n }",
"private void resize(int newSize) {\n Item[] resized = (Item[]) new Object[newSize];\n\n for (int i = 0; i < elements; i++)\n resized[i] = values[i];\n\n values = resized;\n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate void growArray() {\n\t\tObject[] newList = new Object[size * 2];\n\t\tfor (int i = 0; i < size(); i++) {\n\t\t\tnewList[i] = get(i);\n\t\t}\n\t\tlist = (E[]) newList;\n\t\tsize *= 2;\n\t}",
"public void newBufLine() {\n this.buffer.add(new ArrayList<Integer>());\n this.columnT = 0;\n this.lineT++;\n }",
"protected void enlarge ()\n {\n // The new capacity of the graph\n int newLength = 1 + vertices.length + ENLARGE_VALUE * vertices.length / 100;\n\n E[] newVertices = (E[]) new Object[newLength];\n Node[] newAdjacencySequences = new Node[newLength];\n \n for (int index = 0; index <= lastIndex; index++)\n {\n newVertices[index] = vertices[index];\n vertices[index] = null;\n newAdjacencySequences[index] = adjacencySequences[index];\n adjacencySequences[index] = null;\n }\n\n vertices = newVertices;\n adjacencySequences = newAdjacencySequences;\n }",
"protected void ensureBufferSpace(int expectedAdditions)\n {\n\t\tthrow new UnsupportedOperationException(lengthChangeError);\n }",
"private T[] resize(T[] arr, double factor) {\n int nSize = (int) (arr.length * factor) + 1;\n // initialize the new array with a new size\n T[] nArr = (T[]) (new Object[nSize]);\n // always take the smallest length to make sure the index is in bound\n int size = Math.min(nArr.length, arr.length);\n // copy all values from the old array into the new array\n for (int i = 0; i < size; i++) {\n nArr[i] = arr[i];\n }\n return nArr;\n }",
"private void fillReceiveBuffer(final int requestedSize) {\n ByteBuffer readBuffer = receiveBuffer;\n if (requestedSize > receiveBuffer.capacity()) {\n readBuffer = socketService.getByteBuffer(requestedSize);\n readBuffer.put(receiveBuffer).flip();\n socketService.releaseByteBuffer(receiveBuffer);\n }\n receiveBuffer = null;\n socketHandle.read(readBuffer).addDeferrable(this, true);\n }",
"protected abstract void resize();",
"private static char[] growBuffer(char[] dest, int index, int size) {\n char[] copy = new char[size];\n if (index > 0) {\n System.arraycopy(dest, 0, copy, 0, index);\n }\n return copy;\n }"
]
| [
"0.70681685",
"0.63041997",
"0.6188244",
"0.61560154",
"0.60131186",
"0.5992106",
"0.5985854",
"0.5980105",
"0.5969063",
"0.5837725",
"0.58220387",
"0.58148026",
"0.5777577",
"0.5760877",
"0.575007",
"0.56721437",
"0.56658906",
"0.56627023",
"0.5657834",
"0.5655973",
"0.5622999",
"0.5622999",
"0.5576244",
"0.55695736",
"0.55572236",
"0.554434",
"0.5540879",
"0.5522197",
"0.5510565",
"0.5500085",
"0.54997164",
"0.54847",
"0.5484367",
"0.547104",
"0.54684",
"0.5460152",
"0.54483676",
"0.5435986",
"0.54344016",
"0.53940773",
"0.5392389",
"0.5360514",
"0.53569096",
"0.53501976",
"0.5347464",
"0.53401524",
"0.533567",
"0.5334182",
"0.531856",
"0.53123266",
"0.5297056",
"0.5295768",
"0.52842486",
"0.52735096",
"0.5272919",
"0.527259",
"0.527073",
"0.5262764",
"0.5242757",
"0.52420783",
"0.52342767",
"0.5219904",
"0.5219409",
"0.5214662",
"0.5213476",
"0.52104306",
"0.5199683",
"0.519888",
"0.51675284",
"0.5160969",
"0.51540935",
"0.5152469",
"0.51458704",
"0.5144786",
"0.514437",
"0.51437527",
"0.5138082",
"0.5135936",
"0.5132353",
"0.5121447",
"0.51141685",
"0.51064205",
"0.510155",
"0.5098625",
"0.5097497",
"0.50932044",
"0.50913244",
"0.5087718",
"0.50875455",
"0.50826895",
"0.50808346",
"0.5080598",
"0.5080254",
"0.5074614",
"0.5065592",
"0.50604814",
"0.5060078",
"0.5058142",
"0.5057242",
"0.5056327"
]
| 0.76207715 | 0 |
TODO: once we remove the deprecated termText() method and switch entirely to char[] termBuffer we don't need to use this method anymore | private void initTermBuffer() {
if (termBuffer == null) {
if (termText == null) {
termBuffer = new char[MIN_BUFFER_SIZE];
termLength = 0;
} else {
int length = termText.length();
if (length < MIN_BUFFER_SIZE) length = MIN_BUFFER_SIZE;
termBuffer = new char[length];
termLength = termText.length();
termText.getChars(0, termText.length(), termBuffer, 0);
termText = null;
}
} else if (termText != null)
termText = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getTermText() {\n return termText;\n }",
"public void setTermText(String text) {\n termText = text;\n termBuffer = null;\n }",
"Term getTerm();",
"final void getText(CharTermAttribute t) {\n t.copyBuffer(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);\n }",
"public final void getText(CharTermAttribute t) {\n t.copyBuffer(zzBuffer, zzStartRead, zzMarkedPos-zzStartRead);\n}",
"public String getTerm() {\n return term;\n }",
"public String getTerm(){\n return this.term;\n }",
"public void getTerm()\n\t\t{\n\t\t\t//Open SciencePhrases.txt\n\t\t\tFile f1 = new File(\"SciencePhrases.txt\");\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tspIn = new Scanner(f1);\n\t\t\t}\n\t\t\tcatch(FileNotFoundException e)\n\t\t\t{\n\t\t\t\tSystem.err.println(\"Cannot create SciencePhrases.txt to be written \"\n\t\t\t\t\t\t+ \"to.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\n\t\t\t//Storing term at curTerm in the variables term and picTerm\n\t\t\tString cur = new String(\"\");\n\t\t\tfor(int i = 0; i<curTerm; i++)\n\t\t\t{\n\t\t\t\tterm = \"\";\n\t\t\t\twhile(!cur.equals(\"-\"))\n\t\t\t\t\tcur = spIn.nextLine();\n\t\t\t\tcur = spIn.nextLine();\n\t\t\t\tpicTerm = cur;\n\t\t\t\tcur = spIn.nextLine();\n\t\t\t\twhile(!cur.equals(\"-\"))\n\t\t\t\t{\n\t\t\t\t\tterm += cur;\n\t\t\t\t\tcur = spIn.nextLine();\n\t\t\t\t}\n\t\t\t}\t\n\t\t}",
"private void applyTermOptions() {\n\tif (term == null)\n\t return;\n\n term.setFixedFont(true);\n term.setFont(termOptions().getFont());\n\n\tterm.setBackground(termOptions().getBackground());\n\tterm.setForeground(termOptions().getForeground());\n\tterm.setHighlightColor(termOptions().getSelectionBackground());\n\tterm.setHistorySize(termOptions().getHistorySize());\n\tterm.setTabSize(termOptions().getTabSize());\n\n\tterm.setClickToType(termOptions().getClickToType());\n\tterm.setScrollOnInput(termOptions().getScrollOnInput());\n\tterm.setScrollOnOutput(termOptions().getScrollOnOutput());\n\tterm.setHorizontallyScrollable(!termOptions().getLineWrap());\n\n\t// If we change the font from smaller to bigger, the size\n\t// calculations go awry and the last few lines are forever hidden. \n\t//\n\t// One usually uses 'pack()' but it doesn't work because it\n\t// applies only to JFrames an under vulcan in MDI mode it had\n\t// catastrophic results (the whole window gets maximized, etc.)\n\t//\n\t// The following is a workaround used in the Rtc windows' \n\t// componentShown() as a fix for\n\t// 4652678 (Memory Usage window and Access Errors window are ...)\n\n\tsetSize(getPreferredSize());\n\tvalidate();\n }",
"public int getTermIndex() {return termIndex;}",
"Term getCurrentTerm() {\n return currentTerm;\n }",
"abstract public TermDocs termDocs(Term t) throws IOException;",
"@Override\n public String getTermByIndex(int index) {\n return null;\n }",
"public void printTerm(){\n\n // print fac node\n this.fac.printFac();\n\n // check selection\n if (this.selection == 2) {\n\n // print \"*\"\n System.out.print(\" * \");\n\n // print term node\n this.term.printTerm();\n\n }\n\n }",
"public String getTerm() {\r\n return (String) getAttributeInternal(TERM);\r\n }",
"String highlightTerm(String term);",
"void compileTerm() {\n tagBracketPrinter(TERM_TAG, OPEN_TAG_BRACKET);\n try {\n compileTermBasicHelper();\n } catch (IOException e) {\n e.printStackTrace();\n }\n tagBracketPrinter(TERM_TAG, CLOSE_TAG_BRACKET);\n }",
"public final int termLength() {\n initTermBuffer();\n return termLength;\n }",
"public char[] resizeTermBuffer(int newSize) {\n initTermBuffer();\n if (newSize > termBuffer.length) {\n int size = termBuffer.length;\n while(size < newSize)\n size *= 2;\n char[] newBuffer = new char[size];\n System.arraycopy(termBuffer, 0, newBuffer, 0, termBuffer.length);\n termBuffer = newBuffer;\n }\n return termBuffer;\n }",
"public Element compileTerm() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tString varName;\n\n\t\tElement termParent = document.createElement(\"term\");\n\n\t\ttoken = jTokenizer.returnTokenVal();\n\t\ttokenType = jTokenizer.tokenType();\n\n\t\t// Case 1: ( expression )\n\n\t\tif (token.equals(\"(\")) {\n\t\t\t// (\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\n\t\t\t// exp\n\t\t\tjTokenizer.advance();\n\t\t\ttermParent.appendChild(compileExpression());\n\n\t\t\t// )\n\t\t\tjTokenizer.advance();\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\n\t\t}\n\n\t\t// Case 2: unaryOp term\n\t\telse if (token.matches(\"\\\\-|~\")) {\n\n\t\t\t// unary op\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tString op = jTokenizer.returnTokenVal();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\t\n\t\t\t\n\t\t\t//Since it is postfix, the term comes first\n\t\t\t\n\t\t\t// term\n\t\t\tjTokenizer.advance();\n\t\t\ttermParent.appendChild(compileTerm());\n\n\t\t\t// appending the op\n\t\t\tif (op.equals(\"~\")) {\n\t\t\t\twriter.writeArithmetic(\"not\");\n\t\t\t} else {\n\t\t\t\twriter.writeArithmetic(\"neg\");\n\t\t\t}\n\n\t\t}\n\t\t\n\t\t// Any constant or keyword\n\t\telse if (tokenType.matches(\"keyword|integerConstant|stringConstant\")) {\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\t\n\t\t\t//pushing an integer constant\n\t\t\tif (tokenType.equals(\"integerConstant\")) {\n\t\t\t\twriter.writePush(\"constant\", Integer.parseInt(token));\t\n\t\t\t}\n\t\t\t//For string, have to iterate along the length of the string and call string.append\n\t\t\telse if (tokenType.equals(\"stringConstant\")) {\n\t\t\t\twriter.writePush(\"constant\", token.length());\n\t\t\t\twriter.writeCall(\"String.new\", 1);\n\n\t\t\t\tfor (int i = 0; i < token.length(); i++) {\n\t\t\t\t\twriter.writePush(\"constant\", (int) token.charAt(i));\n\t\t\t\t\twriter.writeCall(\"String.appendChar\", 2);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} \n\t\t\t//Pushing the keyword onto the stack, depending on what it is\n\t\t\telse if (tokenType.equals(\"keyword\")) {\n\t\t\t\tif (token.equals(\"true\")) {\n\t\t\t\t\twriter.writePush(\"constant\", 0);\n\t\t\t\t\twriter.writeArithmetic(\"not\");\n\t\t\t\t} else if (token.equals(\"this\")) {\n\t\t\t\t\twriter.writePush(\"pointer\", 0);\n\t\t\t\t} else if (token.equals(\"false\") || token.equals(\"null\")) {\n\t\t\t\t\twriter.writePush(\"constant\", 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Variable, Variable[expression] or subroutineCall\n\t\telse if (tokenType.equals(\"identifier\")) {\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\tvarName = jTokenizer.returnTokenVal();\n\t\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\t\tclone.advance();\n\t\t\ttoken = clone.returnTokenVal();\n\n\t\t\t// Case 1: Array dereferencing\n\t\t\tif (token.equals(\"[\")) {\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// push base id\n\t\t\t\twriter.writePush(symTable.lookup(varName).kind, symTable.lookup(varName).index);\n\n\t\t\t\t// Exp\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttermParent.appendChild(compileExpression());\n\n\t\t\t\t// ]\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// base + offset\n\t\t\t\twriter.writeArithmetic(\"add\");\n\n\t\t\t\t// pop into that\n\t\t\t\twriter.writePop(\"pointer\", 1);\n\t\t\t\t// push value into stack\n\t\t\t\twriter.writePush(\"that\", 0);\n\t\t\t}\n\n\t\t\t// Case 2: variable/class.subroutine call\n\t\t\telse if (token.equals(\".\")) {\n\n\t\t\t\tboolean method = false;\n\n\t\t\t\t// .\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// subroutine name\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tString subName = jTokenizer.returnTokenVal();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// (\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\tString firstName = varName;\n\t\t\t\t//Similar to the compileDo method, have to distinguish between\n\t\t\t\t//method and function\n\t\t\t\tif (symTable.lookup(firstName) != null) {\n\t\t\t\t\tmethod = true;\n\t\t\t\t\twriter.writePush(symTable.lookup(firstName).kind, symTable.lookup(firstName).index);\n\t\t\t\t\tvarName = symTable.lookup(firstName).type;\n\t\t\t\t}\n\t\t\t\t// expressionList\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tElement compileExpression = compileExpressionList();\n\t\t\t\tint nArgs = compileExpression.getChildNodes().getLength();\n\t\t\t\ttermParent.appendChild(compileExpression);\n\n\t\t\t\t// Checking if method or function\n\t\t\t\tif (method) {\n\t\t\t\t\tnArgs++;\n\t\t\t\t}\n\t\t\t\twriter.writeCall(varName + \".\" + subName, nArgs);\n\n\t\t\t\t// )\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\t\t\t}\n\n\t\t\t// Case 3: function call\n\t\t\telse if (token.equals(\"(\")) {\n\t\t\t\t// (\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// expression list\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tElement node = compileExpressionList();\n\t\t\t\tint nArgs = node.getChildNodes().getLength();\n\t\t\t\ttermParent.appendChild(node);\n\n\t\t\t\t// )\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// Writing the VML for a method call\n\t\t\t\twriter.writePush(\"pointer\", 0);\n\t\t\t\twriter.writeCall(className + \".\" + varName, ++nArgs);\n\t\t\t}\n\t\t\t// Case 4: Variable name.\n\t\t\telse {\n\t\t\t\twriter.writePush(symTable.lookup(varName).kind, symTable.lookup(varName).index);\n\t\t\t}\n\t\t}\n\t\treturn termParent;\n\t}",
"private String getTerm(ITermbase p_tb, long p_entryId) throws Exception\n {\n String entryXml = p_tb.getEntry(p_entryId);\n XmlParser parser = XmlParser.hire();\n Document dom = parser.parseXml(entryXml);\n Element root = dom.getRootElement();\n List langGrps = root\n .selectNodes(\"/conceptGrp/languageGrp/termGrp/term\");\n Element firstTerm = (Element) langGrps.get(0);\n String termText = firstTerm.getText();\n XmlParser.fire(parser);\n return termText;\n }",
"TermNode() {\n this.fac = new FacNode();\n this.term = null;\n this.selection = 1;\n }",
"protected String stem(String term) {\r\n\t\tStemmer stemmer = new Stemmer();\r\n\t\tfor(char a : term.toCharArray()){\r\n\t\t\tstemmer.add(a);\r\n\t\t}\r\n\t\tstemmer.stem();\r\n\t\treturn stemmer.toString();\r\n\t}",
"public StreamTerm term() {\n return term;\n }",
"public void setTerm(String value) {\r\n setAttributeInternal(TERM, value);\r\n }",
"private void saveTermText() {\n String jTermText = jTerm.read();\n if (jTermText != null && jTermText.length() > 0) {\n JFileChooser fileChooser = new JFileChooser();\n File path = new File(Settings.get(\"Terminal_SavePath\"));\n if (!path.exists()) {\n path = new File(MobydroidStatic.MOBY_DATA_PATH);\n }\n fileChooser.setCurrentDirectory(path);\n fileChooser.setSelectedFile(new File(\"TerminalText_\" + (new SimpleDateFormat(\"yyyy-MM-dd_HH-mm-ss\")).format(new Date()) + \".txt\"));\n fileChooser.setDialogTitle(\"Save Terminal Text\");\n fileChooser.setFileFilter(new FileNameExtensionFilter(\"*.txt\", \"txt\"));\n File file;\n do {\n if (fileChooser.showSaveDialog(this) != JFileChooser.APPROVE_OPTION) {\n return;\n }\n file = fileChooser.getSelectedFile();\n if (!file.exists()) {\n break;\n }\n if (JOptionPane.showConfirmDialog(this, \"Are you sure?\", \"Replace File\", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE, ResourceLoader.MaterialIcons_WARNING) == JOptionPane.YES_OPTION) {\n break;\n }\n } while (true);\n\n // save file\n try (FileOutputStream fos = new FileOutputStream(file)) {\n fos.write(jTermText.getBytes());\n } catch (IOException ex) {\n }\n // save last directory to settings ..\n Settings.set(\"Terminal_SavePath\", fileChooser.getSelectedFile().getParent());\n Settings.save();\n }\n }",
"QuoteTerm createQuoteTerm();",
"public Expression getTerm() {\n return term;\n }",
"public boolean isTerm() {\n\t\treturn isTerm;\n\t}",
"public TermData(String term)\n\t{\n\t\tthis.term = term;\n\t}",
"public String getContextCharacters() {\r\n return this.text.toString();\r\n }",
"QDisplayTerm createDisplayTerm();",
"private void parseTerm() throws IOException {\r\n\t\tString line;\r\n\t\tTerm newTerm = new Term();\r\n\t\twhile((line=next(0))!=null) {\r\n\t\t\tif(line.startsWith(\"[\"))\r\n\t\t\t\t{\r\n\t\t\t\tthis.buffer=line;\r\n\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\tint colon=line.indexOf(':');\r\n\t\t\tif(colon==-1) continue;\r\n\t\t\tif(line.startsWith(\"id:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.id = line.substring(colon+1).trim();\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\tif(line.startsWith(\"name:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.name=nocomment(line.substring(colon+1));\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\tif(line.startsWith(\"namespace:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.namespace=nocomment(line.substring(colon+1));\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\telse if(line.startsWith(\"def:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.def=nocomment(line.substring(colon+1));\r\n\t\t\t\tterms.addTerm(newTerm);\r\n\t\t\t\tif (newTerm.namespace.equals(\"molecular_function\")){\r\n\t\t\t\t\tdagMF.addVertex(newTerm);\r\n\t\t\t\t}\r\n\t\t\t\telse if (newTerm.namespace.equals(\"biological_process\")){\r\n\t\t\t\t\tdagBP.addVertex(newTerm);\t\r\n\t\t\t\t}\r\n\t\t\t\telse if (newTerm.namespace.equals(\"cellular_component\")){\r\n\t\t\t\t\tdagCC.addVertex(newTerm);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.println(\"TERM WAS NOT ADDED, NO NAMESPACE!\");\r\n\t\t\t\t}\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t}\r\n\t}",
"public Term[] getTerms() { return terms; }",
"abstract public TermEnum terms() throws IOException;",
"public String getTermCode() {\n return termCode;\n }",
"QPrintTerm createPrintTerm();",
"void compileTermBasicHelper() throws IOException {\n\n\n switch (currTokenType) {\n case JackTokenizer.INT_CONST_TOKEN_TYPE:\n case JackTokenizer.STRING_CONST_TOKEN_TYPE:\n case JackTokenizer.KEYWORD_TOKEN_TYPE:\n printToken();\n getNextToken();\n return;\n }\n switch (currentToken) {\n case HYPHEN_SYMBOL:\n case TILDE_SYMBOL:\n printToken();\n getNextToken();\n compileTerm();\n break;\n case OPEN_BRACKET_SYMBOL:\n printToken();\n getNextToken();\n compileExpression();\n printToken();\n getNextToken();\n break;\n default:\n String prevToken = currentToken;\n String prevTokenType = currTokenType;\n getNextToken();\n compileTermAdvanceHelper(prevTokenType, prevToken);\n break;\n }\n\n }",
"public final String yytext() {\r\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\r\n }",
"public final String yytext() {\r\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\r\n }",
"public final String yytext() {\r\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\r\n }",
"public final String yytext() {\r\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\r\n }",
"public final String yytext() {\r\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\r\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n\t\treturn new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n\t}",
"public StringBuffer xttext() {\r\n\t\treturn xttext;\r\n\t}",
"QDataSetTerm createDataSetTerm();",
"private void createTermFreqVector(JCas jcas, Document doc) {\n\n String docText = doc.getText().toLowerCase();\n\n // TODO: construct a vector of tokens and update the tokenList in CAS\n\n String[] wordList = docText.split(\" \");\n HashMap<String, Integer> tokenCount = new HashMap<String, Integer>();\n for (String word : wordList) {\n String newWord = word;\n if(word.charAt(word.length()-1)<'a' || word.charAt(word.length()-1)>'z'){\n newWord = word.substring(0, word.length()-1);\n }\n //if(Utils.GetStopWordFilter().isStopword(newWord))continue;\n if (!tokenCount.containsKey(newWord)) {\n tokenCount.put(newWord, 1);\n } else {\n tokenCount.put(newWord, tokenCount.get(newWord) + 1);\n }\n }\n\n ArrayList<Token> tokenList = new ArrayList<Token>();\n for (String word : tokenCount.keySet()) {\n Token token = new Token(jcas);\n token.setText(word);\n token.setFrequency(tokenCount.get(word));\n tokenList.add(token);\n }\n FSList tokenFSList = Utils.fromCollectionToFSList(jcas, tokenList);\n doc.setTokenList(tokenFSList);\n }",
"public void setTerm(Expression term) {\n this.term = term;\n }",
"protected void updateTextChange() {\n \t\t\tfText= fDocumentUndoManager.fTextBuffer.toString();\n \t\t\tfDocumentUndoManager.fTextBuffer.setLength(0);\n \t\t\tfPreservedText= fDocumentUndoManager.fPreservedTextBuffer.toString();\n \t\t\tfDocumentUndoManager.fPreservedTextBuffer.setLength(0);\n \t\t}",
"public TextAreaEntropy(String text) {\r\n super(text);\r\n initComponents();\r\n }",
"public final String yytext() {\n return new String(zzBuffer, zzStartRead, zzMarkedPos-zzStartRead);\n }",
"private static String analyzeTerm(String term) {\n String ret = term.toLowerCase();\n if (stopWords.contains(ret) || ret.isEmpty())\n return \"\";\n return stemmer.stem(ret);\n }",
"public final String yytext() {\n return new String(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);\n }",
"public AcademicTerm(int termIndex, Term term) {\n this.termIndex = termIndex;\n this.term = term;\n }",
"public String getTermweig() {\r\n return (String) getAttributeInternal(TERMWEIG);\r\n }",
"public final void copyBuffer(char[] buffer, int offset, int length) { \n\t\tgrowTermBuffer(length);\n\t System.arraycopy(buffer, offset, mTermBuffer, 0, length);\n\t mTermLength = length;\n\t}",
"public JPanel_Terminal() {\n // initialize components\n initComponents();\n\n // initialize JTerm\n JTermInputProcessor termProcessor = (String command, JTerm console) -> {\n if (jShellTransport == null) {\n updateShellTransport();\n }\n if (jShellTransport != null) {\n try {\n console.remove(command.length());\n jShellTransport.write(command);\n } catch (IOException ex) {\n jShellTransport = null;\n Log.log(Level.SEVERE, \"ShellTransportWrite\", ex);\n }\n }\n };\n\n jTerm = new JTerm(jTextPane_Jterm, termProcessor, Color.BLACK, Color.GREEN, new Font(Font.MONOSPACED, Font.BOLD, 12));\n }",
"public static String getWord() {\r\n\t\treturn Text;\r\n\t}",
"public Term[] getTermByDoc(IndexedDoc d){\n\t\treturn d.getTerms();\r\n\t}",
"public TextAreaEntropy(Document doc) {\r\n super(doc);\r\n initComponents();\r\n }",
"public final String yytext() {\n return new String(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);\n }",
"public SuggestedTerm(String term, int editDistance){\n this.term = term;\n this.editDistance = editDistance;\n }",
"Term getBody();",
"public java.lang.Integer getTerm() {\n return term;\n }",
"public ABLTextLCD TextLCD() {\r\n\t\treturn new ABLTextLCD(BrickFinder.getDefault().getTextLCD());\t \r\n\t}",
"public String getTextTF2() {\n\t\treturn tf2.getText();\n\t}",
"public CharSequence getText();",
"public StringBuffer text() {\r\n\t\treturn text;\r\n\t}",
"abstract public TermEnum terms(Term t) throws IOException;",
"public final CharSequence yytext() {\n return zzBuffer.subSequence(zzStartRead, zzMarkedPos);\n }",
"public final CharSequence yytext() {\n return zzBuffer.subSequence(zzStartRead, zzMarkedPos);\n }",
"public final CharSequence yytext() {\n return zzBuffer.subSequence(zzStartRead, zzMarkedPos);\n }",
"public final CharSequence yytext() {\n return zzBuffer.subSequence(zzStartRead, zzMarkedPos);\n }",
"public final CharSequence yytext() {\n return zzBuffer.subSequence(zzStartRead, zzMarkedPos);\n }",
"public final CharSequence yytext() {\n return zzBuffer.subSequence(zzStartRead, zzMarkedPos);\n }",
"public final CharSequence yytext() {\n return zzBuffer.subSequence(zzStartRead, zzMarkedPos);\n }",
"public final CharSequence yytext() {\n return zzBuffer.subSequence(zzStartRead, zzMarkedPos);\n }"
]
| [
"0.7188804",
"0.71297544",
"0.65904105",
"0.65184",
"0.6501999",
"0.6448507",
"0.60842437",
"0.60034466",
"0.5967106",
"0.59633094",
"0.5933624",
"0.5932512",
"0.58814496",
"0.57813495",
"0.57607555",
"0.5757109",
"0.5706645",
"0.5694669",
"0.56840813",
"0.56681204",
"0.5570271",
"0.5447574",
"0.5436291",
"0.5425083",
"0.54224205",
"0.54211104",
"0.54198754",
"0.54128957",
"0.54122037",
"0.54055244",
"0.53801477",
"0.5377923",
"0.53332335",
"0.53133315",
"0.5312274",
"0.5306963",
"0.5295134",
"0.5290631",
"0.52855605",
"0.52855605",
"0.52855605",
"0.52855605",
"0.52855605",
"0.52823263",
"0.52823263",
"0.52823263",
"0.52823263",
"0.52823263",
"0.52823263",
"0.52823263",
"0.52823263",
"0.52823263",
"0.52823263",
"0.52823263",
"0.52823263",
"0.52823263",
"0.52823263",
"0.52823263",
"0.52823263",
"0.52823263",
"0.52823263",
"0.52823263",
"0.52823263",
"0.52823263",
"0.52823263",
"0.52823263",
"0.52768105",
"0.52757365",
"0.5259836",
"0.5253297",
"0.5252102",
"0.5247568",
"0.5232913",
"0.521441",
"0.5211046",
"0.5210695",
"0.5195388",
"0.51945156",
"0.5181871",
"0.5174558",
"0.51641744",
"0.51634043",
"0.51334536",
"0.5128047",
"0.5124808",
"0.51174587",
"0.51105285",
"0.5097568",
"0.50892675",
"0.5078809",
"0.5068025",
"0.5059937",
"0.505202",
"0.505202",
"0.505202",
"0.505202",
"0.505202",
"0.505202",
"0.505202",
"0.505202"
]
| 0.7666112 | 0 |
Return number of valid characters (length of the term) in the termBuffer array. | public final int termLength() {
initTermBuffer();
return termLength;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int NumTerms() throws Z3Exception\n {\n return Native.getPatternNumTerms(Context().nCtx(), NativeObject());\n }",
"public int cardinality() {\n\t\tint counter = 0;\n\t\tfinal EWAHIterator i =\n\t\t\t\tnew EWAHIterator(this.buffer, this.actualsizeinwords);\n\t\twhile (i.hasNext()) {\n\t\t\tRunningLengthWord localrlw = i.next();\n\t\t\tif (localrlw.getRunningBit()) {\n\t\t\t\tcounter += wordinbits * localrlw.getRunningLength();\n\t\t\t}\n\t\t\tfor (int j = 0; j < localrlw.getNumberOfLiteralWords(); ++j) {\n\t\t\t\tcounter += Long.bitCount(i.buffer()[i.dirtyWords() + j]);\n\t\t\t}\n\t\t}\n\t\treturn counter;\n\t}",
"@Override\r\n\tpublic int length() {\n\t\treturn chars.length;\r\n\t}",
"public int length() {\r\n return fCharBuffer.length();\r\n }",
"public int getNumberOfCharactersInThisText(){\n\t\treturn this.number;\n\t}",
"public int getNumberOfCharacters() {\n return numberOfCharacters;\n }",
"private void initTermBuffer() {\n if (termBuffer == null) {\n if (termText == null) {\n termBuffer = new char[MIN_BUFFER_SIZE];\n termLength = 0;\n } else {\n int length = termText.length();\n if (length < MIN_BUFFER_SIZE) length = MIN_BUFFER_SIZE;\n termBuffer = new char[length];\n termLength = termText.length();\n termText.getChars(0, termText.length(), termBuffer, 0);\n termText = null;\n }\n } else if (termText != null)\n termText = null;\n }",
"public int length() {\n\treturn tokens.length;\n}",
"int size() {\n return _chars.length();\n }",
"int size() {\n return _chars.length();\n }",
"@Test\n public void countNumberOfCharactersInWords() {\n final long count = 0; //TODO\n\n assertEquals(105, count);\n }",
"public int getTextLength();",
"int size() {\n return _chars.length;\n }",
"int getTextLength();",
"public int size() {\r\n\treturn terms.size();\r\n }",
"public long getCharCount() {\n return charCount;\n }",
"public final int yylength() {\n return input.readLength();\n }",
"public void testCountWordLengths() {\n FileResource fr = new FileResource(\"data/smallHamlet.txt\");\n int[] counts = new int[31];\n countWordLengths(fr, counts);\n }",
"public native int lexiconSize(int field);",
"public int getLength(){\n return textQuestions.length;\n }",
"public int getEntryCount() {\n return mem.getChar(34);\n }",
"private char[] size() {\n\t\treturn null;\n\t}",
"public int suffixArrayLength() {\r\n return mText.length();\r\n }",
"int getStrValuesCount();",
"public int length() {\n int counter = 0;\n while (bitAt(counter) == '1' || bitAt(counter) == '0') {\n counter = counter + 1;\n }\n return counter;\n }",
"@Override\n\tpublic int getLength() {\n\t\tint c = 0;\n\t\tfor (char c1 : theString.toCharArray()) {\n\t\t\tc++;\n\t\t}\n\t\treturn c;\n\t}",
"public int getNumCharacters()\n\t{\n\t\treturn gameCharCount;\n\t}",
"public int size() {\n return tokens.size();\n }",
"public static int getWordlenght() {\r\n\t\treturn lenght;\r\n\t}",
"int size() {\n return _letters.length();\n }",
"long tokenCount();",
"public int countTokens()\n {\n\n int count = 0;\n int currpos = currentPosition;\n\n while (currpos < maxPosition)\n {\n int start = currpos;\n\n while ((currpos < maxPosition)\n && Character.isLetterOrDigit(str.charAt(currpos)))\n {\n currpos++;\n }\n\n if ((start == currpos)\n && (Character.isLetterOrDigit(str.charAt(currpos)) == false))\n {\n currpos++;\n }\n\n count++;\n }\n\n return count;\n }",
"private static int characterCount(String expr, Character c) {\n\t\tint count = 0;\n\t\tfor(Character ch : expr.toCharArray()) if(ch == c) count ++;\n\t\treturn count;\n\t}",
"public int size() {\n return text.size();\n }",
"public int length() {\r\n\t\treturn text.length();\r\n\t}",
"public int getTerminalExonLength() { \n\t\tfinal BEDentry te = getBEDentry().getBlockAtRelativePosition(-1); \n\t\treturn( te.getChromEnd() - te.getChromStart() ); \n\t}",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public int getNumGlyphs() {\n\treturn getFont2D().getNumGlyphs();\n }",
"public final int yylength() {\n return zzMarkedPos - zzStartRead;\n }",
"static int size_of_rlc(String passed){\n\t\treturn 1;\n\t}",
"public int getNbCharacter()\n\t{\n\t\treturn this.nbCharacter;\n\t}",
"public int getTotalTerms() {\n\t\tif (dict != null) {\n\t\t\treturn dict.size();\n\t\t}\n\t\t// TODO: Implement this method\n\t\treturn 0;\n\t}",
"public int getWordLength();",
"public final int yylength() {\n\t\treturn zzMarkedPos-zzStartRead;\n\t}",
"public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }",
"public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }",
"public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }",
"public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }",
"public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }",
"public final int yylength() {\n return zzMarkedPos - zzStartRead;\n }",
"public double numTerms()\r\n\t{\r\n\t\treturn unionAll.size();\r\n\t}",
"int getNumAns(){\n\t\treturn textOps.size();\n\t}",
"public int getLength() {\n\t\t\treturn this.text.length();\n\t}",
"public int length() { return 1+maxidx; }",
"public int length();",
"public int length();",
"public int length();",
"public int length();",
"public int length();",
"final public int yylength() {\n return yy_markedPos-yy_startRead;\n }",
"final public int yylength() {\n return yy_markedPos-yy_startRead;\n }",
"public int getLettersCount() {\n return letters_.size();\n }",
"public int getLength() { return this.words.size(); }",
"public int sizeOfImeModeArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(IMEMODE$0);\r\n }\r\n }"
]
| [
"0.6402262",
"0.60651803",
"0.6022684",
"0.5927777",
"0.5896006",
"0.58613783",
"0.58367693",
"0.58339643",
"0.5829051",
"0.5829051",
"0.58175385",
"0.58054334",
"0.5785482",
"0.57714444",
"0.5733785",
"0.57281154",
"0.5692463",
"0.56891614",
"0.5635798",
"0.5596823",
"0.5567258",
"0.55431503",
"0.5528986",
"0.55222195",
"0.55215484",
"0.5501234",
"0.54890215",
"0.5487627",
"0.5480349",
"0.5476576",
"0.5453171",
"0.5453118",
"0.5451356",
"0.5450968",
"0.5432789",
"0.5432653",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54195654",
"0.54118717",
"0.54098934",
"0.540789",
"0.54044056",
"0.5402446",
"0.5399145",
"0.5395237",
"0.5391759",
"0.5391759",
"0.5391759",
"0.5391759",
"0.5391759",
"0.5371243",
"0.53646094",
"0.5364517",
"0.5359991",
"0.5358174",
"0.53552765",
"0.53552765",
"0.53552765",
"0.53552765",
"0.53552765",
"0.53468",
"0.53468",
"0.53368294",
"0.533343",
"0.53181124"
]
| 0.7301077 | 0 |
Set number of valid characters (length of the term) in the termBuffer array. | public final void setTermLength(int length) {
initTermBuffer();
termLength = length;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initTermBuffer() {\n if (termBuffer == null) {\n if (termText == null) {\n termBuffer = new char[MIN_BUFFER_SIZE];\n termLength = 0;\n } else {\n int length = termText.length();\n if (length < MIN_BUFFER_SIZE) length = MIN_BUFFER_SIZE;\n termBuffer = new char[length];\n termLength = termText.length();\n termText.getChars(0, termText.length(), termBuffer, 0);\n termText = null;\n }\n } else if (termText != null)\n termText = null;\n }",
"private void setTokenLength() {\n\t\tfor (Token ts : Token.values()) {\n\t\t\tif (ts.getValue().length() == 1) ts.setOneChar(true);\n\t\t\telse ts.setOneChar(false);\n\t\t}\n\t}",
"public char[] resizeTermBuffer(int newSize) {\n initTermBuffer();\n if (newSize > termBuffer.length) {\n int size = termBuffer.length;\n while(size < newSize)\n size *= 2;\n char[] newBuffer = new char[size];\n System.arraycopy(termBuffer, 0, newBuffer, 0, termBuffer.length);\n termBuffer = newBuffer;\n }\n return termBuffer;\n }",
"public void setCharCount(long value) {\n this.charCount = value;\n }",
"public final int termLength() {\n initTermBuffer();\n return termLength;\n }",
"public void setTermCount(int termCount) {\n\t\tthis.termCount = termCount;\n\t}",
"public void setLength(int newLength) {\r\n\t\tif (cursor + newLength > buffer.length)\r\n\t\t\tthrow new IllegalArgumentException(\"Can't set new length if it exceeds buffer\");\r\n\t\tlimit = cursor + newLength;\r\n\t}",
"void setMaxCharSize(int value);",
"void setLength(int length);",
"void setLength( long length );",
"public void setLength( int length ) { setCapacity( length ); this.length = length; }",
"public final void copyBuffer(char[] buffer, int offset, int length) { \n\t\tgrowTermBuffer(length);\n\t System.arraycopy(buffer, offset, mTermBuffer, 0, length);\n\t mTermLength = length;\n\t}",
"public void setCharacterSequence(String chars);",
"@Override\n\tpublic void setLength(int length) {\n\t\t\n\t}",
"public void setTerms(Term[] terms) { this.terms = terms; }",
"public void setTerm(java.lang.Integer value) {\n this.term = value;\n }",
"public void setTermText(String text) {\n termText = text;\n termBuffer = null;\n }",
"public CharSuffixArray(String text) {\r\n this(text,Integer.MAX_VALUE);\r\n }",
"public Value.Builder setTerm(java.lang.Integer value) {\n validate(fields()[14], value);\n this.term = value;\n fieldSetFlags()[14] = true;\n return this;\n }",
"public void setLength(long length);",
"public void setLength(long length);",
"public Stem(char stem[], int stemLength) {\n this.stem = stem;\n this.stemLength = stemLength;\n }",
"private void setTextAreaLenght(int len) {\n // check for logical error\n if(len <= 0) {\n // error ..\n eHandler.newError(ErrorType.INVALID_ARGUMENT, \"setTextAreaLenght\", \"Zero or negative lenght\");\n\n // set to default\n textAreaLenght = DEFAULT_TEXT_AREA_LENGHT;\n\n // exit from method\n return;\n } // end of if statement\n\n // set the textAreaLenght\n textAreaLenght = len;\n\n }",
"public void setWordLength(String wordSearched){\r\n wordLength = wordSearched.length();\r\n this.wordLength = wordLength;\r\n }",
"public void setTerm(String value) {\r\n setAttributeInternal(TERM, value);\r\n }",
"public void setCurrentLength(long currentLength) { \n this.currentLength = currentLength; \n }",
"void updateTermsArray() {\n terms.clear();\n terms = getTerms();\n }",
"void setSymbol(@MaxUtf8Length(20) CharSequence symbol);",
"public void writeLength(){\n\t\tfor(int i = 0; i < DIFF_CHARACTERS; i++){\n\t\t\tm_arraylists[i].length();\n\t\t}\n\t}",
"private void updateErrorText()\n {\n mErrorText.clear();\n mErrorText.clearSpans();\n final int length = mTextInputLayout.getText().length();\n if(length >= 0){\n mErrorText.append(String.valueOf(length));\n mErrorText.append(\" / \");\n mErrorText.append(String.valueOf(mMaxLen));\n mErrorText.setSpan(mAlignmentSpan, 0, mErrorText.length(),\n Spanned.SPAN_INCLUSIVE_EXCLUSIVE);\n if(hasValidLength()){\n mErrorText.setSpan(mNormalTextAppearance, 0, mErrorText.length(),\n Spanned.SPAN_INCLUSIVE_EXCLUSIVE);\n }\n }\n mCharacterLimit.setText(mErrorText);\n }",
"public void nextToken(int nTokenWidth, StringBuilder sTokenBuffer) {\n // always clear the token buffer\n sTokenBuffer.setLength(0);\n\n // attempt to extract the requested number of characters\n while (nTokenWidth-- > 0 && m_nTokenIndex < m_sSetBuffer.length())\n sTokenBuffer.append(m_sSetBuffer.charAt(m_nTokenIndex++));\n }",
"public void setVarTrPatternCount( String var, Integer count ) ;",
"public CharacterCountErrorWatcher(TextView characterLimit, EditText textInputLayout, int minLen, int maxLen)\n {\n mTextInputLayout = textInputLayout;\n mNormalTextAppearance = new ForegroundColorSpan(Color.GRAY);\n mMinLen = minLen;\n mMaxLen = maxLen;\n mCharacterLimit = characterLimit;\n updateErrorText();\n }",
"void setMaxStringLiteralSize(int value);",
"public final char[] resizeBuffer(int newSize) { \n\t\tif (mTermBuffer.length < newSize){\n\t\t\t// Not big enough; create a new array with slight\n\t\t\t// over allocation and preserve content\n\t\t\tfinal char[] newCharBuffer = new char[ArrayUtil.oversize(newSize, JvmUtil.NUM_BYTES_CHAR)];\n\t System.arraycopy(mTermBuffer, 0, newCharBuffer, 0, mTermBuffer.length);\n\t mTermBuffer = newCharBuffer;\n\t\t}\n\t\treturn mTermBuffer;\n\t}",
"public void setCharSet(List<Character> charSet){\n mCharSet = charSet;\n }",
"public void setWord(char[] input){\n\t\tword = new char[input.length];\n\t\tword = input;\n\t}",
"public void characters( char[] buf, int offset, int len ) {\r\n\r\n // Append the new characters\r\n currentString.append( new String( buf, offset, len ) );\r\n }",
"public void setLength(int length)\n {\n this.length = length;\n }",
"public void setMinimumCharacters( final int minimumCharacters ) {\n checkWidget();\n if( minimumCharacters < 0 ) {\n SWT.error( SWT.ERROR_INVALID_RANGE );\n }\n if( this.minChars != minimumCharacters ) {\n this.minChars = minimumCharacters;\n updateItems();\n }\n }",
"public void setLength(int length) {\r\n this.length = length;\r\n }",
"public void setLength(int length) {\r\n this.length = length;\r\n }",
"public void setTerm(Expression term) {\n this.term = term;\n }",
"public void setLength(double newLength) {\n length = newLength;\n }",
"public static void setMaxLength(TextView textView, int maxLength) {\n\n if (textView == null) {\n throw new NullPointerException(\"TextView cannot be null\");\n }\n\n InputFilter[] fArray = new InputFilter[1];\n fArray[0] = new InputFilter.LengthFilter(maxLength);\n textView.setFilters(fArray);\n }",
"public void setTermFrequency(double termFreq) {\n\t\ttermFrequency = termFreq;\n\t}",
"@Override\n\tpublic void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {\n\t\t\n\t}",
"private void ensureCharacterArrayCapacity(int requiredCapacity) {\n int capacity = characterArray.length;\n if (requiredCapacity > capacity) {\n while (capacity < requiredCapacity) {\n capacity <<= 1;\n }\n\n // Expand the character array.\n characterArray = ArrayHelper.expandArray(characterArray, capacity);\n }\n }",
"synchronized void setLength(int length) {\n this.length = length;\n }",
"Term(int coefficient, int exponent)\r\n\t{\r\n\t\tsetAll(coefficient, exponent);\r\n\t}",
"public void setPositiveTerms(String[] newTerms) {\r\n\t\t// TODO\r\n\t\tif (newTerms == null) {\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\t\tpositive = Arrays.copyOf(newTerms, newTerms.length);\r\n\t}",
"private void applyTermOptions() {\n\tif (term == null)\n\t return;\n\n term.setFixedFont(true);\n term.setFont(termOptions().getFont());\n\n\tterm.setBackground(termOptions().getBackground());\n\tterm.setForeground(termOptions().getForeground());\n\tterm.setHighlightColor(termOptions().getSelectionBackground());\n\tterm.setHistorySize(termOptions().getHistorySize());\n\tterm.setTabSize(termOptions().getTabSize());\n\n\tterm.setClickToType(termOptions().getClickToType());\n\tterm.setScrollOnInput(termOptions().getScrollOnInput());\n\tterm.setScrollOnOutput(termOptions().getScrollOnOutput());\n\tterm.setHorizontallyScrollable(!termOptions().getLineWrap());\n\n\t// If we change the font from smaller to bigger, the size\n\t// calculations go awry and the last few lines are forever hidden. \n\t//\n\t// One usually uses 'pack()' but it doesn't work because it\n\t// applies only to JFrames an under vulcan in MDI mode it had\n\t// catastrophic results (the whole window gets maximized, etc.)\n\t//\n\t// The following is a workaround used in the Rtc windows' \n\t// componentShown() as a fix for\n\t// 4652678 (Memory Usage window and Access Errors window are ...)\n\n\tsetSize(getPreferredSize());\n\tvalidate();\n }",
"void setTabLength(int tabLength) {\n\tGC gc = getGC();\n\tStringBuffer tabBuffer = new StringBuffer(tabLength);\n\tfor (int i = 0; i < tabLength; i++) {\n\t\ttabBuffer.append(' ');\n\t}\n\ttabWidth = gc.stringExtent(tabBuffer.toString()).x;\n\tdisposeGC(gc);\n}",
"private void setCharLimitOnFields() {\n Common.setCharLimit(nameField, Constants.CHAR_LIMIT_NORMAL);\n Common.setCharLimit(addressField, Constants.CHAR_LIMIT_LARGE);\n Common.setCharLimit(postalField, Constants.CHAR_LIMIT_NORMAL);\n Common.setCharLimit(phoneField, Constants.CHAR_LIMIT_NORMAL);\n }",
"public void characters(String arg0) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"public void setWrongLettersCount(int wrongLettersCount) {\n this.wrongLettersCount = wrongLettersCount;\n }",
"public void setLength(long length) { \n this.length = length; \n }",
"private void bufferCheck() {\r\n bufferScreen.setText(stringBuffer);\r\n bufferLength++;\r\n if (bufferLength == 4) {\r\n if (isCorrectWord()) {\r\n SCORE++;\r\n bufferScreen.setTextColor(Color.GREEN);\r\n } else bufferScreen.setTextColor(Color.RED);\r\n newWord();\r\n }\r\n }",
"void setFoundLength(final int foundLength) {\n this.vars.put(\"foundLength\", String.valueOf(foundLength));\n }",
"public void setLength(double len) throws IllegalArgumentException\n {\n if (len<0) throw new IllegalArgumentException (\"Length cannot be negative\" + len);\n else length = len;\n }",
"public void setLength(int length) {\r\n\t\tthis.length = length;\r\n\t}",
"public ByteBuf setChar(int index, int value)\r\n/* 301: */ {\r\n/* 302:316 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 303:317 */ return super.setChar(index, value);\r\n/* 304: */ }",
"public void setInitPositions(char[] newInit) {\r\n\t\tinitPositions = newInit;\r\n\t}",
"private void updateTextAreaLenght() {\n //\n }",
"public void setMaxLength(int maxLength) {\r\n _maxLength = maxLength;\r\n }",
"public Builder setCharSet(List<Character> charSet){\n mCharSet = charSet;\n return this;\n }",
"public boolean setLength(double Length);",
"public DoubleDocument (int maxLength) {\r\n\t\tthis.maxLength = maxLength;\r\n\t}",
"void setBufferSize(int bufferSize);",
"protected void resetTextBuffer() {\n this.textBuffer = new StringBuffer();\n }",
"void setLengthInputFilter(EditText inputText, final Context context, final int maxLength);",
"@ReactMethod\n public void setCommentMinimumCharacterCount(final int limit, final ReadableArray reportTypes){\n MainThreadHandler.runOnMainThread(new Runnable() {\n @SuppressLint(\"WrongConstant\")\n @Override\n public void run() {\n try {\n final ArrayList<String> keys = ArrayUtil.parseReadableArrayOfStrings(reportTypes);\n final ArrayList<Integer> types = ArgsRegistry.reportTypes.getAll(keys);\n\n final int[] typesInts = new int[types.size()];\n for (int i = 0; i < types.size(); i++) {\n typesInts[i] = types.get(i);\n }\n\n BugReporting.setCommentMinimumCharacterCount(limit, typesInts);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n }",
"public void setNegativeTerms(String[] newTerms) {\r\n\t\t// TODO\r\n\t\tif (newTerms == null) {\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\t\tnegative = Arrays.copyOf(newTerms, newTerms.length);\r\n\r\n\t}",
"public static void setNumberOfStrings(int i){\n\t\tmekStringCursor = 0;\n\t\tsetOfStrings = new MekString[i];\n\t}",
"public int setCharSequence(int index, CharSequence sequence, Charset charset)\r\n/* 375: */ {\r\n/* 376:388 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 377:389 */ return super.setCharSequence(index, sequence, charset);\r\n/* 378: */ }",
"public void setLength(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), LENGTH, value);\r\n\t}",
"public void clear() {\n payload = null;\n // Leave termBuffer to allow re-use\n termLength = 0;\n termText = null;\n positionIncrement = 1;\n flags = 0;\n // startOffset = endOffset = 0;\n // type = DEFAULT_TYPE;\n }",
"public void setText(char[] chars, int start, int length);",
"public void setStopTerms(String[] newTerms) {\r\n\t\t// TODO\r\n\t\tif (newTerms == null) {\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\t\tstop = Arrays.copyOf(newTerms, newTerms.length);\r\n\t}",
"void setLimit( Token t, int limit) {\r\n \tMExprToken tok = (MExprToken)t;\r\n \ttok.charEnd = limit;\r\n \ttok.charStart = limit;\r\n }",
"public void setNumberOfUniqueTerms(double number) {\n\t\tnumberOfUniqueTerms = number;\n\t}",
"public void limitarCaracteres(JTextField l, int nmax){\r\n l.addKeyListener(new KeyAdapter(){\r\n @Override\r\n public void keyTyped(KeyEvent e){\r\n if (l.getText().length()==nmax){\r\n e.consume();}\r\n } \r\n });\r\n }",
"@Test(timeout = 4000)\n public void test21() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"-\";\n try { \n naiveBayesMultinomialText0.setOptions(stringArray0);\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }",
"protected void ensureBufferSpace(int expectedAdditions)\n {\n\t\tthrow new UnsupportedOperationException(lengthChangeError);\n }",
"public void setMaxLength(int maxLength){\n mMaxLengthOfString = maxLength;\n }",
"public void setMinPasswordLength(int Length){\n alg.setMinPasswordLength(Length);\n }",
"protected void parseTermData()\n {\n for (int i = 0; i < data.length; i++)\n {\n data[i] = Cdata[i];\n }\n }",
"public AppendableCharSequence(int length)\r\n/* 12: */ {\r\n/* 13: 26 */ if (length < 1) {\r\n/* 14: 27 */ throw new IllegalArgumentException(\"length: \" + length + \" (length: >= 1)\");\r\n/* 15: */ }\r\n/* 16: 29 */ this.chars = new char[length];\r\n/* 17: */ }",
"public void setNumTokens(int numTokens){\n this.numTokens = numTokens;\n }",
"public abstract void setVarCount(int varCount);",
"public void setLength(int length) {\n\t\tthis.length = length;\n\t}",
"public void setLength(int length) {\n\t\tthis.length = length;\n\t}",
"public void setLength(int length) {\n\t\tthis.length = length;\n\t}",
"public void setLength(){\n out.print(\"Please enter a number greater than 0:\\t\");\n while (true) {\n try {\n this.sideLength = Integer.parseInt(sc.next());\n if (this.sideLength > 0) {\n break;\n } else {\n out.print(\"Please re-enter a number greater than 0!:\\t\");\n }// End if else\n } catch (NumberFormatException e) {\n out.print(\"Please enter a number (not a letter) greater than 0!:\\t\");\n //this.sideLength = 0;\n }// End try catch\n }// End running while loop\n }",
"void setExpectedLength(final int expectedLength) {\n this.vars.put(\"expectedLength\", String.valueOf(expectedLength));\n }",
"@Override\n\tpublic void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException {\n\t\t\n\t}",
"public void setNChar()\n/* */ {\n/* 1168 */ this.isNChar = true;\n/* */ }",
"public Builder setField1072(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1072_ = value;\n onChanged();\n return this;\n }",
"public void setWordCount(int p_wordCount)\n {\n m_iWordCount = p_wordCount;\n }",
"private void cleanFieldPathLength() {\n\t\tfor (int i = 0; i < fieldPathLength.length; i++) {\n\t\t\tfieldPathLength[i] = -1;\n\t\t}\n\t}"
]
| [
"0.68680423",
"0.60821563",
"0.58900625",
"0.57958037",
"0.5657767",
"0.55801135",
"0.54932463",
"0.54521525",
"0.5444534",
"0.53823125",
"0.5368096",
"0.53417706",
"0.52830285",
"0.524764",
"0.52269375",
"0.52190423",
"0.5209838",
"0.5163078",
"0.51606345",
"0.5148389",
"0.5148389",
"0.5147814",
"0.5030257",
"0.50054646",
"0.49962905",
"0.49851435",
"0.49802926",
"0.4963974",
"0.49560857",
"0.49378094",
"0.49290362",
"0.49147838",
"0.49043643",
"0.49033847",
"0.49031597",
"0.4891676",
"0.48826057",
"0.48822558",
"0.48771802",
"0.48743638",
"0.48674387",
"0.48674387",
"0.48670626",
"0.4850007",
"0.4843675",
"0.48351404",
"0.48313072",
"0.48211825",
"0.4811813",
"0.48081908",
"0.48074168",
"0.48031828",
"0.47993413",
"0.4779558",
"0.4778077",
"0.47653028",
"0.4763141",
"0.4754477",
"0.47432938",
"0.4731899",
"0.47290608",
"0.4722877",
"0.47199246",
"0.4716746",
"0.47077698",
"0.47070542",
"0.47048223",
"0.4696264",
"0.46929008",
"0.46919158",
"0.46879736",
"0.4687766",
"0.46875754",
"0.46870813",
"0.46838525",
"0.46819472",
"0.46673134",
"0.46656257",
"0.46614978",
"0.46494734",
"0.4643891",
"0.46407795",
"0.463861",
"0.46359372",
"0.46353495",
"0.46351594",
"0.46338493",
"0.46175984",
"0.4617129",
"0.45916528",
"0.45911434",
"0.45911434",
"0.45911434",
"0.4590402",
"0.45834982",
"0.4579674",
"0.45779312",
"0.45711297",
"0.4568692",
"0.4556477"
]
| 0.6765992 | 1 |
Returns this Token's starting offset, the position of the first character corresponding to this token in the source text. Note that the difference between endOffset() and startOffset() may not be equal to termText.length(), as the term text may have been altered by a stemmer or some other filter. | public final int startOffset() {
return startOffset;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getAllTextStartOffset ()\n {\n\n return this.getStart ();\n\n }",
"public int startOffset();",
"public int getStartOffset() {\n return startOffset;\n }",
"public int getStartOffset() {\n return startPosition.getOffset();\n }",
"@Override\r\n \tpublic final int getOffset() {\r\n \t\tAssert.isTrue(hasSourceRangeInfo());\r\n \t\treturn getStartPos();\r\n \t}",
"public int getStart() {\r\n\t\treturn this.offset;\r\n\t}",
"public long getStartOffset() {\n return mStartOffset;\n }",
"public int getCharStart() {\n\t\treturn -1;\n\t}",
"public static String getWordLeftOfOffset(CharSequence text, int cursorOffset) {\n\t\treturn grabWord(text, cursorOffset - 1, false);\n\t}",
"public int getStartingPos ()\r\n {\r\n if ((getThickness() >= 2) && !getLine()\r\n .isVertical()) {\r\n return getLine()\r\n .yAt(getStart());\r\n } else {\r\n return getFirstPos() + (getThickness() / 2);\r\n }\r\n }",
"public int getStartOffset() {\n if (view != null) {\n return view.getStartOffset();\n }\n return getElement().getStartOffset();\n }",
"int getStartCharIndex();",
"public OptionalInt getStartOffset() {\n return startOffset >= 0 ? OptionalInt.of(startOffset) : OptionalInt.empty();\n }",
"public static int getWordStart(JTextComponent c, int offset)\n throws BadLocationException {\n return getWordStart((BaseDocument)c.getDocument(), offset);\n }",
"public Integer getBeginOffset() {\n return this.beginOffset;\n }",
"@Override\n\tpublic int getStartOffset() {\n\t\treturn 0;\n\t}",
"private SourcePosition getTreeStartLocation() {\n return peekToken().location.start;\n }",
"private int getInclusiveTopIndexStartOffset() {\n \n \t\tif (fTextWidget != null && !fTextWidget.isDisposed()) {\n \t\t\tint top= -1;\n \t\t\tif (fSourceViewer instanceof ITextViewerExtension5) {\n \t\t\t\ttop= fTextWidget.getTopIndex();\n \t\t\t\tif ((fTextWidget.getTopPixel() % fTextWidget.getLineHeight()) != 0)\n \t\t\t\t\ttop--;\n \t\t\t\tITextViewerExtension5 extension= (ITextViewerExtension5) fSourceViewer;\n \t\t\t\ttop= extension.widgetLine2ModelLine(top);\n \t\t\t} else {\n \t\t\t\ttop= fSourceViewer.getTopIndex();\n \t\t\t\tif ((fTextWidget.getTopPixel() % fTextWidget.getLineHeight()) != 0)\n \t\t\t\t\ttop--;\n \t\t\t}\n \n \t\t\ttry {\n \t\t\t\tIDocument document= fSourceViewer.getDocument();\n \t\t\t\treturn document.getLineOffset(top);\n \t\t\t} catch (BadLocationException x) {\n \t\t\t}\n \t\t}\n \n \t\treturn -1;\n \t}",
"public abstract long getStartOffset();",
"public int getOffset()\n {\n if (m_bufferOffset_ != -1) {\n if (m_isForwards_) {\n return m_FCDLimit_;\n }\n return m_FCDStart_;\n }\n return m_source_.getIndex();\n }",
"Constant getStartOffsetConstant();",
"@Pure\n public Integer getStartCharacter() {\n return this.startCharacter;\n }",
"@Override\r\n \tpublic final int getStartPos() {\r\n \t\treturn sourceStart;\r\n \t}",
"public Token(String text, int start, int end) {\n termText = text;\n startOffset = start;\n endOffset = end;\n }",
"public Integer getEndOffset() {\n return this.endOffset;\n }",
"public static String getStringLeftOfOffset(CharSequence text, int cursorOffset) {\n\t\treturn grabString(text, cursorOffset - 1, false);\n\t}",
"public String getInitialPosition() {\n\t\treturn initPos;\n\t}",
"public int getStart ()\r\n {\r\n return glyph.getBounds().x;\r\n }",
"public int getStartPos() {\n return startPos;\n }",
"public String getLineTextBefore(int offset) throws Exception {\n\t\tIRegion l = doc.getLineInformationOfOffset(offset);\n\t\treturn textBetween(l.getOffset(), offset);\n\t}",
"public int getStartIdx() {\n return this.startIdx;\n }",
"public int getEndOffset() {\n return endOffset;\n }",
"public PixelPoint getStartPoint ()\r\n {\r\n Point start = glyph.getLag()\r\n .switchRef(\r\n new Point(getStart(), line.yAt(getStart())),\r\n null);\r\n\r\n return new PixelPoint(start.x, start.y);\r\n }",
"private int getIndexOfStart(String document, int indexOfEnd) {\n int indexOfStart = -1;\n // iterate the document backwards until '>' is found\n for (int i = indexOfEnd; i >= 0 ; i--) {\n char c = document.charAt(i);\n if (c == '>') {\n indexOfStart = i + 1;\n break;\n }\n }\n return indexOfStart;\n }",
"public int getCaretPosition()\n {\n return field.getCaretPosition();\n }",
"public int getStartPosition() {\n return startPosition_;\n }",
"abstract public TermPositions termPositions(Term t) throws IOException;",
"public Integer getCaretPosX() {\n\t\tint[] caretPos = getCaretPos();\n\t\treturn (caretPos == null) ? null : caretPos[0];\n\t}",
"public int getStartPosition() {\n return startPosition_;\n }",
"public TextPosition getPosition ( ) { return _cursorPosition; }",
"@Override\n public int getStart() {\n return feature.getStart();\n }",
"public int getWordStart (int wordIndex) {\n int wordCount = -1;\n int i = 0;\n int start = 0;\n int end = 0;\n while (i < tags.length() && wordCount < wordIndex) {\n start = indexOfNextWordStart (tags, i, slashToSeparate);\n end = indexOfNextSeparator (tags, start, true, true, slashToSeparate);\n wordCount++;\n if (wordCount < wordIndex) {\n i = end + 1;\n }\n }\n return start;\n }",
"public OptionalInt getEndOffset() {\n return endOffset >= 0 ? OptionalInt.of(endOffset) : OptionalInt.empty();\n }",
"public Vector2D getStartPos(){\n\t\treturn startPos;\n\t}",
"public Position getStart() {\r\n return start;\r\n }",
"public int getFirstOffsetForLine(int baseline) {\n TextFragmentBox box;\n List fragments = getFragmentsWithoutBorder();\n for (int i = 0; i < fragments.size(); i++) {\n box = (TextFragmentBox) fragments.get(i);\n if (baseline == box.getBaseline())\n return box.offset;\n }\n return -1;\n }",
"public int getLineToStart() {\r\n\t\treturn this.lineToStart;\r\n\t}",
"public int getWordOffset() {\n\t\treturn wordOffset;\n\t}",
"String getBegin();",
"public int getOffsetInSource() {\n if (SourceDocumentInformation_Type.featOkTst\n && ((SourceDocumentInformation_Type) jcasType).casFeat_offsetInSource == null)\n this.jcasType.jcas.throwFeatMissing(\"offsetInSource\", \"org.apache.uima.examples.SourceDocumentInformation\");\n return jcasType.ll_cas.ll_getIntValue(addr,\n ((SourceDocumentInformation_Type) jcasType).casFeatCode_offsetInSource);\n }",
"public final int getStartIndex() {\n\t\treturn startIndex;\n\t}",
"public int getStartLineNumber() {\n return startLineNumber_;\n }",
"public int getStartLineNumber() {\n return startLineNumber_;\n }",
"public String getBeginMarker() {\n return beginMarker;\n }",
"public int getCaretPosition() {\r\n\t\treturn getJTextField().getCaretPosition();\r\n\t}",
"public int getBegin() {\n if (Span_Type.featOkTst && ((Span_Type)jcasType).casFeat_Begin == null)\n jcasType.jcas.throwFeatMissing(\"Begin\", \"Span\");\n return jcasType.ll_cas.ll_getIntValue(addr, ((Span_Type)jcasType).casFeatCode_Begin);}",
"private int findTokenStart() {\n\n\t\tint tokenStart = NOTOKENFOUND;\n\t\t//find starting position of token\n\t\twhile ( tokenStart == NOTOKENFOUND)\n\t\t{\n\t\t\t//empty line, but more lines to read\n\t\t\tif (line.length() == 0 && s.hasNextLine()) \n\t\t\t{\n\t\t\t\t//read next line\n\t\t\t\tline = s.nextLine(); \n\t\t\t}\n\t\t\t//empty line, and no more lines to read\n\t\t\telse if (line.length() == 0 && !s.hasNextLine() )\n\t\t\t{\n\t\t\t\treturn NOTOKENFOUND;\n\t\t\t}\n\t\t\t//line not empty\n\t\t\telse if (line.length() > 0)\n\t\t\t{\n\t\t\t\t//convert to characters[]\n\t\t\t\tchar[] characters = line.toCharArray();\n\t\t\t\t//find position of token in line.\n\t\t\t\ttokenStart = findFirstNotWhitespace(characters);\n\t\t\t\t//empty line if no token found.\n\t\t\t\tif (tokenStart == NOTOKENFOUND)\n\t\t\t\t{\t\n\t\t\t\t\t//empty the line.\n\t\t\t\t\tline = \"\";\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//token was found!\n\t\treturn tokenStart;\n\t}",
"public Vector begin()\n\t{\n\t\treturn ray.origin;\n\t}",
"int getStartLineNumber();",
"public int paragraphStart(int pos) {\r\n checkPos(pos, NOT_GREATER_THAN_LENGTH);\r\n return fParagraphBuffer.paragraphStart(pos);\r\n }",
"public Token(String text, int start, int end, int flags) {\n termText = text;\n startOffset = start;\n endOffset = end;\n this.flags = flags;\n }",
"public int getTagStart (int tagIndex) {\n int tagCount = -1;\n int i = 0;\n int start = 0;\n int end = 0;\n while (i < tags.length() && tagCount < tagIndex) {\n start = indexOfNextWordStart (tags, i, slashToSeparate);\n end = indexOfNextSeparator (tags, start, false, true, slashToSeparate);\n tagCount++;\n if (tagCount < tagIndex) {\n i = end + 1;\n }\n }\n if (tagCount < tagIndex) {\n return tags.length();\n } else {\n return start;\n }\n }",
"String getBeginRange();",
"public Position getStartPosition()\r\n\t{\r\n\t\treturn startPosition;\r\n\t}",
"Long getStartAt();",
"public int getBeginLineNumber() {\n return this.beginLine;\n }",
"public String getFontStartTag() {\r\n\t\treturn _fontTagStart;\r\n\t}",
"public int getRangeStart() {\n return currentViewableRange.getFrom();\n }",
"public int getXOffset();",
"@Override\n\tpublic int getEndOffset() {\n\t\treturn 0;\n\t}",
"public Token(String text, int start, int end, String typ) {\n termText = text;\n startOffset = start;\n endOffset = end;\n type = typ;\n }",
"public int getStartIndex() {\r\n\t\treturn startIndex;\r\n\t}",
"public int getBlockIndex() {\n return mCursorPosition;\n }",
"public int getEndOffset() {\n return endPosition.getOffset();\n }",
"public char getBeginStartModifier() {\n\t\treturn (begin_start_modifier);\n\t}",
"public Position getStartPosition() {\n return start;\n }",
"public Point getStartPosition()\r\n\t{\r\n\t\treturn startPosition;\r\n\t}",
"public int getStartLine() {\r\n return this.startLine;\r\n }",
"public int getStartIndex() {\n return startIndex;\n }",
"public java.math.BigInteger getStartIndex()\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(STARTINDEX$10);\n if (target == null)\n {\n return null;\n }\n return target.getBigIntegerValue();\n }\n }",
"public long getStringStart() {\n return ByteUtils.toUnsignedInt(stringStart);\n }",
"public static int getRowStart(JTextComponent c, int offset)\n throws BadLocationException {\n return getRowStart((BaseDocument)c.getDocument(), offset, 0);\n }",
"public int getTextPosition() {\r\n return TextPosition;\r\n }",
"public int getStartIndex() {\n\t\treturn startIndex;\n\t}",
"@Pure\n public int getStartLine() {\n return this.startLine;\n }",
"public Token getTokenList(Segment text, int initialTokenType, int startOffset) {\r\n\r\n\t\tresetTokenList();\r\n\t\tthis.offsetShift = -text.offset + startOffset;\r\n\r\n\t\t// Start off in the proper state.\r\n\t\tint state = Token.NULL;\r\n\t\tswitch (initialTokenType) {\r\n\t\t\tcase Token.LITERAL_STRING_DOUBLE_QUOTE:\r\n\t\t\t\tstate = STRING;\r\n\t\t\t\tstart = text.offset;\r\n\t\t\t\tbreak;\r\n\t\t\tcase Token.LITERAL_CHAR:\r\n\t\t\t\tstate = CHAR;\r\n\t\t\t\tstart = text.offset;\r\n\t\t\t\tbreak;\r\n\t\t\tcase Token.COMMENT_MULTILINE:\r\n\t\t\t\tstate = MLC;\r\n\t\t\t\tstart = text.offset;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tstate = Token.NULL;\r\n\t\t}\r\n\r\n\t\ts = text;\r\n\t\ttry {\r\n\t\t\tyyreset(zzReader);\r\n\t\t\tyybegin(state);\r\n\t\t\treturn yylex();\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tioe.printStackTrace();\r\n\t\t\treturn new TokenImpl();\r\n\t\t}\r\n\r\n\t}",
"public Token getTokenList(Segment text, int initialTokenType, int startOffset) {\n\n\t\tresetTokenList();\n\t\tthis.offsetShift = -text.offset + startOffset;\n\n\t\t// Start off in the proper state.\n\t\tint state = Token.NULL;\n\t\tswitch (initialTokenType) {\n\t\t\tcase Token.COMMENT_MULTILINE:\n\t\t\t\tstate = MLC;\n\t\t\t\tstart = text.offset;\n\t\t\t\tbreak;\n\t\t\tcase Token.COMMENT_DOCUMENTATION:\n\t\t\t\tstate = DOCCOMMENT;\n\t\t\t\tstart = text.offset;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tstate = Token.NULL;\n\t\t}\n\n\t\ts = text;\n\t\ttry {\n\t\t\tyyreset(zzReader);\n\t\t\tyybegin(state);\n\t\t\treturn yylex();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t\treturn new TokenImpl();\n\t\t}\n\n\t}",
"public void setStartOffset(int offset) {\n this.startOffset = offset;\n }",
"public int getStartIndex() {\n return this.startIndex;\n }",
"public int getStartIndex() {\n return this.startIndex;\n }",
"public Token(int start, int end) {\n startOffset = start;\n endOffset = end;\n }",
"public int getStartX() {\r\n\t\treturn startX;\r\n\t}",
"@Override\n public final int getBeginIndex() {\n return lower;\n }",
"@java.lang.Override\n public int getScrollOffsetX() {\n return instance.getScrollOffsetX();\n }",
"public final int endOffset() {\n return endOffset;\n }",
"public Token getTokenList(Segment text, int initialTokenType, int startOffset) {\n\n\t\tresetTokenList();\n\t\tthis.offsetShift = -text.offset + startOffset;\n\n\t\t// Start off in the proper state.\n\t\tint state = Token.NULL;\n\t\tswitch (initialTokenType) {\n\t\t\tcase Token.COMMENT_MULTILINE:\n\t\t\t\tstate = MLC;\n\t\t\t\tstart = text.offset;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tstate = Token.NULL;\n\t\t}\n\n\t\ts = text;\n\t\ttry {\n\t\t\tyyreset(zzReader);\n\t\t\tyybegin(state);\n\t\t\treturn yylex();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t\treturn new TokenImpl();\n\t\t}\n\n\t}",
"public com.a9.spec.opensearch.x11.QueryType.StartIndex xgetStartIndex()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.a9.spec.opensearch.x11.QueryType.StartIndex target = null;\n target = (com.a9.spec.opensearch.x11.QueryType.StartIndex)get_store().find_attribute_user(STARTINDEX$10);\n return target;\n }\n }",
"public int getWordPosition() {\n return wordPosition;\n }",
"public TextPos() {\n lineNumber = -1;\n linePos = -1; \n }",
"int getOffset();"
]
| [
"0.6519522",
"0.62928563",
"0.62545764",
"0.6243811",
"0.60358524",
"0.60351115",
"0.6019271",
"0.5937898",
"0.5921387",
"0.58561665",
"0.5849028",
"0.58319575",
"0.5791628",
"0.5750512",
"0.57356477",
"0.5714565",
"0.56794065",
"0.5678382",
"0.5636074",
"0.55858177",
"0.55799544",
"0.55486363",
"0.5533326",
"0.55231357",
"0.5503661",
"0.5493779",
"0.54889154",
"0.54879344",
"0.5442831",
"0.5428213",
"0.5412551",
"0.5395231",
"0.53705245",
"0.5314766",
"0.52988225",
"0.52936673",
"0.5271462",
"0.5266456",
"0.52624375",
"0.52617854",
"0.5197373",
"0.519162",
"0.51810765",
"0.517952",
"0.5172183",
"0.5149624",
"0.5146615",
"0.51259077",
"0.51256496",
"0.5097828",
"0.50947607",
"0.50910485",
"0.5083465",
"0.5074214",
"0.50610656",
"0.5060088",
"0.5051",
"0.5048808",
"0.5035033",
"0.5033808",
"0.50175476",
"0.5007782",
"0.5006455",
"0.49896663",
"0.49880642",
"0.49823558",
"0.4973578",
"0.49735686",
"0.4968034",
"0.4948235",
"0.49467343",
"0.4934071",
"0.49293447",
"0.49288964",
"0.49191493",
"0.49179247",
"0.4917022",
"0.4913669",
"0.48986042",
"0.48944524",
"0.48938447",
"0.48931298",
"0.48920444",
"0.48920047",
"0.4884155",
"0.48816448",
"0.48665825",
"0.4863647",
"0.48615414",
"0.48615414",
"0.4858923",
"0.48589057",
"0.48580268",
"0.48566976",
"0.48439243",
"0.48268262",
"0.48202237",
"0.48188096",
"0.48142934",
"0.47954386"
]
| 0.63648486 | 1 |
Set the starting offset. | public void setStartOffset(int offset) {
this.startOffset = offset;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setStartOffset(String offset) {\n\t\ttry {\n\t\t\tstartOffset = Integer.parseInt(offset);\n\t\t} catch (Exception e) {\n\t\t\tstartOffset = 0;\n\t\t}\n\t}",
"public void setBeginOffset(Integer beginOffset) {\n this.beginOffset = beginOffset;\n }",
"void setStartAt(final Long startAt);",
"public void setOffset(int offset) {\r\n currOffset = offset;\r\n try {\r\n file.seek(offset);\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"void setOffset(double offset);",
"public void setOffset(int startOffset, int endOffset);",
"public Builder setStartPosition(int value) {\n bitField0_ |= 0x00000008;\n startPosition_ = value;\n onChanged();\n return this;\n }",
"public void setInitalOffset(double offset){\n \tmodule.forEach(m -> m.setInitialOffset(offset));\n }",
"@Override\r\n public void setOffset(long offset) {\n }",
"public void setOffset(int offset) {\r\n this.offset = offset;\r\n }",
"public void setOffset(int offset) {\r\n\t\tthis.offSet = offset;\r\n\t}",
"public void setStartPosition(int start) {\n mLastPosition = start;\n }",
"public void setOffset(int offset) {\n this.offset = offset;\n }",
"public void setOffset(Integer offset) {\n set(\"offset\",offset);\n }",
"public void setStartPos(int startPos) {\n this.startPos = startPos;\n }",
"public void setStartPos(int startPos) {\r\n this.startPos = startPos;\r\n }",
"public void setOffset(Integer offset) {\n set(\"offset\",offset);\n }",
"public void setOffset(double offset) {\n this.offset = offset;\n }",
"public void setOffset(Integer offset) {\n this.offset = offset;\n }",
"public void setOffset(Integer offset) {\n this.offset = offset;\n }",
"public void setOffset(Integer offset) {\n this.offset = offset;\n }",
"public void setStart(int start) {\r\n this.start = start;\r\n }",
"public void setStart(int start)\n {\n if(start >= 0)\n {\n this.start = start;\n }\n else\n {\n System.out.println(\"Cannot be negative.\");\n }\n }",
"public void setStart(int start) {\n this.start=start;\n }",
"void setRawOffset(int rawOffset);",
"public void setOffset(final double offset) {\r\n\t\tthis.offset = offset;\r\n\t}",
"public void testSetStartLocation() {\n assertEquals(test, maze1.getStartLocation());\n test = new Location(0, 1);\n maze1.setStartLocation(test);\n assertEquals(test, maze1.getStartLocation());\n test = new Location(2, 2);\n maze1.setCell(test, MazeCell.WALL);\n maze1.setStartLocation(test);\n assertEquals(test, maze1.getStartLocation());\n \n }",
"public Builder setOffset(int value) {\n \n offset_ = value;\n onChanged();\n return this;\n }",
"public void setStartX(double val) {\r\n startx = val;\r\n }",
"public void setStartX(float startX) {this.startX = startX;}",
"public void setFirstItemOffset(int offset){\n\t\tscrollTo(offset, 0);\n\t}",
"public void setStart(int start) {\n\t\tthis.start = start;\n\t}",
"@Override\r\n\tpublic void setOffset(IOffset offset) {\n\t\t\r\n\t}",
"public void setOffset(long offset) {\n cSetOffset(this.cObject, offset);\n }",
"public com.twc.bigdata.views.avro.viewing_info.Builder setOffset(java.lang.Long value) {\n validate(fields()[2], value);\n this.offset = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public void setStart(long start) { this.start = start; }",
"public void setMinOffset(float minOffset) {\n this.mMinOffset = minOffset;\n }",
"private void setScrollOffsetX(int value) {\n bitField0_ |= 0x00000010;\n scrollOffsetX_ = value;\n }",
"public void setDistanceToStart(double val) {\r\n startDistance = val;\r\n }",
"public void setOffset(double xOffset, double yOffset) {\n this.xOffset = xOffset;\n this.yOffset = yOffset;\n }",
"public void setStart(int sx, int sy) {\n mStart = new Point(sx, sy);\n }",
"public void setStartPoint(int s) {\r\n\t\tstartPoint = s;\r\n\t}",
"void setExactOffset(int offset)\n {\n m_source_.setIndex(offset);\n updateInternalState();\n }",
"public void setOffset(ParseTree node, int offset) {\n\t\tthis.offsets.put(node, offset);\n\t}",
"void setZeroStart();",
"void setOffset(com.walgreens.rxit.ch.cda.IVLPPDPQ offset);",
"public void setStartX(double x)\n {\n startxcoord=x; \n }",
"public void setOffset(Long Offset) {\n this.Offset = Offset;\n }",
"public void setOffset(Long Offset) {\n this.Offset = Offset;\n }",
"public void setStartPage(java.math.BigInteger startPage)\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(STARTPAGE$12);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STARTPAGE$12);\n }\n target.setBigIntegerValue(startPage);\n }\n }",
"public void setStart(int startId) throws IllegalArgumentException, IllegalStateException;",
"public void setOffsetX(int offsetX) {\n\t\tthis.offsetX = offsetX;\n\t}",
"public com.opentext.bn.converters.avro.entity.ContentErrorEvent.Builder setOffset(int value) {\n validate(fields()[6], value);\n this.offset = value;\n fieldSetFlags()[6] = true;\n return this;\n }",
"void xsetAnchorOffset(org.apache.xmlbeans.XmlInt anchorOffset);",
"public void setStartIndex(java.math.BigInteger startIndex)\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(STARTINDEX$10);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STARTINDEX$10);\n }\n target.setBigIntegerValue(startIndex);\n }\n }",
"public void setStartLine(final int startLine) {\n this.startLine = startLine;\n }",
"public void setXOffset(float xOffset) {\n pos.x = xOffset;\n invalidate();\n }",
"void setAnchorOffset(int anchorOffset);",
"public void setOffset(java.lang.Long value) {\n this.offset = value;\n }",
"public void setDefaultOffset(int defaultOffset) {\r\n this.defaultOffset = defaultOffset;\r\n }",
"public void setStartLine(int startLine) {\r\n this.startLine = startLine;\r\n }",
"public void setBegin(int begin)\n {\n this.begin = begin;\n this.beginSpecified = true;\n }",
"public void setOffset(int xOffset, int yOffset) {\n\t\tthis.xOffset = xOffset;\n\t\tthis.yOffset = yOffset;\n\t}",
"public void setStart( GeoPoint start ){\n this.setOrigin(start);\n }",
"public void setStartLineNumber(int foo) { startLineNumber = foo; }",
"public void setOffset(Location value) {\n\t\tthis.pos = value;\n\t}",
"public void setOffset(Location value) {\n\t\tgfPos = value;\n\t}",
"public void setStart(Point point) {\n mStart = point;\n }",
"public void setStartPosition() {\n bounds.offsetTo((SanitizorGame.mSurfaceWidth - bounds.width()) / 2,\n SanitizorGame.mSurfaceHeight - (BOTTOM_PADDING + bounds.height()));\n }",
"public void setBeginPosition(FPointType fpt) {\n fptStart.x = fpt.x;\n fptStart.y = fpt.y;\n }",
"void setOffsetPosition(double x, double y, double z);",
"@Override\n\tpublic int getStartOffset() {\n\t\treturn 0;\n\t}",
"public final void setXOffset(final int xOffset) {\n this.xOffset = xOffset;\n }",
"public void resetX() {this.startX = 0f;}",
"public void setBegin(int begin) {\n\t\tthis.begin = begin;\n\t}",
"public Builder clearStartPosition() {\n bitField0_ = (bitField0_ & ~0x00000008);\n startPosition_ = 0;\n onChanged();\n return this;\n }",
"public void setStartElement(final int startIdx) {\r\n\t\tgetState().start = startIdx;\r\n\t}",
"public void setLineToStart(final int lineToStart) {\r\n\t\tthis.lineToStart = lineToStart;\r\n\t}",
"private void initializeOffsets () {\n exampleStartOffsets.clear();\n int window = exampleLength + predictLength;\n for (int i = 0; i < train.size() - window; i++) { exampleStartOffsets.add(i); }\n }",
"public void setBaseline(Double offset) {\n if (offset == null) {\n getOrCreateProperties().setBaseline(null);\n } else {\n getOrCreateProperties().setBaseline((int) (offset * 1000));\n }\n }",
"public void setSourceStart(int x)\n\t{\n\t\tsourceStart = x;\n\t}",
"void setPageStart(short start);",
"void positionToStart () {\n currentRow = 0 - currentPiece.getOffset();\n currentColumn = board.columns / 2 - currentPiece.width / 2;\n }",
"void xsetRawOffset(org.apache.xmlbeans.XmlInt rawOffset);",
"public void setStartPosition(Point startPosition)\r\n\t{\r\n\t\tthis.startPosition = startPosition;\r\n\t\tthrow new UnsupportedOperationException(\"Še ne dela, poišči še ime vozlišča na lokaciji\" + startPosition);\r\n\t}",
"public void setOffset(Point2D offset) {\n Point2D oldOffset = this.offset;\n this.offset = offset;\n propertyChangeSupport.firePropertyChange(\"offset\", oldOffset, offset);\n }",
"public void goToStart() {\n\t\tsetPosition(0);\n\t}",
"public void setOffset(Point2D offset) {\n\t\tthis.offset.setLocation(offset);\n\t}",
"public int getStartOffset() {\n return startOffset;\n }",
"public void setStartMark(Integer startMark) {\n this.startMark = startMark;\n }",
"public void setStartingPage(int startingPage) {\n if(startingPage <= 0){\n this.startingPage = 1;\n }else{\n this.startingPage = startingPage;\n }\n }",
"public void setStartPoint(int x) {\n\t\tthis.x = x;\n\n\t}",
"protected void setStartTimestamp(long timestamp) {\n\t\tthis.startTimestamp = timestamp;\n\t\tsetDirty(true);\n\t}",
"void setStartSegment(int startSegment);",
"@Test\n public void testSetBeginNotInMap(){\n smallMaze.setBegin(Maze.position(26, 23));\n }",
"public void setStartPoint(CartesianCoordinate startPoint) {\r\n\t\tthis.startPoint = startPoint;\r\n\t}",
"public int getStart() {\r\n\t\treturn this.offset;\r\n\t}",
"void changeStart(int newStart) {\n if (newStart < 0 || newStart >= endBeat) {\n throw new IllegalArgumentException(\"Invalid startBeat\");\n }\n this.startBeat = newStart;\n }",
"public void setxBegin(Float xBegin) {\r\n this.xBegin = xBegin;\r\n }",
"private void setUpStartPosition()\n {\n \tthis.xPos = startTile.xPos;\n this.yPos = startTile.yPos - startTile.tileHeight;\n yPos--;\n \n System.out.println(\"Player is on level \" + level + \n \" at position x: \" + xPos + \", y: \" + yPos); \n }"
]
| [
"0.7633839",
"0.7553084",
"0.7152485",
"0.71105343",
"0.7072988",
"0.7015703",
"0.6943312",
"0.6917141",
"0.6891429",
"0.68728596",
"0.6867138",
"0.68660897",
"0.67953175",
"0.67514604",
"0.67410266",
"0.67406845",
"0.6686887",
"0.6659351",
"0.66490746",
"0.66490746",
"0.66490746",
"0.65632397",
"0.6543412",
"0.6484228",
"0.6454431",
"0.6439726",
"0.6429595",
"0.6426816",
"0.6414055",
"0.64093983",
"0.6406674",
"0.6397808",
"0.6358273",
"0.63342565",
"0.6316485",
"0.6316473",
"0.63136",
"0.63124645",
"0.62954545",
"0.6292261",
"0.62863624",
"0.6236917",
"0.622881",
"0.61960614",
"0.6182674",
"0.6168074",
"0.61674386",
"0.6166538",
"0.6166538",
"0.6152922",
"0.6143938",
"0.6137667",
"0.61361533",
"0.6133183",
"0.6131288",
"0.61268103",
"0.6112082",
"0.60941875",
"0.60829896",
"0.6072802",
"0.6059439",
"0.6031925",
"0.6027736",
"0.602762",
"0.602695",
"0.6015577",
"0.60136765",
"0.6010155",
"0.60091573",
"0.5987847",
"0.5972842",
"0.59673536",
"0.5966197",
"0.59646004",
"0.5962986",
"0.5962443",
"0.5956715",
"0.5954477",
"0.595083",
"0.59459525",
"0.5944135",
"0.5938333",
"0.59327656",
"0.59309256",
"0.5929872",
"0.59202343",
"0.5901922",
"0.59005123",
"0.58934677",
"0.58718723",
"0.5865582",
"0.5855845",
"0.5852794",
"0.5841892",
"0.5831663",
"0.5816782",
"0.58123964",
"0.5812248",
"0.58092725",
"0.58089334"
]
| 0.7794761 | 0 |
Returns this Token's ending offset, one greater than the position of the last character corresponding to this token in the source text. | public final int endOffset() {
return endOffset;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getEndOffset() {\n return endPosition.getOffset();\n }",
"public int getEnd() {\n switch(getType()) {\n case Insertion:\n case SNP:\n case InterDup:\n case TandemDup:\n case TransDup:\n return pos;\n default:\n return pos + maxLen() - 1;\n }\n }",
"org.mojolang.mojo.lang.Position getEndPosition();",
"public int getEndPosition() {\n return getStartPosition() + getLength();\n }",
"public int getEndOffset() {\n return endOffset;\n }",
"public int getCharEnd() {\n\t\treturn -1;\n\t}",
"int getEndCharIndex();",
"private int getExclusiveBottomIndexEndOffset() {\n \n \t\tif (fTextWidget != null && !fTextWidget.isDisposed()) {\n \t\t\tint bottom= fSourceViewer.getBottomIndex();\n \t\t\tif (((fTextWidget.getTopPixel() + fTextWidget.getClientArea().height) % fTextWidget.getLineHeight()) != 0)\n \t\t\t\tbottom++;\n \t\t\ttry {\n \t\t\t\tIDocument document= fSourceViewer.getDocument();\n \n \t\t\t\tif (bottom >= document.getNumberOfLines())\n \t\t\t\t\tbottom= document.getNumberOfLines() - 1;\n \n \t\t\t\treturn document.getLineOffset(bottom) + document.getLineLength(bottom);\n \t\t\t} catch (BadLocationException x) {\n \t\t\t}\n \t\t}\n \n \t\treturn -1;\n \t}",
"public int getEndIndex() {\n return start + length - 1;\n }",
"public Integer getEndOffset() {\n return this.endOffset;\n }",
"public int getEndPosition() {\n return endPosition_;\n }",
"public int getEndPosition() {\n return endPosition_;\n }",
"@Override\n\tpublic int getEndOffset() {\n\t\treturn 0;\n\t}",
"public static int getEndOfLineIndex() {\n return endOfLineIndex;\n }",
"public int getEnd() {\r\n\t\treturn this.offset + this.numResults;\r\n\t}",
"public int getStop ()\r\n {\r\n return (getStart() + getLength()) - 1;\r\n }",
"@Override\r\n \tpublic final int getEndPos() {\r\n \t\treturn sourceEnd;\r\n \t}",
"private SourcePosition getTreeEndLocation() {\n return lastSourcePosition;\n }",
"int getEndPosition();",
"public int getEndLIne() {\r\n return this.endLine;\r\n }",
"public OptionalInt getEndOffset() {\n return endOffset >= 0 ? OptionalInt.of(endOffset) : OptionalInt.empty();\n }",
"public int getEndOffset() {\n if (view != null) {\n return view.getEndOffset();\n }\n return getElement().getEndOffset();\n }",
"@Pure\n public Integer getEndCharacter() {\n return this.endCharacter;\n }",
"public int getEndIdx() {\n return this.endIdx;\n }",
"public Position getEndPosition() {\n return endPosition;\n }",
"public int getEndLineNumber() {\n return this.endLine;\n }",
"public synchronized int getLastPos() {\n PageMeta pm = pmList.get(numPages - 1);\n return pm.startPos + pm.numPairs - 1;\n }",
"public int lastCharacter() {\n return string.codePointAt(string.length() - 1);\n }",
"public int getLast() {\n if (size == 0)\n return NO_ELEMENT;\n else\n return endOfBlock[numberOfBlocks - 1] - 1;\n }",
"public int getEnd() {\n return this.end;\n }",
"public Vector2 getEndLoc( ) { return endLoc; }",
"@Nullable TokenEntry peekLastToken();",
"public int getEnd() {\n if (Span_Type.featOkTst && ((Span_Type)jcasType).casFeat_End == null)\n jcasType.jcas.throwFeatMissing(\"End\", \"Span\");\n return jcasType.ll_cas.ll_getIntValue(addr, ((Span_Type)jcasType).casFeatCode_End);}",
"public String getEndAt() {\n return endAt;\n }",
"public char getEndEndModifier() {\n\t\treturn (end_end_modifier);\n\t}",
"public int getEndLineNumber() {\n return endLineNumber_;\n }",
"public int maxSentenceOffset();",
"public int getLastPos ()\r\n {\r\n return (getFirstPos() + getThickness()) - 1;\r\n }",
"public int getEndIndex() {\n return this.endIndex;\n }",
"public int getEnd() {\r\n return end;\r\n }",
"public int getEnd() {\r\n\t\treturn end;\r\n\t}",
"public int getEndLineNumber() {\n return endLineNumber_;\n }",
"int getEndLineNumber();",
"public int getEnd() {\n return end;\n }",
"private int getNamespaceEnd() {\n int index = data.substring(tokenStart, tokenEnd).indexOf(\".\");\n return index != -1 ? index + tokenStart : tokenEnd;\n }",
"public int getEnd() {\n\t\treturn end;\n\t}",
"public Integer getEndMark() {\n return endMark;\n }",
"public static char getLastChar (TextFragment textFragment) {\r\n \t\tif (textFragment == null)\r\n \t\t\treturn '\\0';\r\n \r\n \t\tString st = textFragment.getCodedText();\r\n \r\n \t\tint pos = TextFragment.indexOfLastNonWhitespace(st, -1, 0, true, true, true, true);\r\n \t\tif (pos == -1)\r\n \t\t\treturn '\\0';\r\n \r\n \t\treturn st.charAt(pos);\r\n \t}",
"private int getLastLine() {\n return lastSourcePosition.line;\n }",
"org.hl7.fhir.Integer getEnd();",
"public int getMaxPos() {\n return nextPos - 1;\n }",
"public int getEndX() {\r\n\t\treturn endX;\r\n\t}",
"public int getEnd()\n {\n return end;\n }",
"int getCommentEndOffset(CharSequence commentText);",
"@Override\n public int getEnd() {\n return feature.getEnd();\n }",
"@Override\n public final int getEndIndex() {\n return upper;\n }",
"public int getLastIndex() {\n return lastIndex;\n }",
"public int getRangeEnd() {\n return currentViewableRange.getTo();\n }",
"public int getEndIndex() {\r\n\t\treturn endIndex;\r\n\t}",
"public Point getEndPosition()\r\n\t{\r\n\t\treturn endPosition;\r\n\t}",
"private int getDistanceEnd() {\n int lastPoint = getNumPoints() - 1;\n return getDistanceIndex(lastPoint) + lastPoint;\n }",
"org.mojolang.mojo.lang.PositionOrBuilder getEndPositionOrBuilder();",
"public int getEndLine() {\r\n \r\n return endLine;\r\n }",
"@Pure\n public int getEndLine() {\n return this.endLine;\n }",
"public int sourceEnd()\n\t{\n\t\treturn sourceEnd;\n\t}",
"public Point end() {\r\n return this.end;\r\n }",
"public Address getEndAddress() {\n\t\treturn baseAddress.getNewAddress(baseAddress.getOffset() + maxOffset);\n\t}",
"public WorldCoordinate getEnd() {\r\n\t\treturn this.end;\r\n\t}",
"public String getEnd() {\n\t\t\t\t\n\t\t\t\t\tString vS = \"NONE\";\n\t\t\t\t\tSystem.out.println(vS + \" l \" + length);\n\t\t\t\t\tif (length != 0) vS = tail.getPrev().getValue();\n\t\t\t\t\tSystem.out.println(vS + \" l2 \" + length);\n\t\t\t\treturn vS;\n\t\t\t\t}",
"public Point getEndPosition() {\n return this.movementComposer.getTargetPosition();\n }",
"public int getEndY() {\r\n\t\treturn endY;\r\n\t}",
"public abstract int getEndIndex();",
"public int getLast() {\n\t\treturn last;\n\t}",
"net.opengis.gml.x32.TimePositionType getEndPosition();",
"public int getEndNum() {\r\n return this.endNum;\r\n }",
"public char getEndStartModifier() {\n\t\treturn (end_start_modifier);\n\t}",
"public String getEndMarker() {\n return endMarker;\n }",
"public int getEndColumnNumber() {\n return this.endColumn;\n }",
"private int getIndexOfEnd(String document) {\n int indexOfEnd = -1;\n indexOfEnd = document.indexOf(\"</span> °C\");\n return indexOfEnd;\n }",
"public Coordinate getEnd( )\n\t{\n\t\treturn endLocation;\n\t}",
"public int last() throws XPathException {\n if (last == -1) {\n if (base instanceof LastPositionFinder) {\n last = ((LastPositionFinder)base).getLastPosition();\n }\n if (last == -1) {\n last = Count.count(base.getAnother());\n }\n }\n return last;\n }",
"public int getEndx(){\n\t\treturn endx;\n\t}",
"int getDeclarationSourceEnd();",
"public CharSequence getTrailing() {\n\t\treturn trailing;\n\t}",
"public Vector3f getEndPosition()\n {\n return endPosition;\n }",
"public char getEndTagChar() {\n\t\treturn (end_tag);\n\t}",
"public float getDistanceToEnd() {\n\t\treturn distanceToEnd;\n\t}",
"String getEnd();",
"public int getLastLineLength()\n {\n return lastLineLength;\n }",
"@Override\n\tpublic SourceCodeLocation getScopeEnd() {\n\t\treturn endLocation;\n\t}",
"public int endIndex(){\n\t\treturn this.startIndex()+this.getRows()-1;\n\t}",
"private int backwardPosition() {\n\t\tif(getPosition() > 0) {\n\t\t\treturn getPosition() - 1;\n\t\t} else {\n\t\t\treturn getMaxPosition();\n\t\t}\n\t}",
"public int getEndy(){\n\t\treturn endy;\n\t}",
"public Location getEndLocation() {\n return gameLocations.get(GameLocation.END);\n }",
"public final int yylength() {\n return zzMarkedPos - zzStartRead;\n }",
"static int end(int csIndex, int textLength, int maxLength) {\r\n return (csIndex + (long) maxLength >= textLength)\r\n ? textLength\r\n : csIndex + maxLength;\r\n }",
"public int getLastOffsetForLine(int baseline) {\n TextFragmentBox box;\n List fragments = getFragmentsWithoutBorder();\n for (int i = fragments.size() - 1; i >= 0; i--) {\n box = (TextFragmentBox) fragments.get(i);\n if (baseline == box.getBaseline())\n return box.offset + box.length - 1;\n }\n return -1;\n }",
"public long getLastStreamSegmentOffset() {\n return getStreamSegmentOffset() + getLength();\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }",
"public final int yylength() {\n return zzMarkedPos-zzStartRead;\n }"
]
| [
"0.7439983",
"0.7264983",
"0.7069667",
"0.7044292",
"0.6975856",
"0.689498",
"0.6885871",
"0.68297696",
"0.68078667",
"0.67775494",
"0.67684567",
"0.67271954",
"0.66834646",
"0.6542965",
"0.64835554",
"0.6480962",
"0.6473538",
"0.6465165",
"0.645303",
"0.6437233",
"0.64276123",
"0.6422945",
"0.6403327",
"0.63314193",
"0.6310502",
"0.6258699",
"0.6248832",
"0.6241777",
"0.62321335",
"0.62052953",
"0.61934566",
"0.6186731",
"0.618023",
"0.6173177",
"0.6171547",
"0.6157906",
"0.6153283",
"0.6147372",
"0.61413115",
"0.6140283",
"0.612591",
"0.6108806",
"0.61009127",
"0.6098373",
"0.6081201",
"0.60739505",
"0.6071886",
"0.6062067",
"0.6050149",
"0.60278183",
"0.6026754",
"0.6006968",
"0.60024035",
"0.6001203",
"0.59998363",
"0.5973318",
"0.5962251",
"0.5958441",
"0.5955648",
"0.594703",
"0.5945179",
"0.5941938",
"0.5935609",
"0.59301925",
"0.5925936",
"0.5896852",
"0.58966297",
"0.58964956",
"0.58920515",
"0.5889696",
"0.5865243",
"0.5856671",
"0.5855748",
"0.58530605",
"0.58500636",
"0.5840156",
"0.5839464",
"0.58352125",
"0.5833522",
"0.58122104",
"0.5809618",
"0.5796776",
"0.5795589",
"0.57850915",
"0.57593125",
"0.57480806",
"0.574284",
"0.57194084",
"0.57182705",
"0.5714394",
"0.5711573",
"0.5709835",
"0.570759",
"0.5691897",
"0.5685435",
"0.5683629",
"0.56818396",
"0.56801915",
"0.5674302",
"0.5674302"
]
| 0.6723657 | 12 |
Set the ending offset. | public void setEndOffset(int offset) {
this.endOffset = offset;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Builder setEndPosition(int value) {\n bitField0_ |= 0x00000010;\n endPosition_ = value;\n onChanged();\n return this;\n }",
"public void setEnd(int end)\n {\n this.end = end;\n this.endSpecified = true;\n }",
"public void setEnd(int end) {\r\n this.end = end;\r\n }",
"public void setEnd(int end) {\n\t\tthis.end = end;\n\t}",
"public void setEndLoc( Vector2 end ) { endLoc = end; }",
"public void setEnd(int end)\n {\n if(end >= 0)\n {\n this.end = end;\n }\n else\n {\n System.out.println(\"Cannot be negative.\");\n }\n }",
"public void setOffset(int startOffset, int endOffset);",
"public void setEndPt(final int dataPointer) {\n this.endPt=dataPointer;\n }",
"public void setEndLineNumber(int foo) { endLineNumber = foo; }",
"public void setEndOffset(Integer endOffset) {\n this.endOffset = endOffset;\n }",
"public void setAsEndingPoint(int endNode) {\n\t\tnodeStatus = Status.end;\n\t\tthis.endNode=endNode;\n\t\tender=true;\n\t}",
"public void setEndNum(int endNum) {\r\n this.endNum = endNum;\r\n this.limitNum = this.endNum - this.skipNum -1;\r\n }",
"public void setEndLine(final int endLine) {\n this.endLine = endLine;\n }",
"public void setEndPosition(int aEndX, int aEndY) {\r\n\t\t\r\n\t\tthis.endX = aEndX;\r\n\t\tthis.endY = aEndY;\r\n\t}",
"public void setEndLine(int endLine) {\r\n this.endLine = endLine;\r\n }",
"public void setEndMark(Integer endMark) {\n this.endMark = endMark;\n }",
"@Test\n public void testSetEndNotInMap(){\n smallMaze.setEnd(Maze.position(0, 23));\n }",
"private void setEndLocation() {\n switch (direction) {\n case UP:\n case DOWN:\n componentToMove.setLocation(posX, Direction.UP == direction ? Math.min(endPosition, posY) : Math.max(endPosition, posY));\n break;\n default:\n componentToMove.setLocation(Direction.LEFT == direction ? Math.min(endPosition, posX) : Math.max(endPosition, posX), posY);\n }\n }",
"public void setEndAt(String endAt) {\n this.endAt = endAt == null ? null : endAt.trim();\n }",
"public void setEnd( GeoPoint end ){\n this.end = end;\n\n }",
"void setEndPosition(net.opengis.gml.x32.TimePositionType endPosition);",
"public Builder clearEndPosition() {\n bitField0_ = (bitField0_ & ~0x00000010);\n endPosition_ = 0;\n onChanged();\n return this;\n }",
"public void setEndLineNumber(int endLine) {\n this.endLine = endLine;\n }",
"public Builder setEndLineNumber(int value) {\n bitField0_ |= 0x00000040;\n endLineNumber_ = value;\n onChanged();\n return this;\n }",
"@Test\n public void endOffsetTest() throws IOException {\n String segmentName = \"log_current\";\n LogSegment segment = getSegment(segmentName, LogSegmentTest.STANDARD_SEGMENT_SIZE, true);\n try {\n long writeStartOffset = segment.getStartOffset();\n int segmentSize = 500;\n appendRandomData(segment, segmentSize);\n Assert.assertEquals(\"End offset is not as expected\", (writeStartOffset + segmentSize), segment.getEndOffset());\n // should be able to set end offset to something >= initial offset and <= file size\n int[] offsetsToSet = new int[]{ ((int) (writeStartOffset)), segmentSize / 2, segmentSize };\n for (int offset : offsetsToSet) {\n segment.setEndOffset(offset);\n Assert.assertEquals(\"End offset is not equal to what was set\", offset, segment.getEndOffset());\n Assert.assertEquals(\"File channel positioning is incorrect\", offset, segment.getView().getSecond().position());\n }\n // cannot set end offset to illegal values (< initial offset or > file size)\n int[] invalidOffsets = new int[]{ ((int) (writeStartOffset - 1)), ((int) ((segment.sizeInBytes()) + 1)) };\n for (int offset : invalidOffsets) {\n try {\n segment.setEndOffset(offset);\n Assert.fail(((\"Setting log end offset an invalid offset [\" + offset) + \"] should have failed\"));\n } catch (IllegalArgumentException e) {\n // expected. Nothing to do.\n }\n }\n } finally {\n closeSegmentAndDeleteFile(segment);\n }\n }",
"void changeEnd(int newEnd) {\n if (newEnd < 0 || newEnd <= startBeat) {\n throw new IllegalArgumentException(\"Invalid endBeat\");\n }\n this.endBeat = newEnd;\n }",
"void setEndSegment(int endSegment);",
"public void setEndY(double y)\n {\n endycoord=y; \n }",
"public void setEndMarker(String endMarker) {\n this.endMarker = endMarker;\n }",
"public int getEndOffset() {\n return endPosition.getOffset();\n }",
"public void setEndCharacter(final Integer endCharacter) {\n this.endCharacter = endCharacter;\n }",
"public void setEndX(double val) {\r\n endx = val;\r\n }",
"public void setEnd(){\n\t\tthis.isEnd=true;\n\t}",
"public void setEndingPage(int endingPage) {\n if(endingPage < this.startingPage){\n this.endingPage = this.startingPage;\n }else{\n this.endingPage = endingPage;\n }\n }",
"void setEndRange( String endRange );",
"public void testMoveToEnd() {\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n test1.moveToEnd();\n test1.prev();\n assertTrue(test1.getValue().inRange(9));\n }",
"@NonNull\n public Builder setEnd(@NonNull DpProp end) {\n if (end.getDynamicValue() != null) {\n throw new IllegalArgumentException(\"setEnd doesn't support dynamic values.\");\n }\n mImpl.setEnd(end.toProto());\n mFingerprint.recordPropertyUpdate(\n 1, checkNotNull(end.getFingerprint()).aggregateValueAsInt());\n return this;\n }",
"public Builder setEnd(boolean value) {\n \n end_ = value;\n onChanged();\n return this;\n }",
"public int getEndOffset() {\n return endOffset;\n }",
"@Override\r\n public void setOffset(long offset) {\n }",
"public void setExpectedEnd(long expectedEnd) {\n this.expectedEnd = expectedEnd;\n }",
"public void setEndPosition(Point endPosition)\r\n\t{\r\n\t\tthis.endPosition = endPosition;\r\n\t\tthrow new UnsupportedOperationException(\"Še ne dela, poišči še ime vozlišča na lokaciji\" + endPosition);\r\n\t}",
"public void setEnd(int v) {\n if (Span_Type.featOkTst && ((Span_Type)jcasType).casFeat_End == null)\n jcasType.jcas.throwFeatMissing(\"End\", \"Span\");\n jcasType.ll_cas.ll_setIntValue(addr, ((Span_Type)jcasType).casFeatCode_End, v);}",
"void setOffset(double offset);",
"org.mojolang.mojo.lang.Position getEndPosition();",
"public void setIteratorEnd() {\n iter = (next > 0 ? next - 1 : -1);\n }",
"public Builder clearEndLineNumber() {\n bitField0_ = (bitField0_ & ~0x00000040);\n endLineNumber_ = 0;\n onChanged();\n return this;\n }",
"public int getEnd() {\r\n return end;\r\n }",
"public void setOffset(int offset) {\r\n\t\tthis.offSet = offset;\r\n\t}",
"public int getEndPosition() {\n return endPosition_;\n }",
"protected void setEndTimestamp(long timestamp) {\n\t\tthis.endTimestamp = timestamp;\n\t\tsetDirty(true);\n\t}",
"@Override\n\tpublic int getEndOffset() {\n\t\treturn 0;\n\t}",
"public void IntersectEnd() {\n\t\tif (getIntersectingObjects(End.class).get(0).isEnd()) {\n\t\t\tthis.end--;\n\t\t\taddPoints(-100);\n\t\t}\n\t\tpoints+=100;\n\t\tgetIntersectingObjects(End.class).get(0).setEnd();\n\t\tfrogReposition();\n\t\tthis.end++;\n\t}",
"public int getEndPosition() {\n return getStartPosition() + getLength();\n }",
"public int getEndPosition() {\n return endPosition_;\n }",
"public int getEnd() {\n return end;\n }",
"public int getEnd() {\n return this.end;\n }",
"public void setEndPage(int value) {\n this.endPage = value;\n }",
"public void setEndLocation(Location endLoc) {\n gameLocations.put(GameLocation.END, endLoc);\n }",
"void setStaEnd(double staEnd);",
"public Point end() {\r\n return this.end;\r\n }",
"public void setEndDate(@Nullable DateWithOffset endDate) {\r\n this.endDate = endDate;\r\n }",
"int getEndPosition();",
"void setCloseBodyRangeEnd(int end) {\n this.fCloseBodyRange[1] = end;\n }",
"public com.opentext.bn.converters.avro.entity.ContentErrorEvent.Builder setOffset(int value) {\n validate(fields()[6], value);\n this.offset = value;\n fieldSetFlags()[6] = true;\n return this;\n }",
"public int getEnd() {\r\n\t\treturn end;\r\n\t}",
"public Element setEndEndModifier(char modifier) {\n\t\tthis.end_end_modifier = modifier;\n\t\tsetEndEndModifierDefined(true);\n\t\treturn (this);\n\t}",
"public void setEndColumnNumber(int endColumn) {\n this.endColumn = endColumn;\n }",
"@Test\n\tpublic void endBorder() {\n\n\t\tassertEquals(set.size(), set.getEnd());\n\t\tset.endAt(1);\n\t\tassertEquals(1, set.getEnd());\n\t}",
"public String getEndMarker() {\n return endMarker;\n }",
"public int getEnd()\n {\n return end;\n }",
"public void setOffset(int offset) {\r\n currOffset = offset;\r\n try {\r\n file.seek(offset);\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"void unsetEndPosition();",
"@Override\n public void setEnd(double x1, double y1) {\n super.setEnd(x1,y1);\n path.add(new Point2D(x1,y1));\n }",
"DbQuery setEndAtFilter(String value) {\n filter = Filter.END;\n this.endAt = value;\n return this;\n }",
"public String getEndAt() {\n return endAt;\n }",
"public Position getEndPosition() {\n return endPosition;\n }",
"void setEndInclusive( boolean endInclusive );",
"public void resetY() {this.startY = 11.3f;}",
"public int getEnd() {\n\t\treturn end;\n\t}",
"public int getEndLine() {\r\n \r\n return endLine;\r\n }",
"public void setEndIndex(final int endIndex) {\r\n\t\tthis.endIndex = endIndex;\r\n\t}",
"public int end() { return _end; }",
"public Integer getEndMark() {\n return endMark;\n }",
"@Override\r\n\tpublic void setOffset(IOffset offset) {\n\t\t\r\n\t}",
"public void setLiningOffset(IfcLengthMeasure LiningOffset)\n\t{\n\t\tthis.LiningOffset = LiningOffset;\n\t\tfireChangeEvent();\n\t}",
"public void setEndBay(int arg) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.ENDBAY.toString(), arg);\n\t}",
"public void setxEnd(Float xEnd) {\r\n this.xEnd = xEnd;\r\n }",
"public void setEnd(final Integer column, final Integer row) {\n\t\tendColumn = column;\n\t\tendRow = row;\n\t}",
"public void setDistanceToEnd(float distanceToEnd) {\n\t\tthis.distanceToEnd = distanceToEnd;\n\t}",
"@Modified(author=\"Phil Brown\", summary=\"Added Method\")\n public void setupEndValues() {\n }",
"public int end() {\n return end;\n }",
"public void setEndX(double x)\n {\n endxcoord=x; \n }",
"public final int endOffset() {\n return endOffset;\n }",
"protected void end() {\n\t\tRobot.elevator.setCurrentPosition(newPosition);\n\t}",
"void normalizeEndPosition(ILineStartFinder finder, DOMNode next) {\n if (next == null) {\n // this node's end position includes all of the characters up\n // to the end of the enclosing node\n DOMNode parent = (DOMNode) getParent();\n if (parent == null || parent instanceof DOMCompilationUnit) {\n setSourceRangeEnd(this.fDocument.length - 1);\n } else {\n // parent is a type\n setSourceRangeEnd(((DOMType) parent).getCloseBodyPosition() - 1);\n }\n } else {\n // this node's end position is just before the start of the next node\n next.normalizeStartPosition(getEndPosition(), finder);\n setSourceRangeEnd(next.getStartPosition() - 1);\n }\n }",
"public Vector2 getEndLoc( ) { return endLoc; }",
"public int getEndY() {\r\n\t\treturn endY;\r\n\t}",
"public int getEndLIne() {\r\n return this.endLine;\r\n }",
"public void setLimitEnd(int limitEnd) {\n this.limitEnd=limitEnd;\n }"
]
| [
"0.69733155",
"0.69335425",
"0.6837937",
"0.6658919",
"0.6647501",
"0.6566976",
"0.65144926",
"0.6462459",
"0.6439602",
"0.63919944",
"0.6378021",
"0.6363684",
"0.6283147",
"0.6268792",
"0.6245646",
"0.6221246",
"0.62072825",
"0.61890894",
"0.61828446",
"0.616999",
"0.6160583",
"0.6146423",
"0.6107925",
"0.6077401",
"0.6064461",
"0.6058738",
"0.60567486",
"0.6049239",
"0.59575325",
"0.59358156",
"0.59317166",
"0.59290314",
"0.5894129",
"0.58758",
"0.5874269",
"0.583453",
"0.5785786",
"0.5776062",
"0.57633185",
"0.57615036",
"0.5757986",
"0.57197636",
"0.57112646",
"0.5705248",
"0.56871724",
"0.5683757",
"0.56766933",
"0.56567717",
"0.56520313",
"0.564953",
"0.56467396",
"0.56457615",
"0.56354797",
"0.562095",
"0.5615084",
"0.5612921",
"0.5599835",
"0.55892855",
"0.5588668",
"0.5581814",
"0.556409",
"0.55604184",
"0.5538884",
"0.55386597",
"0.5535725",
"0.55320483",
"0.5528812",
"0.55248183",
"0.55237615",
"0.5523724",
"0.55221",
"0.5514364",
"0.551208",
"0.5502617",
"0.549616",
"0.5495158",
"0.54906386",
"0.5468043",
"0.54678917",
"0.54586655",
"0.5458322",
"0.54544395",
"0.54530716",
"0.54275906",
"0.54200184",
"0.541076",
"0.5408429",
"0.5408209",
"0.54015774",
"0.53984576",
"0.53939533",
"0.5389204",
"0.53864664",
"0.5379943",
"0.5378442",
"0.53657705",
"0.5361137",
"0.5358032",
"0.5353059",
"0.53393596"
]
| 0.658212 | 5 |
Returns this Token's lexical type. Defaults to "word". | public final String type() {
return type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getTokenType() {\n return tokenType;\n }",
"public TYPE tokenType(){\n\n return currentTokenType;\n }",
"public TokenType TokenType(){\r\n\t\tif (isSymbol) {\r\n\t\t\treturn TokenType.SYMBOL;\r\n\t\t} else if (tokenizer.ttype==StreamTokenizer.TT_WORD)\r\n\t\t{\r\n\t\t\tif (keywords.containsKey(currentToken))\r\n\t\t\t{\r\n\t\t\t\treturn TokenType.KEYWORD;\r\n\t\t\t}else{\r\n\t\t\t\treturn TokenType.IDENTIFIER;\r\n\t\t\t}\r\n\t\t}else if(tokenizer.ttype==StreamTokenizer.TT_NUMBER)\r\n\t\t\treturn TokenType.INT_CONST;\r\n\t\telse\r\n\t\t\treturn TokenType.STRING_CONST;\r\n\r\n\t}",
"public String getToken_type() {\r\n\t\treturn token_type;\r\n\t}",
"public TokenType getType() {\n return type;\n }",
"public TokenType getType() {\n\t\treturn type;\n\t}",
"public TokenType getType() {\n\t\treturn this.type;\n\t}",
"@TokenizerType\n public int getTokenizerType() {\n return mBundle.getInt(TOKENIZER_TYPE_FIELD);\n }",
"public int getTokenType() {\n return type_;\n }",
"TermType getTermType();",
"private StdType stdtype() {\n String val;\n\n if ((lexer.token == Symbol.INTEGER) || (lexer.token == Symbol.REAL) || \n (lexer.token == Symbol.CHAR) || (lexer.token == Symbol.STRING)) {\n val = lexer.getStringValue();\n lexer.nextToken();\n return new StdType(val);\n }else{\n lexer.error(\"Missing Type\\n\");\n return null;\n }\n }",
"ShiftableTypes.Type getWordType(\n String word,\n String prefixChar,\n String postfixChar,\n boolean isLastLineInDocument,\n ActionContainer actionContainer\n ) {\n // Selected code line w/ trailing //-comment: moves the comment into a new caretLine before the code\n if (TrailingComment.isTrailingComment(word, postfixChar, isLastLineInDocument)) {\n return TRAILING_COMMENT;\n }\n\n if (PhpDocParam.isPhpDocParamLine(actionContainer.caretLine)\n && !PhpDocParam.containsDataType(actionContainer.caretLine)) {\n// return TYPE_PHP_DOC_PARAM_LINE;\n // PHP doc param line is handled in caretLine-shifting fallback\n return UNKNOWN;\n }\n // PHP variable (must be prefixed w/ \"$\")\n typePhpVariableOrArray = new PhpVariableOrArray();\n if (typePhpVariableOrArray.isPhpVariableOrArray(word)) {\n return PHP_VARIABLE_OR_ARRAY;\n }\n if (Parenthesis.isWrappedInParenthesis(word)) {\n return PARENTHESIS;\n }\n\n if (JsVariablesDeclarations.isJsVariables(word)) {\n return JS_VARIABLES_DECLARATIONS;\n }\n if (SizzleSelector.isSelector(word)) {\n return SIZZLE_SELECTOR;\n }\n\n // DocComment shiftable_types (must be prefixed w/ \"@\")\n typeDataTypeInDocComment = new DocCommentType();\n if (DocCommentType.isDocCommentTypeLineContext(actionContainer.caretLine)) {\n typeTagInDocComment = new DocCommentTag();\n if (prefixChar.matches(\"@\")\n && typeTagInDocComment.isDocCommentTag(prefixChar, actionContainer.caretLine)\n ) {\n return DOC_COMMENT_TAG;\n }\n if (typeDataTypeInDocComment.isDocCommentType(prefixChar, actionContainer.caretLine)) {\n return DOC_COMMENT_DATA_TYPE;\n }\n }\n\n // Object visibility\n accessType = new AccessType();\n if (!\"@\".equals(prefixChar) && accessType.isAccessType(word)) {\n return ACCESS_TYPE;\n }\n\n // File extension specific term in dictionary\n typeDictionaryTerm = new DictionaryTerm();\n String fileExtension = UtilsFile.extractFileExtension(actionContainer.filename);\n if (null != fileExtension) {\n if (typeDictionaryTerm.isTermInDictionary(word, fileExtension)) {\n return DICTIONARY_WORD_EXT_SPECIFIC;\n }\n if (\n UtilsFile.isJavaScriptFile(actionContainer.filename, true) &&\n JqueryObserver.isJQueryObserver(word)\n ) {\n return JQUERY_OBSERVER;\n }\n }\n\n // Ternary Expression - swap IF and ELSE\n if (TernaryExpression.isTernaryExpression(word, prefixChar)) {\n return TERNARY_EXPRESSION;\n }\n\n // Quoted (must be wrapped in single or double quotes or backticks)\n typeQuotedString = new QuotedString();\n if (typeQuotedString.isQuotedString(prefixChar, postfixChar)) {\n return QUOTED_STRING;\n }\n // RGB (must be prefixed w/ \"#\")\n if (RgbColor.isRgbColorString(word, prefixChar)) {\n typeRgbColor = new RgbColor();\n return RGB_COLOR;\n }\n // Pixel value (must consist of numeric value followed by \"px\")\n if (CssUnit.isCssUnitValue(word)) {\n typePixelValue = new CssUnit();\n return CSS_UNIT;\n }\n if (NumericValue.isNumericValue(word)) {\n typeNumericValue = new NumericValue();\n return NUMERIC_VALUE;\n }\n // Operator sign (<, >, +, -)\n if (OperatorSign.isOperatorSign(word)) {\n typeOperatorSign = new OperatorSign();\n return OPERATOR_SIGN;\n }\n // Roman Numeral\n if (RomanNumber.isRomanNumber(word)) {\n typeRomanNumber = new RomanNumber();\n return ROMAN_NUMERAL;\n }\n if (LogicalOperator.isLogicalOperator(word)) {\n // Logical operators \"&&\" and \"||\" must be detected before MonoCharStrings to avoid confusing\n return LOGICAL_OPERATOR;\n }\n // MonoCharString (= consisting from any amount of the same character)\n if (MonoCharacter.isMonoCharacterString(word)) {\n typeMonoCharacterString = new MonoCharacter();\n return MONO_CHARACTER;\n }\n // Term in dictionary (anywhere, that is w/o limiting to the current file extension)\n if (typeDictionaryTerm.isTermInDictionary(word)) {\n return DICTIONARY_WORD_GLOBAL;\n }\n if (NumericPostfixed.hasNumericPostfix(word)) {\n return NUMERIC_POSTFIXED;\n }\n wordsTupel = new Tupel(actionContainer);\n if (wordsTupel.isWordsTupel(word)) {\n return WORDS_TUPEL;\n }\n if (SeparatedPath.isSeparatedPath(word)) {\n return SEPARATED_PATH;\n }\n if (CamelCaseString.isCamelCase(word)) {\n return CAMEL_CASED;\n }\n if (HtmlEncodable.isHtmlEncodable(word)) {\n return HTML_ENCODABLE;\n }\n\n return UNKNOWN;\n }",
"private Keyword basicType()\r\n {\r\n Keyword x = Keyword.NONESY;\r\n\r\n if (typeKW.contains(nextSymbol))\r\n {\r\n x = nextSymbol;\r\n lookAhead();\r\n }\r\n\r\n return x;\r\n }",
"public String getTokenType() {\n return scheme;\n }",
"public char getType() {\r\n return type.charAt(1);\r\n }",
"public String getTokenType()\n {\n String tokenType = \"\";\n try\n {\n FileReader fileReader = new FileReader(getCache(\"tokenType\"));\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n tokenType = bufferedReader.readLine();\n } catch (FileNotFoundException e)\n {\n e.printStackTrace();\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n return tokenType;\n }",
"public Keywords.Type getType() {\n\t\treturn type;\n\t}",
"public char getType() {\n\t\treturn type;\n\t}",
"public NameType getType() {\n return type;\n }",
"public char getType() {\n return type;\n }",
"public char getType() {\n return type;\n }",
"public char getType() {\r\n return type;\r\n }",
"@ApiModelProperty(value = \"The type of token eg \\\"Bearer\\\"\")\n public String getTokenType() {\n return tokenType;\n }",
"private Text type() {\n\t\tText type = text();\r\n\r\n\t\tif (syntaxError)\r\n\t\t\treturn null;\r\n\r\n\t\treturn type;\r\n\t}",
"public char getType(){\n\t\treturn type;\n\t}",
"@Override\n public WolfType getType() {\n return WolfType.TYPE;\n }",
"public String getType() {\n\t\tCharacter tempType = (char)type;\n\t\treturn tempType.toString();\n\t}",
"public char getType() {\n return this._type;\n }",
"public String getWord()\r\n\t\t{\r\n\t\t\treturn word;\r\n\t\t}",
"public Token(TokenType type) {\n\t\tthis.type = type;\n\t\tthis.spelling = type.getSpelling();\n\t}",
"public char getType() {\n return this.type;\n }",
"public String getWord() {\n\t\treturn word;\r\n\t}",
"TokenTypes.TokenName getName();",
"public static String getTokenTypeFromRemainedWord(String remainedWord){\n\t\tif(remainedWordList.contains(remainedWord)){\n\t\t\treturn \"keyword_\" + remainedWord;\n\t\t}else\n\t\t\treturn \"ID\";\n\t}",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"public static TokenType getType(final String token) {\n\t\tif (isFLOAT(token))\n\t\t\treturn TokenType.FLOAT;\n\t\tif (isINT(token))\n\t\t\treturn TokenType.INT;\n\t\tif (isVAR(token))\n\t\t\treturn TokenType.VAR;\n\t\treturn TokenType.INVALID;\n\t}",
"private Type type()\r\n {\r\n Type t = new Type();\r\n\r\n t.ident = nextToken;\r\n t.type = basicType();\r\n if (t.type == Keyword.NONESY)\r\n {\r\n unresolved.add(t.ident.string = qualident());\r\n }\r\n else\r\n t.ident.string = null;\r\n\r\n t.dim = bracketsOpt();\r\n\r\n return t;\r\n }",
"public Token(TokenType type, String spelling) {\n\t\tthis.type = type;\n\t\tthis.spelling = spelling;\n\t}",
"public static TokenizerType getTokenizerType(Properties props) {\n String tokClass = props.getProperty(\"tokenize.class\", null);\n boolean whitespace = Boolean.valueOf(props.getProperty(\"tokenize.whitespace\", \"false\"));\n String language = props.getProperty(\"tokenize.language\", null);\n\n if(whitespace) {\n return Whitespace;\n }\n\n if (tokClass != null) {\n TokenizerType type = classToTokenizerMap.get(tokClass.toUpperCase());\n if (type == null) {\n throw new IllegalArgumentException(\"TokenizerAnnotator: unknown tokenize.class property \" + tokClass);\n }\n return type;\n }\n\n if (language != null) {\n TokenizerType type = nameToTokenizerMap.get(language.toUpperCase());\n if (type == null) {\n throw new IllegalArgumentException(\"TokenizerAnnotator: unknown tokenize.language property \" + language);\n }\n return type;\n }\n\n return Unspecified;\n }",
"public java.lang.String getVALUATION_TYPE() {\r\n return VALUATION_TYPE;\r\n }",
"public static String getTokenName(int type) {\r\n return TokenType.getTokenName(type);\r\n }",
"private TokenType(String spelling) {\n\t\t\tthis.spelling = spelling;\n\t\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();",
"public String getWord()\n\t{\n\t\treturn word;\n\t}",
"public CharSequence getType() {\n return type;\n }",
"public String type();",
"public String getWord() {\n return word;\n }",
"public String getWord(){\r\n\t\treturn word;\r\n\t}",
"public String getLtype() {\n return (String) get(2);\n }",
"private static String tokTypeToString(int tokType) {\n\t\tString type = \"\";\n\t\tswitch (tokType) {\n\t\tcase StreamTokenizer.TT_EOF:\n\t\t\ttype = \"EOF\";\n\t\t\tbreak;\n\t\tcase StreamTokenizer.TT_EOL:\n\t\t\ttype = \"EOL\";\n\t\t\tbreak;\n\t\tcase StreamTokenizer.TT_NUMBER:\n\t\t\ttype = \"NUMBER\";\n\t\t\tbreak;\n\t\tcase StreamTokenizer.TT_WORD:\n\t\t\ttype = \"WORD\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tif (0 <= tokType && tokType <= Character.MAX_VALUE)\n\t\t\t\ttype = Character.toString((char) tokType);\n\t\t\telse\n\t\t\t\ttype = \"??? \" + tokType + \" ???\";\n\t\t}\n\t\treturn type;\n\t}",
"public static CommandType getWord(String word){\r\n\t\treturn dictionary.get(word);\r\n\t}",
"public String getType()\n\t{\n\t\t// The enumerated type's name satisfies all the type criteria, so use\n\t\t// it.\n\t\treturn name();\n\t}",
"public String getWord() {\n return this.word;\n }",
"public uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.NodeType getType() {\n @SuppressWarnings(\"deprecation\")\n uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.NodeType result = uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.NodeType.valueOf(type_);\n return result == null ? uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.NodeType.TOKEN : result;\n }",
"public String getWord(){\n\t\treturn word;\n\t}",
"public String getKeyword()\n {\n switch (keywordType)\n {\n case ASTokenTypes.TOKEN_KEYWORD_FUNCTION:\n return IASKeywordConstants.FUNCTION;\n \n case ASTokenTypes.TOKEN_RESERVED_WORD_EXTENDS:\n return IASKeywordConstants.EXTENDS;\n \n case ASTokenTypes.TOKEN_RESERVED_WORD_IMPLEMENTS:\n return IASKeywordConstants.IMPLEMENTS;\n \n case ASTokenTypes.TOKEN_KEYWORD_VAR:\n return IASKeywordConstants.VAR;\n \n case ASTokenTypes.TOKEN_RESERVED_WORD_GET:\n return IASKeywordConstants.GET;\n \n case ASTokenTypes.TOKEN_RESERVED_WORD_SET:\n return IASKeywordConstants.SET;\n \n case ASTokenTypes.TOKEN_KEYWORD_NEW:\n return IASKeywordConstants.NEW;\n \n case ASTokenTypes.TOKEN_KEYWORD_CONST:\n return IASKeywordConstants.CONST;\n \n case ASTokenTypes.TOKEN_KEYWORD_CLASS:\n return IASKeywordConstants.CLASS;\n \n case ASTokenTypes.TOKEN_KEYWORD_INTERFACE:\n return IASKeywordConstants.INTERFACE;\n \n case ASTokenTypes.TOKEN_DIRECTIVE_DEFAULT_XML:\n return IASKeywordConstants.DEFAULT_XML_NAMESPACE;\n }\n\n assert false : \"Unknown keyword type \" + keywordType;\n return \"\";\n }",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();"
]
| [
"0.70785713",
"0.70146096",
"0.69720006",
"0.6853819",
"0.680938",
"0.6746402",
"0.6733328",
"0.66579735",
"0.65223104",
"0.6521391",
"0.6346936",
"0.631427",
"0.6306029",
"0.6292697",
"0.62224334",
"0.61612725",
"0.61044234",
"0.6067606",
"0.604115",
"0.6030146",
"0.6030146",
"0.60087985",
"0.59984195",
"0.59948003",
"0.5987823",
"0.59831476",
"0.5982303",
"0.59703267",
"0.5943155",
"0.59376264",
"0.5937569",
"0.59326065",
"0.5926571",
"0.59258765",
"0.5921537",
"0.5921537",
"0.5921537",
"0.5921537",
"0.5921537",
"0.5921537",
"0.5921537",
"0.5921537",
"0.5921537",
"0.5921537",
"0.5921537",
"0.5921537",
"0.5921537",
"0.5901352",
"0.58935255",
"0.5889888",
"0.5885491",
"0.5868404",
"0.5868301",
"0.58647686",
"0.5853333",
"0.5853333",
"0.5853333",
"0.5853333",
"0.5853333",
"0.5853333",
"0.5853333",
"0.5853333",
"0.5853333",
"0.5853333",
"0.5853333",
"0.5853333",
"0.5853333",
"0.5853333",
"0.5853333",
"0.5853333",
"0.5853333",
"0.5853333",
"0.5853333",
"0.5853333",
"0.58494085",
"0.5839117",
"0.5836201",
"0.58191127",
"0.5816976",
"0.581429",
"0.58128124",
"0.5804006",
"0.57970744",
"0.5796325",
"0.5772805",
"0.5764388",
"0.5755374",
"0.57545125",
"0.57545125",
"0.57545125",
"0.57545125",
"0.57545125",
"0.57545125",
"0.57545125",
"0.57545125",
"0.57545125",
"0.57545125",
"0.57545125",
"0.57545125",
"0.57545125",
"0.57545125"
]
| 0.0 | -1 |
Set the lexical type. | public final void setType(String type) {
this.type = type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setType (String typ) {\n type = typ;\n }",
"public void setType(String t) {\n\ttype = t;\n }",
"public void set_type(String t)\n {\n type =t;\n }",
"public void setType (String type) { n.setAttribute(ATTNAMECOMMONPREFIX + ATTNAMESUFFIX_TYPE , type); }",
"public void setLtype(String value) {\n set(2, value);\n }",
"public static void setType(String type) {\n Globals.type = type;\n setProperty(\"type\", type);\n }",
"final public void setType(String type)\n {\n setProperty(TYPE_KEY, (type));\n }",
"void setType(java.lang.String type);",
"public final native void setType(String type) /*-{\n this.setType(type);\n }-*/;",
"public void setType(String t) {\n\t\tthis.type = t;\n\t}",
"public void setType( int type ) {\r\n typ = type;\r\n }",
"public void setType(Type t) {\n type = t;\n }",
"public void setType(String type);",
"public void setType(String type);",
"public void setType(String type);",
"private void setType(String type) {\n mType = type;\n }",
"public void setType(char type) {\n this.type = type;\n }",
"public void setType(char type) {\n this.type = type;\n }",
"public void setType(Type t) {\n\t\ttype = t;\n\t}",
"public void setType(String inType)\n {\n\ttype = inType;\n }",
"public void setpymttype(String value) {\n setAttributeInternal(PYMTTYPE, value);\n }",
"public final void setType(String type){\n\t\tthis.type = type;\t\n\t}",
"public void setType(CharSequence value) {\n this.type = value;\n }",
"public void setType(int t) {\r\n\t\ttype = t;\r\n\t}",
"public LexicalToken(TokenType type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String aType) {\n iType = aType;\n }",
"public void setType(String value) {\n this.type = value;\n }",
"public void setType(String val) {\n type = val;\n }",
"public void setType(String newtype)\n {\n type = newtype;\n }",
"public void setType(CWLType type) {\n this.type = type;\n }",
"void xsetType(org.apache.xmlbeans.XmlString type);",
"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 setType(ParseTree node, Type type) {\n\t\tthis.types.put(node, type);\n\t}",
"public void setType(String name){\n\t\ttype = name;\n\t}",
"public void setType(String type) {\n m_Type = type;\n }",
"public void setType(String string) {\n\t\tthis.type = string;\n\t\t\n\t}",
"public void setTokenType(int type) throws PropertyVetoException {\n // Validate state\n validatePropertyChange(\"tokenType\");\n\n // Validate parms\n if (type < 1 || type > 3) {\n Trace.log(Trace.ERROR, \"Token type \" + type + \" out of range\");\n throw new ExtendedIllegalArgumentException(\n \"type\", ExtendedIllegalArgumentException.RANGE_NOT_VALID);\n }\n\n Integer old = new Integer(type_);\n Integer typ = new Integer(type);\n fireVetoableChange(\"tokenType\", old, typ);\n type_ = type;\n firePropertyChange(\"tokenType\", old, typ);\n }",
"public void setType(int t){\n this.type = t;\n }",
"protected void setType(String newType) {\n\t\ttype = newType;\n\t}",
"void setType(String type) {\n this.type = type;\n }",
"public Gateway setTokenType(java.lang.String tokenType) {\n return genClient.setOther(tokenType, CacheKey.tokenType);\n }",
"public void setType(String type){\n \tthis.type = type;\n }",
"public void setType(final int t) {\n\t\ttype = t;\n\t}",
"public void setType(java.lang.String newType) {\n\ttype = newType;\n}",
"public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }",
"void setType(ASTTypeSpecNode typeSpecNode)\n {\n this.type = Type.parse(typeSpecNode);\n }",
"public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}",
"public void setType(String type){\r\n if(type == null){\r\n throw new IllegalArgumentException(\"Type can not be null\");\r\n }\r\n this.type = type;\r\n }",
"public void setType(String type)\r\n {\r\n this.mType = type;\r\n }",
"void setTypeKeyword(String keyword) {\n this.fTypeKeyword = keyword;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType(String type) {\r\n this.type = type.trim();\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"void setType(Type type)\n {\n this.type = type;\n }",
"public void setType(String type) \n {\n this.type = type;\n }",
"public void setType(String type) {\n\t this.mType = type;\n\t}",
"@JsProperty(name = \"type\")\n public native void setType(String value);",
"public void setType( String type )\n {\n this.type = type;\n }",
"@Override\n public void setType(String type) {\n this.type = type;\n }",
"@Override\n\tpublic void setType(String type) {\n\t}",
"@Override\n\tpublic void setType(Type t) {\n\t\theldObj.setType(t);\n\t}",
"public void setType( String type ) {\n this.type = type;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"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 type) {\r\r\n\t\tthis.type = type;\r\r\n\t}",
"void setType(gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type type);",
"public void setType(String type){\n this.type = type;\n }",
"public void setType(ShapeType ty) {\n\t\t\ttype.set(ty);\n\t\t}",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type){\n\t\tthis.type = type;\n\t}",
"public static void set_Type(String s, String v) throws RuntimeException\n {\n read_if_needed_();\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaTypeCmd, s, v);\n UmlCom.check();\n \n UmlBuiltin b = (UmlBuiltin) UmlSettings._map_builtins.get(s);\n \n if (b == null)\n b = UmlSettings.add_type(s);\n b.java = v;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(Type type){\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\r\n\t\tthis.type=type;\r\n\t}",
"public void setType(java.lang.String type) {\n this.type = type;\n }",
"public void setType(java.lang.String type) {\n this.type = type;\n }",
"public void setType(int type) {\n type_ = type;\n }",
"public void setType(String newValue);",
"public void setType(String newValue);",
"public void setTermType(int ttype){\n if (ttype != TERM_FULL && ttype != TERM_NEAR_OPT &&\n ttype != TERM_EASY && ttype != TERM_PRED_ER ) {\n throw new IllegalArgumentException(\"Unrecognized termination type \"+\n \"code: \"+ttype);\n }\n\n this.ttype = ttype;\n }",
"public void setType(String type)\n\t{\n\t\tthis.type = type;\n\t}",
"public void setCtype(String ctype) {\n this.ctype = ctype;\n }",
"public void setVALUATION_TYPE(java.lang.String VALUATION_TYPE) {\r\n this.VALUATION_TYPE = VALUATION_TYPE;\r\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }"
]
| [
"0.6811714",
"0.6651721",
"0.6647193",
"0.64754975",
"0.6474201",
"0.6463743",
"0.64633536",
"0.6439649",
"0.643868",
"0.6414535",
"0.64073694",
"0.640728",
"0.6315202",
"0.6315202",
"0.6315202",
"0.6309733",
"0.63095963",
"0.63095963",
"0.6303422",
"0.6297165",
"0.6296679",
"0.6282085",
"0.62404174",
"0.62206894",
"0.6199691",
"0.61631423",
"0.61601305",
"0.61527365",
"0.6144825",
"0.6133725",
"0.61313313",
"0.6108744",
"0.610483",
"0.6104415",
"0.61001605",
"0.6080467",
"0.60567826",
"0.6039402",
"0.6026244",
"0.60169905",
"0.5999663",
"0.5984647",
"0.5983004",
"0.59740156",
"0.5944838",
"0.5938023",
"0.5934494",
"0.592488",
"0.59164727",
"0.5905381",
"0.58925515",
"0.58925515",
"0.58925515",
"0.588423",
"0.5883303",
"0.5879772",
"0.5875862",
"0.5874795",
"0.5869469",
"0.5867995",
"0.5832649",
"0.5831907",
"0.58239645",
"0.5813138",
"0.5811083",
"0.5811083",
"0.5811083",
"0.5811083",
"0.58049667",
"0.5803272",
"0.5803251",
"0.58023787",
"0.5785298",
"0.5784988",
"0.5784988",
"0.57786065",
"0.5769549",
"0.57678795",
"0.57667553",
"0.576653",
"0.576653",
"0.576653",
"0.57584095",
"0.5755989",
"0.5755989",
"0.5754084",
"0.57479733",
"0.57479733",
"0.57320565",
"0.5731175",
"0.5731175",
"0.572937",
"0.5729064",
"0.57268804",
"0.572054",
"0.57194924",
"0.57194924",
"0.57194924",
"0.57194924",
"0.57194924"
]
| 0.60211426 | 39 |
Returns this Token's payload. | public Payload getPayload() {
return this.payload;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getPayload() {\n return payload;\n }",
"public byte[] getPayload() {\n return mPayload;\n }",
"public String getPayload() {\n return payload;\n }",
"public byte[] getPayload() {\r\n return Utilities.copyOf(payload);\r\n }",
"protected final Object getPayload() {\r\n return this.payload;\r\n }",
"public com.google.protobuf.ByteString getPayload() {\n return payload_;\n }",
"public com.google.protobuf.ByteString getPayload() {\n return payload_;\n }",
"public String getPayload() {\n return payload;\n }",
"public String getPayload() {\n return payload;\n }",
"public java.lang.CharSequence getPayload() {\n return payload;\n }",
"public final ByteBuffer getPayload() {\n return this.payload.slice();\n }",
"public com.google.protobuf.ByteString getPayload() {\n return payload_;\n }",
"public com.google.protobuf.ByteString getPayload() {\n return payload_;\n }",
"public String getPayload() {\n return this.payload;\n }",
"public java.lang.CharSequence getPayload() {\n return payload;\n }",
"public byte[] getPayload();",
"com.google.protobuf.ByteString getPayload();",
"com.google.protobuf.ByteString getPayload();",
"@java.lang.Override\n public com.google.protobuf.ByteString getSerializedPayload() {\n return serializedPayload_;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getSerializedPayload() {\n return serializedPayload_;\n }",
"public byte[] getToken() {\n\t\treturn this.token;\n\t}",
"public int getPayload() {\n return payload;\n }",
"@AutoEscape\n\tpublic String getPayload();",
"public Object getPayload() {\r\n return null;\r\n }",
"public byte get() {\n\t\treturn payload.get();\n\t}",
"public DsByteString getToken() {\n return sToken;\n }",
"public byte[] getToken() {\n if (token_ != null)\n return primitiveGetToken();\n return null;\n }",
"public char[] payload_GET()\n {return payload_GET(new char[249], 0);}",
"public Source getPayload();",
"public byte[] getDeviceToken() {\r\n return Utilities.copyOf(deviceToken);\r\n }",
"public byte[] getPayload() throws TFTPPacketException;",
"@Override\n\tpublic Message getPayload() {\n\t\treturn null;\n\t}",
"public String getToken() {\n return token.get();\n }",
"public com.google.protobuf.ByteString\n getTokenBytes() {\n return instance.getTokenBytes();\n }",
"public com.google.protobuf.ByteString\n getTokenBytes() {\n return instance.getTokenBytes();\n }",
"public com.google.protobuf.ByteString\n getTokenBytes() {\n return instance.getTokenBytes();\n }",
"public T getToken() {\n return this.token;\n }",
"Document getPayload();",
"public String getToken() {\n return instance.getToken();\n }",
"public String getToken() {\n return instance.getToken();\n }",
"public String getToken() {\n return instance.getToken();\n }",
"public java.util.List<Pokemon.Payload> getPayloadList() {\n return payload_;\n }",
"public String getToken() {\n return this.token;\n }",
"public String getPayloadId() {\r\n return this.payloadId;\r\n }",
"public String getToken() {\n return this.token;\n }",
"@Nonnull\n public final String getToken() {\n return this.token;\n }",
"public String getToken() {\n\n return this.token;\n }",
"public String getDeveloperPayload(){\n return developerPayload;\n }",
"public String getToken()\n {\n return token;\n }",
"public String getToken() {\n return token;\n }",
"public String getToken() {\n return token;\n }",
"public String getToken() {\n return token;\n }",
"public String getToken() {\n return token;\n }",
"public String getToken() {\n return token;\n }",
"public String getToken() {\r\n return token;\r\n }",
"public String getToken() {\r\n return token;\r\n }",
"public String getToken() {\n return this.token;\n }",
"public String getToken() {\n return token_;\n }",
"public String getToken() {\n return token_;\n }",
"public String getToken() {\n return token_;\n }",
"public String getToken() {\n\t\treturn token;\n\t}",
"public String getToken() {\n\t\treturn token;\n\t}",
"public Token getToken() {\n return this.token;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getTokenBytes() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n token_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n\tpublic Token getToken() {\n\t\treturn this.token;\n\t\t\n\t}",
"private byte[] primitiveGetToken() {\n return decode(addr_, mask_, token_);\n }",
"public SecureMessagePayload getSecureMessagePayload() {\r\n\t\treturn this.secureMessagePayload;\r\n\t}",
"public String body() {\n return request.content().toString(StandardCharsets.UTF_8);\n }",
"public Token getToken() {\r\n return _token;\r\n }",
"public String getPayload() {\n\t\t\t\t\t\treturn payLoad;\r\n\t\t\t\t\t}",
"public Payload.Inbound getInboundPayload();",
"public String getToken()\n {\n return ssProxy.getToken();\n }",
"public Token getToken() {\n return token;\n }",
"public java.util.List<Pokemon.Payload> getPayloadList() {\n if (payloadBuilder_ == null) {\n return java.util.Collections.unmodifiableList(payload_);\n } else {\n return payloadBuilder_.getMessageList();\n }\n }",
"public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n token_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n token_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public int getPayloadType() {\n return _payload;\n }",
"@java.lang.Override\n public java.lang.String getToken() {\n java.lang.Object ref = token_;\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 token_ = s;\n }\n return s;\n }\n }",
"public Payload.Outbound getOutboundPayload();",
"public byte[] getBody() {\n return body;\n }",
"public Result getPayloadResult() {\n\t\treturn null;\r\n\t}",
"public Token getToken() {\r\n\t\treturn this.token;\r\n\t}",
"public java.lang.String getBody() {\n return instance.getBody();\n }",
"public int getTotalPayload() {\n return totalPayload;\n }",
"public Token getToken() {\n\t\treturn token;\n\t}",
"public Token getToken() {\n\t\treturn token;\n\t}",
"public Token getToken() {\n\t\treturn token;\n\t}",
"public static String getToken() {\n \treturn mToken;\n }",
"public java.util.List<? extends Pokemon.PayloadOrBuilder> \n getPayloadOrBuilderList() {\n return payload_;\n }",
"com.google.protobuf.ByteString\n getTokenBytes();",
"com.google.protobuf.ByteString\n getTokenBytes();",
"com.google.protobuf.ByteString\n getTokenBytes();",
"com.google.protobuf.ByteString\n getTokenBytes();",
"com.google.protobuf.ByteString\n getTokenBytes();",
"public String getStringToken()\n\t{\n\t\tgetToken();\n\t\treturn token;\n\t}",
"public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Override\n\tpublic String toString() {\n\t\treturn inputPayload;\n\t}",
"public java.lang.String getToken() {\n java.lang.Object ref = token_;\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 token_ = s;\n }\n return s;\n }\n }"
]
| [
"0.77206725",
"0.76469344",
"0.76445174",
"0.7614183",
"0.75865847",
"0.75811505",
"0.75811505",
"0.75768644",
"0.75768644",
"0.7553433",
"0.7545498",
"0.75371265",
"0.75371265",
"0.75347203",
"0.75289017",
"0.73831636",
"0.7242032",
"0.7242032",
"0.71135664",
"0.7086417",
"0.7051952",
"0.70363224",
"0.6988825",
"0.68766266",
"0.6720227",
"0.65796214",
"0.6571677",
"0.65256417",
"0.64934236",
"0.6470873",
"0.64601904",
"0.6439538",
"0.63343894",
"0.63085103",
"0.63085103",
"0.63085103",
"0.62771136",
"0.62345386",
"0.62170863",
"0.62170863",
"0.62170863",
"0.62020516",
"0.6199913",
"0.61991596",
"0.6176186",
"0.61717534",
"0.61569244",
"0.6151315",
"0.61444926",
"0.61415905",
"0.61415905",
"0.61415905",
"0.61415905",
"0.61415905",
"0.6130161",
"0.6130161",
"0.61178786",
"0.60892093",
"0.60892093",
"0.60892093",
"0.6061127",
"0.6061127",
"0.60229945",
"0.6019602",
"0.6014367",
"0.6009898",
"0.60083187",
"0.59986824",
"0.5986913",
"0.59822035",
"0.5938257",
"0.5919984",
"0.5919038",
"0.59184223",
"0.5915226",
"0.5915226",
"0.5912198",
"0.58993095",
"0.58904034",
"0.58836985",
"0.5880869",
"0.5870848",
"0.58670473",
"0.58503824",
"0.58479255",
"0.58479255",
"0.58479255",
"0.584768",
"0.58448184",
"0.5818891",
"0.5818891",
"0.5818891",
"0.5818891",
"0.5818891",
"0.5814601",
"0.57930195",
"0.57930195",
"0.57930195",
"0.57868725",
"0.5781907"
]
| 0.72855765 | 16 |
Sets this Token's payload. | public void setPayload(Payload payload) {
this.payload = payload;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPayload(String payload);",
"public void setPayload(String payload) {\n this.payload = payload;\n }",
"public void setPayload(String payload) {\n this.payload = payload;\n }",
"public void setPayload(java.lang.CharSequence value) {\n this.payload = value;\n }",
"public final void setPayload(final ByteBuffer payload) {\n\n if (logger.isLoggable(Level.FINER)) {\n logger.finer(this.log.entry(\"UdpPacket.setPayload\", payload));\n }\n\n this.payload = payload.slice();\n setLength((short) (getHeaderLength() + this.payload.limit()));\n }",
"public void setPayload(int data) {\n payload = data;\n }",
"public void setPayload(Source payload);",
"public void setPayload(Object payload, JAXBContext context);",
"public void setToken(byte token[]) {\n\t\tthis.token = token;\n\t}",
"public Event setPayload(String payload) {\n this.payload = payload;\n return this;\n }",
"public cz.muni.fi.sdipr.kafka.latency.avro.Payload.Builder setPayload(java.lang.CharSequence value) {\n validate(fields()[0], value);\n this.payload = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"public void setPayload(byte[] pld) throws TFTPPacketException;",
"public ChannelSender setPayload(final String payload) {\n this.payload = payload;\n return this;\n }",
"protected final Object getPayload() {\r\n return this.payload;\r\n }",
"private void primitiveSetToken(byte[] bytes) {\n token_ = encode(addr_, mask_, bytes);\n }",
"public String getPayload() {\n return payload;\n }",
"public String getPayload() {\n return payload;\n }",
"public String getPayload() {\n return this.payload;\n }",
"public String getPayload() {\n return payload;\n }",
"public Object getPayload() {\n return payload;\n }",
"public void setToken(byte[] bytes) throws PropertyVetoException {\n // Validate state\n validatePropertyChange(\"token\");\n\n // Validate parms\n if (bytes == null) {\n Trace.log(Trace.ERROR, \"Token byte array is null\");\n throw new ExtendedIllegalArgumentException(\n \"bytes\", ExtendedIllegalArgumentException.PARAMETER_VALUE_NOT_VALID);\n }\n if (bytes.length != TOKEN_LENGTH) {\n Trace.log(Trace.ERROR, \"Token of length \" + bytes.length + \n \" not valid \");\n throw new ExtendedIllegalArgumentException(\n \"bytes\", ExtendedIllegalArgumentException.LENGTH_NOT_VALID);\n }\n\n byte[] old = getToken();\n fireVetoableChange(\"token\", old, bytes);\n primitiveSetToken(bytes);\n firePropertyChange(\"token\", old, bytes);\n }",
"public java.lang.CharSequence getPayload() {\n return payload;\n }",
"public java.lang.CharSequence getPayload() {\n return payload;\n }",
"@Override\n\tpublic void setToken(Token token) {\n\t\tthis.token = token;\n\t\t\n\t}",
"public void setInboundPayload(Payload.Inbound newInboundPayload);",
"public byte[] getPayload() {\n return mPayload;\n }",
"public Builder setPayload(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n payload_ = value;\n onChanged();\n return this;\n }",
"public Builder setPayload(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n payload_ = value;\n onChanged();\n return this;\n }",
"public Payload getPayload() {\n return this.payload;\n }",
"public byte[] getPayload() {\r\n return Utilities.copyOf(payload);\r\n }",
"private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }",
"private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }",
"private void setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value.toStringUtf8();\n }",
"public int getPayload() {\n return payload;\n }",
"public void setTotalPayload(int value) {\n this.totalPayload = value;\n }",
"@Override\n public void payload(byte[] data) {\n \tmLastMessage.append(new String(data));\n Log.d(TAG, \"Payload received: \" + data);\n }",
"public com.google.protobuf.ByteString getPayload() {\n return payload_;\n }",
"public com.google.protobuf.ByteString getPayload() {\n return payload_;\n }",
"public com.google.protobuf.ByteString getPayload() {\n return payload_;\n }",
"public com.google.protobuf.ByteString getPayload() {\n return payload_;\n }",
"public void setToken(Parcelable token) {\n\n this.mToken = token;\n\n }",
"public void setBody(byte[] content) {\n this.body = content;\n }",
"public Builder clearPayload() {\n \n payload_ = getDefaultInstance().getPayload();\n onChanged();\n return this;\n }",
"public Builder clearPayload() {\n \n payload_ = getDefaultInstance().getPayload();\n onChanged();\n return this;\n }",
"public Payload() {}",
"public void setBody(byte[] body) {\n\t\t\tthis.body = body;\n\t\t}",
"public void setToken(int value){token = value;}",
"public Builder setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n token_ = value;\n onChanged();\n return this;\n }",
"@AutoEscape\n\tpublic String getPayload();",
"public void setBody(byte[] body) {\n\t\tthis.body = body;\n\t}",
"public void setOutboundPayload(Payload.Outbound newOutboundPayload);",
"public void setToken(final String token) {\n this.token = token;\n }",
"public byte[] getPayload();",
"public Object getPayload() {\r\n return null;\r\n }",
"public void setContent(byte[] value) {\r\n this.content = value;\r\n }",
"public Builder setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }",
"public Builder setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }",
"public Builder setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }",
"public Builder setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }",
"public Builder setTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n token_ = value;\n onChanged();\n return this;\n }",
"public void setToken(String token) {\r\n hc.setToken(token);\r\n }",
"public void set(byte[] value) {\n this.value = value;\n }",
"public void setPayloadId(String payloadId) {\r\n this.payloadId = payloadId;\r\n }",
"public Token(byte[] data) {\n super(data);\n lastSeen = 0;\n }",
"void setData(byte[] data) {\n this.data = data;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getSerializedPayload() {\n return serializedPayload_;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getSerializedPayload() {\n return serializedPayload_;\n }",
"public Builder setTokenBytes(\n com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setTokenBytes(value);\n return this;\n }",
"public Builder setTokenBytes(\n com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setTokenBytes(value);\n return this;\n }",
"public Builder setTokenBytes(\n com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setTokenBytes(value);\n return this;\n }",
"public void setTokens() {\n\t\tgetOwner().setAmount(getOwner().getAmount() + 1000);\n\t}",
"@Override\n\tpublic void setBody(Object body) {\n\t\tsuper.setBody(body);\n\t}",
"public void setToken(String token) {\r\n this.token = token;\r\n }",
"public void setIDToken(JWT token) {\n this.idToken = token;\n }",
"@JsonSetter(\"session_token\")\n public void setSessionToken (String value) { \n this.sessionToken = value;\n }",
"public Builder setRemoteTokenBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n remoteToken_ = value;\n bitField0_ |= 0x00000008;\n onChanged();\n return this;\n }",
"public Payload() {\n\t}",
"public Builder setSerializedPayload(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n serializedPayload_ = value;\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }",
"void setData(T data) {\n\t\tthis.data = data;\n\t}",
"RequestBody set(byte[] body);",
"public String getPayloadId() {\r\n return this.payloadId;\r\n }",
"public Builder clearPayload() {\n if (payloadBuilder_ == null) {\n payload_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000020);\n onChanged();\n } else {\n payloadBuilder_.clear();\n }\n return this;\n }",
"public void setToken(String token) {\n\t\tthis.token = token;\n\t}",
"public void setStreamingPayload(StreamingPayload arg0) {\n\t\t\r\n\t}",
"public cz.muni.fi.sdipr.kafka.latency.avro.Payload.Builder clearPayload() {\n payload = null;\n fieldSetFlags()[0] = false;\n return this;\n }",
"public void setData(byte[] data) {\n this.data = data;\n }",
"public void setData(byte data) {\n this.data = data;\n }",
"public void setRequestData(T requestData) {\n this.requestData = requestData;\n }",
"public Token() {\n mTokenReceivedDate = new Date();\n }",
"public final ByteBuffer getPayload() {\n return this.payload.slice();\n }",
"public void setToken(String token) {\n\t\tthis.token = token == null ? null : token.trim();\n\t}",
"public QuestionInExamMessage(ArrayList<QuestionInExam> payload) {\r\n\t\tsuper(\"put-questioninexam\");\r\n\t\tthis.questionInExam = payload;\r\n\t}",
"private void setToken(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n token_ = value;\n }",
"private void setToken(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n token_ = value;\n }",
"private void setToken(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n token_ = value;\n }",
"@Override\n\tpublic Message getPayload() {\n\t\treturn null;\n\t}",
"public Builder setToken(\n Pokemon.RequestEnvelop.AuthInfo.JWT.Builder builderForValue) {\n if (tokenBuilder_ == null) {\n token_ = builderForValue.build();\n onChanged();\n } else {\n tokenBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000002;\n return this;\n }",
"public void setToken(java.lang.String param){\n localTokenTracker = true;\n \n this.localToken=param;\n \n\n }",
"@Override\n public Object getPayloadInstance() {\n return null;\n }",
"public void setData(byte[] data) {\r\n this.bytes = data;\r\n }"
]
| [
"0.69877076",
"0.67885476",
"0.67158556",
"0.65170765",
"0.6408876",
"0.6390158",
"0.6374726",
"0.62208754",
"0.6215143",
"0.59938985",
"0.5982166",
"0.59236646",
"0.58169794",
"0.5730351",
"0.57249975",
"0.5715464",
"0.5715464",
"0.5699985",
"0.5691918",
"0.56869537",
"0.5666418",
"0.5659211",
"0.56293154",
"0.5625877",
"0.5536881",
"0.5477457",
"0.5387267",
"0.5387267",
"0.53789186",
"0.5372717",
"0.53718454",
"0.53718454",
"0.53718454",
"0.5330209",
"0.53108126",
"0.5237442",
"0.52103686",
"0.52103686",
"0.5203595",
"0.5203595",
"0.51941633",
"0.5091076",
"0.50720155",
"0.50720155",
"0.5058788",
"0.50400525",
"0.503346",
"0.50205064",
"0.50151277",
"0.50045013",
"0.49954084",
"0.499232",
"0.4958852",
"0.49475455",
"0.4938723",
"0.4933447",
"0.4933447",
"0.4933447",
"0.4933447",
"0.4933447",
"0.49294278",
"0.4909241",
"0.49089226",
"0.48930985",
"0.48847827",
"0.4883349",
"0.48579913",
"0.48574606",
"0.48574606",
"0.48574606",
"0.48440996",
"0.4839157",
"0.48370072",
"0.48251647",
"0.48112166",
"0.48110592",
"0.48107868",
"0.48009497",
"0.4797293",
"0.4788681",
"0.47868934",
"0.4772653",
"0.47717306",
"0.4761833",
"0.4752039",
"0.47342488",
"0.4727694",
"0.47218427",
"0.47036618",
"0.4702934",
"0.4700245",
"0.4691136",
"0.46900854",
"0.46900854",
"0.46900854",
"0.46799088",
"0.46725547",
"0.4670696",
"0.46486288",
"0.46435073"
]
| 0.7119891 | 0 |
Resets the term text, payload, flags, and positionIncrement to default. Other fields such as startOffset, endOffset and the token type are not reset since they are normally overwritten by the tokenizer. | public void clear() {
payload = null;
// Leave termBuffer to allow re-use
termLength = 0;
termText = null;
positionIncrement = 1;
flags = 0;
// startOffset = endOffset = 0;
// type = DEFAULT_TYPE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void reset() {\r\n\t\tnextTokenPos = 0;\r\n\t}",
"public Value.Builder clearTerm() {\n term = null;\n fieldSetFlags()[14] = false;\n return this;\n }",
"public void setTermText(String text) {\n termText = text;\n termBuffer = null;\n }",
"public void reset() {\n started = false;\n flushing = false;\n moreText = true;\n headerCount = 0;\n actualLen = 0;\n }",
"public void reset() {\n\t\tlocalName = \"\";\n\t\turi = \"\";\n\t\tdata = null;\n\t\tchars = null;\n\t\tcharCount = 0;\n\t\tline = 0;\n\t\tcolumn = 0;\n\t\tleaf = true;\n\t}",
"protected void reinitialize() {\n \t\t\tfStart= fEnd= -1;\n \t\t\tfText= fPreservedText= null;\n \t\t\tfUndoModificationStamp= IDocumentExtension4.UNKNOWN_MODIFICATION_STAMP;\n \t\t\tfRedoModificationStamp= IDocumentExtension4.UNKNOWN_MODIFICATION_STAMP;\n \t\t}",
"private void reset() {\n // Reset to the inital state.\n command = null;\n headers = new DefaultHeaders();\n body = null;\n currentDecodedByteCount = 0;\n totalDecodedByteCount = 0;\n }",
"public void reset()\n {\n myOffset = 0;\n amIInsideDoubleQuotes = false;\n amIInsideSingleQuotes = false;\n myCurrLexeme = null;\n }",
"void resetState() {\n\t\t// Reinitialize parser if parsetable changed (due to .meta file)\n\t\tif (getParseTable() != parser.getParseTable()) {\n\t\t\tparser = Environment.createSGLR(getParseTable());\n\t\t}\n\t\tparser.setTimeout(timeout);\n\t\tif (disambiguator != null) parser.setDisambiguator(disambiguator);\n\t\telse disambiguator = parser.getDisambiguator();\n\t\tsetUseRecovery(useRecovery);\n\t\tif (!isImplodeEnabled()) {\n\t\t\tparser.setTreeBuilder(new Asfix2TreeBuilder(Environment.getTermFactory()));\n\t\t} else {\n\t\t\tassert parser.getTreeBuilder() instanceof TreeBuilder;\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tITreeFactory<IStrategoTerm> treeFactory = ((TreeBuilder) parser.getTreeBuilder()).getFactory();\n\t\t\tassert ((TermTreeFactory) treeFactory).getOriginalTermFactory()\n\t\t\t\tinstanceof ParentTermFactory;\n\t\t\tif (incrementalParser == null || incrementalParser.getParser().getParseTable() != parser.getParseTable())\n\t\t\t\tincrementalParser = new IncrementalSGLR<IStrategoTerm>(parser, null, treeFactory, IncrementalSortSet.read(getParseTable()));\n\t\t}\n\t}",
"private void defaultState() {\r\n stringBuffer = \"\";\r\n bufferLength = 0;\r\n currentWord = \"\";\r\n }",
"TermNode() {\n this.fac = new FacNode();\n this.term = null;\n this.selection = 1;\n }",
"public void reset(){\n try {\n getDocument().remove(0,getDocument().getLength()); \n if(defaultText != null){\n getDocument().insertString(0,defaultText,null); \n }\n }catch (BadLocationException ble){\n System.err.println(\"Reset ist fehlgeschlagen!\");\n }\n }",
"@Override\n public void reset() throws IOException {\n lemmaListIndex = 0;\n lemmaList = Collections.emptyList();\n tagsList.clear();\n super.reset();\n }",
"public void reset() {\r\n\t\tcursor = mark;\r\n\t}",
"public void reset() {\n this.index = this.startIndex;\n }",
"public void reset() {\n\t\t// set any default values\n\t\t// setDefaultController() ???\n\t}",
"public void reset() {\r\n dogNameField.clear();\r\n dogText.clear();\r\n }",
"private void initTermBuffer() {\n if (termBuffer == null) {\n if (termText == null) {\n termBuffer = new char[MIN_BUFFER_SIZE];\n termLength = 0;\n } else {\n int length = termText.length();\n if (length < MIN_BUFFER_SIZE) length = MIN_BUFFER_SIZE;\n termBuffer = new char[length];\n termLength = termText.length();\n termText.getChars(0, termText.length(), termBuffer, 0);\n termText = null;\n }\n } else if (termText != null)\n termText = null;\n }",
"public void reset(Object o) {\n\t\tif (o instanceof Word) {\n\t\t\tWord word = (Word) o;\n\t\t\tint start = word.getStartPosition();\n\t\t\tint end = word.getEndPosition();\n\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\tVector fws = Model.getIllocutionUnitRoots().getFunctionWords(word);\n\t\t\tVector cws = Model.getIllocutionUnitRoots().getConstitutiveWords(\n\t\t\t\t\tword);\n\t\t\tmarkedElements.removeElement(word);\n\t\t\tif (fws.size() > 0) {\n\t\t\t\tfor (int j = 0; j < fws.size(); j++) {\n\t\t\t\t\tFunctionWord fw = (FunctionWord) fws.get(j);\n\t\t\t\t\tdesignFW(fw);\n\t\t\t\t}\n\t\t\t} else if (cws.size() > 0) {\n\t\t\t\tfor (int j = 0; j < cws.size(); j++) {\n\t\t\t\t\tConstitutiveWord cw = (ConstitutiveWord) cws.get(j);\n\t\t\t\t\tdesignCW(cw);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (o instanceof FunctionWord) {\n\t\t\tFunctionWord fword = (FunctionWord) o;\n\t\t\teditor.setCaretPosition(fword.getEndPosition() + 1);\n\t\t\tint start = fword.getStartPosition();\n\t\t\tint end = fword.getEndPosition();\n\t\t\tif (start != 0 || end != 0) {\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\t\tmarkedElements.removeElement(fword);\n\t\t\t\tif (Model.getIllocutionUnitRoots().getFunctionWords(\n\t\t\t\t\t\tfword.getWord()).size() > 0)\n\t\t\t\t\tdesignFW(fword);\n\t\t\t}\n\t\t} else if (o instanceof ConstitutiveWord) {\n\t\t\tConstitutiveWord cword = (ConstitutiveWord) o;\n\t\t\teditor.setCaretPosition(cword.getEndPosition() + 1);\n\t\t\tint start = cword.getStartPosition();\n\t\t\tint end = cword.getEndPosition();\n\t\t\tif (start != 0 || end != 0) {\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\t\tmarkedElements.removeElement(cword);\n\t\t\t\tif (Model.getIllocutionUnitRoots().getConstitutiveWords(\n\t\t\t\t\t\tcword.getWord()).size() > 0)\n\t\t\t\t\tdesignCW(cword);\n\t\t\t}\n\t\t} else if (o instanceof MeaningUnit) {\n\t\t\tMeaningUnit mu = (MeaningUnit) o;\n\t\t\tFunctionWord fw = mu.getFunctionWord();\n\t\t\tConstitutiveWord cw = mu.getConstitutiveWord();\n\t\t\tif (fw != null) {\n\t\t\t\tint start = fw.getStartPosition();\n\t\t\t\tint end = fw.getEndPosition();\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\t\tmarkedElements.remove(fw);\n\t\t\t}\n\t\t\tif (cw != null) {\n\t\t\t\tint start = cw.getStartPosition();\n\t\t\t\tint end = cw.getEndPosition();\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\t\tmarkedElements.remove(cw);\n\t\t\t}\n\t\t\tdesignMU(mu);\n\t\t} else if (o instanceof IllocutionUnit) {\n\t\t\tIllocutionUnit iu = (IllocutionUnit) o;\n\t\t\tmarkedElements.remove(iu);\n\t\t\tdesignIU(iu);\n\t\t}\n\t\tdesignText(Model.getIllocutionUnitRoots());\n\t}",
"public void reset() {\n\t\t\t\t\r\n\t\t\t}",
"public void reset() {\n\t\tfor (int i = 0; i < markedElements.size(); i++) {\n\t\t\tif (markedElements.get(i) instanceof Word) {\n\t\t\t\tWord word = (Word) markedElements.get(i);\n\t\t\t\teditor.setCaretPosition(word.getEndPosition() + 1);\n\t\t\t\tint start = word.getStartPosition();\n\t\t\t\tint end = word.getEndPosition();\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\t} else if (markedElements.get(i) instanceof FunctionWord) {\n\t\t\t\tFunctionWord fword = (FunctionWord) markedElements.get(i);\n\t\t\t//\tif(fword.getWord().getEndPosition()!= fword.getEndPosition()) {\n\t\t\t\t\t// fword ist teil eines gr��eren Wortes-> Endposition als caretposition verwenden\n\t\t\t//\t\teditor.setCaretPosition(fword.getEndPosition() + 1);\n\t\t\t//\t}\n\t\t\t//\telse {\n\t\t\t\t\teditor.setCaretPosition(fword.getEndPosition() + 1);\n\t\t\t//\t}\n\t\t\t\tint start = fword.getStartPosition();\n\t\t\t\tint end = fword.getEndPosition();\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\t} else if (markedElements.get(i) instanceof ConstitutiveWord) {\n\t\t\t\tConstitutiveWord cword = (ConstitutiveWord) markedElements\n\t\t\t\t\t\t.get(i);\n\t\t\t\teditor.setCaretPosition(cword.getEndPosition() + 1);\n\t\t\t\tint start = cword.getStartPosition();\n\t\t\t\tint end = cword.getEndPosition();\n\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN, true);\n\t\t\t} else if (markedElements.get(i) instanceof IllocutionUnit) {\n\t\t\t\tIllocutionUnit iu = (IllocutionUnit) markedElements.get(i);\n\t\t\t\tfor (int j = 0; j < iu.getTokens().size(); j++) {\n\t\t\t\t\tToken token = (Token) iu.getTokens().get(j);\n\t\t\t\t\tint start = token.getStartPosition();\n\t\t\t\t\tint end = token.getEndPosition();\n\t\t\t\t\tdoc.setCharacterAttributes(start, end - start + 1, PLAIN,\n\t\t\t\t\t\t\ttrue);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tmarkedElements.clear();\n\t\tdesignText(Model.getIllocutionUnitRoots());\n\t}",
"public void reset() {\r\n\t\t_tb = new TreeBuffer();\r\n\t}",
"public void reset() {\n super.reset();\n }",
"public void reset() {\n\t\tvar.clear();\n\t\tname.clear();\n\t}",
"public void reset(KeywordFinderConfiguration kfc) throws Exception {\n\t}",
"public void reset(BacktrackingTokenizerMark mark) {\n\t\tposition = mark.getPosition(tokens);\n\t}",
"public void reset() {\n initBody();\n }",
"public void reset() {\n\n\t}",
"public synchronized final void reset() {\r\n f_index = getDefaultIndex();\r\n f_userSetWidth = -1;\r\n // by default the first column is sorted the others unsorted\r\n f_sort = getDefaultSort();\r\n }",
"private final void yyResetPosition() {\n zzAtBOL = true;\n zzAtEOF = false;\n zzCurrentPos = 0;\n zzMarkedPos = 0;\n zzStartRead = 0;\n zzEndRead = 0;\n zzFinalHighSurrogate = 0;\n yyline = 0;\n yycolumn = 0;\n yychar = 0L;\n }",
"public void reset() \n throws SignedDocException;",
"public void reset() {\n\t\tinit(0, 0, 1, false);\n\t}",
"void resetTextFields();",
"private final void yyResetPosition() {\n zzAtBOL = true;\n zzAtEOF = false;\n zzCurrentPos = 0;\n zzMarkedPos = 0;\n zzStartRead = 0;\n zzEndRead = 0;\n zzFinalHighSurrogate = 0;\n yyline = 0;\n yycolumn = 0;\n yychar = 0L;\n }",
"public void reset() {\n\t}",
"public void reset() {\n\t}",
"public void reset() {\n\t}",
"public void reset() {\n\t}",
"public void reset() {\n }",
"public void reset() {\n }",
"public void reset() {\n }",
"public void reset() {\n }",
"protected void reset() {\n\t\t}",
"@SuppressWarnings(\"NullAway\")\n\t\tpublic void reset() {\n\t\t\ttrackDoc = null;\n\t\t\tglobalDoc = null;\n\t\t\tpredicted.reset();\n\t\t\tobserved.reset();\n\t\t\tdoc_to_imagePixel.reset();\n\t\t}",
"public void reset() {\n\t\tremoveAll();\n\t\tadd(new GLine(MARGIN, MARGIN, MARGIN, MARGIN + SCAFFOLD_HEIGHT));\n\t\tadd(new GLine(MARGIN, MARGIN, MARGIN + BEAM_LENGTH, MARGIN));\n\t\tadd(new GLine(MARGIN + BEAM_LENGTH, MARGIN, MARGIN + BEAM_LENGTH, MARGIN + ROPE_LENGTH));\n\t\tbody = new GCompound();\n\t\tbody.setLocation(MARGIN + BEAM_LENGTH, MARGIN + ROPE_LENGTH);\n\t\tadd(body);\n\t\twordLabel = new GLabel(\"\");\n\t\twordLabel.setFont(\"*-bold-18\");\n\t\tadd(wordLabel);\n\t\tguesses = \"\";\n\t\tguessesLabel = new GLabel(guesses);\n\t\tadd(guessesLabel);\n\t}",
"@Override\r\n\t\t\tpublic void reset() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t\tprotected void reset()\n\t\t{\n\t\t}",
"public void reset(){\r\n\t\tSystem.out.println(\"(EnigmaMachine) Initial Positions: \" + Arrays.toString(initPositions));\r\n\t\trotors.setPositions(initPositions);\r\n\t}",
"@Override\r\n\tpublic void reset()\r\n\t{\r\n\t}",
"public void reset(){\n this.context.msr.setReadyForInput(false);\n emptyAllInputBuffers();\n emptyAllOutputBuffers();\n emptyEngineersConsoleBuffer();\n }",
"public void textMergeReset() {\n\n }",
"private void reset() {\n }",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"public void reset () {\n\t\tclearField();\n\t\tstep_ = 0;\n\t}",
"public void reset()\n\t{\n\t}",
"public void reset()\n\t{\n\t}",
"public void reset()\n {\n currentPosition = 0;\n }",
"@Override\n public void reset() {\n }",
"public void reset() {\n initEntries();\n }",
"public void reset() {\n this.statusCode = 0;\n this.body = \"\";\n this.headers = null;\n }",
"@Override\r\n\tpublic void reset() {\n\t}",
"private void clearToken() {\n \n token_ = getDefaultInstance().getToken();\n }",
"private void clearToken() {\n \n token_ = getDefaultInstance().getToken();\n }",
"private void clearToken() {\n \n token_ = getDefaultInstance().getToken();\n }",
"public void reset() {\n\t\tlength = 0;\n\t}",
"public void reset() {\n\tthis.contents = \"\";\n\tthis.isLegalMove = false;\n }",
"public void reset ()\n {\n final String METHOD_NAME = \"reset()\";\n this.logDebug(METHOD_NAME + \" 1/2: Started\");\n super.reset();\n this.lid = null;\n this.refId = Id.UNDEFINED;\n this.fromDocType = DocType.UNDEFINED;\n this.logDebug(METHOD_NAME + \" 2/2: Done\");\n }",
"public void clear() {\n\t\thighlightsByToken.clear();\n\t}",
"public void reset() {\n position = 0;\n }",
"public synchronized void reset() {\n }",
"public void SetBackToBeginning() {\n // starting word\n this.mStartWord = 0;\n // the words count that is displaying\n this.mDisplayWord = 0;\n this.mDisplayCount = 0;\n // reset index.\n this.mTextIndex = 0;\n // to enable to read and draw.\n this.mReadingF = true;\n this.mDisplayF = true;\n this.mWaitingF = false;\n // font size back default\n this.mFontSize = this.mFontDefaultSize;\n // font color back to default\n this.mFontColor = this.mFontDefaultColor;\n }",
"public void reset()\n {\n current = 0;\n highWaterMark = 0;\n lowWaterMark = 0;\n super.reset();\n }",
"public void reset() {\n m_nestingDepth = 0;\n m_namespaceDepth = -1;\n m_namespaceStack.clear();\n m_prefixes = new String[m_uris.length];\n m_prefixes[0] = \"\";\n m_prefixes[1] = \"xml\";\n m_extensionUris = null;\n m_extensionPrefixes = null;\n m_translateTable = null;\n m_translateTableStack.clear();\n }",
"@Override\n public void reset() {\n super.reset();\n }",
"@Override\n\tpublic void reset() {\n\t}",
"@Override\n public void reset()\n {\n state = \"initial state\";\n nbChanges = 0;\n nbResets++;\n }",
"public void reset()\n\t{\n\t\tassociations = new Vector<Association>();\n\t\tif(hotspots != null)\n\t\t{\n\t\t\tfor(int i=0; i < hotspots.size(); i++)\n\t\t\t{\n\t\t\t\thotspots.elementAt(i).bound = null;\n\t\t\t\thotspots.elementAt(i).setHighlighted(false);\n\t\t\t}\n\t\t}\n\n\t\tif(movableObjects != null)\n\t\t{\n\t\t\tfor(int i=0; i < movableObjects.size(); i++)\n\t\t\t{\n\t\t\t\tmovableObjects.elementAt(i).resetPos();\n\t\t\t\tmovableObjects.elementAt(i).bound = null;\n\t\t\t}\n\t\t}\n\t\tuser_responses=0;\n\t\tmov = null;\n\t\tstart = null;\n\t\tmpos = null;\n\t\tsetFeedback();\n\t\trepaint();\n\t}",
"public void reset()\r\n/* 89: */ {\r\n/* 90:105 */ this.pos = 0;\r\n/* 91: */ }",
"private void applyTermOptions() {\n\tif (term == null)\n\t return;\n\n term.setFixedFont(true);\n term.setFont(termOptions().getFont());\n\n\tterm.setBackground(termOptions().getBackground());\n\tterm.setForeground(termOptions().getForeground());\n\tterm.setHighlightColor(termOptions().getSelectionBackground());\n\tterm.setHistorySize(termOptions().getHistorySize());\n\tterm.setTabSize(termOptions().getTabSize());\n\n\tterm.setClickToType(termOptions().getClickToType());\n\tterm.setScrollOnInput(termOptions().getScrollOnInput());\n\tterm.setScrollOnOutput(termOptions().getScrollOnOutput());\n\tterm.setHorizontallyScrollable(!termOptions().getLineWrap());\n\n\t// If we change the font from smaller to bigger, the size\n\t// calculations go awry and the last few lines are forever hidden. \n\t//\n\t// One usually uses 'pack()' but it doesn't work because it\n\t// applies only to JFrames an under vulcan in MDI mode it had\n\t// catastrophic results (the whole window gets maximized, etc.)\n\t//\n\t// The following is a workaround used in the Rtc windows' \n\t// componentShown() as a fix for\n\t// 4652678 (Memory Usage window and Access Errors window are ...)\n\n\tsetSize(getPreferredSize());\n\tvalidate();\n }",
"public void reset() {\n\r\n\t}",
"@Override\n\tpublic void reset() {\n\n\t}",
"private void reset() {\n \t\tif (currentSuggestion != null) {\n \t\t\tsetPromptingOff(currentSuggestion.getReplacementString());\n \t\t} else {\n \t\t\tif (focused) {\n \t\t\t\tsetPromptingOff(\"\");\n \t\t\t} else {\n \t\t\t\tsetPromptingOn();\n \t\t\t}\n \t\t}\n \t\thideSuggestions();\n \t\tLogger.getLogger(VSuggestFieldWidget.class.getName()).info(\"Reset\");\n \t}",
"public void reset() {\n _styles.clear();\n _styles.add(TextStyle.DEFAULT);\n }",
"@Override\n public void reset()\n {\n super.reset();\n }",
"public void reset() {\n clearAllocationNodes(firstAllocationNode);\n firstAllocationNode.reset(/* startPosition= */ 0, allocationLength);\n readAllocationNode = firstAllocationNode;\n writeAllocationNode = firstAllocationNode;\n totalBytesWritten = 0;\n allocator.trim();\n }",
"public void reset() {\n\t\tpos.tijd = 0;\r\n\t\tpos.xposbal = xposstruct;\r\n\t\tpos.yposbal = yposstruct;\r\n\t\tpos.hoek = Math.PI/2;\r\n\t\tpos.start = 0;\r\n\t\topgespannen = 0;\r\n\t\tpos.snelh = 0.2;\r\n\t\tbooghoek = 0;\r\n\t\tpos.geraakt = 0;\r\n\t\tgeraakt = 0;\r\n\t\t\r\n\t}",
"public void reset() {\r\n bop.reset();\r\n gzipOp = null;\r\n }",
"public void reset () {}",
"@Override\n\tpublic void reset() {\n\t\t\n\t}",
"@Override\n\tpublic void reset() {\n\t\t\n\t}",
"@Override\r\n\tpublic void reset() {\r\n\t\tsuper.reset();\r\n\t\tresetMomentObservation();\r\n\t\texpectations.reset();\r\n\t}",
"public final synchronized void reset() {\n\t\tnumTypes = numCoords = 0;\n\t}",
"private void clear(){\n\t\tcurr_pos=-1;\n\t\tnumber_value=0;\n\t\tstring_value=\"\";\n\t\tcurr_tok = token_value.PRINT;\n\t\tinput=\"\";\n\t}",
"public void reset() {\n\n }",
"public void reset() {\r\n reset(params);\r\n }",
"private void resetAll() {\n\t\trightHandNavPanel.clear();\n\t\tmainFlowPanel.clear();\n\t\tparameterNameTxtArea.setText(\"\");\n\t\tdefineNameTxtArea.setText(\"\");\n\t\tfuncNameTxtArea.setText(\"\");\n\t\t\n\t\tdefineAceEditor.setText(\"\");\n\t\tparameterAceEditor.setText(\"\");\n\t\tSystem.out.println(\" in resetAll doing setText\");\n\t\tcqlAceEditor.setText(\"\");\n\t\tfunctionBodyAceEditor.setText(\"\");\n\t\t\n\t\tviewParameterList.clear();\n\t\tviewDefinitions.clear();\n\t\tviewFunctions.clear();\n\t\t\n\t\tif (paramCollapse != null) {\n\t\t\tparamCollapse.clear();\n\t\t}\n\t\tif (defineCollapse != null) {\n\t\t\tdefineCollapse.clear();\n\t\t}\n\t\tif (functionCollapse != null) {\n\t\t\tfunctionCollapse.clear();\n\t\t}\n\t\t\n\t\tsetIsPageDirty(false);\n\t\tresetMessageDisplay();\n\t}",
"public void reset() {\n\n operator.reset(); // reset Scan Operator\n }"
]
| [
"0.666743",
"0.6479999",
"0.6112847",
"0.6089473",
"0.60221106",
"0.6011665",
"0.59959245",
"0.59941095",
"0.59448767",
"0.5922856",
"0.5922262",
"0.59177655",
"0.5910446",
"0.5882993",
"0.5868467",
"0.5848924",
"0.5794426",
"0.57569265",
"0.57473797",
"0.57187265",
"0.57168925",
"0.5703682",
"0.5695586",
"0.56844234",
"0.5679709",
"0.56543785",
"0.56403834",
"0.5609609",
"0.5605491",
"0.55967516",
"0.55959845",
"0.5591345",
"0.5590924",
"0.55793893",
"0.5572636",
"0.5572636",
"0.5572636",
"0.5572636",
"0.5569443",
"0.5569443",
"0.5569443",
"0.5569443",
"0.5569172",
"0.55661386",
"0.5543741",
"0.5541867",
"0.5540764",
"0.5540378",
"0.55361646",
"0.55346805",
"0.55240595",
"0.5523303",
"0.550508",
"0.550508",
"0.550508",
"0.550508",
"0.5502196",
"0.54917127",
"0.54917127",
"0.5485923",
"0.54763156",
"0.54760075",
"0.5474142",
"0.5470444",
"0.54676735",
"0.54676735",
"0.54676735",
"0.5461644",
"0.5460975",
"0.54545987",
"0.54515505",
"0.54374397",
"0.5425279",
"0.54238176",
"0.54198104",
"0.54195625",
"0.5416128",
"0.54159206",
"0.5413169",
"0.54127145",
"0.54119104",
"0.5405962",
"0.5405777",
"0.53983223",
"0.5394708",
"0.5387197",
"0.53850573",
"0.53825516",
"0.5381857",
"0.5373436",
"0.53732556",
"0.53706914",
"0.53706914",
"0.53673655",
"0.5366516",
"0.53609735",
"0.5355907",
"0.5355783",
"0.53549385",
"0.5353494"
]
| 0.75901365 | 0 |
The code in this method will be executed when the electronic button is clicked on. | @Override
public void onClick(View view) {
// Create a new intent to open the {@link Electronic}
Intent electronicIntent = new Intent(getApplicationContext(), Electronic.class);
// Start the new activity
startActivity(electronicIntent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void designBtnActionPerformed(ActionEvent evt) {\n }",
"private void devBtnActionPerformed(ActionEvent evt) {\n }",
"private void Button_RecipricalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_RecipricalActionPerformed\n // TODO add your handling code here:\n }",
"public void ipcallButtonPressed() {\n\t\tdialButtonPressed(true) ;\n\t}",
"public void clickButton()\n {\n fieldChangeNotify( 0 );\n }",
"private void Button_CEActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_CEActionPerformed\n // TODO add your handling code here:\n \n }",
"private void txtDisplayActionPerformed(java.awt.event.ActionEvent evt) {\n \n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n adaptee.btnOrderTicket_actionPerformed(e);\r\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tdialogLicense();\r\n\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n frame.setVisible(false);//when user clicks financial assistant button the visibility of the frame for the home screen will be set to false\n new FinancialAssistant();//displays the financial assistant page\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent arg0) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tborderSelected(dayNumber -1);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//show the event items in the box on the right\n\t\t\t\t\t\t\twriteEvents(dayNumber);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tchangeDateLabel(dayNumber);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//make these buttons available for use\n\t\t\t\t\t\t\tnextDay.setEnabled(true);\n\t\t\t\t\t\t\tprevDay.setEnabled(true);\n\t\t\t\t\t\t\tcreateButton.setEnabled(true);\n\t\t\t\t\t\t}",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tpartie.setDefausse(true);\n\t\t}",
"public void actionPerformed (ActionEvent e)\n \t\t{\n \t\t\tjP.add(textField);\n \t\t\tjP.add(label);\n \t\t\t\n \t\t\t// Set position of TExt Field\n \t \ttextField.setBounds(350, 463, 125, 25);\n \t \t\n \t \tlabel.setBounds(15, 450, 500, 50);\n \t \tlabel.setFont(arial);\n \t\t\t\n \t \t// Remove the 2 Buttons\n \t\t\tjP.remove(call);\n \t\t\tjP.remove(raise);\n \t\t\t\n \t\t\t// Add a 2nd raise Button\n \t\t\tjP.add(raise2);\n \t\t\traise2.setBounds(500, 460, 80, 30);\n \t\t\t\n \t\t\t// Repaint and update the J Panel\n \t\t\tjP.repaint();\n \t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n if (runButton_.isSelected()) {\n runButton_.setText(\"Abort Acquisition\");\n runAcquisition();\n } else {\n runButton_.setText(\"Run Acquisition\");\n }\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tappInstall(DeviceNum1);\r\n\r\n\t\t\t}",
"private void txtidDemActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) \n\t\t{\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e)\n {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n\n }",
"void leftClickPressedOnDelivery();",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"public void actionPerformed(ActionEvent e) {\n \n // YOUR CODE HERE\n\n }",
"public void actionPerformed ( ActionEvent e ) {\n // Abgeben Button gedrueckt\n if ( e.getSource() == Main.getFenster().getHandler().getTrainer().getTestscreen().getAbgeben() ) {\n startEvaluator();\n }\n }",
"@Override //se repita\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n }",
"public void buttonClicked();",
"public void actionPerformed(ActionEvent ae) {\n\n GUI_dialoog dialoog = new GUI_dialoog();\n dialoog.setVisible(true);\n\n }",
"@Override\n public void actionPerformed(ActionEvent evt) \n {\n Offre E2=new Offre(E.getId_etablissement(),C.getDate(),C2.getDate(),gui_Text_Field_2.getText(),gui_Text_Field_1.getText());\n OffreService service=new OffreService();\n if (E.getId_etablissement().getPartenaire()==0){\n E2.setCode(\"\");\n E2.setPourcentage(0);\n service.updateOffreSans(E, E2);\n \n }\n else {\n E2.setCode(gui_Text_Field_3.getText());\n \n E2.setPourcentage(Float.parseFloat(gui_Text_Field_4.getText()));\n service.updateOffreAvec(E, E2);\n }\n last.refreshTheme();\n last.show();\n \n }",
"@Override\r\n public void actionPerformed(ActionEvent e)\r\n {\n \r\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\tnew RelatorioFuncView().iniciaGui2();\t\n\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n }",
"@Override\n\tpublic void LeftButtonClick() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) { // ueberprueft das Event fuer den Button\r\n\t\t\t\tif (e.getSource() == alarm \r\n\t\t\t\t\t\t&& alarm.getText().equals(\"Alarm setzen\")) { // schaut ob der geklickte Button den gleichen Text hat wieder der Alarmbutton\r\n\t\t\t\t\tabfrageFenster(); // bei Uebereinstimmung wird Abfragefenster aufgerufen\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\n\tprotected void OnClick() {\n\t\t\n\t}",
"private void emgPh2ActionPerformed(java.awt.event.ActionEvent evt) {\n\t }",
"public void actionPerformed(ActionEvent e) {\n\t\tdataControl();\n\t}",
"@Override\r\n \t\tpublic void actionPerformed(ActionEvent e) {\n \t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tjoueur.piocherCarte(partie.getPioche());\n\n\n\n\t\t}",
"public void actionPerformed(ActionEvent e) {\r\n\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n CheckOperation(calButtons.super.getText());\n }",
"@Override\r\n public void actionPerformed(ActionEvent e) {\n \r\n }",
"public void actionPerformed(ActionEvent aE)\n {\n String command=aE.getActionCommand();\n if(command==\"Add to Rent\")\n {\n addHardwareDeviceToRent();\n }\n if(command==\"Rent\")\n {\n rentHardwareDevice();\n }\n if(command==\"Return\")\n {\n returnHardwareDevice();\n }\n if(aE.getSource()==btnRentClear)\n {\n clearRent();\n }\n if(command==\"Display All\")\n {\n displayAll();\n }\n if(command==\"Add to Sell\")\n {\n addHardwareDeviceToSell();\n }\n if(command==\"Sell\")\n {\n sellHardwareDevice();\n }\n if(aE.getSource()==btn_Sell_Clear)\n {\n clearSell();\n }\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(mainscreen, \"Created by Saadia Aman and Ammar Israr\");\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\r\n\t\t\t\tnewUpdate1(DeviceNum1);\r\n\r\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcontroller.getAppointView().updateUI();\n\t\t\t\tcontroller.getAppointView().display(true);\n\t\t\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}"
]
| [
"0.6952447",
"0.68931305",
"0.67931336",
"0.6790297",
"0.6751529",
"0.67493325",
"0.6743961",
"0.67357373",
"0.67330414",
"0.670563",
"0.670563",
"0.670563",
"0.670563",
"0.6700295",
"0.6659139",
"0.66524863",
"0.6647898",
"0.6647898",
"0.6647898",
"0.663279",
"0.66108525",
"0.6581059",
"0.6581059",
"0.6581059",
"0.6581059",
"0.6581059",
"0.6581059",
"0.6581059",
"0.6581059",
"0.6581059",
"0.6581059",
"0.65785766",
"0.65551925",
"0.65421075",
"0.6532865",
"0.65309423",
"0.6523191",
"0.6522464",
"0.65186685",
"0.6517067",
"0.6514031",
"0.65101606",
"0.65084237",
"0.65026176",
"0.6497855",
"0.6497855",
"0.6497855",
"0.6485647",
"0.6483874",
"0.6478868",
"0.6453379",
"0.64526594",
"0.64489496",
"0.6446997",
"0.6435576",
"0.6426658",
"0.6426658",
"0.6424518",
"0.6407544",
"0.64066863",
"0.6404401",
"0.6403864",
"0.6403482",
"0.63975275",
"0.63966584",
"0.63966584",
"0.63966584",
"0.63966584",
"0.63966584",
"0.63966584",
"0.63966584",
"0.63966584",
"0.63966584",
"0.63966584",
"0.63966584",
"0.6394406",
"0.6394158",
"0.6392781",
"0.63925284",
"0.63907",
"0.6390392",
"0.6387766",
"0.6387766",
"0.6387766",
"0.6387766",
"0.6387766",
"0.6387766",
"0.6387766",
"0.6387766",
"0.63860327",
"0.6383716",
"0.6383716",
"0.63836324",
"0.63689417",
"0.6360162",
"0.6360162",
"0.6360162",
"0.6360162",
"0.6360162",
"0.6360162",
"0.6360162"
]
| 0.0 | -1 |
The code in this method will be executed when the rap button is clicked on. | @Override
public void onClick(View view) {
// Create a new intent to open the {@link Rap}
Intent rapIntent = new Intent(getApplicationContext(), Rap.class);
// Start the new activity
startActivity(rapIntent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void OnClick() {\n\t\t\n\t}",
"public void ipcallButtonPressed() {\n\t\tdialButtonPressed(true) ;\n\t}",
"@Override\n public void onClick(View arg0) {\n\n // get selected radio button from radioGroup\n int selectedId = RadioType.getCheckedRadioButtonId();\n\n // find the radiobutton by returned id\n RadioButton radioButton = (RadioButton) findViewById(selectedId);\n rdButtonSelectedText = radioButton.getText().toString();\n //Call method to get Adjustment List\n if (common.isConnected()) {\n AsyncStockReturnListWSCall task = new AsyncStockReturnListWSCall();\n task.execute();\n }\n }",
"@Override\r\n\t\t\t\tpublic void onClick() {\n\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onClick() {\n\r\n\t\t\t\t}",
"@Override\n public void onClick() {\n }",
"@Override\n\tpublic void onClick() {\n\t\t\n\t}",
"public void btn_LearningActivity() {\r\n\t\tbtn_LearningActivity.click();\r\n\t}",
"public void buttonClicked();",
"public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }",
"public void settingBtnClick() {\n\t}",
"private void clickOn() {\n\t\tll_returnbtn.setOnClickListener(new OnClickListener() {\n\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\tfinish();\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tmCurriculumVitaeInterface.onComputer();\n\t\t\t\t\t\t}",
"public void onYesButtonClicked() {\n changeAfterClientPick();\n }",
"@Override\n public void onClick() {\n System.out.println(\"Button has been JUST clicked\");\n }",
"@Override\r\n public void onClick(View v){\n RequestUrl(\"led1\");\r\n }",
"public void clickRS(View view) {\n Intent i = new Intent(this,RS.class);\n startActivity(i);\n }",
"public void clickRS(View view) {\n Intent i = new Intent(this,RS.class);\n startActivity(i);\n\n }",
"@Override\n\t public void onClick(View v) {\n\t \t SendReqToPebble();\n\t }",
"@Override\n public void onClick() {\n }",
"@Override\r\n public void onClick(View v){\n RequestUrl(\"led2\");\r\n }",
"public void onClick(View arg0) {\n // change the text to state that radio button one was clicked\n tv_display.setText(R.string.tv_display_rb2);\n }",
"public void onClick(View arg0) {\n // change the text to state that radio button one was clicked\n tv_display.setText(R.string.tv_display_rb3);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tgeti();\n\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\trb.performClick();\n\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent irss = new Intent(man_lamar.this,ITCutiesReaderAppActivity.class);\n\t\t\t\tstartActivity(irss);\n\t\t\t\n\t\t\t}",
"@Override \n public void onClick(View v) {\n simpandata();\n }",
"@Override\n\tpublic void onClick() {\n\t\tSystem.out.println(\"전화를 겁니다\");\n\t}",
"@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}",
"public static void openPCCompSCRBtnPressed() {\r\n PCNMClientStart.switchPanels(new PCCompSCR());\r\n }",
"@Override\n public void pressMovieButton() {\n System.out.println(\"Home: You must pick an app to show movies.\");\n }",
"public void onButtonAPressed();",
"public void onClick(View arg0) {\n // change the text to state that radio button one was clicked\n tv_display.setText(R.string.tv_display_rb1);\n }",
"public void click() {\n\t\tSystem.out.println(\"LinuxButton Click\");\r\n\t}",
"public void clickedRepGA(Button button) {\r\n textShape.setText(\"GA Case Fatality Ratios by Race\");\r\n this.updateRace(1);\r\n this.updateCFR(1);\r\n this.updateBar(1);\r\n }",
"public void Refresh_button() {\n\t\tthis.defaultSetup();\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tllistenBtnset();\n\t\t\t}",
"public void sButton() {\n\n\n\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void callButton(TrafficSignal TS) {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onClick(View view) {\n sendRequestAndPrintResponse();\n }",
"@Override\n public void onClick(View theView) {\n setUp();\n\n\n }",
"public void onClick(View arg0) {\n\t\t\t\tvalidation();\n\t\t\t\tnew MyAsyncTask().execute(tvPollutionRiversandStream.getText().toString(),tvAirPollution.getText().toString(),tvNoisePollution.getText().toString(),tvAbsenseofWasteDisposalSites.getText().toString(),\n\t\t\t\t\t\t\t\t\t\t tvLittering.getText().toString(),tvFeelingofResponsibility.getText().toString());\n\t\t\t}",
"@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.btn_scan:\n btnSignalScan();\n break;\n default:\n break;\n }\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n predata();\n }",
"public void clickRS(View view){\n Intent i = new Intent(this,Hospital.class);\n startActivity(i);\n }",
"public void onReportClick(){\r\n\t\tmyView.advanceToReport();\r\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tDoRFunction();\n\t\t\t}",
"void btnLoadPlanning();",
"public void takeAction() {\n mRelativeLayout.setVisibility(View.INVISIBLE);\n currentQuestion = questionList.get(questionID);\n textView = findViewById(R.id.questionText);\n buttonA = findViewById(R.id.radioA);\n buttonB = findViewById(R.id.radioB);\n buttonC = findViewById(R.id.radioC);\n button = findViewById(R.id.button);\n setQuestionView();\n button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n RadioGroup radioGroup = findViewById(R.id.radioGroup);\n\n if (radioGroup.getCheckedRadioButtonId() == -1) {\n return;\n }\n\n RadioButton answer = findViewById(radioGroup.getCheckedRadioButtonId());\n\n radioGroup.clearCheck();\n\n if (currentQuestion.getAnswer().equals(answer.getText())) {\n score++;\n }\n\n // checks if all questions have been answered and opens the result page\n if (questionID < questionList.size()) {\n currentQuestion = questionList.get(questionID);\n setQuestionView();\n } else {\n Intent intent = new Intent(QuizActivity.this, ResultActivity.class);\n Bundle bundle = new Bundle();\n ResultHolder answers = new ResultHolder(questionList);\n bundle.putSerializable(\"answers\", answers);\n bundle.putInt(\"score\", score);\n intent.putExtras(bundle);\n startActivity(intent);\n finish();\n }\n }\n });\n\n }",
"public void clickYes ();",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\n\t\t\t}",
"@Override\n public void onClick(View v) {\n saveRoundSetting();\n Intent NextScreen = new Intent(RoundSetting.this, Scoring.class);\n //NextScreen.putExtras(bundle);\n startActivity(NextScreen);\n finish();\n //m_newRound.setBackgroundResource(R.drawable.buttonselected);\n\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent i = new Intent(Akun.this, Riwayat_pemesanan.class);\n\t\t\t\tstartActivity(i);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n saveRoundSetting();\n Intent NextScreen = new Intent(RoundSetting.this, Scoring.class);\n // NextScreen.putExtras(bundle);\n startActivity(NextScreen);\n finish();\n //m_newRound.setBackgroundResource(R.drawable.buttonselected);\n\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}",
"void onClick();",
"public void pressMovieButton() {\n System.out.println(\"Home: You must pick an app to show movies.\\n\");\n }",
"public void clickButton()\n {\n fieldChangeNotify( 0 );\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tDirenisMain.date.setMinutes(DirenisMain.date.getMinutes() + 60);\n\t\t\t\tint cevapno = 0;\n\t\t\t\tIntent intent = new Intent(Generate.this, Answer.class);\n\t\t\t\tintent.putExtra(\"cevapNo\", cevapno);\n\t\t\t\tintent.putExtra(\"soruNo\", soruRandom);\n\t\t\t\t// intent.putExtra(\"random\", a);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\n protected void onAfterSetContentView() {\n super.onAfterSetContentView();\n View.OnClickListener onClickListener = new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n switch (v.getId()) {\n case R.id.btn_scan:\n btnSignalScan();\n break;\n default:\n break;\n }\n }\n };\n btn_scan.setOnClickListener(onClickListener);\n }",
"@Override\n public void onClick(View v) {\n qrScan.initiateScan();\n }",
"private WriteAReviewPage clickOnStartHereButton(){\n click(button_StartHereLocator);\n return new WriteAReviewPage();\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\treceive();\r\n\t\t\t}",
"@Override\n public void onClick(View view) {\n activityInterface.logEventSelectContent(\"restartButton\", \"restartButton\", MainActivity.CONTENT_TYPE_BUTTON);\n\n onClickRestart();\n }",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:108\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"void btnGenReport_actionPerformed(ActionEvent e) {\n JButtonQueryButtonAction(e);\r\n }",
"public void clickonFullyAutomaticFrontLoad() {\n\t\t\n\t}",
"@Override\n\tpublic void onScanViewButtonClick() {\n\t\t\n\t}",
"@OnClick\n public void onClickNext() {\n alipayPhoneLogging();\n String phoneNumber = this.airPhone.phoneInputText();\n String countryCode = this.phoneNumberInput.getCountryCode();\n getAlipayActivity().setPhoneNumber(phoneNumber);\n CreatePaymentInstrumentRequest.forAlipay(new Builder().alipayLoginId(getAlipayActivity().getAlipayId()).mobilePhoneNumber(phoneNumber).mobilePhoneCountry(countryCode).build()).withListener((Observer) this.requestListener).execute(this.requestManager);\n this.nextButton.setState(AirButton.State.Loading);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tClickRideControl();\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t}",
"public abstract void executeRunButton();",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tClickRearWiper();\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\topenInterestDialog();\n\t\t\t}",
"@Override\n\t\t\t\n\t\t\tpublic void onClick(final View e) {\n\t\t\t\t\n\t\t\t\tif(e == buttonStartExam)\n\t \t{ \n\t\t\t\t\tbuttonStartExam.setBackgroundResource(R.drawable.btn4);\n\t }\n\t\t new Handler().postDelayed(new Runnable() {\n\t\t public void run() {\n\t\t \tif( e == buttonStartExam)\n\t\t \t{\n\t\t \t\tbuttonStartExam.setBackgroundResource(R.drawable.btn2);\n\t\t }\n\t\t }\n\t\t }, 100L); \n\t\t SharedPreferences setting = getSharedPreferences(\"Pref\", 0);\n\t\t String imported= setting.getString(\"imported\", \"\");\n\t\t if(imported.equals(\"Yes\"))\n\t\t {\n\t\t\t\tif(Chkagree.isChecked())\n\t\t\t\t{\n\t\t\tIntent mIntent = new Intent(RulesActivity.this, DispalyQuestion.class);\n\t\t\tstartActivity(mIntent);\n\t\t\tfinish();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(RulesActivity.this, \"Please Agree\",Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t }\n\t\t else\n\t\t {\n\t\t \t Toast.makeText(RulesActivity.this, \"Answers not imported\",Toast.LENGTH_LONG).show();\n\t\t }\n\t\t\t}",
"public void clickedRepVA(Button button) {\r\n textShape.setText(\"VA Case Fatality Ratios by Race\");\r\n this.updateRace(5);\r\n this.updateCFR(5);\r\n this.updateBar(5);\r\n }",
"@Override\r\n\tpublic void onNextRoadClick() {\n\r\n\t}",
"@Override\r\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\treceive();\r\n\t\t\t\t}",
"@Override\n\tpublic void RightButtonClick() {\n\t\t\n\t}",
"@Override\n\tpublic void RightButtonClick() {\n\t\t\n\t}",
"public void onClicked();",
"@Override\n public void buttonClick(ClickEvent event) {\n \tgetUI().getNavigator().navigateTo(NAME + \"/\" + contenView);\n }",
"@FXML\n public void rentABikeClicked(ActionEvent event) {\n try {\n Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n\n RentABikeView rabv = new RentABikeView();\n rabv.start(stage);\n\n } catch (Exception e) {\n logger.log(Level.SEVERE, e.toString());\n }\n }",
"@Override\n\n\n public void onClick(View v) {\n String entereddrug = Drug1.getText().toString();\n entereddrug2 = Drug2.getText().toString();\n\n\n new JSONTask().execute(\"https://rxnav.nlm.nih.gov/REST/rxcui?name=\" + entereddrug, // url for getting RXCUI\n \"https://rxnav.nlm.nih.gov/REST/interaction/interaction.json?rxcui=\"); // url for getting descriptions\n\n\n }",
"protected void doBridgeClick() {\r\n\t\tuiSound.playSound(\"Bridge\");\r\n\t\tif (onBridgeClicked != null) {\r\n\t\t\tonBridgeClicked.invoke();\r\n\t\t}\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}",
"@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\tLoadPlayerLog(); \n\t\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tcoop_relation = 1;\n\t\t\t\tTextView tv_need = (TextView) view.findViewById(R.id.coop_resource_i_need_text);\n\t\t\t\tTextView tv_offer = (TextView) view.findViewById(R.id.coop_resource_i_offer_text);\n\t\t\t\ttv_offer.setTextColor(getResources().getColor(R.color.white));\n\t\t\t\ttv_need.setTextColor(getResources().getColor(R.color.light_blue));\n\t\t\t\trequestData();\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t}",
"@Override\n\tpublic void setOnClick() {\n\n\t}",
"public void Riesgos_interno_quintana (View view){\n Intent intent = new Intent(this, quintanaroo_id_riesgo_interno.class);\n startActivity(intent);\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfireDetailEvent(new DetailEvent(this, 'R'));\r\n\t\t\t}",
"void onAddParameterButtonClick();"
]
| [
"0.68141675",
"0.66978574",
"0.66511256",
"0.65738475",
"0.65738475",
"0.65593034",
"0.6550998",
"0.64991826",
"0.647925",
"0.6443531",
"0.6425274",
"0.6413144",
"0.64019394",
"0.6388084",
"0.6382239",
"0.6381051",
"0.63763404",
"0.63720953",
"0.63560253",
"0.6355315",
"0.6348816",
"0.63355553",
"0.628429",
"0.62832534",
"0.62824064",
"0.6279568",
"0.6259462",
"0.6246871",
"0.62204504",
"0.62194026",
"0.62139684",
"0.6211051",
"0.62071615",
"0.6195596",
"0.61914116",
"0.61849713",
"0.6183902",
"0.6171804",
"0.6162037",
"0.6162037",
"0.6162037",
"0.6154084",
"0.6151155",
"0.614839",
"0.61418545",
"0.6136521",
"0.6117288",
"0.6116502",
"0.6115556",
"0.610942",
"0.6109095",
"0.6103103",
"0.6097167",
"0.6094823",
"0.6092559",
"0.6088674",
"0.6075267",
"0.6071356",
"0.6065863",
"0.6065863",
"0.6065863",
"0.6065863",
"0.6048631",
"0.6042195",
"0.60400355",
"0.6039915",
"0.6032557",
"0.60313815",
"0.60281754",
"0.6019664",
"0.6004324",
"0.6003114",
"0.6000171",
"0.5998293",
"0.5988196",
"0.5986208",
"0.5985751",
"0.59784955",
"0.59736294",
"0.5970134",
"0.59673285",
"0.59636414",
"0.5962805",
"0.5960276",
"0.5959995",
"0.5959215",
"0.5959215",
"0.5955312",
"0.59541744",
"0.595319",
"0.5951645",
"0.5946458",
"0.59460205",
"0.5939157",
"0.59364367",
"0.5932945",
"0.5931312",
"0.5928569",
"0.5928562",
"0.5925173"
]
| 0.66381437 | 3 |
The code in this method will be executed when the classical button is clicked on. | @Override
public void onClick(View view) {
// Create a new intent to open the {@link Classical}
Intent classicalIntent = new Intent(getApplicationContext(), Classical.class);
// Start the new activity
startActivity(classicalIntent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buttonClicked();",
"@Override\n\tprotected void OnClick() {\n\t\t\n\t}",
"public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }",
"public void settingBtnClick() {\n\t}",
"public void clickonFullyAutomaticFrontLoad() {\n\t\t\n\t}",
"public void btn_LearningActivity() {\r\n\t\tbtn_LearningActivity.click();\r\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}",
"@Override\n public void onClick() {\n System.out.println(\"Button has been JUST clicked\");\n }",
"public void clickedPresentationNew() {\n\t\t\n\t}",
"@Override\n public void onClick() {\n }",
"@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"public void clickYes ();",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\r\n\t\t\t\tpublic void onClick() {\n\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onClick() {\n\r\n\t\t\t\t}",
"void mainButtonPressed();",
"@Override\n protected void actionPerformed(GuiButton button)\n {\n super.actionPerformed(button);\n }",
"@Override\n\tpublic void onClick() {\n\t\t\n\t}",
"private void button1MouseClicked(MouseEvent e) {\n\t}",
"@Override\n public void actionPerformed(ActionEvent e)\n {\n \n }",
"public void actionPerformed(ActionEvent e) {\n \n // YOUR CODE HERE\n\n }",
"public void clickButton()\n {\n fieldChangeNotify( 0 );\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\tpublic void buttonStatusChange() {\n\t\t\t\n\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n\n }",
"@Override\n\tpublic void LeftButtonClick() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}",
"public void sButton() {\n\n\n\n }",
"@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t}",
"private void button1MouseClicked(MouseEvent e) {\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}",
"void buttonGo_actionPerformed(ActionEvent e) {\n\n\n }",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"private void jButton3MouseClicked(java.awt.event.MouseEvent evt) {\n }",
"@Override\n public void onClick() {\n }",
"private StepInButton() {\r\n\t\t\tsetToolTipText(\"Step into the current method\");\r\n\t\t\ttry {\r\n\t\t\t\tsetIcon(new ImageIcon(ImageIO.read(ClassLoader.getSystemResource(\"images/stepIn.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\tsetBorder(FlowClient.EMPTY_BORDER);\r\n\t\t\taddActionListener(new ActionListener() {\r\n\r\n\t\t\t\t/**\r\n\t\t\t\t * We'll see how this'll work with a debugger later\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 step in using debugger\r\n\t\t\t\t\tSystem.out.println(\"Step in button pressed\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}",
"@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tmCurriculumVitaeInterface.onComputer();\n\t\t\t\t\t\t}",
"public void click() {\n\t\tSystem.out.println(\"LinuxButton Click\");\r\n\t}",
"@Override\r\n public void actionPerformed(ActionEvent e)\r\n {\n \r\n }",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}",
"public void click() {\n\t\tif(this.buttonListener != null) {\n\t\t\tthis.buttonListener.onClicked();\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcd.show(jp, \"3\");\n\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"protected void execute() { \t\n// \tboolean toggle=true;\n// \tboolean grab = false;\n// \tif(toggle&&button.get()) {//execute once per button push\n// \t\ttoggle=false;//prevents code from being called again until button is released and pressed again\n// \t\tif(grab){\n// \t\t\tgrab=false;\n// \t\t\tclaw.open();\n// \t\t}else {\n// \t\t\tgrab=true;\n// \t\t\tclaw.close();\n// \t\t}\n// \t}else if(!button.get()) {\n// \t\ttoggle=true;//button has been released\n// \t}\n \tclaw.open();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}"
]
| [
"0.73973346",
"0.73167634",
"0.7239421",
"0.6997184",
"0.69819653",
"0.69799083",
"0.68737966",
"0.6845141",
"0.68198633",
"0.68001217",
"0.6786472",
"0.6747244",
"0.6745729",
"0.6745729",
"0.6745729",
"0.6745729",
"0.6745729",
"0.6745729",
"0.6745729",
"0.6745729",
"0.6745729",
"0.6745729",
"0.6745729",
"0.6736611",
"0.67170495",
"0.6712389",
"0.6712389",
"0.6712389",
"0.6712389",
"0.67111635",
"0.67101216",
"0.67101216",
"0.67101216",
"0.6705548",
"0.6705548",
"0.67026746",
"0.67021513",
"0.67021513",
"0.6700693",
"0.6695167",
"0.6686748",
"0.6682023",
"0.6667134",
"0.6652729",
"0.6641582",
"0.6637179",
"0.6637179",
"0.6637179",
"0.66367555",
"0.66343457",
"0.66343457",
"0.66268903",
"0.66218144",
"0.65961534",
"0.65960157",
"0.65925103",
"0.65908116",
"0.65908116",
"0.65908116",
"0.6589626",
"0.6586058",
"0.65706146",
"0.65682125",
"0.65581876",
"0.6557755",
"0.6557755",
"0.65497094",
"0.65310055",
"0.65310055",
"0.65310055",
"0.65310055",
"0.65310055",
"0.65310055",
"0.65310055",
"0.65310055",
"0.65310055",
"0.65310055",
"0.65270925",
"0.6520372",
"0.6519734",
"0.6516623",
"0.65163255",
"0.6515152",
"0.6505201",
"0.65050507",
"0.65050507",
"0.65050507",
"0.65050507",
"0.65050507",
"0.65050507",
"0.65050507",
"0.65050507",
"0.6503038",
"0.6499687",
"0.64941937",
"0.64941937",
"0.64940923",
"0.6492474",
"0.64918804",
"0.64918804",
"0.64918804"
]
| 0.0 | -1 |
=================================================================================== Nested Relation =============== With nested relation columns to select clause. WHITE_COMPOUND_PK by my REF_FIRST_ID, REF_SECOND_ID, named 'whiteCompoundPk'. | public void withWhiteCompoundPk() {
_query.xdoNss(() -> _query.queryWhiteCompoundPk());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n \tpublic void whereClauseIndirectPointingRelation() {\n \t\tnode23.addJoin(new PointingRelation(node42, NAME));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'p'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\")\n \t\t);\n \t}",
"@Test\n \tpublic void whereClauseDirectPointingRelation() {\n \t\tnode23.addJoin(new PointingRelation(node42, NAME, 1));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'p'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \n \t\t);\n \t}",
"@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 }",
"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 }",
"@Test\n \tpublic void whereClauseForNodeDirectPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42, 1));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"=\", \"_node23.right_token\", \"_node42.left_token\", -1)\n \t\t);\n \t}",
"private static DerivedPartOfPerspectivesFK mapDerivedPartOfPerspectivesFK(ResultSet resultSet) throws SQLException {\n \t\n \t/*\n * 1. POP_PERSPECTIVE_FK => varchar(25)\n * 2. FULL_PATH => varchar(1000)\n * 3. FULL_PATH_OIDS => varchar(500)\n * 4. FULL_PATH_JSON => varchar(3000)\n * 5. POP_IS_ANCESTOR => tinyint\n * 6. EMAPA_PUBLIC_ID => varchar(25)\n * 7. EMAP_PUBLIC_ID => varchar(25)\n \t */\n return new DerivedPartOfPerspectivesFK(\n \t\tresultSet.getString(\"POP_PERSPECTIVE_FK\"), \n \t\tresultSet.getString(\"FULL_PATH\"),\n \t\tresultSet.getString(\"FULL_PATH_OIDS\"), \n \t\tresultSet.getString(\"FULL_PATH_JSON\"),\n \t\tresultSet.getInt(\"POP_IS_ANCESTOR\"), \n \t\tresultSet.getString(\"EMAPA_PUBLIC_ID\"),\n \t\tresultSet.getString(\"EMAP_PUBLIC_ID\")\n );\n }",
"public NestedClause getXQueryClause();",
"boolean referencesSingleColumnPrimaryKey();",
"Column referencedColumn();",
"@Test\n \tpublic void whereClauseForNodeIndirectPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"<\", \"_node23.right_token\", \"_node42.left_token\")\n \t\t);\n \t}",
"public static ResultSet getForeignTuple(ForeignKey foreignKey) throws SQLException, ClassNotFoundException {\n Connection connection = OracleConnector.getConnection();\n Statement statement = connection.createStatement();\n\n String subquery = \"\";\n for(int i = 0; i < foreignKey.getForeignFields().size(); i++) {\n subquery += foreignKey.getForeignFields().get(i) + \" = \" + foreignKey.getValues().get(i);\n\n if(i < foreignKey.getForeignFields().size() - 1)\n subquery += \" AND \";\n }\n\n String query = \"SELECT * FROM \" + foreignKey.getForeignTable() + \" WHERE \" + subquery;\n\n return statement.executeQuery(query);\n }",
"DppBaseResourceInner innerModel();",
"@Nonnull\n protected KeyExpression buildPrimaryKey() {\n return Key.Expressions.concat(\n Key.Expressions.recordType(),\n Key.Expressions.list(constituents.stream()\n .map(c -> Key.Expressions.field(c.getName()).nest(c.getRecordType().getPrimaryKey()))\n .collect(Collectors.toList())));\n }",
"Iterator<Column> referencedColumns();",
"Relations getGroupOfRelations();",
"OrderPreferential selectByPrimaryKey(long order_preferential_id) throws SQLException;",
"NjProductTaticsRelation selectByPrimaryKey(String id);",
"@Transactional(readOnly = true)\n Protein getProteinAndCrossReferencesByProteinId(Long id);",
"@Override\npublic String findParentKeyColumnName()\n{\n\treturn null;\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 }",
"CmGroupRelIndustry selectByPrimaryKey(Long relId);",
"TypeAssociationEXT getConcerneUniteUnite();",
"@Test\n \tpublic void whereClauseForNodeIndirectDominance() {\n \t\tnode23.addJoin(new Dominance(node42));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\")\n \t\t);\n \t}",
"public org.vcell.util.document.KeyValue getCompoundKey() {\r\n\treturn formalCompound.getDBFormalSpeciesKey();\r\n}",
"AccountInner innerModel();",
"@Override\n public boolean supportsRootTreatTreatJoin() {\n return true;\n }",
"BnesBrowsingHis selectByPrimaryKey(BigDecimal browsingHisId) throws SQLException;",
"protected void createSubQueryJoinTable() throws ODataApplicationException {\r\n try {\r\n final List<JPAOnConditionItem> left = association\r\n .getJoinTable()\r\n .getJoinColumns(); // Team -->\r\n final List<JPAOnConditionItem> right = association\r\n .getJoinTable()\r\n .getInverseJoinColumns(); // Person -->\r\n createSelectClauseJoin(subQuery, queryRoot, right);\r\n Expression<Boolean> whereCondition = createWhereByAssociation(from, queryJoinTable, left);\r\n whereCondition = cb.and(whereCondition, createWhereByAssociation(queryJoinTable, queryRoot, right));\r\n subQuery.where(applyAdditionalFilter(whereCondition));\r\n } catch (final ODataJPAModelException e) {\r\n throw new ODataJPAQueryException(e, HttpStatusCode.INTERNAL_SERVER_ERROR);\r\n }\r\n\r\n }",
"@Override\r\n\tprotected void buildPrimaryKeys(final DatabaseTable table) throws SQLException {\r\n\t\tif (views.contains(table)) {\r\n\t\t\t// buildPrimaryKeysOfView(table);\r\n\t\t} else {\r\n\t\t\tbuildPrimaryKeysOfTable(table);\r\n\t\t}\r\n\t}",
"public static void addDefaultJoinColumnForCompositePK(IdentifiableClass identifiableClass,\r\n Attribute attribute, Set<String> allFields, List<JoinColumn> joinColumns) {\r\n if (attribute instanceof SingleRelationAttribute) {\r\n SingleRelationAttribute relationAttribute = (SingleRelationAttribute) attribute;\r\n if (!relationAttribute.isOwner()) { //Only Owner will draw edge because in any case uni/bi owner is always exist\r\n return;\r\n }\r\n\r\n //check is it composite key\r\n Entity targetEntity = relationAttribute.getConnectedEntity();\r\n relationAttribute.getJoinColumn().clear();\r\n if (joinColumns == null || joinColumns.isEmpty()) {\r\n //unused snippet\r\n for (Attribute targetAttribute : targetEntity.getAttributes().getPrimaryKeyAttributes()) {\r\n JoinColumn joinColumn = new JoinColumn();\r\n String joinColumnName = (targetEntity.getClazz() + '_' + targetAttribute.getName()).toUpperCase();\r\n joinColumnName = getNext(joinColumnName, nextJoinColumnName -> allFields.contains(nextJoinColumnName));\r\n joinColumn.setName(joinColumnName);\r\n if (targetAttribute instanceof RelationAttribute) {\r\n Entity connectedEntity = ((RelationAttribute) targetAttribute).getConnectedEntity();\r\n if (connectedEntity.getCompositePrimaryKeyType() != null) {\r\n //TODO \r\n } else {\r\n Id id = connectedEntity.getAttributes().getId().get(0);\r\n joinColumn.setReferencedColumnName(targetAttribute.getName() + \"_\" + id.getDefaultColumnName());\r\n }\r\n } else {\r\n joinColumn.setReferencedColumnName(targetAttribute.getName());\r\n }\r\n relationAttribute.getJoinColumn().add(joinColumn);\r\n }\r\n } else {\r\n //called from db exception handeler\r\n relationAttribute.getJoinColumn().addAll(joinColumns);\r\n }\r\n }\r\n }",
"private String OutOfLineConstraint(SimpleNode treeRoot) {\n String statement = \"\";\n\n if (treeRoot.jjtGetChild(0).toString().equals(\"PrimaryKeyOutOfLineConstraint\")) {\n // primary key constraint - add columns in constraint to global keys array\n SimpleNode node = ((SimpleNode) treeRoot.jjtGetChild(0));\n\n for (int i = 0; i < node.jjtGetNumChildren(); i++) {\n _keys.add(((SimpleNode) node.jjtGetChild(i)).jjtGetFirstToken().image);\n }\n } else {\n // just copy constraint definition\n statement = SimpleNodeCompatibility.getSourceString(treeRoot);\n }\n\n return statement;\n }",
"ProductInner innerModel();",
"RepStuLearning selectByPrimaryKey(RepStuLearningKey key);",
"BusinessViewInnerJoinRelationship getBusinessViewInnerJoinRelationshipAtOccurrenceNumber(PhysicalTable physicalTable, int index);",
"@Test\n \tpublic void whereClauseForNodeDirectDominance() {\n \t\tnode23.addJoin(new Dominance(node42, 1));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \t\t);\n \t}",
"SpecialCircumstance selectByPrimaryKey(Long id);",
"private void addColumnInPrimarySection(String key) {\n _queryBuilder.addColumn(key);\n _queryBuilder.addJoin(FilterMetaData.KEY_OUTER_JOIN_PATH_SECTION);\n _queryBuilder.addTable(TableMetaData.KEY_TABLE_PATH);\n _queryBuilder.addTable(TableMetaData.KEY_TABLE_SECTION);\n }",
"@Test\n \tpublic void whereClauseForNodeExactPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42, 10));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"=\", \"_node23.right_token\", \"_node42.left_token\", -10));\n \t}",
"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 }",
"Table getReferencedTable();",
"IDbQuery<R> setStraightJoin(boolean straightJoin);",
"WayShopCateRoot selectByPrimaryKey(Integer id);",
"@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 }",
"TbProductAttributes selectByPrimaryKeySelective(@Param(\"productAttributesId\") Integer productAttributesId, @Param(\"selective\") TbProductAttributes.Column ... selective);",
"@Override\n public void prepare() {\n leftChild.prepare();\n rightChild.prepare();\n\n // Use the parent class' helper-function to prepare the schema.\n prepareSchemaStats();\n\n /** if the join is an anti or semi join, must change the schema to that of the left child*/\n if (joinType == JoinType.ANTIJOIN || joinType == JoinType.SEMIJOIN) {\n schema = leftChild.getSchema();\n sem_ant = true;\n outer = false;\n }\n /** If the join type is an outer, sets state variables and creates the null-pad tuple*/\n else if (joinType == JoinType.LEFT_OUTER || joinType == JoinType.RIGHT_OUTER) {\n outer = true;\n sem_ant = false;\n if (joinType == JoinType.LEFT_OUTER)\n nullPad = new TupleLiteral(rightChild.getSchema().numColumns());\n else {\n nullPad = new TupleLiteral(leftChild.getSchema().numColumns());\n }\n }\n /** if the join is an inner join*/\n else {\n sem_ant = false;\n outer = false;\n }\n \n // We obtain the cost of our children\n PlanCost lChildCost = leftChild.getCost();\n PlanCost rChildCost = rightChild.getCost();\n \n // Our base number of tuples is the two tuples multiplied together\n float totalTuples = lChildCost.numTuples * rChildCost.numTuples;\n \n // If we have a predicate, we multiply by this value\n if (predicate != null) {\n // We use a selectivity estimator if necessary\n float selValue = SelectivityEstimator.estimateSelectivity(\n predicate, \n schema, \n stats);\n \n // Anti-joins will have the opposite of our estimated selectivity\n if (joinType == JoinType.ANTIJOIN || \n joinType == JoinType.SEMIJOIN) {\n selValue = 1 - selValue;\n }\n totalTuples *= selValue;\n }\n // Outer joins require extra nodes for their bounds\n if (joinType == JoinType.LEFT_OUTER) {\n totalTuples += lChildCost.numTuples;\n }\n else if (joinType == JoinType.RIGHT_OUTER) {\n totalTuples += rChildCost.numTuples;\n }\n \n cost = new PlanCost(\n // We have our total number of tuples\n totalTuples,\n // Our overall tuple size is now the size of the two\n // tuples added together\n lChildCost.tupleSize + rChildCost.tupleSize,\n // Our CPU cost is the cost of going through every tuple\n // on the right child for every tuple on the left\n // and for computing both tables\n lChildCost.numTuples * rChildCost.numTuples + lChildCost.cpuCost + rChildCost.cpuCost,\n // Our block cost is the cost of going through the blocks\n // in the two children\n lChildCost.numBlockIOs + rChildCost.numBlockIOs);\n }",
"OrganizationResourceInner innerModel();",
"private static final String FIND_BY_PK(boolean fetchDewars) {\r\n\t\treturn \"from Shipping3VO vo \" + (fetchDewars ? \"left join fetch vo.dewarVOs \" : \"\")\r\n\t\t\t\t+ \"where vo.shippingId = :pk\";\r\n\r\n\t}",
"@Override\n\tpublic Identifier determinePrimaryKeyJoinColumnName(ImplicitPrimaryKeyJoinColumnNameSource source) {\n\t\treturn source.getReferencedPrimaryKeyColumnName();\n\t}",
"public static void printForeignKeyDetails(ResultSet ik) throws SQLException {\n /*\n ResultSetMetaData rs_meta = ik.getMetaData();\n for (int x = 1; x <= rs_meta.getColumnCount(); x++) {\n writeMessage(\"fkcol attr: \" + rs_meta.getColumnName(x));\n }\n */\n writeMessage(\"FK_NAME=\" + ik.getString(\"FK_NAME\"));\n writeMessage(\" PKTABLE_CAT=\" + ik.getString(\"PKTABLE_CAT\"));\n writeMessage(\" PKTABLE_SCHEM=\" + ik.getString(\"PKTABLE_SCHEM\"));\n writeMessage(\" PKTABLE_NAME=\" + ik.getString(\"PKTABLE_NAME\"));\n writeMessage(\" PKCOLUMN_NAME=\" + ik.getString(\"PKCOLUMN_NAME\"));\n writeMessage(\" FKTABLE_CAT=\" + ik.getString(\"FKTABLE_CAT\"));\n writeMessage(\" FKTABLE_SCHEM=\" + ik.getString(\"FKTABLE_SCHEM\"));\n writeMessage(\" FKTABLE_NAME=\" + ik.getString(\"FKTABLE_NAME\"));\n writeMessage(\" FKCOLUMN_NAME=\" + ik.getString(\"FKCOLUMN_NAME\"));\n writeMessage(\" KEY_SEQ=\" + ik.getString(\"KEY_SEQ\"));\n writeMessage(\" UPDATE_RULE=\" + ik.getString(\"UPDATE_RULE\"));\n writeMessage(\" DELETE_RULE=\" + ik.getString(\"DELETE_RULE\"));\n writeMessage(\" PK_NAME=\" + ik.getString(\"PK_NAME\"));\n writeMessage(\" DEFERRABILITY=\" + ik.getString(\"DEFERRABILITY\"));\n }",
"@Override\r\n\tprotected void buildForeignKeys(final DatabaseTable table) throws SQLException {\r\n\t\tif (views.contains(table)) {\r\n\t\t\t// buildForeignKeysOfView(table);\r\n\t\t} else {\r\n\t\t\tbuildForeignKeysOfTable(table);\r\n\t\t}\r\n\t}",
"JmfTaskMqRef selectByPrimaryKey(String relationId);",
"private void createReferentialIntegrityConstraints() {\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.BOOKS_AUTHOR_TABLE + \" ADD FOREIGN KEY (THE_BOOK_FK) REFERENCES \" + IDaoBooks.TABLE + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.BOOKS_AUTHOR_TABLE + \" ADD FOREIGN KEY (THE_AUTHOR_FK) REFERENCES \" + IDaoPersons.TABLE + \" (ID) ON UPDATE SET NULL\");\n\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_KIND_FK) REFERENCES \" + SimpleData.DataType.KIND.getTable() + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_LANGUAGE_FK) REFERENCES \" + SimpleData.DataType.LANGUAGE.getTable() + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_LENDING_FK) REFERENCES \" + IDaoLendings.TABLE + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_SAGA_FK) REFERENCES \" + SimpleData.DataType.SAGA.getTable() + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_TYPE_FK) REFERENCES \" + SimpleData.DataType.TYPE.getTable() + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_EDITOR_FK) REFERENCES \" + IDaoEditors.TABLE + \" (ID) ON UPDATE SET NULL\");\n }",
"Disproduct selectByPrimaryKey(String samId);",
"private TupleList InDirectSelect(String[] p){\n TupleList tpl= new TupleList();\n String classname = p[3];\n String attrname = p[4];\n String crossname = p[2];\n String[] attrtype = new String[1];\n String[] con =new String[3];\n con[0] = p[6];\n con[1] = p[7];\n con[2] = p[8];\n\n int classid = 0;\n int crossid = 0;\n String crossattrtype = null;\n int crossattrid = 0;\n for(ClassTableItem item : classt.classTable){\n if(item.classname.equals(classname)){\n classid = item.classid;\n if(attrname.equals(item.attrname))\n attrtype[0]=item.attrtype;\n }\n if(item.classname.equals(crossname)){\n crossid = item.classid;\n if(item.attrname.equals(con[0])) {\n crossattrtype = item.attrtype;\n crossattrid = item.attrid;\n }\n }\n }\n\n for(ObjectTableItem item1:topt.objectTable){\n if(item1.classid == crossid){\n Tuple tuple = GetTuple(item1.blockid,item1.offset);\n if(Condition(crossattrtype,tuple,crossattrid,con[2])){\n for(BiPointerTableItem item3: biPointerT.biPointerTable){\n if(item1.tupleid == item3.objectid&&item3.deputyid == classid){\n for(ObjectTableItem item2: topt.objectTable){\n if(item2.tupleid == item3.deputyobjectid){\n Tuple ituple = GetTuple(item2.blockid,item2.offset);\n tpl.addTuple(ituple);\n }\n }\n }\n }\n\n }\n }\n\n }\n String[] name = new String[1];\n name[0] = attrname;\n int[] id = new int[1];\n id[0] = 0;\n PrintSelectResult(tpl,name,id,attrtype);\n return tpl;\n\n\n\n\n }",
"TDwBzzxBzflb selectByPrimaryKey(String objId);",
"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}",
"TrustedIdProviderInner innerModel();",
"EReference getRelationReference();",
"RepoInner innerModel();",
"TSubjectInfo selectByPrimaryKey(BigDecimal subjectNo);",
"@Override\n\tpublic String findParentKeyColumnName()\n\t{\n\t\treturn null;\n\t}",
"@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}",
"default <K> List<Condition> composeFilterConditionsForCompositePrimaryKey(K key) {\n\t\tList<Condition> conditions = new ArrayList<>();\n\t\tList<Pair<Attribute<T, ?>, Object>> attributesToValues = decomposePrimaryKey(key);\n\t\tif (attributesToValues != null) {\n\t\t\tfor (Pair<Attribute<T, ?>, Object> p : attributesToValues) {\n\t\t\t\tAttribute<T, ?> attr = p.getFirst();\n\t\t\t\tObject value = p.getSecond();\n\t\t\t\tconditions.add(Condition.eq(attr, value));\n\t\t\t}\n\t\t}\n\t\treturn conditions;\n\t}",
"public static com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Orders> getRelationsOrderss_for_Relations(java.lang.Long surrogateKey, int skip, int take)\n {\n String intervalName = null;\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n intervalName = \"Orders.getRelationsOrderss_for_Relations\";\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().startInterval(intervalName, com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.PersistenceRead);\n }\n try\n {\n \n \n String _selectSQL = \" x.\\\"a\\\",x.\\\"b\\\",x.\\\"c\\\",x.\\\"d\\\",x.\\\"e\\\",x.\\\"f\\\",x.\\\"g\\\",x.\\\"h\\\",x.\\\"i\\\",x.\\\"j\\\",x.\\\"l\\\",x.\\\"m\\\",x.\\\"n\\\",x.\\\"o\\\",x.\\\"p\\\",x.\\\"q\\\",x.\\\"r\\\",x.\\\"s\\\",x.\\\"t\\\",x.\\\"u\\\",x.\\\"v\\\",x.\\\"w\\\",x.\\\"x\\\",x.\\\"y\\\",x.\\\"z\\\",x.\\\"ba\\\",x.\\\"bb\\\",x.\\\"bc\\\",x.\\\"bd\\\",x.\\\"be\\\",x.\\\"bf\\\",x.\\\"bg\\\",x.\\\"bh\\\",x.\\\"bi\\\",x.\\\"bj\\\",x.\\\"bl\\\",x.\\\"bm\\\",x.\\\"pending\\\",x.\\\"_pc\\\",x.\\\"_rp\\\",x.\\\"_rf\\\"\"\n + \",x.\\\"relationsFK\\\",x.\\\"bn\\\",x.\\\"_rc\\\",x.\\\"_ds\\\",x.\\\"cvpOperation_length\\\",x.\\\"cvpOperationLobs_length\\\" from \\\"mvideo5_1_0_orders\\\" x where (((x.\\\"pending\\\" = 1 or not exists (select x_os.\\\"bn\\\" from \\\"mvideo5_1_0_orders_os\\\" x_os where x_os.\\\"bn\\\" = x.\\\"bn\\\")))) and ( x.\\\"relationsFK\\\"=?)\";\n _selectSQL = \"select \" + _selectSQL;\n String[] ids = new String[0];\n com.sybase.reflection.DataType[] dts = new com.sybase.reflection.DataType[]{ \n com.sybase.reflection.DataType.forName(\"long?\"),\n };\n Object[] values = new Object[] { \n surrogateKey,\n };\n com.sybase.collections.GenericList<Object> res = DELEGATE.findWithSQL(_selectSQL, dts, values, ids, skip, take, ru.terralink.mvideo.sap.Orders.class);\n return (com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Orders>)(Object)res;\n }\n finally\n {\n if(com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.isEnabled)\n {\n com.sybase.mobile.util.perf.impl.PerformanceAgentServiceImpl.getInstance().stopInterval(intervalName);\n }\n }\n }",
"ResourceSkuInner innerModel();",
"DashboardGoods selectByPrimaryKeySelective(@Param(\"id\") Integer id, @Param(\"selective\") DashboardGoods.Column ... selective);",
"public final AstValidator.nested_proj_return nested_proj() throws RecognitionException {\n AstValidator.nested_proj_return retval = new AstValidator.nested_proj_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 NESTED_PROJ369=null;\n AstValidator.col_ref_return col_ref370 =null;\n\n AstValidator.col_ref_return col_ref371 =null;\n\n\n CommonTree NESTED_PROJ369_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:590:13: ( ^( NESTED_PROJ col_ref ( col_ref )+ ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:590:15: ^( NESTED_PROJ col_ref ( col_ref )+ )\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 NESTED_PROJ369=(CommonTree)match(input,NESTED_PROJ,FOLLOW_NESTED_PROJ_in_nested_proj3117); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n NESTED_PROJ369_tree = (CommonTree)adaptor.dupNode(NESTED_PROJ369);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(NESTED_PROJ369_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_col_ref_in_nested_proj3119);\n col_ref370=col_ref();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, col_ref370.getTree());\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:590:38: ( col_ref )+\n int cnt105=0;\n loop105:\n do {\n int alt105=2;\n int LA105_0 = input.LA(1);\n\n if ( (LA105_0==CUBE||LA105_0==DOLLARVAR||LA105_0==GROUP||LA105_0==IDENTIFIER) ) {\n alt105=1;\n }\n\n\n switch (alt105) {\n \tcase 1 :\n \t // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:590:38: col_ref\n \t {\n \t _last = (CommonTree)input.LT(1);\n \t pushFollow(FOLLOW_col_ref_in_nested_proj3121);\n \t col_ref371=col_ref();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) \n \t adaptor.addChild(root_1, col_ref371.getTree());\n\n\n \t if ( state.backtracking==0 ) {\n \t }\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt105 >= 1 ) break loop105;\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n EarlyExitException eee =\n new EarlyExitException(105, input);\n throw eee;\n }\n cnt105++;\n } while (true);\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 }",
"@Test\n \tpublic void whereClauseDirectDominanceNamed() {\n \t\tnode23.addJoin(new Dominance(node42, NAME, 1));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \t\t);\n \t}",
"GroupRightDAO selectByPrimaryKey(Long groupRightId);",
"LabInner innerModel();",
"default <K> List<Condition> composeFilterConditionsForPrimaryKey(K id) {\n\t\tList<Condition> conditions = new ArrayList<>();\n\t\tList<Attribute<T, ?>> pkAttributes = getPrimaryAttributes();\n\t\tif (pkAttributes.size() == 1) {\n\t\t\tconditions.add(Condition.eq(pkAttributes.get(0), id));\n\t\t} else {\n\t\t\t// composed primary key\n\t\t\tconditions.addAll(composeFilterConditionsForCompositePrimaryKey(id));\n\t\t}\n\t\treturn conditions;\n\t}",
"BillingRoleDefinitionInner innerModel();",
"BaseCountract selectByPrimaryKey(Integer cId);",
"FctWorkguide selectByPrimaryKey(Long autoid);",
"ContextRelation getContextRelation();",
"public Map<String, Object> getRelatedKeys() throws ODataJPAProcessorException;",
"@Transactional(readOnly = true)\n List<Protein> getProteinsAndMatchesAndCrossReferencesBetweenIds(long bottom, long top);",
"SsSocialSecurityAccountVO selectByPrimaryKey(Long socialSecurityAccountId);",
"@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\n\tpublic void join(){\n\t\t\n\t\tCriteriaBuilder criteriaBuilder = em.getCriteriaBuilder();\n\t\tCriteriaQuery<Course> criteriaQuery = criteriaBuilder.createQuery(Course.class);\n\t\t\n\t\t\n\t\t// Define roots\n\t\tRoot<Course> courseRoot = criteriaQuery.from(Course.class);\n\t\t\n\t\t// Define Predicate\n\t\tJoin<Object, Object> join = courseRoot.join(\"students\");\n\t\t\n\t\t// Add Predicate\n\t\n\t\t//5. Defined Typed Query\n\t\t\t\tTypedQuery<Course> query = em.createQuery(criteriaQuery.select(courseRoot));\n\t\t\t\t\n\t\t\t\tList<Course> resultList = query.getResultList();\n\t\t\t\t\n\t\t\t\tlogger.info(\"JOINED COURSES ==> {}\", resultList);\n\t\t\t\t\t\n\t}",
"public interface ForeignKey extends Comparable<ForeignKey> {\r\n\r\n\t/**\r\n\t * Return the foreign key's name.\r\n\t */\r\n\tString getName();\r\n\r\n\t/**\r\n\t * Return the foreign key's \"base\" table.\r\n\t */\r\n\tTable getBaseTable();\r\n\r\n\t/**\r\n\t * Return the foreign key's \"referenced\" table.\r\n\t */\r\n\tTable getReferencedTable();\r\n\r\n\t/**\r\n\t * Return the foreign key's column pairs.\r\n\t * @see ColumnPair\r\n\t */\r\n\tIterator<ColumnPair> columnPairs();\r\n\r\n\t/**\r\n\t * Return the foreign key's single column pair. Throw an\r\n\t * IllegalStateException if the foreign key has more than one column pair.\r\n\t */\r\n\tColumnPair columnPair();\r\n\r\n\t/**\r\n\t * Return the size of the foreign key's column pairs.\r\n\t * @see ColumnPair\r\n\t */\r\n\tint columnPairsSize();\r\n\r\n\t/**\r\n\t * Return the foreign key's \"base\" columns.\r\n\t * @see ColumnPair\r\n\t */\r\n\tIterator<Column> baseColumns();\r\n\r\n\t/**\r\n\t * Return the foreign key's \"base\" columns that are not part of\r\n\t * the base table's primary key.\r\n\t * @see ColumnPair\r\n\t */\r\n\tIterator<Column> nonPrimaryKeyBaseColumns();\r\n\r\n\t/**\r\n\t * Return the foreign key's \"referenced\" columns.\r\n\t * @see ColumnPair\r\n\t */\r\n\tIterator<Column> referencedColumns();\r\n\r\n\t/**\r\n\t * Return a Java-appropriate name for a field that holds the entity\r\n\t * mapped to the foreign key's \"referenced\" table.\r\n\t */\r\n\tString getJavaFieldName();\r\n\r\n\t/**\r\n\t * Return whether the foreign key's default Java field name matches the\r\n\t * specified Java identifier, respecting the database's case-sensitivity.\r\n\t */\r\n\tboolean defaultMatchesJavaFieldName(String javaFieldName);\r\n\r\n\t/**\r\n\t * Return whether the foreign key is the default for the specified Java\r\n\t * field name, respecting the database's case-sensitivity.\r\n\t */\r\n\tboolean isDefaultFor(String javaFieldName);\r\n\r\n\t/**\r\n\t * Return whether the foreign key references the primary key of the\r\n\t * \"referenced\" table and that primary key has only a single column.\r\n\t */\r\n\tboolean referencesSingleColumnPrimaryKey();\r\n\r\n\r\n\t/**\r\n\t * Pair up the foreign key's column pairs, matching each \"base\" column with\r\n\t * the appropriate \"referenced\" column.\r\n\t * @see #columnPairs()\r\n\t */\r\n\tinterface ColumnPair extends Comparable<ColumnPair> {\r\n\r\n\t\t/**\r\n\t\t * Return the column pair's \"base\" column.\r\n\t\t */\r\n\t\tColumn baseColumn();\r\n\r\n\t\t/**\r\n\t\t * Return the column pair's \"referenced\" column.\r\n\t\t */\r\n\t\tColumn referencedColumn();\r\n\r\n\t}\r\n\r\n}",
"private boolean includePrimaryKeyColumns() {\n\t\treturn false;\r\n\t}",
"public int \r\nomStudent_BuildGradInfoRels( View mStudent )\r\n{\r\n zVIEW mStudentT = new zVIEW( );\r\n int RESULT = 0;\r\n int lTempInteger_0 = 0;\r\n\r\n\r\n //:// If the StudentMajorDegreeTrack to DegreeCandidacy relationships have NOT been built, build\r\n //:// them here for each StudentMajorDegreeTrack that does not have a GraduationDate already set.\r\n //:CreateViewFromView( mStudentT, mStudent )\r\n CreateViewFromView( mStudentT, mStudent );\r\n //:FOR EACH mStudentT.StudentMajorDegreeTrack \r\n RESULT = mStudentT.cursor( \"StudentMajorDegreeTrack\" ).setFirst().toInt();\r\n while ( RESULT > zCURSOR_UNCHANGED )\r\n { \r\n //:IF mStudentT.MajorTrackDegreeCandidacy DOES NOT EXIST AND\r\n lTempInteger_0 = CheckExistenceOfEntity( mStudentT, \"MajorTrackDegreeCandidacy\" );\r\n //: mStudentT.StudentMajorDegreeTrack.GraduationDate = \"\" \r\n if ( lTempInteger_0 != 0 && CompareAttributeToString( mStudentT, \"StudentMajorDegreeTrack\", \"GraduationDate\", \"\" ) == 0 )\r\n { \r\n\r\n //:INCLUDE mStudentT.SMDT_DegreeCandidacy FROM mStudentT.DegreeCandidacy \r\n RESULT = IncludeSubobjectFromSubobject( mStudentT, \"SMDT_DegreeCandidacy\", mStudentT, \"DegreeCandidacy\", zPOS_AFTER );\r\n //:INCLUDE mStudentT.MajorTrackDegreeCandidacy FROM mStudentT.DegreeCandidacy \r\n RESULT = IncludeSubobjectFromSubobject( mStudentT, \"MajorTrackDegreeCandidacy\", mStudentT, \"DegreeCandidacy\", zPOS_AFTER );\r\n } \r\n\r\n RESULT = mStudentT.cursor( \"StudentMajorDegreeTrack\" ).setNext().toInt();\r\n //:END\r\n } \r\n\r\n //:END\r\n //:DropView( mStudentT )\r\n DropView( mStudentT );\r\n return( 0 );\r\n// END\r\n}",
"public void testAssociationNestedSearch() throws ApplicationException\r\n\t{\r\n\t\tHardTop searchObject = new HardTop();\r\n\r\n\t\tWheel wheel = new Wheel();\r\n\t\tInt intISO=new Int();\r\n\t\tintISO.setValue(99);\r\n\t\twheel.setRadius(intISO);\r\n\t\t\r\n\t\tsearchObject.setWheel(wheel);\r\n\t\tInt intISO2=new Int();\r\n\t\tintISO.setValue(75);\r\n\t\tsearchObject.setCapacity(intISO2);\r\n\t\tCollection results = getApplicationService().search(\"gov.nih.nci.cacoresdk.domain.inheritance.parentwithassociation.sametable.HardTop\",searchObject );\r\n\r\n\t\tassertNotNull(results);\r\n\t\t\r\n\t\tfor(Iterator i = results.iterator();i.hasNext();)\r\n\t\t{\r\n\t\t\tHardTop result = (HardTop)i.next();\r\n\t\t\tassertNotNull(result);\r\n\t\t\tassertNotNull(result.getId());\r\n\t\t\tassertEquals(result.getId().getRoot(),II_ROOT_GLOBAL_CONSTANT_VALUE);\r\n\t\t\tassertNotNull(result.getKeyCode());\r\n\t\t\tassertNotNull(result.getCapacity());\r\n\t\t\tassertEquals(result.getKeyCode(),new Integer(627));\r\n\t\t}\r\n\t}",
"OcCustContract selectByPrimaryKey(String contractNo);",
"TNavigation selectByPrimaryKey(Long navigationId);",
"LawPerson selectByPrimaryKey(Long personId);",
"@Test(timeout = 4000)\n public void test096() throws Throwable {\n String[] stringArray0 = new String[6];\n NameSpec nameSpec0 = NameSpec.IF_REPRODUCIBLE;\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"NestedRawReadOnlyUserTransaction\");\n DBPrimaryKeyConstraint dBPrimaryKeyConstraint0 = new DBPrimaryKeyConstraint(defaultDBTable0, \"getRowId(int)\", true, stringArray0);\n String string0 = SQLUtil.pkSpec(dBPrimaryKeyConstraint0, nameSpec0);\n assertEquals(\"CONSTRAINT getRowId(int) PRIMARY KEY (, , , , , )\", string0);\n }",
"@Override public List<Node> visitJoin(@NotNull XQueryParser.JoinContext ctx) {\n\t\tHashMap<String, List<Node>> hashJoin = new HashMap<String, List<Node>>();\n\t\tList<Node> result = new ArrayList<Node>();\n\t\tList<Node> left = new ArrayList<Node>(visit(ctx.query(0)));\n\t\tList<Node> right = new ArrayList<Node>(visit(ctx.query(1)));\n\t\tList<String> latt = transform(ctx.attrs(0));\n\t\tList<String> ratt = transform(ctx.attrs(1));\n\t\t\n\t\tif(latt.isEmpty()){\n\t\t\tfor(Node lnode : left){\n\t\t\t\tfor(Node rnode: right){\n\t\t\t\t\tElement container = doc.createElement(\"tuple\");\n\t\t\t\t\tList<Node> child = findChild(lnode);\n\t\t\t\t\tchild.addAll(findChild(rnode));\n\t\t\t\t\tfor(Node childNode: child){\n\t\t\t\t\t\tcontainer.appendChild(doc.importNode(childNode, true));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t\t\n\t\tList<Node> small = left.size() < right.size() ? left : right,\n\t\t\t\tlarge = left.size() < right.size() ? right : left;\n\t\tList<String> smatt = left.size() < right.size() ? latt : ratt,\n\t\t\t\tlgatt = left.size() < right.size() ? ratt : latt;\n\t\t\n\t\t// store into hash map\n\t\tfor(Node smnode : small){\n\t\t\tString key = convertChildren(smnode, smatt);\n\t\t\tif(hashJoin.containsKey(key)){\n\t\t\t\thashJoin.get(key).add(smnode);\n\t\t\t} else hashJoin.put(key, new ArrayList<Node>(Arrays.asList(smnode)));\n\t\t}\n\t\t\n\t\t// actual join operation\n\t\tfor(Node lgnode : large){\n\t\t\tString attributes = convertChildren(lgnode, lgatt);\n\t\t\tif(hashJoin.containsKey(attributes)){\n\t\t\t\tfor(Node smnode : hashJoin.get(attributes)){\n\t\t\t\t\tElement container = doc.createElement(\"tuple\");\n\t\t\t\t\tList<Node> child = findChild(smnode);\n\t\t\t\t\tchild.addAll(findChild(lgnode));\n\t\t\t\t\tfor(Node childnode: child){\n\t\t\t\t\t\tcontainer.appendChild(doc.importNode(childnode, true));\n\t\t\t\t\t}\n\t\t\t\t\tresult.add(container);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"public static void pseudoTrueTuples(LogicProblem logicProblem, boolean applyChanges)\r\n throws RelationshipConflictException {\n \r\n HashMap<ItemPair,Relationship> relationshipTable = logicProblem.getRelationshipTable();\r\n HashSet<CategoryPair> categoryPairs = logicProblem.getCategoryPairs();\r\n \r\n// System.out.println(\"searching...\");\r\n //within a subgrid\r\n for (CategoryPair categoryPair : categoryPairs) {\r\n// System.out.println(\"Category pair:\" + categoryPair);\r\n //vertical and horizontal search\r\n for (final boolean verticalOrientation : new boolean[] { false, true } ) {\r\n\r\n Category subrowCategory = verticalOrientation?categoryPair.first():categoryPair.last();\r\n Category subcolumnCategory = verticalOrientation?categoryPair.last():categoryPair.first();\r\n\r\n //commenting \"vertical search\" \r\n //(subrows match first category's items\r\n // subcolumns match second category's items)\r\n\r\n //i (2 to floor(n/2)) is the number of elements in the combination tuple\r\n // i=2 in pseudoTrue pairs\r\n //(for subgrids of 5x5 items, looking for both pairs and triplets becomes redundant\r\n for (int i=2; i<=floor(logicProblem.getNumCategories()/2);i++) {\r\n\r\n //https://github.com/dpaukov/combinatoricslib3/wiki/v3.3.0#1-simple-combinations\r\n List<List<Item>> columnCombinations = Generator.combination(subcolumnCategory.getItems())\r\n .simple(i) //for pseudo true pairs, i=2\r\n .stream()\r\n .collect(Collectors.<List<Item>>toList());\r\n //for i=2, this would contain \r\n //Bethany, Donovan\r\n //Bethany, Elizabeth\r\n //...\r\n //Frederick, Peyton\r\n// columnCombinations.stream().forEach(l -> System.out.println(\r\n// (verticalOrientation?\"vertical\":\"horizontal\")+ \" combo: \"+l.toString()));\r\n\r\n //create the sets\r\n //for each combination, start over\r\n \r\n //columnTuple contains i items with which we will compute set intersections\r\n for (List<Item> columnItemTuple : columnCombinations) {\r\n //Bethany, Donovan\r\n \r\n //similarly, valueNoSets contains i sets of VALUE_NO relationships\r\n List<Set<Item>> valueNoSets = new ArrayList<>(); //size=i\r\n //build a set for each i item of columnTuple\r\n for (Item columnItem : columnItemTuple) {\r\n //Bethany\r\n Set<Item> valueNoSet = new HashSet<>(); //size = n\r\n for (Item rowItem : subrowCategory.getItems()) {\r\n //Haley's Comet ....\r\n if (relationshipTable.get(new ItemPair(rowItem, columnItem)).getValue() == Relationship.ValueType.VALUE_NO)\r\n //stacking all VALUE_NO relationship into vertical set\r\n valueNoSet.add(rowItem); //store into single subcolumn set \r\n }\r\n //adding each vertical set into list of sets\r\n if (valueNoSet.size() >= logicProblem.getNumItems() - i //for pairs, we need three VALUE_NO in the set\r\n && valueNoSet.size() < logicProblem.getNumItems()-1) //uniqueness will take or n-1 cases\r\n valueNoSets.add(valueNoSet); //store single subcolumn into multi-set\r\n }\r\n //magic!\r\n Set<Item> intersectionSet = new HashSet<>(); //avoid NPE when the next call is made\r\n if (valueNoSets.size()>=2) //don't compute intersections otherwise\r\n intersectionSet = Processor.multiSetIntersection(valueNoSets);\r\n\r\n if (intersectionSet.size()==logicProblem.getNumItems()-i) {\r\n \r\n// System.out.println(\"----> found candidates for pseudo true pairs!\");\r\n// intersectionSet.stream().forEach(l -> System.out.println(\"\\t\" + l.toString()));\r\n// System.out.println(\"\\t\\tvs.\");\r\n// columnItemTuple.stream().forEach(l -> System.out.println(\"\\t\" + l.toString()));\r\n \r\n //create predecessor list\r\n //we can only add the intersection output as predecessors\r\n ArrayList<Dependable> predecessors = new ArrayList<Dependable>();\r\n for (Item intersectionColumn : intersectionSet) {\r\n for (Item rowItem : columnItemTuple) {\r\n predecessors.add(relationshipTable.get(new ItemPair(rowItem, intersectionColumn)));\r\n }\r\n }\r\n\r\n\r\n //we have a bunch of work to do\r\n for (Item everyRowItem : subrowCategory.getItems()) {\r\n //for every row item not in the intersectionSet\r\n if (!intersectionSet.contains(everyRowItem)) {\r\n for (Item everyColumnItem : subcolumnCategory.getItems()) {\r\n //for every column item not in any of the columnTuple list\r\n if (!columnItemTuple.contains(everyColumnItem)) {\r\n Relationship rel = relationshipTable.get(new ItemPair(everyRowItem,everyColumnItem));\r\n if (rel.getValue()!=Relationship.ValueType.VALUE_NO)\r\n Processor.setRelationship(logicProblem, applyChanges, rel, \r\n Relationship.ValueType.VALUE_NO, Relationship.LogicType.PSEUDOTRUE,\r\n predecessors.toArray(new Relationship[predecessors.size()])); \r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }",
"@Query(\"SELECT c from CarEntity c INNER JOIN c.wareHouseEntity w WHERE w.warehouseId=:warehouseId AND c.carId=:carId\")\n CarEntity findWareHouseAndCarId(@Param(\"warehouseId\") Long warehouseId, @Param(\"carId\") Long carId);",
"protected void createSubQueryJoinTableAggregation() throws ODataApplicationException {\r\n try {\r\n final List<JPAOnConditionItem> left = association\r\n .getJoinTable()\r\n .getJoinColumns(); // Person -->\r\n final List<JPAOnConditionItem> right = association\r\n .getJoinTable()\r\n .getInverseJoinColumns(); // Team -->\r\n createSelectClauseAggregation(subQuery, queryJoinTable, left);\r\n final Expression<Boolean> whereCondition = createWhereByAssociation(from, queryJoinTable, parentQuery.jpaEntity);\r\n subQuery.where(applyAdditionalFilter(whereCondition));\r\n handleAggregation(subQuery, queryJoinTable, right);\r\n } catch (final ODataJPAModelException e) {\r\n throw new ODataJPAQueryException(e, HttpStatusCode.INTERNAL_SERVER_ERROR);\r\n }\r\n }",
"MessageRelation selectByPrimaryKey(Long id);",
"@Dump(compound = true)\n public BwRelatedTo getRelatedTo() {\n return relatedTo;\n }",
"@Test\n \tpublic void whereClauseForNodeInclusion() {\n \t\tnode23.addJoin(new Inclusion(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(\">=\", \"_node23.right\", \"_node42.right\")\n \t\t);\n \t}",
"DebtsRecordEntity selectByPrimaryKey(String debtsId);",
"@DISPID(1610940428) //= 0x6005000c. The runtime will prefer the VTID if present\n @VTID(34)\n Relations relations();",
"@Test\n \tpublic void whereClauseForNodeOverlap() {\n \t\tnode23.addJoin(new Overlap(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"<=\", \"_node23.left\", \"_node42.right\"),\n \t\t\t\tjoin(\"<=\", \"_node42.left\", \"_node23.right\")\n \t\t);\n \t}",
"DepAcctDO selectByPrimaryKey(String depCode);",
"TLinkman selectByPrimaryKey(Integer linkid);"
]
| [
"0.5079839",
"0.50336415",
"0.49054432",
"0.48862258",
"0.48647267",
"0.48513916",
"0.48158002",
"0.48044574",
"0.48003963",
"0.47463775",
"0.47217208",
"0.4715345",
"0.46992153",
"0.46851844",
"0.46816623",
"0.46782663",
"0.46434763",
"0.46406215",
"0.46290207",
"0.46112287",
"0.45852008",
"0.45826653",
"0.45811105",
"0.45616066",
"0.4553705",
"0.45504162",
"0.45424417",
"0.4504196",
"0.4503802",
"0.44952017",
"0.44892263",
"0.4488016",
"0.44875294",
"0.44795656",
"0.44553226",
"0.44548327",
"0.44344342",
"0.44341072",
"0.44264215",
"0.439193",
"0.43686932",
"0.4359374",
"0.43486443",
"0.43448257",
"0.43378",
"0.43206885",
"0.43195394",
"0.4317764",
"0.4305812",
"0.4300529",
"0.42836428",
"0.4283347",
"0.4276998",
"0.4267932",
"0.42637986",
"0.42635554",
"0.42633587",
"0.42593232",
"0.4258298",
"0.4255764",
"0.42507446",
"0.42498612",
"0.42496878",
"0.4237945",
"0.42344776",
"0.42278868",
"0.42278865",
"0.42160243",
"0.42150992",
"0.42138425",
"0.42117384",
"0.42108434",
"0.42089966",
"0.42057282",
"0.42036122",
"0.42014697",
"0.41963914",
"0.4195715",
"0.41938826",
"0.41916716",
"0.41910568",
"0.4185778",
"0.41827422",
"0.41793373",
"0.41703394",
"0.41674408",
"0.41673997",
"0.41671935",
"0.41661772",
"0.4158",
"0.4156163",
"0.41538322",
"0.4147391",
"0.41441184",
"0.4141242",
"0.4140608",
"0.41405377",
"0.4133173",
"0.41301712",
"0.41229934"
]
| 0.5948417 | 0 |
Returning array that contains all the number of neighbourhood frames | public ArrayList<Integer> neighNumbers() {
ArrayList<Integer> neighNumbers = new ArrayList<Integer>();
if(isValid(this.frame-10)) { neighNumbers.add(this.frame-10); }
if(isValid(this.frame+10)) { neighNumbers.add(this.frame+10); }
//Right edge
if(this.frame % 10 == 0) {
if(isValid(this.frame+9)) { neighNumbers.add(this.frame+9); }
if(isValid(this.frame-1)) { neighNumbers.add(this.frame-1); }
if(isValid(this.frame-11)) { neighNumbers.add(this.frame-11); }
}
//Left edge
else if((this.frame -1) % 10 == 0) {
if(isValid(this.frame-9)) { neighNumbers.add(this.frame-9); }
if(isValid(this.frame+1)) { neighNumbers.add(this.frame+1); }
if(isValid(this.frame+11)) { neighNumbers.add(this.frame+11); }
}
else {
if(isValid(this.frame-11)) { neighNumbers.add(this.frame-11); }
if(isValid(this.frame+11)) { neighNumbers.add(this.frame+11); }
if(isValid(this.frame-1)) { neighNumbers.add(this.frame-1); }
if(isValid(this.frame+1)) { neighNumbers.add(this.frame+1); }
if(isValid(this.frame-9)) { neighNumbers.add(this.frame-9); }
if(isValid(this.frame+9)) { neighNumbers.add(this.frame+9); }
}
return neighNumbers;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int getNeighbours(Container[][][] buffer) {\n int neighbours = 0;\n if (indexPosition.x + 1 < buffer.length && buffer[(int) indexPosition.x + 1][(int) indexPosition.y][(int) indexPosition.z] != null) {\n neighbours++;\n }\n if (indexPosition.x - 1 >= 0 && buffer[(int) indexPosition.x - 1][(int) indexPosition.y][(int) indexPosition.z] != null) {\n neighbours++;\n }\n if (indexPosition.y + 1 < buffer[0].length && buffer[(int) indexPosition.x][(int) indexPosition.y + 1][(int) indexPosition.z] != null) {\n neighbours++;\n }\n if (indexPosition.y - 1 >= 0 && buffer[(int) indexPosition.x][(int) indexPosition.y - 1][(int) indexPosition.z] != null) {\n neighbours++;\n }\n if (indexPosition.z + 1 < buffer[0][0].length && buffer[(int) indexPosition.x][(int) indexPosition.y][(int) indexPosition.z + 1] != null) {\n neighbours++;\n }\n if (indexPosition.z - 1 >= 0 && buffer[(int) indexPosition.x][(int) indexPosition.y][(int) indexPosition.z - 1] != null) {\n neighbours++;\n }\n return neighbours;\n }",
"int sizeOfBridgeElementArray();",
"int getNumberFrames();",
"public int[] getNeighborhoodArray()\n\t{\n\t\treturn neighborhoodArray;\n\t}",
"int getFramesCount();",
"int sizeOfLanesArray();",
"int getImgDataCount();",
"int getSubframesCount();",
"int getDimensionsCount();",
"int sizeOfRoadsideArray();",
"public int countNeighbours() {\n\t\tint count = 0;\n\t\tif (this.hasNeighbour(0))\n\t\t\tcount++;\n\t\tif (this.hasNeighbour(1))\n\t\t\tcount++;\n\t\tif (this.hasNeighbour(2))\n\t\t\tcount++;\n\t\treturn count;\n\t}",
"public native int getNumFrames() throws MagickException;",
"public abstract int getNumberOfLivingNeighbours(int x, int y);",
"public ArrayList<Double> getNeighboursData() {\n\t\tArrayList<Double> result = new ArrayList<Double>();\n\n\t\tfor (Border curBorder: allBorder) {\n\t\t\tresult.add(curBorder.length);\n\t\t}\n\n\t\treturn result;\n\t}",
"private int[][] genBlackAdjacentTilesCount(char[][] lobby) {\n int[][] neighborsCount = new int[lobby.length][lobby[0].length];\n\n for (int i = 0; i < lobby.length; i++) {\n for (int j = 0; j < lobby[0].length; j++) {\n List<AxialCoordinates> neighbors = findNeighbors(i, j);\n int blackCount = 0;\n for (AxialCoordinates coo : neighbors) {\n if (coo.rAxialCoordinate > 0 && coo.qAxialCoordinate > 0\n && coo.qAxialCoordinate < lobby.length && coo.rAxialCoordinate < lobby[0].length) {\n if (lobby[coo.qAxialCoordinate][coo.rAxialCoordinate] == 'b') {\n blackCount++;\n }\n }\n }\n neighborsCount[i][j] = blackCount;\n }\n// System.out.println();\n }\n return neighborsCount;\n }",
"public int getNSteps() {\n //if (mCovered == null) {\n //return 0;\n //}\n return mCovered.length;\n }",
"protected static int countNeighbours(int i, int j, byte[][] currentGen){\n int count = 0;\n \n for(int x = i-1; x<i+2; x++){\n count+=checkBorders(x, j-1, currentGen);\n count+=checkBorders(x, j+1, currentGen);\n }\n count+=checkBorders(i-1, j, currentGen);\n count+=checkBorders(i+1, j, currentGen);\n\n return count;\n }",
"int numberOfDimensions();",
"@Override\n public long[ ][ ] count() {\n // precompute common nodes\n for (int x = 0; x < n; x++) {\n for (int n1 = 0; n1 < deg[x]; n1++) {\n int a = adj[x][n1];\n for (int n2 = n1 + 1; n2 < deg[x]; n2++) {\n int b = adj[x][n2];\n Tuple ab = createTuple(a, b);\n common2.put(ab, common2.getOrDefault(ab, 0) + 1);\n for (int n3 = n2 + 1; n3 < deg[x]; n3++) {\n int c = adj[x][n3];\n boolean st = adjacent(adj[a], b) ? (adjacent(adj[a], c) || adjacent(adj[b], c)) :\n (adjacent(adj[a], c) && adjacent(adj[b], c));\n if (!st) continue;\n Tuple abc = createTuple(a, b, c);\n common3.put(abc, common3.getOrDefault(abc, 0) + 1);\n }\n }\n }\n }\n\n // precompute triangles that span over edges\n int[ ] tri = countTriangles();\n\n // count full graphlets\n long[ ] C5 = new long[n];\n int[ ] neigh = new int[n];\n int[ ] neigh2 = new int[n];\n int nn, nn2;\n for (int x = 0; x < n; x++) {\n for (int nx = 0; nx < deg[x]; nx++) {\n int y = adj[x][nx];\n if (y >= x) break;\n nn = 0;\n for (int ny = 0; ny < deg[y]; ny++) {\n int z = adj[y][ny];\n if (z >= y) break;\n if (adjacent(adj[x], z)) {\n neigh[nn++] = z;\n }\n }\n for (int i = 0; i < nn; i++) {\n int z = neigh[i];\n nn2 = 0;\n for (int j = i + 1; j < nn; j++) {\n int zz = neigh[j];\n if (adjacent(adj[z], zz)) {\n neigh2[nn2++] = zz;\n }\n }\n for (int i2 = 0; i2 < nn2; i2++) {\n int zz = neigh2[i2];\n for (int j2 = i2 + 1; j2 < nn2; j2++) {\n int zzz = neigh2[j2];\n if (adjacent(adj[zz], zzz)) {\n C5[x]++;\n C5[y]++;\n C5[z]++;\n C5[zz]++;\n C5[zzz]++;\n }\n }\n }\n }\n }\n }\n\n int[ ] common_x = new int[n];\n int[ ] common_x_list = new int[n];\n int ncx = 0;\n int[ ] common_a = new int[n];\n int[ ] common_a_list = new int[n];\n int nca = 0;\n\n // set up a system of equations relating orbit counts\n for (int x = 0; x < n; x++) {\n for (int i = 0; i < ncx; i++) common_x[common_x_list[i]] = 0;\n ncx = 0;\n\n // smaller graphlets\n orbit[x][0] = deg[x];\n for (int nx1 = 0; nx1 < deg[x]; nx1++) {\n int a = adj[x][nx1];\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = adj[x][nx2];\n if (adjacent(adj[a], b)) orbit[x][3]++;\n else orbit[x][2]++;\n }\n for (int na = 0; na < deg[a]; na++) {\n int b = adj[a][na];\n if (b != x && !adjacent(adj[x], b)) {\n orbit[x][1]++;\n if (common_x[b] == 0) common_x_list[ncx++] = b;\n common_x[b]++;\n }\n }\n }\n\n long f_71 = 0, f_70 = 0, f_67 = 0, f_66 = 0, f_58 = 0, f_57 = 0; // 14\n long f_69 = 0, f_68 = 0, f_64 = 0, f_61 = 0, f_60 = 0, f_55 = 0, f_48 = 0, f_42 = 0, f_41 = 0; // 13\n long f_65 = 0, f_63 = 0, f_59 = 0, f_54 = 0, f_47 = 0, f_46 = 0, f_40 = 0; // 12\n long f_62 = 0, f_53 = 0, f_51 = 0, f_50 = 0, f_49 = 0, f_38 = 0, f_37 = 0, f_36 = 0; // 8\n long f_44 = 0, f_33 = 0, f_30 = 0, f_26 = 0; // 11\n long f_52 = 0, f_43 = 0, f_32 = 0, f_29 = 0, f_25 = 0; // 10\n long f_56 = 0, f_45 = 0, f_39 = 0, f_31 = 0, f_28 = 0, f_24 = 0; // 9\n long f_35 = 0, f_34 = 0, f_27 = 0, f_18 = 0, f_16 = 0, f_15 = 0; // 4\n long f_17 = 0; // 5\n long f_22 = 0, f_20 = 0, f_19 = 0; // 6\n long f_23 = 0, f_21 = 0; // 7\n\n for (int nx1 = 0; nx1 < deg[x]; nx1++) {\n int a = inc[x][nx1]._1, xa = inc[x][nx1]._2;\n\n for (int i = 0; i < nca; i++) common_a[common_a_list[i]] = 0;\n nca = 0;\n for (int na = 0; na < deg[a]; na++) {\n int b = adj[a][na];\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = adj[b][nb];\n if (c == a || adjacent(adj[a], c)) continue;\n if (common_a[c] == 0) common_a_list[nca++] = c;\n common_a[c]++;\n }\n }\n\n // x = orbit-14 (tetrahedron)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nx3 = nx2 + 1; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (!adjacent(adj[a], c) || !adjacent(adj[b], c)) continue;\n orbit[x][14]++;\n f_70 += common3.getOrDefault(createTuple(a, b, c), 0) - 1;\n f_71 += (tri[xa] > 2 && tri[xb] > 2) ? (common3.getOrDefault(createTuple(x, a, b), 0) - 1) : 0;\n f_71 += (tri[xa] > 2 && tri[xc] > 2) ? (common3.getOrDefault(createTuple(x, a, c), 0) - 1) : 0;\n f_71 += (tri[xb] > 2 && tri[xc] > 2) ? (common3.getOrDefault(createTuple(x, b, c), 0) - 1) : 0;\n f_67 += tri[xa] - 2 + tri[xb] - 2 + tri[xc] - 2;\n f_66 += common2.getOrDefault(createTuple(a, b), 0) - 2;\n f_66 += common2.getOrDefault(createTuple(a, c), 0) - 2;\n f_66 += common2.getOrDefault(createTuple(b, c), 0) - 2;\n f_58 += deg[x] - 3;\n f_57 += deg[a] - 3 + deg[b] - 3 + deg[c] - 3;\n }\n }\n\n // x = orbit-13 (diamond)\n for (int nx2 = 0; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nx3 = nx2 + 1; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (!adjacent(adj[a], c) || adjacent(adj[b], c)) continue;\n orbit[x][13]++;\n f_69 += (tri[xb] > 1 && tri[xc] > 1) ? (common3.getOrDefault(createTuple(x, b, c), 0) - 1) : 0;\n f_68 += common3.getOrDefault(createTuple(a, b, c), 0) - 1;\n f_64 += common2.getOrDefault(createTuple(b, c), 0) - 2;\n f_61 += tri[xb] - 1 + tri[xc] - 1;\n f_60 += common2.getOrDefault(createTuple(a, b), 0) - 1;\n f_60 += common2.getOrDefault(createTuple(a, c), 0) - 1;\n f_55 += tri[xa] - 2;\n f_48 += deg[b] - 2 + deg[c] - 2;\n f_42 += deg[x] - 3;\n f_41 += deg[a] - 3;\n }\n }\n\n // x = orbit-12 (diamond)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int na = 0; na < deg[a]; na++) {\n int c = inc[a][na]._1, ac = inc[a][na]._2;\n if (c == x || adjacent(adj[x], c) || !adjacent(adj[b], c)) continue;\n orbit[x][12]++;\n f_65 += (tri[ac] > 1) ? common3.getOrDefault(createTuple(a, b, c), 0) : 0;\n f_63 += common_x[c] - 2;\n f_59 += tri[ac] - 1 + common2.getOrDefault(createTuple(b, c), 0) - 1;\n f_54 += common2.getOrDefault(createTuple(a, b), 0) - 2;\n f_47 += deg[x] - 2;\n f_46 += deg[c] - 2;\n f_40 += deg[a] - 3 + deg[b] - 3;\n }\n }\n\n // x = orbit-8 (cycle)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (adjacent(adj[a], b)) continue;\n for (int na = 0; na < deg[a]; na++) {\n int c = inc[a][na]._1, ac = inc[a][na]._2;\n if (c == x || adjacent(adj[x], c) || !adjacent(adj[b], c)) continue;\n orbit[x][8]++;\n f_62 += (tri[ac] > 0) ? common3.getOrDefault(createTuple(a, b, c), 0) : 0;\n f_53 += tri[xa] + tri[xb];\n f_51 += tri[ac] + common2.getOrDefault(createTuple(c, b), 0);\n f_50 += common_x[c] - 2;\n f_49 += common_a[b] - 2;\n f_38 += deg[x] - 2;\n f_37 += deg[a] - 2 + deg[b] - 2;\n f_36 += deg[c] - 2;\n }\n }\n\n // x = orbit-11 (paw)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nx3 = 0; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (c == a || c == b || adjacent(adj[a], c) || adjacent(adj[b], c)) continue;\n orbit[x][11]++;\n f_44 += tri[xc];\n f_33 += deg[x] - 3;\n f_30 += deg[c] - 1;\n f_26 += deg[a] - 2 + deg[b] - 2;\n }\n }\n\n // x = orbit-10 (paw)\n for (int nx2 = 0; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = inc[b][nb]._1, bc = inc[b][nb]._2;\n if (c == x || c == a || adjacent(adj[a], c) || adjacent(adj[x], c)) continue;\n orbit[x][10]++;\n f_52 += common_a[c] - 1;\n f_43 += tri[bc];\n f_32 += deg[b] - 3;\n f_29 += deg[c] - 1;\n f_25 += deg[a] - 2;\n }\n }\n\n // x = orbit-9 (paw)\n for (int na1 = 0; na1 < deg[a]; na1++) {\n int b = inc[a][na1]._1, ab = inc[a][na1]._2;\n if (b == x || adjacent(adj[x], b)) continue;\n for (int na2 = na1 + 1; na2 < deg[a]; na2++) {\n int c = inc[a][na2]._1, ac = inc[a][na2]._2;\n if (c == x || !adjacent(adj[b], c) || adjacent(adj[x], c)) continue;\n orbit[x][9]++;\n f_56 += (tri[ab] > 1 && tri[ac] > 1) ? common3.getOrDefault(createTuple(a, b, c), 0) : 0;\n f_45 += common2.getOrDefault(createTuple(b, c), 0) - 1;\n f_39 += tri[ab] - 1 + tri[ac] - 1;\n f_31 += deg[a] - 3;\n f_28 += deg[x] - 1;\n f_24 += deg[b] - 2 + deg[c] - 2;\n }\n }\n\n // x = orbit-4 (path)\n for (int na = 0; na < deg[a]; na++) {\n int b = inc[a][na]._1, ab = inc[a][na]._2;\n if (b == x || adjacent(adj[x], b)) continue;\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = inc[b][nb]._1, bc = inc[b][nb]._2;\n if (c == a || adjacent(adj[a], c) || adjacent(adj[x], c)) continue;\n orbit[x][4]++;\n f_35 += common_a[c] - 1;\n f_34 += common_x[c];\n f_27 += tri[bc];\n f_18 += deg[b] - 2;\n f_16 += deg[x] - 1;\n f_15 += deg[c] - 1;\n }\n }\n\n // x = orbit-5 (path)\n for (int nx2 = 0; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (b == a || adjacent(adj[a], b)) continue;\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = inc[b][nb]._1, bc = inc[b][nb]._2;\n if (c == x || adjacent(adj[a], c) || adjacent(adj[x], c)) continue;\n orbit[x][5]++;\n f_17 += deg[a] - 1;\n }\n }\n\n // x = orbit-6 (claw)\n for (int na1 = 0; na1 < deg[a]; na1++) {\n int b = inc[a][na1]._1, ab = inc[a][na1]._2;\n if (b == x || adjacent(adj[x], b)) continue;\n for (int na2 = na1 + 1; na2 < deg[a]; na2++) {\n int c = inc[a][na2]._1, ac = inc[a][na2]._2;\n if (c == x || adjacent(adj[x], c) || adjacent(adj[b], c)) continue;\n orbit[x][6]++;\n f_22 += deg[a] - 3;\n f_20 += deg[x] - 1;\n f_19 += deg[b] - 1 + deg[c] - 1;\n }\n }\n\n // x = orbit-7 (claw)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (adjacent(adj[a], b)) continue;\n for (int nx3 = nx2 + 1; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (adjacent(adj[a], c) || adjacent(adj[b], c)) continue;\n orbit[x][7]++;\n f_23 += deg[x] - 3;\n f_21 += deg[a] - 1 + deg[b] - 1 + deg[c] - 1;\n }\n }\n }\n\n // solve equations\n orbit[x][72] = C5[x];\n orbit[x][71] = (f_71 - 12 * orbit[x][72]) / 2;\n orbit[x][70] = (f_70 - 4 * orbit[x][72]);\n orbit[x][69] = (f_69 - 2 * orbit[x][71]) / 4;\n orbit[x][68] = (f_68 - 2 * orbit[x][71]);\n orbit[x][67] = (f_67 - 12 * orbit[x][72] - 4 * orbit[x][71]);\n orbit[x][66] = (f_66 - 12 * orbit[x][72] - 2 * orbit[x][71] - 3 * orbit[x][70]);\n orbit[x][65] = (f_65 - 3 * orbit[x][70]) / 2;\n orbit[x][64] = (f_64 - 2 * orbit[x][71] - 4 * orbit[x][69] - 1 * orbit[x][68]);\n orbit[x][63] = (f_63 - 3 * orbit[x][70] - 2 * orbit[x][68]);\n orbit[x][62] = (f_62 - 1 * orbit[x][68]) / 2;\n orbit[x][61] = (f_61 - 4 * orbit[x][71] - 8 * orbit[x][69] - 2 * orbit[x][67]) / 2;\n orbit[x][60] = (f_60 - 4 * orbit[x][71] - 2 * orbit[x][68] - 2 * orbit[x][67]);\n orbit[x][59] = (f_59 - 6 * orbit[x][70] - 2 * orbit[x][68] - 4 * orbit[x][65]);\n orbit[x][58] = (f_58 - 4 * orbit[x][72] - 2 * orbit[x][71] - 1 * orbit[x][67]);\n orbit[x][57] = (f_57 - 12 * orbit[x][72] - 4 * orbit[x][71] - 3 * orbit[x][70] - 1 * orbit[x][67] - 2 * orbit[x][66]);\n orbit[x][56] = (f_56 - 2 * orbit[x][65]) / 3;\n orbit[x][55] = (f_55 - 2 * orbit[x][71] - 2 * orbit[x][67]) / 3;\n orbit[x][54] = (f_54 - 3 * orbit[x][70] - 1 * orbit[x][66] - 2 * orbit[x][65]) / 2;\n orbit[x][53] = (f_53 - 2 * orbit[x][68] - 2 * orbit[x][64] - 2 * orbit[x][63]);\n orbit[x][52] = (f_52 - 2 * orbit[x][66] - 2 * orbit[x][64] - 1 * orbit[x][59]) / 2;\n orbit[x][51] = (f_51 - 2 * orbit[x][68] - 2 * orbit[x][63] - 4 * orbit[x][62]);\n orbit[x][50] = (f_50 - 1 * orbit[x][68] - 2 * orbit[x][63]) / 3;\n orbit[x][49] = (f_49 - 1 * orbit[x][68] - 1 * orbit[x][64] - 2 * orbit[x][62]) / 2;\n orbit[x][48] = (f_48 - 4 * orbit[x][71] - 8 * orbit[x][69] - 2 * orbit[x][68] - 2 * orbit[x][67] - 2 * orbit[x][64] - 2 * orbit[x][61] - 1 * orbit[x][60]);\n orbit[x][47] = (f_47 - 3 * orbit[x][70] - 2 * orbit[x][68] - 1 * orbit[x][66] - 1 * orbit[x][63] - 1 * orbit[x][60]);\n orbit[x][46] = (f_46 - 3 * orbit[x][70] - 2 * orbit[x][68] - 2 * orbit[x][65] - 1 * orbit[x][63] - 1 * orbit[x][59]);\n orbit[x][45] = (f_45 - 2 * orbit[x][65] - 2 * orbit[x][62] - 3 * orbit[x][56]);\n orbit[x][44] = (f_44 - 1 * orbit[x][67] - 2 * orbit[x][61]) / 4;\n orbit[x][43] = (f_43 - 2 * orbit[x][66] - 1 * orbit[x][60] - 1 * orbit[x][59]) / 2;\n orbit[x][42] = (f_42 - 2 * orbit[x][71] - 4 * orbit[x][69] - 2 * orbit[x][67] - 2 * orbit[x][61] - 3 * orbit[x][55]);\n orbit[x][41] = (f_41 - 2 * orbit[x][71] - 1 * orbit[x][68] - 2 * orbit[x][67] - 1 * orbit[x][60] - 3 * orbit[x][55]);\n orbit[x][40] = (f_40 - 6 * orbit[x][70] - 2 * orbit[x][68] - 2 * orbit[x][66] - 4 * orbit[x][65] - 1 * orbit[x][60] - 1 * orbit[x][59] - 4 * orbit[x][54]);\n orbit[x][39] = (f_39 - 4 * orbit[x][65] - 1 * orbit[x][59] - 6 * orbit[x][56]) / 2;\n orbit[x][38] = (f_38 - 1 * orbit[x][68] - 1 * orbit[x][64] - 2 * orbit[x][63] - 1 * orbit[x][53] - 3 * orbit[x][50]);\n orbit[x][37] = (f_37 - 2 * orbit[x][68] - 2 * orbit[x][64] - 2 * orbit[x][63] - 4 * orbit[x][62] - 1 * orbit[x][53] - 1 * orbit[x][51] - 4 * orbit[x][49]);\n orbit[x][36] = (f_36 - 1 * orbit[x][68] - 2 * orbit[x][63] - 2 * orbit[x][62] - 1 * orbit[x][51] - 3 * orbit[x][50]);\n orbit[x][35] = (f_35 - 1 * orbit[x][59] - 2 * orbit[x][52] - 2 * orbit[x][45]) / 2;\n orbit[x][34] = (f_34 - 1 * orbit[x][59] - 2 * orbit[x][52] - 1 * orbit[x][51]) / 2;\n orbit[x][33] = (f_33 - 1 * orbit[x][67] - 2 * orbit[x][61] - 3 * orbit[x][58] - 4 * orbit[x][44] - 2 * orbit[x][42]) / 2;\n orbit[x][32] = (f_32 - 2 * orbit[x][66] - 1 * orbit[x][60] - 1 * orbit[x][59] - 2 * orbit[x][57] - 2 * orbit[x][43] - 2 * orbit[x][41] - 1 * orbit[x][40]) / 2;\n orbit[x][31] = (f_31 - 2 * orbit[x][65] - 1 * orbit[x][59] - 3 * orbit[x][56] - 1 * orbit[x][43] - 2 * orbit[x][39]);\n orbit[x][30] = (f_30 - 1 * orbit[x][67] - 1 * orbit[x][63] - 2 * orbit[x][61] - 1 * orbit[x][53] - 4 * orbit[x][44]);\n orbit[x][29] = (f_29 - 2 * orbit[x][66] - 2 * orbit[x][64] - 1 * orbit[x][60] - 1 * orbit[x][59] - 1 * orbit[x][53] - 2 * orbit[x][52] - 2 * orbit[x][43]);\n orbit[x][28] = (f_28 - 2 * orbit[x][65] - 2 * orbit[x][62] - 1 * orbit[x][59] - 1 * orbit[x][51] - 1 * orbit[x][43]);\n orbit[x][27] = (f_27 - 1 * orbit[x][59] - 1 * orbit[x][51] - 2 * orbit[x][45]) / 2;\n orbit[x][26] = (f_26 - 2 * orbit[x][67] - 2 * orbit[x][63] - 2 * orbit[x][61] - 6 * orbit[x][58] - 1 * orbit[x][53] - 2 * orbit[x][47] - 2 * orbit[x][42]);\n orbit[x][25] = (f_25 - 2 * orbit[x][66] - 2 * orbit[x][64] - 1 * orbit[x][59] - 2 * orbit[x][57] - 2 * orbit[x][52] - 1 * orbit[x][48] - 1 * orbit[x][40]) / 2;\n orbit[x][24] = (f_24 - 4 * orbit[x][65] - 4 * orbit[x][62] - 1 * orbit[x][59] - 6 * orbit[x][56] - 1 * orbit[x][51] - 2 * orbit[x][45] - 2 * orbit[x][39]);\n orbit[x][23] = (f_23 - 1 * orbit[x][55] - 1 * orbit[x][42] - 2 * orbit[x][33]) / 4;\n orbit[x][22] = (f_22 - 2 * orbit[x][54] - 1 * orbit[x][40] - 1 * orbit[x][39] - 1 * orbit[x][32] - 2 * orbit[x][31]) / 3;\n orbit[x][21] = (f_21 - 3 * orbit[x][55] - 3 * orbit[x][50] - 2 * orbit[x][42] - 2 * orbit[x][38] - 2 * orbit[x][33]);\n orbit[x][20] = (f_20 - 2 * orbit[x][54] - 2 * orbit[x][49] - 1 * orbit[x][40] - 1 * orbit[x][37] - 1 * orbit[x][32]);\n orbit[x][19] = (f_19 - 4 * orbit[x][54] - 4 * orbit[x][49] - 1 * orbit[x][40] - 2 * orbit[x][39] - 1 * orbit[x][37] - 2 * orbit[x][35] - 2 * orbit[x][31]);\n orbit[x][18] = (f_18 - 1 * orbit[x][59] - 1 * orbit[x][51] - 2 * orbit[x][46] - 2 * orbit[x][45] - 2 * orbit[x][36] - 2 * orbit[x][27] - 1 * orbit[x][24]) / 2;\n orbit[x][17] = (f_17 - 1 * orbit[x][60] - 1 * orbit[x][53] - 1 * orbit[x][51] - 1 * orbit[x][48] - 1 * orbit[x][37] - 2 * orbit[x][34] - 2 * orbit[x][30]) / 2;\n orbit[x][16] = (f_16 - 1 * orbit[x][59] - 2 * orbit[x][52] - 1 * orbit[x][51] - 2 * orbit[x][46] - 2 * orbit[x][36] - 2 * orbit[x][34] - 1 * orbit[x][29]);\n orbit[x][15] = (f_15 - 1 * orbit[x][59] - 2 * orbit[x][52] - 1 * orbit[x][51] - 2 * orbit[x][45] - 2 * orbit[x][35] - 2 * orbit[x][34] - 2 * orbit[x][27]);\n }\n\n return orbit;\n }",
"protected abstract int countNeighbors(int x, int y);",
"int getNumSampleDimensions();",
"private void countCells() {\n\t\tvisitedCells = 0;\n\t\ttotalCells = 0;\n\t\tfor (int ix = 0; ix < maxCells_x; ix++) {\n\t\t\tfor (int iy = 0; iy < maxCells_y; iy++) {\n\t\t\t\ttotalCells++;\n\t\t\t\tif (cell[ix][iy] == 1) {\n\t\t\t\t\tvisitedCells++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public int getVisitedCells() \r\n\t{\r\n\t\tint lastCell = path.size() - 1;\r\n\t\tint visitedCells = path.get(lastCell).getDiscoveryTime() + 1;\r\n\t\treturn visitedCells;\r\n\t}",
"int sizeOfTrafficVolumeArray();",
"int sizeOfFeatureArray();",
"int sizeOfFeatureArray();",
"int imageCount();",
"int getCellsCount();",
"int getEdgeCount();",
"public int pixelCount()\n {\n int pixelCount = cat.getWidth() * cat.getHeight();\n return pixelCount;\n\n }",
"private LinkedList<int[]> neighborFinder(){\n LinkedList<int[]> neighborhood= new LinkedList<>();\n int[] curr_loc = blankFinder();\n int x = curr_loc[0];\n int y = curr_loc[1];\n if(x >0){\n neighborhood.add(new int[]{x-1, y});\n }\n if(x < n-1){\n neighborhood.add(new int[]{x+1, y});\n }\n if(y > 0){\n neighborhood.add(new int[]{x, y-1});\n }\n if(y < n-1) {\n neighborhood.add(new int[]{x, y+1});\n }\n\n\n return neighborhood;\n }",
"private int getNeighborCount(int x, int y, Assignment assignment){\n\t\tint neighbors = 0;\n\n\t\t// try neighbor up\n\t\tif(isNeighborAt(x-1, y, assignment))\n\t\t\tneighbors++;\n\n\t\t// try neighbor up-left\n\t\tif(isNeighborAt(x-1, y-1, assignment))\n\t\t\tneighbors++;\n\n\t\t// try neighbor up-right\n\t\tif(isNeighborAt(x-1, y+1, assignment))\n\t\t\tneighbors++;\n\n\t\t// try neighbor down\n\t\tif(isNeighborAt(x+1, y, assignment))\n\t\t\tneighbors++;\n\n\t\t// try neighbor down-left\n\t\tif(isNeighborAt(x+1, y-1, assignment))\n\t\t\tneighbors++;\n\n\t\t// try neighbor down-right\n\t\tif(isNeighborAt(x+1, y+1, assignment))\n\t\t\tneighbors++;\n\n\t\t// try neighbor left\n\t\tif(isNeighborAt(x, y-1, assignment))\n\t\t\tneighbors++;\n\n\t\t// try neighbor right\n\t\tif(isNeighborAt(x, y+1, assignment))\n\t\t\tneighbors++;\n\n\t\treturn neighbors;\n\t}",
"public int getNumEdges();",
"int numOfBlocks() {\n return ni * nj * nk;\n }",
"public int getNumberOfImages() {\n\n\t\tshort zdim = getZDim();\n\t\tzdim = zdim > 0 ? zdim : 1;\n\n\t\tshort slices = getNumberOfSlices();\n\t\tslices = slices > 0 ? slices : 1;\n\n\t\tshort intervals = getNumberOfGatedIntervals();\n\t\tintervals = intervals > 0 ? intervals : 1;\n\n\t\treturn zdim * slices * intervals;\n\n\t}",
"public int getNumFrames() {\n if ( dofs == null ) return 0;\n return dofs.length;\n }",
"int getBurstNImages();",
"int getMonstersCount();",
"int getMonstersCount();",
"int getNumberOfEdges();",
"int getInterleavedAxisCount();",
"public Object getNumberOfConnectedComponents() {\r\n\t\tConnectivityInspector<Country, DefaultEdge> inspector=new ConnectivityInspector<Country, DefaultEdge>(graph);\r\n\t\treturn inspector.connectedSets().size();\r\n\t}",
"int sizeOfNoPassingZoneArray();",
"private Integer[] getNumberOfCards() {\n Integer[] numberOfCards = new Integer[players.length];\n\n for (int i = 0; i < players.length; i++) {\n numberOfCards[i] = players[i].getHand().length;\n }\n\n return numberOfCards;\n }",
"@Override\n\tpublic int numElements() {\n\t\treturn stencil.holes.length;\n\t}",
"public Integer[] sMapDimensions() {\n\t\tDualSteenrod AmodAn = new DualSteenrod(DualSteenrod.getDualAModAnGenerators(N));\n\t\tint topClassDim = Tools.milnorDimension(topClass());\n\t\tInteger[] AmodAnKeys = Tools.keysToSortedArray(AmodAn.getMonomialsAtOrBelow(topClassDim));\n\t\tMap<Integer, List<int[]>> filteredMonomials = getMonomialsByFilter(AmodAnKeys);\n\t\treturn Tools.keysToSortedArray(filteredMonomials);\n\t}",
"private int liveNeighbours(int i,int j) {\n\t\tint count = 0;\n\t\tif (button[i - 1][j - 1].getBackground() == Color.yellow) {\n\t\t\tcount++;\n\t\t}\n\t\tif (button[i - 1][j].getBackground() == Color.yellow) {\n\t\t\tcount++;\n\t\t}\n\t\tif (button[i - 1][j + 1].getBackground() == Color.yellow) {\n\t\t\tcount++;\n\t\t}\n\t\tif (button[i][j - 1].getBackground() == Color.yellow) {\n\t\t\tcount++;\n\t\t}\n\t\tif (button[i][j + 1].getBackground() == Color.yellow){\n\t\t\tcount++;\n\t\t}\n\t\tif (button[i + 1][ j - 1].getBackground() == Color.yellow){\n\t\t\tcount++;\n\t\t}\n\t\tif (button[i + 1][j].getBackground() == Color.yellow) {\n\t\t\tcount++;\n\t\t}\n\t\tif (button[i + 1][j + 1].getBackground() == Color.yellow) {\n\t\t\tcount++;\n\t\t}\n\t\treturn count;\n\t}",
"int getChunksLocationCount();",
"int getNodesCount();",
"int getNodesCount();",
"int sizeOfDecisionSightDistanceArray();",
"int getCameraCount();",
"int getBlockNumbersCount();",
"public int sizeOfCornerArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(CORNER$12);\r\n }\r\n }",
"private void getNeighbors() {\n\t\tRowIterator iterator = currentGen.iterateRows();\n\t\twhile (iterator.hasNext()) {\n\t\t\tElemIterator elem = iterator.next();\n\t\t\twhile (elem.hasNext()) {\n\t\t\t\tMatrixElem mElem = elem.next();\n\t\t\t\tint row = mElem.rowIndex();\n\t\t\t\tint col = mElem.columnIndex();\n\t\t\t\tint numNeighbors = 0;\n\t\t\t\tfor (int i = -1; i < 2; i++) { // loops through row above,\n\t\t\t\t\t\t\t\t\t\t\t\t// actual row, and row below\n\t\t\t\t\tfor (int j = -1; j < 2; j++) { // loops through column left,\n\t\t\t\t\t\t\t\t\t\t\t\t\t// actual column, coloumn\n\t\t\t\t\t\t\t\t\t\t\t\t\t// right\n\t\t\t\t\t\tif (!currentGen.elementAt(row + i, col + j).equals(\n\t\t\t\t\t\t\t\tfalse)) // element is alive, add 1 to neighbor\n\t\t\t\t\t\t\t\t\t\t// total\n\t\t\t\t\t\t\tnumNeighbors += 1;\n\t\t\t\t\t\telse { // element is not alive, add 1 to its total\n\t\t\t\t\t\t\t\t// number of neighbors\n\t\t\t\t\t\t\tInteger currentNeighbors = (Integer) neighbors\n\t\t\t\t\t\t\t\t\t.elementAt(row + i, col + j);\n\t\t\t\t\t\t\tneighbors.setValue(row + i, col + j,\n\t\t\t\t\t\t\t\t\tcurrentNeighbors + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tneighbors.setValue(row, col, numNeighbors - 1); // -1 to account\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// for counting\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// itself as a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// neighbor\n\t\t\t}\n\t\t}\n\t}",
"int getXYPairCount();",
"int getBlockLocationsCount();",
"private static int getNumTotalEdges(){\r\n\t\t//return getMutMap().keySet().size();\r\n\t\treturn numCols+1;\r\n\t}",
"public int numEdges();",
"int getNumberOfStonesOnBoard();",
"public int getNumberOfEdges();",
"int getImagesByTransformCount();",
"int numOfPillars() {\n // there are one more coordinate line than blocks in each direction\n // since each block must be hinged on a coordinate line on each side\n return (ni+1) * (nj+1);\n }",
"int getNumSegments();",
"public ArrayList<Integer> getNeighbours() {\n\t\tArrayList<Integer> result = new ArrayList<Integer>();\n\n\t\tfor (Border curBorder: allBorder) {\n\t\t\tresult.add(curBorder.countryID);\n\t\t}\n\n\t\treturn result;\n\t}",
"int getChunksCount();",
"int getChunksCount();",
"int sizeOfClassificationArray();",
"static int[] countBlock() throws java.io.IOException {\n\t\tScanner fileScanner = new Scanner(new FileReader(\"level.txt\")); // load the .txt file that contains the level\n\t\tint width = fileScanner.nextInt(); // initialize with width using the first integer of the first line...\n\t\tint height = fileScanner.nextInt(); // ... second integer of the first line\n\t\tString inputText = fileScanner.nextLine(); // read in all subsequent characters after the first line\n\n\t\tfor(int row = 0; row < height; row++){ // get the count of wall blocks\n\t\t\tinputText = fileScanner.nextLine(); \n\t\t\tfor (int column = 0; column < inputText.length(); column++){\n\t\t\t\tchar ch = inputText.charAt(column);\n\t\t\t\tswitch(ch){\n\t\t\t\t\tcase 'W':\n\t\t\t\t\t\tcountElements[0]++; // for every wall element, add 1 to the wall counter in the array\n\t\t\t\t\t\tbreak;\t\n\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcountElements[1]++; // for every dirt element, add 1 to the dirt counter in the array\n\t\t\t\t\t\tcountElements[3]++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tcountElements[2]++;\n\t\t\t\t\t\tcountElements[3]++;\n\t\t\t\t\t\tbreak; // if not either a wall or dirt, then just continue on\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t\tfileScanner.close();\n\t\treturn new int[] {countElements[0], countElements[1], countElements[2], countElements[3]}; // return the array elements after counting through the entire map\n\t}",
"@Override\n\tpublic int[] numbers() {\n\t\tint length = squarelotron.length;\n\t\t//sets the first count to 0\n\t\tint count = 0;\n\t\t//loops through each outer and then inner variable in the squarelotron and records a count for each\n\t\tfor(int i = 0; i < length; i++){\n\t\t\tfor(int j = 0; j < squarelotron[i].length; j++){\n\t\t\t\tcount = count +1;\n\t\t\t}\n\t\t}\n\t\t//sets count2 as zero, this will do the same thing as the original count but use it as an index marker for the array\n\t\tint count2 = 0;\n\t\t//defines a new array having the length of the total number of variables\n\t\tint[] array = new int[count];\n\t\t//loops through the squarelotron and stores each variable in the array\n\t\tfor(int a = 0; a < length; a++){\n\t\t\tfor(int j = 0; j < squarelotron[a].length; j++){\n\t\t\t\tint d = squarelotron[a][j];\n\t\t\t\tarray[count2]=d;\n\t\t\t\tcount2 = count2 + 1;\n\t\t\t}\n\t\t}\n\t\treturn array;\n\t}",
"public int getNumberOfBlocks(ImagePlus img, int m, int n);",
"int getIndicesCount();",
"int sizeOfContactMeansArray();",
"public int numHunks() {\n return jniNumHunks(getRawPointer());\n }",
"public static List<Integer> getPondSizes(int[][] land) {\n List<Integer> pondSizes = new ArrayList<>();\n if (land == null || land.length == 0) {\n return pondSizes;\n }\n boolean[][] visited = new boolean[land.length][land[0].length];\n\n for (int row = 0; row < land.length; row++) {\n for (int column = 0; column < land[row].length; column++) {\n if (land[row][column] == 0 && !visited[row][column]) {\n int pondSize = computeSize(land, visited, row, column);\n pondSizes.add(pondSize);\n }\n }\n }\n return pondSizes;\n }",
"public int getCount() {\n return cp.getmImageIds(gridType).length;\n\n }",
"int getNumberOfTextureCoordinates();",
"public int getNumPageFrames() {\n return ram.length;\n }",
"public int sizeOfWatershedsArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(WATERSHEDS$4);\r\n }\r\n }",
"private static int getNoOfWays() {\n int[][] arr = new int[4][4];\n\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 4; j++) {\n if(i == 0 || j == 0) {\n arr[i][j] = 1;\n } else {\n arr[i][j] = arr[i][j - 1] + arr[i - 1][j];\n }\n }\n }\n return arr[3][3];\n }",
"public int getNumVertices();",
"public abstract int getNeighboursNumber(int index);",
"public int getNumberOfLivingNeighbours(int x, int y){\n int living = 0;\n\n for (int i = x - 1; i <= x + 1; i++) {\n for (int j = y - 1; j <= y + 1; j++) {\n if (isAlive(i, j)) {\n living++;\n }\n }\n }\n\n if(isAlive(x, y))\n living--; //Remove 1 from count if orig coordinate\n\n return living;\n }",
"int getChannelStatisticsCount();",
"public int getFaceCount() {\n \tif (indicesBuf == null)\n \t\treturn 0;\n \tif(STRIPFLAG){\n \t\treturn indicesBuf.asShortBuffer().limit();\n \t}else{\n \t\treturn indicesBuf.asShortBuffer().limit()/3;\n \t}\n }",
"public int getNumMarkers() {\n if ( dofs == null ) return 0;\n return dofs[0].length/3;\n }",
"public int size() {\n\t\treturn nvPairs.size() >> 1;\n\t}",
"private void computeParentCount() {\n parentCountArray = new int[numNodes+1];\n for(int i = 0; i < parentCountArray.length;i++){\n parentCountArray[i] = 0;\n }\n for(int i = 0; i < adjMatrix.length; i++){\n int hasParentCounter = 0;\n for(int j = 0; j < adjMatrix[i].length; j++){\n if(allNodes[i].orphan){\n hasParentCounter = -1;\n break;\n }\n if(adjMatrix[j][i] == 1) {\n hasParentCounter++;\n }\n }\n parentCountArray[i] = hasParentCounter;\n }\n\n\n for(int i = 0; i < adjMatrix.length;i++){\n for(int j =0; j < adjMatrix[i].length;j++){\n if(adjMatrix[j][i] == 1){\n if(allNodes[j].orphan && allNodes[i].orphan == false){\n parentCountArray[i]--;\n }\n }\n }\n }\n\n\n\n\n for(int i = 0; i < parentCountArray.length; i++){\n // System.out.println(i + \" has parent \" +parentCountArray[i]);\n }\n\n\n\n\n\n }",
"private int numberOfComponents(ArrayList<Integer>[] adj) {\n\t\t\t\t\n\t\tint n = adj.length;\n\t\tvisited = new boolean[n]; //default is false\n\t\tCCnum = new int[n];\n\t\tDFS(adj);\n\t\t\n\t\treturn cc;\n }",
"protected int[] GetConnectedJunctions() {\n\t\tint Size = this.JunctionsConnectedList.length;\n\t\tint[] ReturnArray = new int[Size];\n\n\t\tfor(int i=0; i<Size; i++) {\n\t\t\tReturnArray[i] = this.JunctionsConnectedList[i][0];\n\t\t}\n\n\t\treturn ReturnArray;\n\t}",
"public int getFrameCount() {\n return frameCount;\n }",
"public static int getCount()\n\t{\n\t\treturn projectileCount;\n\t}",
"protected int count_nbr_in_state ( int state )\r\n {\r\n OSPF_Interface oif;\r\n int count = 0;\r\n int i, j; \r\n int if_no, nbr_no;\r\n \r\n if_no = if_list.size();\r\n for ( i = 0; i < if_no; i++) {\r\n oif = (OSPF_Interface) if_list.elementAt(i);\r\n nbr_no = oif.neighbor_list.size();\r\n for ( j = 0; j < nbr_no; j++) {\r\n OSPF_Neighbor nbr = (OSPF_Neighbor) oif.neighbor_list.elementAt(j);\r\n if (nbr.state == state)\r\n count++;\r\n }\r\n }\r\n return count;\r\n }",
"public int getCellsUniverseSize(){\r\n return cellsUniverse.size();\r\n }",
"int sizeOfPlanFeatureArray();",
"int getPointsCount();",
"@Override\n\tpublic int numCubies () {\n\t\treturn state_.length;\n\t}",
"int getSnInfoCount();",
"int getSnInfoCount();",
"int getSnInfoCount();"
]
| [
"0.67195195",
"0.6573042",
"0.6535236",
"0.6500869",
"0.64436007",
"0.6391755",
"0.63866913",
"0.6358658",
"0.6303811",
"0.6276243",
"0.6239206",
"0.6234917",
"0.6198366",
"0.61945957",
"0.61905295",
"0.61755687",
"0.6153684",
"0.6080364",
"0.60651314",
"0.60628784",
"0.60545045",
"0.6048727",
"0.60460347",
"0.6045594",
"0.6037692",
"0.6037692",
"0.60356754",
"0.60259765",
"0.5956029",
"0.595394",
"0.5950557",
"0.59495246",
"0.59493166",
"0.5944931",
"0.59220034",
"0.5921481",
"0.59073925",
"0.58899933",
"0.58899933",
"0.5886898",
"0.5865804",
"0.5858975",
"0.5857184",
"0.5845913",
"0.5845677",
"0.5844895",
"0.5842228",
"0.5839172",
"0.5831659",
"0.5831659",
"0.58256465",
"0.58228683",
"0.58204573",
"0.57990533",
"0.5795786",
"0.57891256",
"0.57833064",
"0.5782758",
"0.57769644",
"0.57748103",
"0.5774353",
"0.5771903",
"0.57705224",
"0.57631904",
"0.5753791",
"0.5751344",
"0.5751344",
"0.57504004",
"0.57400995",
"0.5738418",
"0.57347715",
"0.57345724",
"0.5734557",
"0.5730928",
"0.57299984",
"0.5727467",
"0.5726187",
"0.5719431",
"0.5713453",
"0.5709778",
"0.570292",
"0.56782776",
"0.5678097",
"0.567091",
"0.5665789",
"0.56632686",
"0.5654671",
"0.56491905",
"0.5642608",
"0.56408286",
"0.56348884",
"0.56321484",
"0.56291676",
"0.56188154",
"0.561496",
"0.5613329",
"0.5612394",
"0.5597771",
"0.5597771",
"0.5597771"
]
| 0.59290636 | 34 |
TODO Autogenerated method stub | public void showemplist() throws Exception {
Log.info("*******started execution of showemplist() in TC_hrms_102***********");
Actions action = new Actions(g.driver);
action.moveToElement(g.driver.findElement(By.linkText("PIM"))).perform();
Thread.sleep(3000);
//clicking on addemployee submenu link
g.driver.findElement(By.id("menu_pim_viewEmployeeList")).click();
Thread.sleep(3000);
System.out.println("Clicked on Employee List submenu");
Log.info("*******end of execution of showemplist() in TC_hrms_102***********");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public UserVO login(LoginUserVO user) {
return login.login(user);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
Add an optional teaser for the full blog post. | public Builder addVenue(final String venue) {
mVenue = venue;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String getTeaserTitle() {\n String tt = super.getTeaserTitle();\n if (isBlank(tt)) {\n tt = getTitle();\n }\n return tt;\n }",
"public void createPost( BlogPost post );",
"public void testBlogEntryHasNoTags() throws Exception {\n blogEntry.setExcerpt(\"Excerpt - here is some text\");\n blogEntry.setBody(\"Body - here is some text\");\n context.setMedia(ContentDecoratorContext.HTML_PAGE);\n decorator.decorate(context, blogEntry);\n assertEquals(\"Excerpt - here is some text\", blogEntry.getExcerpt());\n assertEquals(\"Body - here is some text\", blogEntry.getBody());\n }",
"public void insetPostConImg(Post post) {\n\t\tpm.insert(post);\r\n\t}",
"public BlogPostView() {\n this.blogPost = new BlogPost();\n }",
"@Override\n\tpublic Post add(Post entity) {\n\t\treturn null;\n\t}",
"void insertDetailCaptionByPost(Detail detail);",
"@Override\n public void localRender(OrchidContext oc) throws OrchidException, IOException\n {\n super.localRender(oc);\n\n if (parentBlogLink == null) {\n Device device = oc.getDevice();\n device.println(\"Warning: This blog posting is not associated with a blog.\");\n } else {\n parentBlogLink.render(oc);\n }\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_blog_post, container, false);\n\n savedInstanceState = getArguments();\n\n if (savedInstanceState != null) {\n myBlogPost = (BlogPost) savedInstanceState.getSerializable(\"BlogPost\");\n\n TextView title = v.findViewById(R.id.fragBlog_blogTitle_textView);\n title.setText(myBlogPost.getTitle());\n// Log.wtf(\"WRONG\", b.getAuthor());\n\n TextView publishDate = v.findViewById(R.id.fragBlog_publishDate_textView);\n publishDate.setText(myBlogPost.getPubDate());\n\n TextView fullTeaser = v.findViewById(R.id.small_teaser);\n fullTeaser.setText(Html.fromHtml(myBlogPost.getTeaser()));\n\n Button b = (Button) v.findViewById(R.id.full_teaser);\n b.setOnClickListener(this::viewFullPost);\n\n }\n\n\n return v;\n }",
"protected void addPostButton(Integer hoverButtonID) {\n addPostButton(hoverButtonID, null);\n }",
"public void addPostingToActiveTopic() {\n if (activeTopic == null || postingText.trim().isEmpty()) {\n return;\n }\n\n Date creationDate = new Date();\n\n try {\n forumService.addPostingToTopic(\n activeTopic,\n vFilter.filter(postingText),\n currentUser, creationDate);\n } catch (Exception e) {\n logger.error(ExceptionUtils.getStackTrace(e));\n }\n postingText = \"\";\n }",
"public AdvertDetailsDomotekaTeaserViewImpl(@NotNull View view, @Nullable AdvertDetailsTeaserView.Listener listener) {\n super(view, listener);\n Intrinsics.checkNotNullParameter(view, \"view\");\n this.o = view;\n this.p = listener;\n }",
"private final void m53469a(List<Teaser> list) {\n list = list.isEmpty() ? null : (Teaser) list.get(0);\n if (list == null) {\n list = this.f44073b;\n if (list == null) {\n C2668g.b(\"teaserView\");\n }\n list.setVisibility(8);\n return;\n }\n TextView textView = this.f44073b;\n if (textView == null) {\n C2668g.b(\"teaserView\");\n }\n textView.setText(list.getValue());\n list = this.f44073b;\n if (list == null) {\n C2668g.b(\"teaserView\");\n }\n list.setVisibility(0);\n }",
"@Override\r\n\tpublic void editPost(Integer postID, String message, String posterName,\r\n\t\t\tString[] imageName, String[] imageID) {\n\t\t\r\n\t}",
"public void setBlobSection(BlogSection section);",
"@Override\r\n\tpublic void createPost(Integer postID, Integer parentPostID,\r\n\t\t\tString posterName, String message, String[] imageName,\r\n\t\t\tString[] imageID) {\n\t\t\r\n\t}",
"public void addMainArtefact(NuxeoDocArtefact nuxeoDocArtifact) {\n\t\tthis.mainArtefact = nuxeoDocArtifact;\n\t}",
"Builder addDetailedDescription(Article value);",
"public void testSetTweet_nullTweetPermalink() {\n final BaseTweetView view = createView(context, TestFixtures.TEST_TWEET);\n view.setTweet(null);\n Assert.assertThat(view.getPermalinkUri(), nullValue());\n }",
"public void setPoster (String s) {\n poster = s;\n }",
"@Override\r\n\tpublic void addPost(Post post) {\n\t\tgetHibernateTemplate().save(post);\r\n\t}",
"public void setBlogPost(BlogPost blogPost) {\n this.blogPost = blogPost;\n }",
"@Override\n\tpublic void showPostLocation() {\n\t\t\n\t}",
"public void addPost(Post post) {\n if (this.posts == null) {\n this.posts = new ArrayList<>();\n }\n this.posts.add(post);\n }",
"public static void addedPost(PostXML postXML) {\n }",
"public final void startPostActivity(Post post) {\r\n EventTracker eventTracker2 = this.eventTracker;\r\n if (eventTracker2 == null) {\r\n Intrinsics.throwUninitializedPropertyAccessException(\"eventTracker\");\r\n }\r\n eventTracker2.logCustom(\"View Post\", new CustomAttributes().put(\"from\", \"recommend\"));\r\n ActionLogUtil actionLogUtil2 = this.actionLogUtil;\r\n if (actionLogUtil2 == null) {\r\n Intrinsics.throwUninitializedPropertyAccessException(\"actionLogUtil\");\r\n }\r\n ActionLogUtil.defineCurrentWindow$default(actionLogUtil2, \"Personalized_Recommend\", \"\", 0, 4, null);\r\n Intent intent = new Intent(this, PostActivity.class);\r\n intent.putExtra(\"post_id\", post.getId());\r\n Image coverImage = post.getCoverImage();\r\n intent.putExtra(\"post_cover\", coverImage != null ? coverImage.getUrl() : null);\r\n ActivityOptionsCompat makeCustomAnimation = ActivityOptionsCompat.makeCustomAnimation(this, C0001R$anim.slide_right, C0001R$anim.fade_out);\r\n Intrinsics.checkExpressionValueIsNotNull(makeCustomAnimation, \"ActivityOptionsCompat.ma…e_right, R.anim.fade_out)\");\r\n startActivity(intent, makeCustomAnimation.toBundle());\r\n }",
"public static GridPane showPostDetails(Post post) {\n\t\tGridPane grid = new GridPane();\n\t\tgrid.setHgap(10);\n\t\tgrid.setVgap(10);\n\t\tgrid.setPadding(new Insets(20, 20, 20, 20));\n\t\t\n\t\tString imagePath = post.getImagePath();\n\t\tif(imagePath.equalsIgnoreCase(\"none\") || imagePath.isEmpty()) {\n\t\t\timagePath = \"../../Images/No_image_available.jpg\";\n\t\t}\n\t\tImageView image = new ImageView(new Image(\"file:\" + imagePath, 300, 300, false, false));\n\t\tgrid.add(image, 0, 0);\n\t\t\n\t\tButton uploadImage = new Button(\"Upload Image\");\n\t\tuploadImage.setOnAction(PostDetailsController.uploadImageHandler(postStage, post));\n\t\tHBox hbBtn = new HBox(300);\n\t\thbBtn.getChildren().add(uploadImage);\n\t\thbBtn.setAlignment(Pos.BOTTOM_CENTER);\n\t\tgrid.add(hbBtn, 0, 1);\n\t\t\n\t\tVBox details = new VBox();\n\t\tdetails.setSpacing(10);\n\t\t\n\t\tdetails.getChildren().add(getLabel(\"Post ID: \", post.getId(), false, \"string\"));\n\t\tdetails.getChildren().add(getLabel(\"Title: \", post.getTitle(), true, \"string\"));\n\t\tdetails.getChildren().add(getLabel(\"Description: \", post.getDescription(), true, \"string\"));\n\t\tdetails.getChildren().add(getLabel(\"Creator ID: \", post.getCid(), false, \"string\"));\n\t\tdetails.getChildren().add(getLabel(\"Status: \", post.getStatus(), false, \"string\"));\n\t\tif(post instanceof Event) {\n\t\t\tdetails.getChildren().add(getLabel(\"Venue: \", ((Event) post).getVenue(), true, \"string\"));\n\t\t\tdetails.getChildren().add(getLabel(\"Date: \", ((Event) post).getDate(), true, \"date\"));\n\t\t\tdetails.getChildren().add(getLabel(\"Capacity: \", Integer.toString(((Event) post).getCapacity()), true, \"int\"));\n\t\t\tdetails.getChildren().add(getLabel(\"Attendee Count: \", Integer.toString(((Event) post).getAttcount()), false, \"int\"));\n\t\t}\n\t\telse if(post instanceof Job) {\n\t\t\tdetails.getChildren().add(getLabel(\"Proposed Price: \", Double.toString(((Job) post).getProprice()), true, \"double\"));\n\t\t\tdetails.getChildren().add(getLabel(\"Lowest Offer: \", Double.toString(((Job) post).getLowoffer()), false, \"double\"));\n\t\t}\n\t\telse {\n\t\t\tdetails.getChildren().add(getLabel(\"Highest Offer: \", Double.toString(((Sale) post).getHighoffer()), false, \"double\"));\n\t\t\tdetails.getChildren().add(getLabel(\"Minimum Raise: \", Double.toString(((Sale) post).getMinraise()), true, \"double\"));\n\t\t\tdetails.getChildren().add(getLabel(\"Asking Price: \", Double.toString(((Sale) post).getAskprice()), true, \"double\"));\n\t\t}\n\t\tgrid.add(details, 3, 0);\n\t\t\n\t\tButton closePost = new Button(\"Close Post\");\n\t\tclosePost.setOnAction(PostDetailsController.closePostHandler(userId));\n\t\t\n\t\tButton deletePost = new Button(\"Delete Post\");\n\t\tdeletePost.setOnAction(PostDetailsController.deletePostHandler(userId));\n\t\t\n\t\tButton savePost = new Button(\"Save(after edit)\");\n\t\tsavePost.setOnAction(PostDetailsController.savePostHandler(userId, post));\n\t\t\n\t\tRegion region1 = new Region();\n HBox.setHgrow(region1, Priority.ALWAYS);\n Region region2 = new Region();\n HBox.setHgrow(region2, Priority.ALWAYS);\n\t\tHBox btn = new HBox(closePost, region1, deletePost, region2, savePost);\n\t\t\n\t\tbtn.setAlignment(Pos.BOTTOM_CENTER);\n\t\tgrid.add(btn, 3, 1, 10, 1);\n\t\t\n\t\treturn grid;\n\t}",
"public LatestPost() {\n\t}",
"public Post(String user, String postContent, String webAddress) {\n this.orderPosted = nextOrderPosted;\n nextOrderPosted++;\n this.user = user;\n this.postContent = postContent;\n this.webAddress = webAddress;\n// this.myAuthor=myAuthor;\n\n }",
"protected void newPost() {\n\t\tIntent intent = new Intent(this, EditTopicActivity.class);\n\t\tintent.putExtra(EditPostActivity.IS_NEW, true);\n\n\t\tstartActivity(intent);\n\t}",
"public void setPosterUrl(String posterUrl) {\n this.posterUrl = posterUrl;\n }",
"Builder addAlternativeHeadline(Text value);",
"@Override\r\n\tpublic void submit(Integer uid,Integer tid,String text, String title, String author) {\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tint count = 0;\r\n\t\tString maincontent = \"\";\r\n\t\t String regEx = \"[\\\\u4e00-\\\\u9fa5]\";\r\n\t\t Pattern p = Pattern.compile(regEx);\r\n\t\t Matcher m = p.matcher(text);\r\n\t\t while (m.find()&&count<150) {\r\n\t\t\t count++;\r\n\t\t\t maincontent += m.group(0);\r\n\t\t }\r\n\t\t\r\n\t\tDate date = new Date();\r\n\t\tBlog blog = new Blog(uid,title,text,maincontent,0,0,date,author,tid);\r\n\t\tthis.getBlogDao().save(blog);\r\n\t}",
"@Override\n public void addArticle(Article article) {\n\n remoteDataSource.addArticle(article);\n\n }",
"private void setupView() {\n view.setName(advertisement.getTitle());\n view.setPrice(advertisement.getPrice());\n view.setDescription(advertisement.getDescription());\n view.setDate(advertisement.getDatePublished());\n view.setTags(advertisement.getTags());\n setCondition();\n if (advertisement.getImageUrl() != null) { //the url here is null right after upload\n view.setImageUrl(advertisement.getImageUrl());\n }\n }",
"public void fillEntry(BlogEntry entry) {\n\t\tif(this.id.isEmpty()) {\n\t\t\tentry.setId(null);\n\t\t} else {\n\t\t\tentry.setId(Long.valueOf(this.id));\n\t\t}\n\t\t\n\t\tentry.setLastModifiedAt(new Date());\n\t\tentry.setTitle(this.title);\n\t\tentry.setText(this.text);\n\t}",
"Builder addDetailedDescription(Article.Builder value);",
"@Override\n public String toString() {\n return \"Post number: \" + this.id + \"\\n\" +\n this.content + \"\\n\" +\n \"Written by: \" + this.user.getUsername() + \"\\n\" +\n //The expression below checks if the url\n //field is null. If not, it displays the url.\n //If it is, it just displays an empty string\n \"URL: \" + (this.url != null ? this.url : \"\");\n\n }",
"public int add(Post post) throws SQLException {\r\n\tString sql = \"INSERT INTO posts VALUES ( null, ?, ?, ?, ? )\";\r\n\tPreparedStatement st = db.prepareStatement(sql);\r\n\tst.setQueryTimeout(TIMEOUT);\r\n\r\n\t// convert date and publicity to fit in the database\r\n\tint date = (int) Math.floor(post.date.getTime() / 1000);\r\n\tint isPublic = post.isPublic ? 1 : 0;\r\n\t\r\n\tst.setString(1, post.author);\r\n\tst.setInt(2, date);\r\n\tst.setInt(3, isPublic);\r\n\tst.setString(4, post.getContent());\r\n\r\n\tst.execute();\r\n\tint result = st.getUpdateCount();\r\n\treturn result;\r\n }",
"public void testBlogEntryHasTagsAndMediaIsNewsfeed() throws Exception {\n Category category = new Category(\"/java\", \"Java\");\n category.setBlog(blog);\n category.setTags(\"java\");\n blogEntry.addCategory(category);\n blogEntry.setExcerpt(\"Excerpt - here is some text\");\n blogEntry.setBody(\"Body - here is some text\");\n blogEntry.setTags(\"junit, automated unit testing\");\n context.setMedia(ContentDecoratorContext.NEWS_FEED);\n decorator.decorate(context, blogEntry);\n\n StringBuffer tags = new StringBuffer();\n// tags.append(\"<!--<div class=\\\"tags\\\">Tags : \");\n// tags.append(\"<a href=\\\"http://technorati.com/tag/automated+unit+testing\\\" rel=\\\"tag\\\">automated unit testing</a>, \");\n// tags.append(\"<a href=\\\"http://technorati.com/tag/junit\\\" rel=\\\"tag\\\">junit</a>, \");\n// tags.append(\"<a href=\\\"http://technorati.com/tag/java\\\" rel=\\\"tag\\\">java</a>\");\n// tags.append(\"</div>-->\");\n\n assertEquals(\"Excerpt - here is some text\" + tags, blogEntry.getExcerpt());\n assertEquals(\"Body - here is some text\" + tags, blogEntry.getBody());\n }",
"void displayPostWithId(String id);",
"@Override\r\n\tpublic void editThread(Integer threadID, String topic, String message,\r\n\t\t\tString posterName, String[] imageName, String[] imageID) {\n\t\t\r\n\t}",
"public String createBlogPost(Blog blog){\n blogPost.setBlog(blog);\n Calendar cal = Calendar.getInstance();\n blogPost.setPostDate(cal.getTime());\n blogPostFacade.create(blogPost);\n\n return \"blog?faces-redirect=true&includeViewParams=true\";\n }",
"public void help (ArrayList<Post> post)\n {\n adminRecView = findViewById(R.id.adminRecView);\n posts = post;\n ModRecAdapter adapt = new ModRecAdapter(posts, this);\n adminRecView.setAdapter(adapt);\n adminRecView.setLayoutManager(new LinearLayoutManager(this));\n }",
"public boolean addPost(Post post) throws SQLException\n {\n boolean isAdded=false;\n try\n {\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n ContentValues values = new ContentValues();\n values.put(\"postBody\", post.getPostBody());\n values.put(\"postedBy\", post.getPostedBy());\n values.put(\"postedAt\", post.getPostedAt());\n values.put(\"postID\", post.getPostID());\n values.put(\"image\" , post.getBitmap());\n\n isAdded=database.insert(\"Post\", null, values)>0;\n\n }\n catch(SQLException e)\n {\n e.printStackTrace();\n }\n finally{\n if(database!=null && database.isOpen())\n dbH.close();\n }\n return isAdded;}",
"@Transactional(propagation = Propagation.REQUIRED, readOnly = false)\n\t@Override\n\tpublic void addPost(Post post) {\n\t\tpostDao.addPost(post);\n\t}",
"public void addTweet (Tweet tweet) throws IllegalArgumentException{\n tweets.add(tweet);\n\n }",
"public void showPostButton() {\n mPostButton.post(new Runnable() {\n @Override\n public void run() {\n mPostButton.setTranslationY(0);\n }\n });\n }",
"public void postBlog(Blog b) {\r\n this.blogPost = b;\r\n Stack serializedPhoto;\r\n BlogMultimedia blogPM;\r\n BlogMessage blogM;\r\n byte[] photoData = null;\r\n Indicator payload = null;\r\n\r\n if (b instanceof BlogMultimedia) {\r\n blogPM = (BlogMultimedia) this.blogPost;\r\n RMSBlogSelector selector = new RMSBlogSelector(RMSBlogSelector.EQUAL_TO, new Long(blogPM.getTimestamp()), null);\r\n serializedPhoto = this.recordManager.getBlog(this.STORED_BLOGS, this.BLOG_PM, this.QUALITY_POST, selector);\r\n BlogUnserializer bu = new BlogUnserializer();\r\n try {\r\n photoData = bu.getPhotoData(serializedPhoto);\r\n } catch (IOException ioe) {\r\n //#debug error\r\n System.out.println(\"getPhotoData: \" + ioe);\r\n }\r\n // set payload for data transfer\r\n if (blogPM != null && photoData != null) {\r\n // timestamp\r\n payload = new Indicator(blogPM.getTimestamp());\r\n // photo\r\n payload.setPhoto(photoData);\r\n // message\r\n if (blogPM.containsMessage()) {\r\n payload.setMessage(blogPM.getMessage().getText());\r\n }\r\n // location\r\n if (blogPM.containsLocation()) {\r\n GPSLocation loc = blogPM.getLocation();\r\n payload.setLocation(new double[]{loc.getLongitude(), loc.getLatitude()});\r\n }\r\n // elevation\r\n Waypoint wp = this.traceManager.getWaypoint(blogPM.getTimestamp());\r\n if (wp != null && wp.containsElevation()) {\r\n payload.setElevation(wp.getElevation());\r\n }\r\n // journey name\r\n if (blogPM.isJourneyBlog()) {\r\n String journeyName = this.controller.getStatistics().getJourneyName();\r\n this.blogPost.setJourneyName(journeyName);\r\n payload.setJourneyName(journeyName);\r\n }\r\n }\r\n } else if (b instanceof BlogMessage) {\r\n blogM = (BlogMessage) this.blogPost;\r\n // set payload for data transfer\r\n if (blogM != null) {\r\n // timestamp\r\n payload = new Indicator(blogM.getTimestamp());\r\n // message\r\n payload.setMessage(blogM.getMessage().getText());\r\n // location\r\n if (blogM.containsLocation()) {\r\n GPSLocation loc = blogM.getLocation();\r\n payload.setLocation(new double[]{loc.getLongitude(), loc.getLatitude()});\r\n }\r\n // elevation\r\n Waypoint wp = this.traceManager.getWaypoint(blogM.getTimestamp());\r\n if (wp != null && wp.containsElevation()) {\r\n payload.setElevation(wp.getElevation());\r\n }\r\n // journey name\r\n if (blogM.isJourneyBlog()) {\r\n String journeyName = this.controller.getStatistics().getJourneyName();\r\n this.blogPost.setJourneyName(journeyName);\r\n payload.setJourneyName(journeyName);\r\n }\r\n }\r\n }\r\n payload.setComment(this.blogPostNumber+\"/\"+this.blogPostBatchSize);\r\n // perform post\r\n this.controller.postBlog(payload);\r\n }",
"public void addAuthorAction()\n\t{\n\t\tViewNavigator.loadScene(\"Add Author\", ViewNavigator.ADD_AUTHOR_SCENE);\n\t}",
"public Digital(int id, String title, String description, String image, String author, Date timePost, String shortDes) {\n this.id = id;\n this.title = title;\n this.description = description;\n this.image = image;\n this.author = author;\n this.timePost = timePost;\n this.shortDes = shortDes;\n }",
"void addNewEntry(BlogEntry entry) throws DAOException;",
"@Override\n public void onPostAdded(final Post post) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n post.setFullView(false);\n post.processData();\n post.setCallbackManager(manager);\n\n manager.addCallback(new CallbackManager.Callback<BaseGlobalPostListFragment>() {\n @Override\n public void execute(BaseGlobalPostListFragment object) {\n object.postsAdapter.add(0, post);\n object.offset++;\n }\n });\n }\n }).start();\n }",
"public void setPosterId(int posterId) {\n\t\tthis.posterId = posterId;\n\t}",
"void addArt(Art art);",
"private void genSharedPostOnFacebook () {\n shareLinkContent = new ShareLinkContent.Builder()\n .setContentTitle(\"Your Title\")\n .setContentDescription(\"Your Description\")\n .setContentUrl(Uri.parse(\"URL[will open website or app]\"))\n .setImageUrl(Uri.parse(\"image or logo [if playstore or app store url then no need of this image url]\"))\n .build();\n\n }",
"public postTweet_args(postTweet_args other) {\n if (other.isSetTweet()) {\n this.tweet = new Tweet(other.tweet);\n }\n }",
"public PublishNoImgJoke() {\n\t\tsuper();\n\t}",
"public /* synthetic */ AdvertDetailsFeaturesTeasers(CheckedByAvito checkedByAvito2, SafeShow safeShow2, CreReportTeaser creReportTeaser, int i, j jVar) {\n this((i & 1) != 0 ? null : checkedByAvito2, (i & 2) != 0 ? null : safeShow2, (i & 4) != 0 ? null : creReportTeaser);\n }",
"public VideoDetails(VideoTeaser obj)\n {\n super(obj);\n }",
"public void post(String text) {\n\t posts.add(new Post(this,text));\n }",
"public void addExamTopic(int id, int eId, int tId){\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(KEY_ID, id);\r\n values.put(KEY_EID, eId);\r\n values.put(KEY_TID, tId);\r\n\r\n db.insert(TABLE_EXAMS_TOPICS, null, values);\r\n\r\n db.close();\r\n }",
"public VerticalPanel createPost2(Post post){\n\t\t\tVerticalPanel result = new VerticalPanel();\n\t\t\tLabel lbl = new Label(post.getContent());\n\t\t\tresult.add(lbl);\n\t\t\treturn result;\n\t\t}",
"private void addArticle() {\n\t\tAdminComposite.display(\"\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\tQuotationDetailsDTO detail = new QuotationDetailsDTO();\n\t\ttry {\n\t\t\tdetail = createQuotationDetail(detail);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (validateMandatoryParameters(detail)) {\n\t\t\taddToArticleTable(detail);\n\t\t}\n\t}",
"@Given(\"an Article exists under the Section\")\r\n\tpublic void createArticle(){\n\t\ttestArticle = new ArticleModel();\r\n\t\ttestArticle.setId(\"3236549\");\r\n\t\ttestArticle.setDefaultValues(baseFeedDomain);\r\n\t\ttestArticle.setTitle(\"automation 3 article title\");\r\n\t\ttestArticle.setState(\"published\");\r\n\t\ttestArticle.setParentName(\"automation3published\");\r\n\t\ttestArticle.setAuthorFirstName(\"tto\");\r\n\t\ttestArticle.setAuthorLastName(\"Administrator\");\r\n\t\t\t\r\n\t\ttestArticle.setStandFirst(\"automation 3 article standfirst\");\r\n\t\ttestArticle.setSectionNameOverride(\"automation 3 article section name override\");\r\n\t\ttestArticle.setTitleprefix(\"automation 3 article times sport title prefix\");\r\n\t\ttestArticle.setHeadlineTitleOverride(\"automation 3 article headline changed\");\r\n\t\ttestArticle.setArticleStandFirstOverride(\"automation 3 article standfirst changed\");\r\n\t\ttestArticle.setArticleBodyOverride(\"automation 3 article body - changed \");\r\n\t\t\r\n\t\ttestArticle.setFeedLink(baseFeedDomain + \"article/\" + 3236549);\r\n\t\ttestArticle.setArticleBodyOverride(\"<p>\\nautomation 3 article body - changed \\n</p>\\n\");\r\n\t\ttestArticle.setBody(\"<p>\\nautomation 3 article body\\n</p>\\n\");\r\n\t\ttestArticle.setCategory(\"article\");\r\n\t\ttestArticle.setAuthorFirstName(\"tto\");\r\n\t\ttestArticle.setAuthorLastName(\"Administrator\");\r\n\t\ttestArticle.setAuthorId(\"2\");\r\n\t\ttestArticle.setFeedLink(baseFeedDomain + \"article/3236549\");\r\n\t\ttestArticle.setHeadline(\"automation 3 article headline\");\r\n\t\ttestArticle.setAuthorUri(baseFeedDomain + \"author/\" + testArticle.getAuthorId());\r\n\t\t\r\n\t\t//TODO re-implement this once cms asset creation/teardown is available\r\n//\t\tString articleId = cmsHelper.createArticle(testArticle);\r\n//\t\ttestArticle.setArticleId(articleId);\r\n\t\t\t\t\r\n\t}",
"public void setPostStage(Vector4f postStage)\n\t{\n\t\tthis.postStage = postStage;\n\t}",
"@Test(expected = NullPointerException.class)\r\n public void createNewPostTest(){\r\n\r\n Post post = new Post();\r\n post.setUserId(2l);\r\n post.setCreatedAt(new GregorianCalendar(2015,5,8).getTime());\r\n post.setDescription(\"PEOPLE ARE BAD AT TAKING OVER FROM AUTONOMOUS CARS.\");\r\n post.setLikes(15);\r\n \r\n entityTransaction.begin();\r\n assertNull(\"Post ID must be null\" , post.getPostId());\r\n entityManager.persist(post);\r\n entityTransaction.commit(); \r\n\r\n post = new Post();\r\n post.setUserId(3000l);\r\n post.setCreatedAt(new GregorianCalendar(2016,5,8).getTime());\r\n post.setDescription(\"ROBOTIC FOOD DELIVERY IS ROLLING INTO THE UNITED STATES IN FEBRUARY.\");\r\n post.setLikes(115);\r\n \r\n entityTransaction.begin();\r\n entityManager.persist(post);\r\n entityTransaction.commit(); \r\n \r\n\r\n \r\n \r\n post = new Post();\r\n post.setUserId(1l);\r\n post.setCreatedAt(new GregorianCalendar(2015,5,7).getTime());\r\n post.setDescription(null);\r\n post.setLikes(5);\r\n \r\n if(post.getDescription()== null || post.getDescription().equals(\"\"))\r\n throw new NullPointerException();\r\n\r\n }",
"@Override\n public void addBackdropToActivity(String uri) {\n uri = MovieImagePathHelper.createURLForBackdrop(uri);\n Glide.with(this)\n .load(uri)\n .into(backdropImage);\n }",
"public Post(String title, String createdAt, int authorID, String body){\n this.title = title;\n this.createdAt = createdAt;\n this.authorID = authorID;\n this.body = body;\n }",
"public boolean addTailor(Tailor tailor);",
"public Post(String title , String context) {\n\t\tthis.title = title ;\n\t\tthis.context = context ;\n\t}",
"public void testBlogEntryHasTagsAndMediaIsHtml() throws Exception {\n Category category = new Category(\"/java\", \"Java\");\n category.setBlog(blog);\n category.setTags(\"java\");\n blogEntry.addCategory(category);\n blogEntry.setExcerpt(\"Excerpt - here is some text\");\n blogEntry.setBody(\"Body - here is some text\");\n blogEntry.setTags(\"junit, automated unit testing\");\n context.setMedia(ContentDecoratorContext.HTML_PAGE);\n decorator.decorate(context, blogEntry);\n\n StringBuffer tags = new StringBuffer();\n tags.append(\"<div class=\\\"tags\\\"><span>Technorati Tags : </span>\");\n tags.append(\"<a href=\\\"http://technorati.com/tag/automatedunittesting\\\" target=\\\"_blank\\\" rel=\\\"tag\\\">automatedunittesting</a>, \");\n tags.append(\"<a href=\\\"http://technorati.com/tag/java\\\" target=\\\"_blank\\\" rel=\\\"tag\\\">java</a>, \");\n tags.append(\"<a href=\\\"http://technorati.com/tag/junit\\\" target=\\\"_blank\\\" rel=\\\"tag\\\">junit</a>\");\n tags.append(\"</div>\");\n\n assertEquals(\"Excerpt - here is some text\" + tags, blogEntry.getExcerpt());\n assertEquals(\"Body - here is some text\" + tags, blogEntry.getBody());\n }",
"@Override\n\t\tpublic void visitTag(Tag tag) {\n\t\t\tsuper.visitTag(tag);\n\t\t\tif ( engine.isPageContent(tag) ) {\n\t\t\t\tString tcontent = extractText(tag, 0);\n\t\t\t\tif ( tcontent == null ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif ( content == null || content.length() < tcontent.length() ) {\n\t\t\t\t\tcontent = tcontent; \n\t\t\t\t}\n\t\t\t} else if ( engine.isPageTitle(tag) ) {\n\t\t\t\tString ttitle = extractText(tag, 0);\n\t\t\t\tif ( ttitle == null ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif ( title == null || title.length() < ttitle.length() ) {\n\t\t\t\t\ttitle = ttitle;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"private static void appendAutoTextEntry(GlossaryDocument glossaryDoc, String name, String contents) {\n BuildingBlock buildingBlock = new BuildingBlock(glossaryDoc);\n buildingBlock.setName(name);\n buildingBlock.setGallery(BuildingBlockGallery.AUTO_TEXT);\n buildingBlock.setCategory(\"General\");\n buildingBlock.setBehavior(BuildingBlockBehavior.PARAGRAPH);\n\n Section section = new Section(glossaryDoc);\n section.appendChild(new Body(glossaryDoc));\n section.getBody().appendParagraph(contents);\n buildingBlock.appendChild(section);\n\n glossaryDoc.appendChild(buildingBlock);\n }",
"@BeforeMethod\n public void methodSetup() {\n open(wpPostUri);\n super.targetUri = wpPostUri;\n WPPost wpPost = new WPPost();\n super.wpFooter = wpPost.wpFooter;\n }",
"public void advertise(final Topic t) {\r\n\r\n new Thread(new Runnable() {\r\n public void run() {\r\n int attempts = 0;\r\n while(++attempts < 20) {\r\n try {\r\n int uniqueID = server.addTopic(t);\r\n if (uniqueID != 0)\r\n pubTopics.add(t.setTopicID(uniqueID));\r\n else\r\n System.err.println(\"Topic already exists on server. Please Select Another Name...\");\r\n return;\r\n } catch(RemoteException e) {\r\n System.err.println(\"Could not connect to server. Retrying...\");\r\n try {\r\n Thread.sleep(800);\r\n } catch(Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }\r\n System.err.println(\"Couldn't Advertise Topic: \" + t.getTopicID() + \" - \" + t.getTopicName());\r\n }\r\n }).start();\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_app_intro, container, false);\n TextView titleText = (TextView) view.findViewById(R.id.app_intro_tv_title);\n TextView bodyText = (TextView)view.findViewById(R.id.app_intro_tv_body);\n ImageView imgView = (ImageView)view.findViewById(R.id.app_intro_img);\n View main = view.findViewById(R.id.app_intro_v_main);\n\n titleText.setText(title);\n bodyText.setText(body);\n imgView.setImageDrawable(ContextCompat.getDrawable(getContext(),drawableId));\n main.setBackgroundColor(backgroundColor);\n\n\n return view;\n }",
"public void addNeutralTag(Tag t) {\n\t\tneutralTags.add(t);\n\t}",
"public BasicThumbnail(Layer[] e) {\n\t\tthis(e, 0);\n\t}",
"public void savePost(VBeatPostModel post) {\n AppLocalDB.getInstance().db.postDao().insertAll(post);\n }",
"protected void addArticle(NewsArticle art) {\n articles.addElement(art); // add to Vector\n filterAgent.score(art, filterType); // score the article\n refreshTable();\n articleTextArea.setText(art.getBody());\n articleTextArea.setCaretPosition(0); // move cursor to start of article\n addArticleMenuItem.setEnabled(true) ;\n addAllMenuItem.setEnabled(true) ;\n saveArticleMenuItem.setEnabled(true) ;\n }",
"@Test\n @Ignore\n public void should_post_story() {\n }",
"private void addFeature()\r\n {\r\n MapGeometrySupport mgs = myCurrentGeometryHandler.getGeometry();\r\n MetaDataProvider mdp = myMetaDataHandler.getMetaDataProvider();\r\n TimeSpan span = buildTimeSpan(mdp);\r\n mgs.setTimeSpan(span);\r\n MapDataElement element = new DefaultMapDataElement(myFeatureId, span, myType, mdp, mgs);\r\n Color typeColor = myType.getBasicVisualizationInfo().getTypeColor().equals(DEFAULT_FEATURE_COLOR) ? myFeatureColor\r\n : myType.getBasicVisualizationInfo().getTypeColor();\r\n element.getVisualizationState().setColor(typeColor);\r\n myConsumer.addFeature(element);\r\n myFeatureCount++;\r\n }",
"public void setData(Post item) {\n a.setText(points + \" points\");\n this.dataItem = item;\n title.setText(item.getTitle());\n desc.setText(item.getDesc());\n upvoted.setEnabled(!item.isUpvoted());\n downvoted.setEnabled(!item.isDownvoted());\n // Picasso.with(itemView.getContext()).load(item.getImg()).into(img);\n // Picasso.with(itemView.getContext()).load(item.getImg()).into(img);\n\n\n\n }",
"public void addText(String texto) {\n\t\tthis.texto = texto == null ? \"\" : texto.trim();\n\t}",
"void editMyPost(Post post);",
"private void setImage(String downloaderUri, String thubo) {\n blogImageView = mView.findViewById(R.id.postView_image_post);\n\n //request optional to assign temporary image appear before while loading the image from db.\n RequestOptions requestOptions = new RequestOptions();\n requestOptions.placeholder(R.drawable.postlist);\n\n //Glide.with(context).applyDefaultRequestOptions(requestOptions).load(thubo).into(blogImageView);\n Glide.with(context).applyDefaultRequestOptions(requestOptions).load(downloaderUri).thumbnail(\n Glide.with(context).load(thubo)\n ).into(blogImageView);\n\n }",
"public void onClick(View v) {\n post.setTitle(titleEditText.getText().toString());\n post.setContent(descriptionEditText.getText().toString());\n post.setImageUrl((String) gallery.getSelectedItem());\n\n PostAction.curatePost(post, jsonForSelectedSharers(), PostCurateActivity.this, true, new PostAction.OnActionComplete() {\n\n @Override\n public void onActionComplete(Post in, Post out) {\n Intent i = new Intent();\n i.putExtra(\"postToAdd\", out);\n i.putExtra(\"postToRemove\", in);\n PostCurateActivity.this.setResult(TabPostsListActivity.RESULT_ADD_CURATED_AND_REMOVE_CURABLE, i);\n PostCurateActivity.this.finish();\n }\n });\n }",
"public void bind(Post post) {\n tvDesc.setText(post.getDescription());\n tvUser.setText(post.getUser().getUsername());\n ParseFile image = post.getImage();\n if(image != null) {\n Glide.with(context).load(post.getImage().getUrl()).into(ivPost);\n }\n createdAt = post.getCreatedAt();\n timeAgo = post.calculateTimeAgo(createdAt);\n tvTime.setText(timeAgo);\n }",
"private void setDate(final BibTex bibtex, final Post<BibTex> post) {\n\t\tfinal String dateField = bibtex.removeMiscField(BibTexUtils.ADDITIONAL_MISC_FIELD_DATE);\n\t\tif (present(dateField)) {\n\t\t\ttry {\n\t\t\t\tpost.setDate(dateFormat.parse(dateField));\n\t\t\t} catch (java.text.ParseException ex) {\n\t\t\t\t// ignore parse errors\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic Post getPost(String categoryId, String forumId, String topicId,\n\t\t\tString postId) throws Exception {\n\t\treturn null;\n\t}",
"@Test\n public void createPost() {\n User bob = new User(\"Jasdeep\",\"Madan\",\"JD\",\"[email protected]\",\"password\", \"member\", true, true).save();\n\n //Create a new Category and save it\n Category category = new Category(\"Tech\", \"Some Description\").save();\n\n // Create a new post\n new Article(\"My first post\", \"Hello world\", bob, category, true, null, null).save();\n\n // Test that the post has been created\n assertEquals(1, Article.count());\n\n // Retrieve all posts created by Bob\n List<Article> bobPosts = Article.find(\"byAuthor\", bob).fetch();\n\n // Tests\n assertEquals(1, bobPosts.size());\n Article firstPost = bobPosts.get(0);\n assertNotNull(firstPost);\n assertEquals(bob, firstPost.author);\n assertEquals(\"My first post\", firstPost.title);\n assertEquals(\"Hello world\", firstPost.content);\n assertNotNull(firstPost.submit_date);\n }",
"public long ashirPostCreating(AshirBlogPostingHelper post) {\n long result;\n\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(Col_2, post.getPost());\n values.put(Col_3, post.getImage());\n //inserting valuse into table columns\n result = db.insert(NAME_OF_TABLE, null, values);\n db.close();\n return result;\n\n }",
"void setThumbnail(boolean thumbnail);",
"@Override\n public void onClick(View view) {\n Intent detailIntent = Post.starter(mContext, mCurrentPost.getComment());\n\n //Start the detail activity\n mContext.startActivity(detailIntent);\n }",
"public Tape(boolean digital, String title)\n {\n this.digital=digital;\n this.title = title;\n }",
"public void addHighlighter(Highlighter hl) {\r\n addHighlighter(hl, false);\r\n }",
"public static void refreshPostDetails(Post post) {\n\t\tbp.setCenter(showPostDetails(post));\n\t}",
"public DefaultAuthor() {\n\t\ttopic = null;\n\t}",
"void setPostId(int postId);",
"public Post(Date date, String content, String threadTitle, Integer isCommentOnPostID) {\n this.date = date;\n this.content = content;\n this.threadTitle = threadTitle;\n this.isCommentOnPostID = isCommentOnPostID;\n }"
]
| [
"0.5418374",
"0.50326115",
"0.4997713",
"0.48962063",
"0.48472434",
"0.48325503",
"0.47510615",
"0.47105205",
"0.46962205",
"0.46864337",
"0.46715242",
"0.46114212",
"0.45768368",
"0.45641947",
"0.4539211",
"0.450113",
"0.44930825",
"0.44828424",
"0.44536364",
"0.44178343",
"0.4394614",
"0.43869278",
"0.4373523",
"0.4369284",
"0.43111324",
"0.43077338",
"0.43074125",
"0.43014923",
"0.42878836",
"0.42812786",
"0.42739746",
"0.42726162",
"0.42642725",
"0.4249816",
"0.42459786",
"0.42360353",
"0.42354396",
"0.42337987",
"0.42310047",
"0.42287296",
"0.42253205",
"0.42247447",
"0.4214921",
"0.41895553",
"0.4179796",
"0.41760236",
"0.41711456",
"0.41637725",
"0.41605115",
"0.41589895",
"0.41589504",
"0.41356647",
"0.41343325",
"0.41309932",
"0.41235214",
"0.4115041",
"0.41126287",
"0.41057935",
"0.4104816",
"0.40989134",
"0.40981963",
"0.4088385",
"0.40868133",
"0.4080248",
"0.40780193",
"0.40708402",
"0.4066168",
"0.40653583",
"0.40570635",
"0.40546003",
"0.40535164",
"0.40518466",
"0.4049418",
"0.40455723",
"0.4043908",
"0.40409452",
"0.40407574",
"0.40399808",
"0.40370968",
"0.4036713",
"0.40245306",
"0.4014749",
"0.40101632",
"0.40051877",
"0.4003892",
"0.4000636",
"0.39913172",
"0.39912298",
"0.39834026",
"0.39833048",
"0.3981649",
"0.39805457",
"0.39804864",
"0.39793947",
"0.39723057",
"0.39637345",
"0.39622316",
"0.39596894",
"0.3959536",
"0.39581755",
"0.3957563"
]
| 0.0 | -1 |
Add an optional author of the blog post. | public Builder addSetListData(final String val) {
mSetListData = val;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addAuthor(Author author){\n authors.add(author);\n }",
"Builder addAuthor(String value);",
"@Override\n public void author_()\n {\n }",
"public void setAuthor(String author) {\r\n this.author = 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 }",
"public void setAuthor(Author author) {\r\n if (author != null) {\r\n this.author = author;\r\n }\r\n }",
"public void addAuthor(final Author author) {\n if (authors.containsKey(author))\n //TODO improve error message\n throw new IllegalArgumentException(\"this publication is already associated to the given author\");\n authors.put(author, author);\n }",
"public void setAuthor(String author) {\n\t\tauth = author;\n\t}",
"Builder addAuthor(Person value);",
"public void setAuthor(String author) {\r\n\t\tthis.author = author;\r\n\t}",
"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 }",
"@ApiModelProperty(value = \"The event author WordPress post ID\")\n public Integer getAuthor() {\n return author;\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 void setAuthor(String author) {\n\tthis.author = author;\n}",
"@Override\n\tpublic void setAuthor(java.lang.String author) {\n\t\t_news_Blogs.setAuthor(author);\n\t}",
"public String getAuthor() {\n\t\treturn null;\r\n\t}",
"Builder addAuthor(Organization value);",
"@Override\r\n\tpublic void setAuthor(String author) {\n\t\tsuper.setAuthor(author);\r\n\t}",
"@Override\n public void author()\n {\n }",
"public void addAuthorAction()\n\t{\n\t\tViewNavigator.loadScene(\"Add Author\", ViewNavigator.ADD_AUTHOR_SCENE);\n\t}",
"@Override\n\tpublic String author() {\n\t\treturn author;\n\t}",
"@Override\n\tpublic String getAuthor() {\n\t\treturn \"\";\n\t}",
"public void setAuthor(Person author)\n {\n this.author = author;\n }",
"public String getAuthor() { return author_; }",
"public void setAuthor(String author)\r\n {\r\n m_author = author;\r\n }",
"public String getAuthor() {\r\n\t\treturn author;\r\n\t}",
"public void setAuthor(String value) {\n setAttributeInternal(AUTHOR, value);\n }",
"private String getAuthor(CloudEntity post) {\n if (post.getCreatedBy() != null) {\n return \" \" + post.getCreatedBy().replaceFirst(\"@.*\", \"\");\n } else {\n return \"<anonymous>\";\n }\n }",
"private String getAuthor(CloudEntity post) {\n if (post.getCreatedBy() != null) {\n return \" \" + post.getCreatedBy().replaceFirst(\"@.*\", \"\");\n } else {\n return \"<anonymous>\";\n }\n }",
"public String getAuthor() {\r\n return author;\r\n }",
"@Override\n\tpublic java.lang.String getAuthor() {\n\t\treturn _news_Blogs.getAuthor();\n\t}",
"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 void setAuthor(Player author){\n this.playerAuthor = author;\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 Post(String user, String postContent, String webAddress) {\n this.orderPosted = nextOrderPosted;\n nextOrderPosted++;\n this.user = user;\n this.postContent = postContent;\n this.webAddress = webAddress;\n// this.myAuthor=myAuthor;\n\n }",
"public void setAuthorId(String authorId) {\n this.authorId = authorId;\n }",
"public void setAuthor(final Author author) {\n\t\tthis.author = author;\n\t}",
"public void updateAuthor(Author author);",
"@Override\r\n\tpublic String getAuthor() {\n\t\treturn super.getAuthor();\r\n\t}",
"public String getAuthor() {\r\n\t\treturn oAuthor;\r\n\t}",
"public final void author() throws RecognitionException {\n Token ID1=null;\n\n try {\n // /Users/valliant/Projects/java/CFML/cfml.parsing/antlr/Javadoc.g:13:8: ( '@author' ID )\n // /Users/valliant/Projects/java/CFML/cfml.parsing/antlr/Javadoc.g:13:10: '@author' ID\n {\n match(input,7,FOLLOW_7_in_author42); \n\n ID1=(Token)match(input,ID,FOLLOW_ID_in_author44); \n\n System.out.println(\"author \"+(ID1!=null?ID1.getText():null));\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return ;\n }",
"public boolean hasAuthor() {\n return fieldSetFlags()[0];\n }",
"Builder addAuthor(Organization.Builder value);",
"public String getAuthor() {\n\treturn author;\n}",
"public void setAuthorName(String authorName) {\n this.authorName = authorName;\n }",
"public void setAuthorName(String authorName) {\n this.authorName = authorName;\n }",
"public void setAuthorId(Integer authorId) {\n this.authorId = authorId;\n }",
"public void setAuthorId(Integer authorId) {\n this.authorId = authorId;\n }",
"public String getAuthor(){\n return author;\n \n }",
"public User getAuthor() {\n return author;\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 String getAuthorId() {\n return authorId;\n }",
"public java.lang.String getAuthor() {\n return author;\n }",
"public java.lang.String getAuthor() {\n return author;\n }",
"@Override\n\tpublic String getDescription() {\n\t\treturn author;\n\t}",
"public void setAuthors(String _authors) { authors = _authors; }",
"public String getAuthor() {\n return mAuthor;\n }",
"public String getAuthor();",
"public String getAuthorName() {\n return authorName;\n }",
"public String getAuthorName() {\n return authorName;\n }",
"public Author getAuthor() {\r\n return author;\r\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 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);}",
"@Override\n \tpublic void setAuthorString(String authorString) {\n \t\tthis.authorString = authorString;\n \t}",
"public String getAuthorName() {\n return this.authorName;\n }",
"public String getAuthor() {\n\t\treturn auth;\n\t}",
"public void setAuthorLocal(String author) {\r\n\t\toAuthor = author;\r\n\t}",
"public final native void setAuthor(String author) /*-{\n this.setAuthor(author);\n }-*/;",
"public String getAuthorUsername() {\n\t\treturn authorUsername;\n\t}",
"public Integer getAuthorId() {\n\t\treturn authorId;\n\t}",
"public void addPostComment(final String name, final String email, final String body,\n final String permalink) {\n\n // XXX HW 3.3, Work Here\n // Hints:\n // - email is optional and may come in NULL. Check for that.\n // - best solution uses an update command to the database and a suitable\n // operator to append the comment on to any existing list of comments\n\n// DBObject comment = new BasicDBObject()\n Document comment = new Document()\n .append(\"author\", name)\n .append(\"email\", email)\n .append(\"body\", body);\n\n // Need to identify the post that the comments will be added in to\n Document thePost =new Document(\"permalink\", permalink);\n\n // Specify the update. Push in a \"comment\" document in to the \"comments\" array in the post\n Document theUpdt =new Document(\"$push\", new Document(\"comments\",comment));\n\n // Specify the post to change and how to change it\n postsCollection.updateOne(thePost,theUpdt);\n\n }",
"public void setAuthorId(Integer authorId) {\n\t\tthis.authorId = authorId;\n\t}",
"public Author getAuthor() {\n\t\treturn this.author;\n\t}",
"public DefaultAuthor() {\n\t\ttopic = null;\n\t}",
"default String getAuthor() {\r\n\t\treturn \"unknown\";\r\n\t}",
"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 Integer getAuthorId() {\n return authorId;\n }",
"public Integer getAuthorId() {\n return authorId;\n }",
"public boolean addAuthor(User user) {\n\t\treturn authors.add(user);\n\t}",
"public int insertAuthor(Author author);",
"@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:author\")\n public String getAuthor() {\n return getProperty(AUTHOR);\n }",
"String getAuthor();",
"String getAuthor();"
]
| [
"0.6716141",
"0.6594967",
"0.64020467",
"0.6339998",
"0.6325308",
"0.6325308",
"0.6325308",
"0.6325308",
"0.6325308",
"0.6312927",
"0.63080084",
"0.62614214",
"0.6248108",
"0.62477565",
"0.62465006",
"0.62465006",
"0.62465006",
"0.62465006",
"0.6228062",
"0.6227684",
"0.62262213",
"0.6208856",
"0.6183751",
"0.6175439",
"0.61626256",
"0.60338336",
"0.6030018",
"0.6011541",
"0.60017186",
"0.5964986",
"0.59491944",
"0.59445703",
"0.5936697",
"0.5917654",
"0.5898615",
"0.5898615",
"0.586957",
"0.5847771",
"0.5845859",
"0.5845859",
"0.5845859",
"0.5845859",
"0.5845859",
"0.5845859",
"0.5845859",
"0.5845859",
"0.5845859",
"0.5845859",
"0.5845859",
"0.5845859",
"0.58381474",
"0.5815808",
"0.5814566",
"0.5769823",
"0.5768742",
"0.57185835",
"0.5708293",
"0.57062113",
"0.57058233",
"0.5697476",
"0.5690564",
"0.56852716",
"0.56716204",
"0.56716204",
"0.5653949",
"0.5653949",
"0.56403637",
"0.56271553",
"0.5595893",
"0.55826575",
"0.5577353",
"0.5559223",
"0.55410767",
"0.5540622",
"0.55325603",
"0.5528071",
"0.5500562",
"0.5500562",
"0.5500275",
"0.5497146",
"0.54888535",
"0.5478572",
"0.5457208",
"0.5449767",
"0.54459804",
"0.54292065",
"0.54251796",
"0.5409753",
"0.54093766",
"0.5409274",
"0.54049605",
"0.5403903",
"0.5401961",
"0.5391623",
"0.53814244",
"0.53814244",
"0.5370385",
"0.53459436",
"0.53220767",
"0.5299808",
"0.5299808"
]
| 0.0 | -1 |
Just sets the title to display error | private void displayErrorTitle(){
progressTitle.setText(getResources().getString(R.string.error_title));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showError(String text, String title){\n JOptionPane.showMessageDialog(this,\n text, title, JOptionPane.ERROR_MESSAGE);\n }",
"void errorBox(String title, String message);",
"void showError(String errorMessage);",
"public void showError(String errorMessage);",
"public void showError(String error);",
"void showError(String message);",
"void showError(String message);",
"public void displayError(String title, String message, Throwable error) {\n\t\tMessageDialog.openError(getShell(), title, message);\n\t\terror.printStackTrace();\n\t}",
"private void showErrorMessage(String title, String body)\r\n {\r\n MyLogger.log(Level.INFO, \"Error message initiated. Error Title: {0}\", title);\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n Stage currentStage = (Stage) viewCoinAnchorPane.getScene().getWindow();\r\n alert.initOwner(currentStage);\r\n alert.setTitle(title);\r\n alert.setHeaderText(null);\r\n alert.setContentText(body);\r\n alert.showAndWait();\r\n }",
"@Override\n public void showError() {\n }",
"@Override\n\tpublic void showError(String message) {\n\t\t\n\t}",
"private static void showError(String message, String title) {\r\n MainMenu.showNotification(AlertType.ERROR, title, message);\r\n }",
"private void setErrorUI() {\n err = new JLabel(\" \");\n err.setBorder(BorderFactory.createMatteBorder(0, 15, 0, 15, new Color(248, 248, 251)));\n err.setFont(new Font(\"Nunito\", Font.PLAIN, 12));\n err.setForeground(new Color(247, 37, 133));\n err.setAlignmentX(Component.CENTER_ALIGNMENT);\n }",
"public void ErrorMessage(String error) {\n \tJOptionPane.showMessageDialog(parent, error);\n }",
"private void printErrorAlert(String title, String header, String message) {\r\n\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\r\n\t\tif(title.length()>0)\r\n\t\t\talert.setTitle(title);\r\n\t\tif(header.length()>0)\r\n\t\t\talert.setHeaderText(header);\r\n\t\tif(message.length()>0)\r\n\t\t\talert.setContentText(message);\r\n\t\tStage stage = (Stage) alert.getDialogPane().getScene().getWindow();\r\n\t\tstage.getIcons().add(new Image(this.getClass().getResource(\"x.png\").toString()));\r\n\t\talert.showAndWait();\r\n\t}",
"public void show(Object errorMessage){\n\t\tSystem.out.println(\"Woops, something bad happened\");\n\t\tSystem.out.println(errorMessage);\n\t}",
"void setError();",
"static void showError(Exception ex, String title, String message)\n {\n try\n {\n if(title == null)\n title = SipActivator.getResources().getI18NString(\n \"impl.protocol.sip.XCAP_ERROR_TITLE\");\n\n if(message == null)\n message = title + \"\\n\" +\n ex.getClass().getName() + \": \" +\n ex.getLocalizedMessage();\n\n\n if(SipActivator.getUIService() != null)\n SipActivator.getUIService().getPopupDialog()\n .showMessagePopupDialog(\n message,\n title,\n PopupDialog.ERROR_MESSAGE);\n }\n catch(Throwable t)\n {\n logger.error(\"Error for error dialog\", t);\n }\n }",
"private void showError(String message){\n\t\tsetupErrorState();\n\t\tsynapseAlert.showError(message);\n\t}",
"private void displayValidationError() {\n\n\t\tif (null != validationErrorTitle) {\n\t\t\tvalidationErrorParent.toFront();\n\t\t\tAppController.showMessage(validationErrorParent, validationErrorMessage, validationErrorTitle,\n\t\t\t\tvalidationErrorType);\n\t\t}\n\n\t\tclearValidationError();\n\t}",
"public void showErrorMessage(String title, String Messge) {\n\t\tJOptionPane.showMessageDialog(mdiForm, Messge,\n\t\t\t\ttitle, JOptionPane.ERROR_MESSAGE);\n\t}",
"public ErrorGUI() {\n\t\terror = new Error();\n\t\t\n\t}",
"private static void displayError(Shell shell, String msg) {\n MessageBox mbox = new MessageBox(shell, SWT.ICON_ERROR|SWT.OK);\n mbox.setMessage(msg);\n mbox.setText(\"USBDM - Can't create launch configuration\");\n mbox.open();\n }",
"public abstract void showErrorBox(Throwable error);",
"void displayUserTakenError(){\n error.setVisible(true);\n }",
"private void drawNoResultsMessage()\n\t{\n\t\tFont font = new Font(\"Invalid\", Font.BOLD, 30);\t\t\n\t\ttitle.setBounds((super.getWidth()/2) - 380, (super.getHeight()/2) - 70, 800, 50);\n\t\ttitle.setFont(font);\n\t\tthis.add(title);\n\t}",
"public void displayError(String e){\n\t\tJOptionPane.showMessageDialog(null, e, \"Error\", JOptionPane.ERROR_MESSAGE);\n\t}",
"private void setErrorMessage() {\n messageLabel.setText(NbBundle.getMessage(JavaFXPlatformCustomizer.class, \"Customizer_Invalid_Platform_Msg\")); // NOI18N\n }",
"private void showError(String error){\n errorInformation.setText(error);\n errorPane.setVisible(true);\n fadeEffect(0,1,150,errorPane);\n playSound(\"src/media/sound/error.mp3\");\n }",
"public void showInputError() {\n\n resultLabel.setText(\"Choose another space!\");\n\n }",
"public void setErrorWindow(String header, String body){\n errorWindow.setTitle(\"Error\");\n errorWindow.setHeaderText(header);\n errorWindow.setContentText(body);\n errorWindow.getDialogPane().setMinSize(100, 100);\n errorWindow.showAndWait();\n }",
"public errPopUp(String value) {\n initComponents();\n errorMsg.setText(value);\n this.setVisible(false);\n }",
"public abstract void setError(String message);",
"private void printErrorMenu() {\n System.out.println(\"Invalid input. Please check inputs and try again.\");\n }",
"void showErrorMsg(String string);",
"public static void errorMsg(String infoMessage, String titleBar) {\n JOptionPane.showMessageDialog(null, infoMessage, \"Error: \" + titleBar, JOptionPane.ERROR_MESSAGE);\n }",
"private void showAlertSelectionFail(String title, String msg) {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(title);\n\n // Header Text: null\n alert.setHeaderText(null);\n alert.setContentText(msg);\n alert.showAndWait();\n }",
"void showError (String occurredWhile, String error) {\n\n// creates the VerticalBox for all elements\n VBox pane = new VBox();\n\n// creates all necessary labels, adds them to errPane\n Label genLabel = new Label(\"Error occured while \" + occurredWhile + \":\");\n Label errLabel = new Label(error);\n genLabel.setStyle(\"-fx-padding: 10, 10, 10, 10;\");\n errLabel.setStyle(\"-fx-padding: 10, 10, 10, 10;\");\n pane.getChildren().addAll(genLabel, errLabel);\n\n// creates a Scene, applies stylesheets\n Scene scene = new Scene(pane);\n scene.getStylesheets().add(getClass().getResource(\"stylesheet.css\").toExternalForm());\n scene.getStylesheets().add(stylesheet.toString());\n\n// creates a new errorWindow\n errorWindow = new Stage();\n errorWindow.setTitle(\"Error\");\n errorWindow.setResizable(false);\n errorWindow.setScene(scene);\n errorWindow.show();\n }",
"public abstract void showInitError(String s);",
"private void errorMessage(String message) {\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n \tAlertDialog dialog = builder.setMessage(message).setTitle(\"Error\").create();\n \tdialog.show();\n }",
"private void showErrorMessage(String errorMessage)\n {\n JOptionPane.showMessageDialog(null, ERRMSG_NAME_MISSING,\n HERO_ERROR_TITLE, JOptionPane.ERROR_MESSAGE);\n _nameField.requestFocusInWindow();\n }",
"@Override\r\n public final void displayError(final String message) {\r\n displayMessage(message, \"Error!\", SWT.ICON_ERROR);\r\n }",
"public void showErrorMessage() {\n\t\tthis.vm = null;\n\t\tplayButton.setText(\"►\");\n\n\t\tthis.remove(visualizerPanel);\n\t\tvisualizerPanel = new ErrorCard();\n\t\tvisualizerPanel.setPreferredSize(new Dimension(FRAME_WIDTH, FRAME_HEIGHT));\n\t\tthis.add(visualizerPanel);\n\t}",
"public void displayErrorMessage(String errorMess)\n {\n JOptionPane.showMessageDialog(this,errorMess);\n }",
"public void setTitle(String title) {\r\n if (title != null) {\r\n this.title = title;\r\n }\r\n else{\r\n System.out.println(\"Not a valid title\");\r\n }\r\n }",
"private void displayError(String errorText) {\n\t\tMessageBox messageBox = new MessageBox(shell, SWT.OK);\n\t\tmessageBox.setMessage(errorText);\n\t\tmessageBox.setText(\"Alert\");\n\t\tmessageBox.open();\n\t}",
"void drawError(String message);",
"private void showError(String msg)\n {\n \tJOptionPane.showMessageDialog(this, msg, \"Error\",\n \t\t\t\t JOptionPane.ERROR_MESSAGE);\n }",
"public graphene.model.idl.G_DocumentError.Builder setTitle(java.lang.String value) {\n validate(fields()[0], value);\n this.title = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"public void displayError(String error) {\r\n MipavUtil.displayError(error);\r\n }",
"void printError(String errorMsg, boolean displayHelp);",
"public void errorMessage(String text) {\n \t\tErrorMessage msg = new ErrorMessage(this, text);\n \t\tmsg.setAlwaysOnTop(true);\n \t\tmsg.setVisible(true);\n \t\tsetEnabled(false);\n \t}",
"public void alertName(){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error al ingresar nombre\");\n alert.setHeaderText(\"Se encontró un error en el nombre,\"\n + \"tiene mas de 12 caracteres o está repetido. Debe ingresar el nombre nuevamente.\");\n alert.showAndWait();\n }",
"void errorMsg(String msg) {\n Alert errorAlert = new Alert(\"error\", msg, null, AlertType.ERROR);\n errorAlert.setCommandListener(this);\n errorAlert.setTimeout(Alert.FOREVER);\n Display.getDisplay(this).setCurrent(errorAlert);\n }",
"void displayErrorMessage(String message);",
"@Override\n\tpublic void setComputationError (\n\t\tString title, String message, String stackTrace)\n\t{\n\t\n\t\tmFinishedPanel.setErrorOccured(true);\n\t\tmFinishedPanel.setErrorMessage(title, message, stackTrace);\n\t\n\t}",
"void showError(Throwable throwable);",
"private void displayError(Exception e)\n\t{\n\t\tJOptionPane.showMessageDialog(frame,\n\t\t\t\te.toString(),\n\t\t\t\t\"EXCEPTION\",\n\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t}",
"public static void exposeError(String errorMessage) {\r\n CmdUx.printHBars(errorMessage);\r\n }",
"private void displayError(Exception ex)\n {\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Error dialog\");\n alert.setHeaderText(null);\n alert.setContentText(ex.getMessage());\n\n alert.showAndWait();\n }",
"public static void showErrorDialog(String title, String message) {\n\t\tJOptionPane.showMessageDialog(null, message, title, JOptionPane.ERROR_MESSAGE);\n\t}",
"public void alert(String msg, String title) {\n\t\tJOptionPane.showMessageDialog(rootPane, msg, title, JOptionPane.ERROR_MESSAGE);\n\t}",
"public static void setErrorMessage(String text) {\n\t JOptionPane optionPane = new JOptionPane(text,JOptionPane.ERROR_MESSAGE);\n\t JDialog dialog = optionPane.createDialog(\"Erro\");\n\t dialog.setAlwaysOnTop(true);\n\t dialog.setVisible(true);\n\t}",
"@Override\r\n\tpublic void displayError(EntityPropertyCode code, String message) {\n\t}",
"void displayErrorMessage(String errorMessage){\r\n\t\t\r\n\t\tJOptionPane.showMessageDialog(this, errorMessage);\r\n\t\t\r\n\t}",
"protected void displayErrorMessage(String message, Exception ex) {\n JPanel messagePanel = new JPanel(new BorderLayout()); \n JLabel label = new JLabel(message);\n messagePanel.add(label);\n if (ex != null) {\n JComponent panel = new JXPanel(new BorderLayout());\n panel.setBorder(new RoundedBorder());\n \n // remind(aim): provide way to allow user to see exception only if desired\n StringWriter writer = new StringWriter();\n ex.printStackTrace(new PrintWriter(writer));\n JTextArea exceptionText = new JTextArea();\n exceptionText.setText(\"Cause of error:\\n\" +\n writer.getBuffer().toString());\n exceptionText.setBorder(new RoundedBorder());\n exceptionText.setOpaque(false);\n exceptionText.setBackground(\n Utilities.deriveColorHSB(UIManager.getColor(\"Panel.background\"),\n 0, 0, -.2f));\n JScrollPane scrollpane = new JScrollPane(exceptionText);\n scrollpane.setBorder(EMPTY_BORDER);\n scrollpane.setPreferredSize(new Dimension(600,240));\n panel.add(scrollpane);\n messagePanel.add(panel, BorderLayout.SOUTH); \n }\n JOptionPane.showMessageDialog(getMainFrame(), messagePanel, \n resourceMap.getString(\"error.title\"),\n JOptionPane.ERROR_MESSAGE);\n \n }",
"public void displayError(String message){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setContentText(message);\n //alert.initOwner(owner);\n alert.show();\n }",
"public void showNamedError(String message) {\n\t\ttextUI.showNamedError(this.name, message);\n\t}",
"protected void errorPopup(String msg, Exception ex) {\n Message.showErrorMessage(getComponent(), ex, msg);\n }",
"public static void openError(Shell parent, String title, String message)\n {\n open(MessageDialog.ERROR, parent, title, message, SWT.NONE);\n }",
"public static void showErrorPanel(String title, String msg) {\n final DialogBox dialogBox = new DialogBox();\r\n dialogBox.setText(\"Remote Procedure Call\");\r\n dialogBox.setAnimationEnabled(true);\r\n final Button closeButton = new Button(\"Close\");\r\n // We can set the id of a widget by accessing its Element\r\n closeButton.getElement().setId(\"closeButton\");\r\n final HTML serverResponseLabel = new HTML();\r\n VerticalPanel dialogVPanel = new VerticalPanel();\r\n dialogVPanel.addStyleName(\"dialogVPanel\");\r\n dialogVPanel.add(new HTML(\"<br><b>Server replies:</b>\"));\r\n dialogVPanel.add(serverResponseLabel);\r\n dialogVPanel.setHorizontalAlignment(VerticalPanel.ALIGN_RIGHT);\r\n dialogVPanel.add(closeButton);\r\n dialogBox.setWidget(dialogVPanel);\r\n\r\n // Add a handler to close the DialogBox\r\n closeButton.addClickHandler(new ClickHandler() {\r\n\r\n @Override\r\n public void onClick(ClickEvent event) {\r\n dialogBox.hide();\r\n }\r\n });\r\n\r\n // Show the error message to the user\r\n dialogBox.setText(title);\r\n serverResponseLabel.addStyleName(\"serverResponseLabelError\");\r\n serverResponseLabel.setHTML(msg);\r\n dialogBox.center();\r\n closeButton.setFocus(true);\r\n }",
"@Override\n\tpublic void setFailedError() {\n\t\tnew Customdialog_Base(this, \"정보가 올바르지 않습니다.\").show();\n\t}",
"public void showErrorMessage(String msg) {\r\n JOptionPane.showMessageDialog(this,\r\n\t\t\t\t msg, TmplResourceSingleton.getString(\"error.dialog.header\"),\r\n\t\t\t\t JOptionPane.ERROR_MESSAGE);\r\n }",
"protected void setToolTipErrorMessage() {\n\t\tString toolTipErrorMessage = null;\n\t\tsetToolTipMessage(toolTipErrorMessage);\n\t}",
"public static void showErrorAlert(String title, String headerText, String contentText) {\n\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\talert.setTitle(title);\n\t\talert.setHeaderText(headerText);\n\t\talert.setContentText(contentText);\n\t\talert.showAndWait();\n\t}",
"private JFrame popError() {\n\t\tJFrame f = new JFrame();\n\t\tf.setTitle(\"Error!\");\n\t\tf.setSize(200, 200);\n\t\tf.setLocationRelativeTo(null);\n\t\tJPanel showResult = new JPanel();\n\t\tJTextArea area = new JTextArea(\"No such Record!\");\n\t\tshowResult.add(area);\n\t\tf.add(showResult);\n\t\tf.setVisible(true);\n\t\treturn f;\n\t}",
"public void displayError(final Node node, final Throwable thrown, final String title)\n {\n final String message;\n if (thrown instanceof CajaUnificadaException) {\n final String msg = thrown.getMessage();\n message = msg == null || msg.isEmpty() ? thrown.toString() : msg;\n //logger.log(Level.WARNING, message);\n } else if (thrown != null) {\n final String msg = thrown.getMessage();\n message = msg == null || msg.isEmpty() ? thrown.toString() : msg;\n //logger.log(Level.SEVERE, message, thrown);\n } else {\n message = \"Se produjo un error inesperado\";\n //logger.log(Level.SEVERE, message, new Exception(message));\n }\n displayMessage(node, message, title);\n }",
"public void setError() {\r\n this.textErrorIndex = textIndex;\r\n }",
"private void showAlertResetFail(String msg) {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Database error\");\n\n // Header Text: null\n alert.setHeaderText(\"Could not reset database\");\n alert.setContentText(msg);\n alert.showAndWait();\n }",
"public ErrorGUI(int num) {\n\t\terror = new Error();\n\t\tthis.generateMessage(num);\n\n\t}",
"public void showLoadingError() {\n showError(MESSAGE_LOADING_ERROR);\n }",
"private void displayErrorDialog(String message) {\n AlertDialog.Builder builder;\n\n builder = new AlertDialog.Builder(this);\n builder.setTitle(getString(R.string.er_error))\n .setMessage(message)\n .setNegativeButton(getString(R.string.bt_close), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n }).setIcon(android.R.drawable.stat_notify_error).show();\n }",
"public void displayErrorMessage(String errorMessage) {\n JOptionPane.showMessageDialog(this, errorMessage);\n }",
"private void errorPopUp() {\n new AlertDialog.Builder(mActivity)\n .setTitle(\"Oops\")\n .setMessage(\"Please choose an emotional state or enter a date and time\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Go back without changing anything\n dialogInterface.dismiss();\n }\n })\n .create()\n .show();\n }",
"void showErrorSnackbar();",
"public void showError(String message) {\n JOptionPane.showMessageDialog(this, message, \"Error!\", JOptionPane.ERROR_MESSAGE);\n }",
"private void showErrorMessage() {\n // hide the view for the list of movies\n mMoviesRecyclerView.setVisibility(View.INVISIBLE);\n // show the error message\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n }",
"public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}",
"public void showErrorDialog(String header, String content) {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error\");\n alert.setHeaderText(header);\n Label label = new Label(content);\n label.setWrapText(true);\n alert.getDialogPane().setContent(label);\n alert.showAndWait();\n }",
"public void error();",
"@Test\n public void test078() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n Component component0 = errorPage0.title(\"%n.Is\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"private void setWindowTitle(String title) {\n this.title = title;\n }",
"private void showErrorDialog(int errorCode) {\n\t\t\n }",
"public void setTitle(String usrTitle) throws Exception{\n\n\t\t/*\n\t\t * Input is invalid if an empty String is passed in.\n\t\t */\n\t\tif(usrTitle.length() == 0){\n\n\t\t\tthrow new Exception();\n\t\t}\n\n\t\ttitle = usrTitle;\n\t}",
"public void showErrorMessage(String message){\n System.out.println(LocalTime.now() + \": Error: \" + message);\n }",
"@Override\n public void reportError(String msg) {\n JOptionPane.showMessageDialog(null, msg);\n }",
"@Override\n\tpublic void setEmptyError() {\n\t\tnew Customdialog_Base(this, \"정보를 모두 입력해 주세요.\").show();\n\t}",
"public void error(String message);",
"public void showLoadingError() {\n System.out.println(\"Duke has failed to load properly.\");\n }",
"private void showErrorAlert()\n {\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n \tbuilder.setMessage(getResources().getString(R.string.app_error_str))\n \t .setCancelable(false)\n \t .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int id) {\n \t dialog.cancel();\n \t }\n \t });\n \t \n \tAlertDialog alert = builder.create();\n \talert.show();\n }"
]
| [
"0.7655359",
"0.7500265",
"0.7471299",
"0.7455117",
"0.74432606",
"0.7370641",
"0.7370641",
"0.73362106",
"0.7313459",
"0.7280699",
"0.7256932",
"0.7139119",
"0.7125428",
"0.7104826",
"0.7096476",
"0.70076865",
"0.7001706",
"0.69966215",
"0.69918394",
"0.6969401",
"0.69193685",
"0.6901864",
"0.6894613",
"0.6889847",
"0.6850555",
"0.6817021",
"0.6815465",
"0.68121284",
"0.6802177",
"0.6774814",
"0.67719734",
"0.6763333",
"0.6761302",
"0.6760204",
"0.67543614",
"0.6745397",
"0.6730488",
"0.67213005",
"0.67006373",
"0.6676817",
"0.66663283",
"0.66628563",
"0.66622823",
"0.66621834",
"0.665986",
"0.66440994",
"0.6640904",
"0.6611328",
"0.6610957",
"0.66081214",
"0.6605119",
"0.66041636",
"0.66031533",
"0.6601155",
"0.65978706",
"0.65825653",
"0.657761",
"0.6575747",
"0.6572219",
"0.65441996",
"0.6540761",
"0.6529879",
"0.6524266",
"0.6520489",
"0.6516171",
"0.65110785",
"0.64981556",
"0.64951813",
"0.64948606",
"0.6488219",
"0.64844626",
"0.6477452",
"0.64706916",
"0.6469707",
"0.6457017",
"0.6436691",
"0.64362246",
"0.6433779",
"0.6427997",
"0.6424651",
"0.64192295",
"0.6417447",
"0.641719",
"0.6416002",
"0.6414734",
"0.64122796",
"0.6404417",
"0.6401117",
"0.6400444",
"0.6395881",
"0.63907236",
"0.63795",
"0.6377906",
"0.6374261",
"0.6368485",
"0.63596296",
"0.63492537",
"0.6338989",
"0.633392",
"0.6324314"
]
| 0.8007975 | 0 |
Called whenever the user clicks on the 'next' button. This button will only be visible when the database loading procedure is done, OR if there was an error in it. | @OnClick(R.id.nextButton)
public void onNext(View view){
Intent intent = new Intent(getApplicationContext(), SettingActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);
finish();
database.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void nextButtonClicked()\r\n {\n manager = sond.getManager();\r\n String insertSearchDelete = sond.getInsertSearchDelete();\r\n AnimatorThread animThread = model.getThread();\r\n\r\n // falls der Thread pausiert ist, wird er beim betätigen des\r\n // next-Buttons aufgeweckt\r\n if (button.getPlay() && animThread != null && animThread.isAlive())\r\n {\r\n if (!animThread.getWait())\r\n {\r\n animThread.interrupt();\r\n }\r\n else\r\n {\r\n animThread.wake();\r\n }\r\n }\r\n // Redo muss vor den weiteren if Anweisungen stehen, damit erst alle\r\n // Redo ausgeführt werden, bevor neue Aktionen dem manager hinzugefuegt\r\n // werden\r\n else if (manager.canRedo())\r\n {\r\n manager.redo();\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"insert\"))\r\n {\r\n sond.nextInsertPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"search\"))\r\n {\r\n sond.nextSearchPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"delete\"))\r\n {\r\n sond.nextSearchPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n }",
"@Override\n\tpublic void loadNextPage() {\n\t\tif(curr_content.isLastPage){\n\t\t\tPigAndroidUtil.showToast(mContext, \"以是最后一页:\", 3000);\n\t\t}else{\n\t\t\texchangeNext(m_bookFactory.getNextPageContent(next_content));\n\t\t}\n\t}",
"public void ClickNext() {\r\n\t\tnext.click();\r\n\t\t\tLog(\"Clicked the \\\"Next\\\" button on the Birthdays page\");\r\n\t}",
"public void goToNextPage() {\n nextPageButton.click();\n }",
"@Override\n public void onNextPressed() {\n }",
"@OnClick\n public void onNext() {\n KeyboardUtils.dismissSoftKeyboard(getView());\n this.nextButton.setState(AirButton.State.Loading);\n RegistrationAnalytics.trackClickEvent(RegistrationAnalytics.NEXT_BUTTON, \"phone\", getNavigationTrackingTag());\n AccountCreationRequest.forValidatingPhone(this.airPhone.formattedPhone()).withListener((Observer) this.phoneNumberExistValidationRequestListener).execute(this.requestManager);\n }",
"private void nextPage()\n {\n if(currentPage + 1 <= maxPage)\n {\n prevPageButton.setEnabled(true);\n if(currentPage + 2 > maxPage)\n nextPageButton.setEnabled(false);\n \n paginate(++currentPage, getResultsPerPage());\n updatePageLabel(currentPage, maxPage);\n }\n }",
"private void nextButtonActionPerformed() {//GEN-FIRST:event_nextButtonActionPerformed\r\n getNextPicture();\r\n\r\n }",
"public void nextPage() {\n\t\tthis.skipEntries += NUM_PER_PAGE;\n\t\tloadEntries();\n\t}",
"private void showNextButton(){\n\t\tif(nextButton != null){\n\t\t\thideSubmitBtn();\n\t\t\tmainWindow.addLayer(nextButton, BUTTON_LAYER, submitBtnX, submitBtnY);\n\t\t}\n\t}",
"private void nextButtonActionPerformed(ActionEvent e) {\n // TODO add your code here\n int remainItem = this.list.size() - 6 * (this.page + 1);\n\n if(remainItem <= 0){\n Warning.run(\"No more page here.\");\n }\n else{\n this.page++;\n this.update();\n }\n }",
"public void clickNextButton() {\n if (editSummaryFragment.isActive()) {\n //we're showing the custom edit summary window, so close it and\n //apply the provided summary.\n editSummaryFragment.hide();\n editPreviewFragment.setCustomSummary(editSummaryFragment.getSummary());\n } else if (editPreviewFragment.isActive()) {\n //we're showing the Preview window, which means that the next step is to save it!\n if (abusefilterEditResult != null) {\n //if the user was already shown an AbuseFilter warning, and they're ignoring it:\n funnel.logAbuseFilterWarningIgnore(abusefilterEditResult.getCode());\n }\n getEditTokenThenSave(false);\n funnel.logSaveAttempt();\n } else {\n //we must be showing the editing window, so show the Preview.\n hideSoftKeyboard(this);\n editPreviewFragment.showPreview(title, sectionText.getText().toString());\n funnel.logPreview();\n }\n }",
"protected void loadNextPage(){\n\n if(!isShowingSearchedVotes) {\n setLoadingMoreItems(true);\n RikdagskollenApp.getInstance().getRiksdagenAPIManager().getVotes(new VoteCallback() {\n\n @Override\n public void onVotesFetched(List<Vote> votes) {\n setShowLoadingView(false);\n voteList.addAll(votes);\n getAdapter().notifyDataSetChanged();\n setLoadingMoreItems(false);\n }\n\n @Override\n public void onFail(VolleyError error) {\n setLoadingMoreItems(false);\n decrementPage();\n }\n }, getPageToLoad());\n\n incrementPage();\n }\n }",
"public void pgr_D_Next(ActionEvent e) throws Exception\n\t{\n\t\t//#CM5132\n\t\t// Store listbox to the Session\n\t\tSessionDeadStockListRet listbox =\n\t\t\t(SessionDeadStockListRet) this.getSession().getAttribute(\"LISTBOX\");\n\t\tsetList(listbox, \"next\");\n\t}",
"public void nextBtnClicked(View v) {\r\n//\t\tshowMsg(\"Next Button clicked: \"+ v);\r\n\t\tresetSelection();\r\n\t\tnextQuestion(1);\r\n\t\tshowQuesAndAnswers();\r\n\t}",
"@OnClick\n public void onClickNext() {\n alipayPhoneLogging();\n String phoneNumber = this.airPhone.phoneInputText();\n String countryCode = this.phoneNumberInput.getCountryCode();\n getAlipayActivity().setPhoneNumber(phoneNumber);\n CreatePaymentInstrumentRequest.forAlipay(new Builder().alipayLoginId(getAlipayActivity().getAlipayId()).mobilePhoneNumber(phoneNumber).mobilePhoneCountry(countryCode).build()).withListener((Observer) this.requestListener).execute(this.requestManager);\n this.nextButton.setState(AirButton.State.Loading);\n }",
"protected void showNextPage() {\n\t\tif (currPageIndex.equals(pages.size() - 1)) {\n\t\t\t// Last page so dispose\n\n\t\t\tcleanup();\n\t\t\treturn;\n\t\t}\n\n\t\tAbstractWizardPanel page = pages.get(currPageIndex);\n\n\t\t// Remove page from ignored list if requested\n\t\tif (page.getEnablePageClassArray().size() > 0) {\n\t\t\tfor (Class<? extends AbstractWizardPanel> ignorePage : page\n\t\t\t\t\t.getEnablePageClassArray()) {\n\t\t\t\tignoredPages.remove(ignorePage);\n\t\t\t}\n\t\t}\n\n\t\t// Add page to ignored list if requested\n\t\tif (page.getDisablePageClassArray().size() > 0) {\n\t\t\tfor (Class<? extends AbstractWizardPanel> ignorePage : page\n\t\t\t\t\t.getDisablePageClassArray()) {\n\t\t\t\tif (!ignoredPages.contains(ignorePage)) {\n\t\t\t\t\tignoredPages.add(ignorePage);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tshowPage(currPageIndex + 1, Direction.FORWARD);\n\n\t}",
"public void getNextResultSet(ActionEvent e)\r\n\t{\r\n\t\t// Ensure that an Indexing is not taking place\r\n\t\tif (this.settingEjb.getBooleanSettingByName(Constants.SETTING_SEARCH_INDEXING_COMMENCED))\r\n\t\t{\r\n\t\t\tthis.errorMessages\r\n\t\t\t .addMessage(\"We're sorry. The Search Engine is re-indexing the database right now. Please try again in 1 - 2 minutes. Thank you!\");\r\n\t\t\tthis.errorMessages.renderMessages();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif ((this.pageBackingBean.getCurrentUser() != null && this.pageBackingBean.getCurrentUser().isActive())\r\n\t\t || this.settingEjb.getBooleanSettingByName(Constants.SETTING_SEARCH_ALLOW_NON_USERS))\r\n\t\t{\r\n\t\t\t// Clear the current set of results\r\n\t\t\tthis.setResultsList(this.indexEjb.getBrowseResults(((this.resultsPage - 1) * this.resultsPerPage), this.resultsPerPage));\r\n\t\t}\r\n\t}",
"public static void next() {\n\t\tsendMessage(NEXT_COMMAND);\n\t}",
"protected void handleNext(ActionEvent event) {\n\t}",
"@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tgoNext();\r\n\t\t\t\t}",
"public static void checkAndClickNextButton() {\r\n\t\tcheckNoSuchElementExceptionByID(\"nextquest\", \"\\\"Next\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"nextquest\", \"\\\"Next\\\" button\");\r\n\t}",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n Button nextPage = (Button) findViewById(R.id.button_id);\n System.out.println(\"THE RESULT CODE IS = \" + resultCode);\n if (resultCode==7 | resultCode==0) {\n nextPage.setVisibility(View.VISIBLE);\n }\n else {\n nextPage.setVisibility(View.GONE);\n callbackManager.onActivityResult(requestCode, resultCode, data);\n }\n }",
"public void nextRecord( View v)\n {\n \t//\tClear out the display first\n \tclearBtn( v );\n \t//\tGo get the sheep id of this record\n \tLog.i(\"in next record\", \"this sheep ID is \" + String.valueOf(thissheep_id));\n \tcursor.moveToNext();\n \tLog.i(\"in next record\", \"after moving the cursor \");\n \tthissheep_id = cursor.getInt(0);\n \tthissheep_name = cursor.getString(1);\n \tLog.i(\"in next record\", \"this sheep ID is \" + String.valueOf(thissheep_id));\n \tLog.i(\"in next record\", \"this sheep name is \" + thissheep_name);\n \trecNo += 1;\n \tfindTagsShowAlert(v, thissheep_id);\n//\t\t// I've moved forward so I need to enable the previous record button\n\t\tButton btn3 = (Button) findViewById( R.id.prev_rec_btn );\n\t\tbtn3.setEnabled(true);\t \t\n \tif (recNo == (nRecs)) {\n \t\t// at end so disable next record button\n \t\tButton btn2 = (Button) findViewById( R.id.next_rec_btn );\n \tbtn2.setEnabled(false); \t\t\n \t}\n }",
"public IWizardPage getNextPage();",
"public void goOnToNextQuestion(){\n\t\tbtnConfirmOrNext.setText(\"Next Question\");\n\t\tenableAllButtons();// need to be able to click to proceed\n\t\tquizAccuracy.setText(\": \"+spellList.getLvlAccuracy()+\"%\");\n\t\t// if user got answer correct move on immediately, else let user look at the correct answer first\n\t\tif(correctFlag){\n\t\t\t// set it to false initially for the next question\n\t\t\tcorrectFlag = false;\n\t\t\tbtnConfirmOrNext.doClick();\n\t\t}\n\n\t}",
"void onNextIconClick();",
"public void addNext()\r\n\t{\r\n\t\tnext = new JButton(\"Next\");\r\n\t\tnext.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t{\r\n\t\t\t\tif (state.getTurn() == 1)\r\n\t\t\t\t{\r\n\t\t\t\t\tstate.setPlayerTwoTurn();\r\n\t\t\t\t}\r\n\t\t\t\telse if (state.getTurn() == 2)\r\n\t\t\t\t{\r\n\t\t\t\t\tstate.setPlayerOneTurn();\r\n\t\t\t\t}\r\n\t\t\t\tremoveNext();\r\n\t\t\t\t\r\n\t\t\t\tstate.setWaiting(false);\r\n\t\t\t}\r\n\t\t});\r\n\t\tadd(next);\r\n\t\t\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}",
"public void MoveNext()\r\n \t{\r\n\r\n\t try{\r\n\t\t if(!rsTution.next())rsTution.last();\r\n\t\t Display();\r\n\r\n\r\n\t }catch(SQLException sqle)\r\n\t {System.out.println(\"Move Next Error:\"+sqle);}\r\n \t}",
"public void next(Parameters params) {\r\n pui.commitParameters();\r\n }",
"public String next() {\r\n\t\treturn \"/private/admin/Aktienbestaetigung?faces-redirect=true\";\r\n\t}",
"private void displayNext() {\r\n\t\ti++;\r\n\t\tdisplayCurrentPicture();\r\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n\n JButton jb = (JButton) e.getSource();\n if(jb == next_button){\n\n layout.extractInformation(number_of_rows,number_of_cols,dataEntries);\n JOptionPane.showMessageDialog(this, \"Your input has been successfully acquired. Press OK to continue.\\n\");\n this.setVisible(false);\n AdminGUI startGui = new AdminGUI(dataEntries , layout);\n //TODO: Uncomment layout start\n layout.start();\n }\n\n\n }",
"private void loadNext() {\n\n String\tsql\t= \"SELECT * FROM MPC_Order_NodeNext WHERE MPC_Order_Node_ID=? AND IsActive='Y' ORDER BY SeqNo\";\n boolean\tsplitAnd\t= SPLITELEMENT_AND.equals(getSplitElement());\n\n try {\n\n PreparedStatement\tpstmt\t= DB.prepareStatement(sql);\n\n pstmt.setInt(1, getID());\n\n ResultSet\trs\t= pstmt.executeQuery();\n\n while (rs.next()) {\n\n MMPCOrderNodeNext\tnext\t= new MMPCOrderNodeNext(getCtx(), rs, \"MPC_Order_NodeNext\");\n\n next.setFromSplitAnd(splitAnd);\n m_next.add(next);\n }\n\n rs.close();\n pstmt.close();\n\n } catch (SQLException e) {\n log.log(Level.SEVERE, \"loadNext\", e);\n }\n\n log.info(\"loadNext #\" + m_next.size());\n\n }",
"private void nextButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nextButtonActionPerformed\n if(napakalakiModel.getCurrentPlayer() == null){\n this.nextButton.setEnabled(false);\n this.combatButton.setEnabled(false);\n this.playerView1.enableAfterNextButton();\n napakalakiModel.nextTurn();\n this.combatResultLabel.setText(\"\");\n // Llamo al setNapakalaki para que surjan efecto los cambios\n setNapakalaki(napakalakiModel); \n }\n else{\n // Si ha cumplido el mal rollo puede continuar\n if( napakalakiModel.getCurrentPlayer().validState() ){\n this.nextButton.setEnabled(false);\n this.combatButton.setEnabled(false);\n this.playerView1.enableAfterNextButton();\n napakalakiModel.nextTurn();\n this.combatResultLabel.setText(\"\");\n // Llamo al setNapakalaki para que surjan efecto los cambios\n setNapakalaki(napakalakiModel);\n }\n else{\n this.combatResultLabel.setText(\"No cumples las condiciones para pasar de turno.\");\n }\n } \n }",
"public static void clickNextBtn() {\t\n\t\ttry {\n\t\t\tdriver.findElement(By.id(\"nextquest\")).click();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Next button in Q&A submit doesnt work\");\n\t\t}\n\t}",
"@Override\n protected void onNextPageRequested(int page) {\n\n }",
"public void checkCountforButtonNextandPrevious() {\n Cursor coo = SQLAbsensi.fetchDatabaseAll();\n\n //Page Next\n if (firstDigit != 0) {\n pageCountStartAt = firstDigit * 10;\n int save = coo.getCount() / 10;\n if (save < firstDigit) {\n pageCountEndAt = (firstDigit + 1) * 10;\n } else {\n pageCountEndAt = firstDigit * 10 + (coo.getCount() % 10);\n myButton = (Button) findViewById(R.id.nextpagebutton);\n myButton.setVisibility(View.INVISIBLE);\n }\n } else {\n pageCountStartAt = 0;\n if (coo.getCount() > 10) {\n pageCountEndAt = 10;\n myButton = (Button) findViewById(R.id.nextpagebutton);\n myButton.setVisibility(View.VISIBLE);\n } else {\n pageCountEndAt = coo.getCount();\n }\n }\n\n //Page Previous\n if (firstDigit > 0) {\n myButton = (Button) findViewById(R.id.previouspagebutton);\n myButton.setVisibility(View.VISIBLE);\n } else {\n myButton = (Button) findViewById(R.id.previouspagebutton);\n myButton.setVisibility(View.INVISIBLE);\n }\n Refresh();\n\n }",
"void loadNext();",
"public void searchNextPage() {\n if (!isPerformingQuery\n && isViewingRecipes\n && !isQueryExhausted().getValue()) {\n recipeRepository.searchNextPage();\n }\n }",
"public static void clickNextBtnGame() {\t\n\t\tdriver.findElement(By.id(\"btnnext\")).click();\n\t}",
"@Override\n\tpublic void onLoadMore() {\n\t\tif (onRefresh_number) {\n\t\t\tpage = page + 1;\n\n\t\t\tonRefresh_number = false;\n\t\t\tgetData();\n\n\t\t\t// if (Tools.isConnect(getApplicationContext())) {\n\t\t\t// onRefresh_number = false;\n\t\t\t// getData();\n\t\t\t// } else {\n\t\t\t// onRefresh_number = true;\n\t\t\t// handler.sendEmptyMessage(2);\n\t\t\t// }\n\t\t} else {\n\t\t\thandler.sendEmptyMessage(3);\n\t\t}\n\t}",
"public void actionPerformed(ActionEvent e)\n\t\t{\n\t\t\tnextButton.setText(\"NEXT >> \");\n\t\t\tint index = tabbedPane.getSelectedIndex();\n\t\t\tif (index != 0)\n\t\t\t{\n\t\t\t\ttabbedPane.setSelectedIndex(index - 1);\n\t\t\t}\n\t\t\tif (index - 1 == 0)\n\t\t\t{\n\t\t\t\tbackButton.setEnabled(false);\n\t\t\t}\n\t\t}",
"private void btnNext_click(ActionEvent e) {\n\t\tString stuAnswer = \"\";\r\n\t\tif (rdoItemA.isSelected()) {\r\n\t\t\tstuAnswer = \"A\";\r\n\t\t}\r\n\t\tif (rdoItemB.isSelected()) {\r\n\t\t\tstuAnswer = \"B\";\r\n\t\t}\r\n\t\tif (rdoItemC != null) {\r\n\t\t\tif (rdoItemC.isSelected()) {\r\n\t\t\t\tstuAnswer = \"C\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (rdoItemD != null) {\r\n\t\t\tif (rdoItemD.isSelected()) {\r\n\t\t\t\tstuAnswer = \"D\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!stuAnswer.isEmpty()) {\r\n\t\t\tExamItem bean = eiList.get(questionNO - 1);\r\n\r\n\t\t\tif (bean.getStuAnswer() == null || !bean.getStuAnswer().equalsIgnoreCase(stuAnswer)) {\r\n\t\t\t\tbean.setStuAnswer(stuAnswer);\r\n\t\t\t\tif (bean.getStdAnswer().equalsIgnoreCase(stuAnswer)) {\r\n\t\t\t\t\tbean.setMarkResult(1l);\r\n\t\t\t\t\tbean.setGainScore(bean.getStdScore());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbean.setMarkResult(0l);\r\n\t\t\t\t\tbean.setGainScore(0l);\r\n\t\t\t\t}\r\n\t\t\t\texamItemService.update(bean);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (questionNO == questionNum) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"这是最后一题。\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tquestionNO++;\r\n\t\tinitData();\r\n\t}",
"@Override\n public void run() {\n nextButtonAction(); // invoking next button //\n }",
"@Trace\n//\t@LogMethod\n\tprivate void loadNext() {\n\t\tToast.makeText(MainActivity.this, \"Test\", Toast.LENGTH_SHORT).show();\n\t}",
"public void next()\n\t{\n\t\tSystem.err.print(\"-\");\n\t\tif(pp.available())\n\t\t{\n\t\t\tSystem.err.print(\"+\");\n\t\t\timg_header=pp.getFrameHeader();\n\t\t\tbi=pp.getFrame();\n\t\t\tip[ip_index].setImage(bi);\n\t\t\tip[ip_index].repaint();\n\t\t\tip_index++;\n\t\t\t//ip_index%=cols*rows;\n\t\t\tip_index%=tiles;\n\t\t\tpp.next();\n\t\t}\n\t\tif(panel_glass.isVisible() || is_paused)\n\t\t{\n\t\t\tupdateInfoPanel();\n\t\t\tpanel_buffer_fill.setValue(pp.getBufferFillLevel());\n\t\t\tpanel_buffer_fill.repaint();\n\t\t\tif(is_paused)\n\t\t\t{\n\t\t\t\ttry{Thread.sleep(10);}catch(Exception e){}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t\tpublic void onLoadMore() {\n\t\t\tpageIndex++;\n\t\t\tloadInfo(pageIndex, 1);\n\t\t\tif (DzqcStu.isDebug) {\n\t\t\t\tLog.i(\"pageIndex------\", pageIndex+\"\");\n\t\t\t}\n\t\t}",
"public String nextRegisterPage() {\n logger.debug(\"Next page of Marriage register search list loaded\");\n noOfRows = appParametersDAO.getIntParameter(MR_APPROVAL_ROWS_PER_PAGE);\n pageNo = ((printStart + noOfRows) / noOfRows) + 1;\n marriageRegisterSearchResult();\n printStart += noOfRows;\n // commonUtil.populateDynamicListsWithAllOption(districtList, dsDivisionList, mrDivisionList, user, language);\n populateBasicLists();\n stateList = StateUtil.getStateByLanguage(language);\n return SUCCESS;\n }",
"public void setNextPage(boolean value) {\n this.nextPage = value;\n }",
"public void nextSlide() {\n\t\tif (currentSlideNumber < (showList.size()-1)) {\n\t\t\tsetSlideNumber(currentSlideNumber + 1);\n\t\t}\n\t}",
"void showNextEventsLoadingWheel();",
"void nextPage() throws IndexOutOfBoundsException;",
"public void onClick(View view) {\n\t\t\t\tmButton1.setBackgroundDrawable(mButtonDrawable1);\n\t\t\t\tmButton2.setBackgroundDrawable(mButtonDrawable2);\n\t\t\t\tmButton3.setBackgroundDrawable(mButtonDrawable3);\n\n\t\t\t\tString rightResult = getString(mRightResult.get(mRandomIndex));\n\t\t\t\tLog.d(TAG, \"next button onClick start, mRandomIndex =\" + mRandomIndex + \"; rightResult is \" + rightResult + \",mFinalResult is \" + mFinalResult + \"; mRightResultCount =\" + mRightResultCount);\n\t\t\t\tif (mFinalResult == null) {\n\t\t\t\t\tmTimer.stop();\n\t\t\t\t\tshowErrorDialog();\n\t\t\t\t\treturn;\n\t\t\t\t} else if (mFinalResult != null && mFinalResult.equals(rightResult)) {\n\t\t\t\t\tmFinalResult = null;\n\t\t\t\t\tmRightResultCount++;\n\t\t\t\t} else {\n\t\t\t\t\tmFinalResult = null;\n\t\t\t\t}\n\t\t\t\trefreshScreen();\n\t\t\t\tLog.d(TAG, \"next button onClick end, mRandomIndex =\" + mRandomIndex + \"; rightResult is \" + rightResult + \",mFinalResult is \" + mFinalResult + \"; mRightResultCount =\" + mRightResultCount);\n\t\t\t}",
"public SelectGradableItemsPage clickNextButton() throws Exception {\n try {\n logInstruction(\"LOG INSTRUCTION:clicking the next button\");\n frameSwitch.switchToFrameContent();\n uiDriver.waitToBeDisplayed(btnNextButton, waitTime);\n btnNextButton.click();\n } catch (Exception e) {\n throw new Exception(\"ISSUE IN CLICKING THE 'Next' BUTTON\" + \"clickNextButton\" + e\n .getLocalizedMessage());\n }\n return new SelectGradableItemsPage(uiDriver);\n }",
"private void loadDataFromDBJSON() {\n loadCriteriaList();\n loadCriteriaLeft();\n Button btnNextEnable = (Button) findViewById(R.id.btnNext);\n btnNextEnable.setEnabled(true);\n }",
"private LoginPage clickOnNext() {\n if (waitForElementDisplayed(By.id(ID_NEXT), 10, 20)) {\n clickOnElementUsingJquery(driver.findElement(By.id(ID_NEXT)));\n return this;\n }\n return null;\n }",
"public void nextSlide() {\r\n\t\tpresentation.nextSlide();\r\n\t}",
"public boolean onNextRecord(IDataTableRecord record) throws Exception;",
"public void onPlayerNext() {\n\t\trunOnUiThread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tsetCurrentTrack();\n\t\t\t}\n\t\t});\n\t}",
"public void nextQuestion(View view) {\n Button button = (Button) findViewById(R.id.question_button_previous);\n if (!button.isEnabled()){\n button.setEnabled(true);\n }\n saveProgress();\n sequence++;\n updateView();\n }",
"void btnLoadPlanning();",
"public void next() {\n\n\t\ttry {\n\t\t\t// Establecemos el estado\n\t\t\tsetEstado(Estado.DEBUG);\n\n\t\t\t// ejecutmos la tarea cargada\n\t\t\tplanificador.ejecutarTarea(tarea);\n\n\t\t\t// verificamos si termino\n\t\t\tif (planificador.hayTareasParaEjecutar()) {\n\n\t\t\t\t// cargamos la proxima tarea\n\t\t\t\ttarea = planificador.obtenerProximaTarea();\n\n\t\t\t} else {\n\n\t\t\t\t// Establecemos el estado\n\t\t\t\tsetEstado(Estado.PARADO);\n\n\t\t\t\t// informamos la finalizacion de la ejecución\n\t\t\t\tSystem.out.println(Resource.getString(\"programa.ejecucion.fin\"));\n\n\t\t\t}\n\n\t\t} catch (RuntimeException re) {\n\t\t\tSystem.out.println(MessageFormat.format(Resource.getString(\"programa.ejecucion.error\"),\n\t\t\t\t\tre.getMessage()));\n\t\t\t// re.printStackTrace();\n\t\t\tsetEstado(Estado.PARADO);\n\n\t\t}\n\t}",
"@Override\n\tpublic void onNextRoadClick() {\n\t\t\n\t}",
"public void startPage() {\n\t\tthis.dataComposer.startPage();\n\t}",
"public void getNextRecord() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry\n\t\t{\n\t\t\tmyData.record.getNextRecord(background.getClient());\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}",
"@FXML\r\n private void handleNextButtonAction(ActionEvent event) throws IOException {\n p.switcher(event, \"MusicList.fxml\");\r\n \r\n }",
"@Override\n public void onNext(StudyUnCommandBean studyUnCommandBean) {\n\n List<StudyUnCommandBean.DataBean.RowsBean> rows = studyUnCommandBean.getData().getRows();\n studyDataView.loadVideoListUnCom(rows);\n\n }",
"private void nextButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nextButtonActionPerformed\n projectTree.setSelectionRow(projectTree.getSelectionRows()[0] + 1);\n }",
"public void showNextQuestion() {\n currentQuiz++;\n gui.setUp();\n if (currentQuiz <= VocabularyQuizList.MAX_NUMBER_QUIZ) {\n showQuestion(currentQuiz);\n } else {\n result();\n }\n gui.getFrame().setVisible(true);\n }",
"public EmagHomePage clickonContinueButton()\n {\n continueButton.click();\n return new EmagHomePage(driver);\n }",
"private void hideNextButton(){\n\t\tif(nextButton != null){\n\t\t\tmainWindow.getContainer().remove(nextButton);\n\t\t\tshowSubmitBtn();\n\t\t}\n\t}",
"public static void checkAndClickNextButtonTriviaMode() {\r\n\t\tcheckNoSuchElementExceptionByID(\"btnnext\", \"\\\"Next\\\" button in trivia mode\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"btnnext\", \"\\\"Next\\\" button in trivia mode\");\r\n\t}",
"public void addNextActionListener(ActionListener actionListener){\n\t\tbtnNext.addActionListener(actionListener);\n\t}",
"void OnNextButtonClicked(String buttonClicked,StoriesClass currentStor);",
"public void displayNextRecord(){\r\n\r\n // inc in recordNumber to display next person info, already stored in personsList during search \r\n\trecordNumber++;\r\n\r\n\tif(recordNumber >= personsList.size())\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"You have reached at end of search results\"); \r\n\r\n\t\t/*if user has reached the end of results, disable froward button*/\r\n\t\tbForward.setEnabled(false);\r\n\t\tbBack.setEnabled(true);\r\n\r\n // dec by one to counter last inc\r\n recordNumber -- ; \r\n\t}\r\n\telse\r\n\t{\r\n\t\tbBack.setEnabled(true);\r\n\t\tPersonInfo person = (PersonInfo) personsList.get(recordNumber);\r\n\r\n // displaying search record in text fields \r\n\t\ttfName.setText(person.getName());\r\n\t\ttfAddress.setText(person.getAddress());\r\n\t\ttfPhone.setText(\"\"+person.getPhone());\r\n\t\ttfEmail.setText(person.getEmail());\r\n\t}\r\n}",
"protected void loadNextActivity() {\n\t\tIntent intent = new Intent(this, nextActivityClass);\n\t\tstartActivity(intent);\n\t}",
"private void displayNextQuestion() {\n\n if (quizIterator.hasNext()){\n question = quizIterator.next();\n qTextView.setText(question.getQuestion());\n setBtnUsability(true);\n }\n else\n {\n setBtnUsability(false);\n qTextView.setText(\"Great job! You're a stack star!\");\n }\n\n }",
"public void btnNextClicked(){\n\n fname = etFName.getText().toString();\n lname = etLName.getText().toString();\n country = spcountry.getSelectedItem().toString();\n description = etDescription.getText().toString();\n phone = etPhone.getText().toString();\n\n controller.setData(fname,lname,country,description,phone);\n\n controller.putStringData(this);\n\n /*editorPreferences.putString(\"First Name: \",user.getFirstName());\n editorPreferences.putString(\"Last Name: \",user.getLastName());\n editorPreferences.putString(\"Country : \",user.getCountry());\n editorPreferences.putString(\"Description : \",user.getDescription());\n editorPreferences.putString(\"Phone Number : \",user.getPhone());\n editorPreferences.apply();*/\n\n }",
"private void updateUi() {\n int index = mCurrentPage.getIndex();\n int pageCount = mPdfRenderer.getPageCount();\n mButtonPrevious.setEnabled(0 != index);\n mButtonNext.setEnabled(index + 1 < pageCount);\n getActivity().setTitle(getString(R.string.app_name_with_index, index + 1, pageCount));\n }",
"@Override\n\tpublic void onLoadMore() {\n\t\tpage++;\n\t\texecutorService.submit(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\n\t\t\t\t} catch (Exception 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}\n\t\t});\n\t}",
"public abstract void goNext();",
"public void setNextEnabled(boolean b){\n\t\tbtnNext.setEnabled(b);\n\t}",
"public void onNextButtonPressed(View v) {\n ParticipantDetailsDataAdapter.ViewHolder partViewHolder;\n CrtPollForm3Data form3Data = new CrtPollForm3Data();\n if (mListener != null) {\n for (int i = 0 ; i < mRecyclerView.getAdapter().getItemCount();i++)\n {\n RecyclerView.ViewHolder viewHolder = mRecyclerView.findViewHolderForAdapterPosition(i);\n if (viewHolder != null && viewHolder instanceof ParticipantDetailsDataAdapter.ViewHolder){\n partViewHolder = (ParticipantDetailsDataAdapter.ViewHolder) viewHolder;\n }\n }\n mListener.onFragmentInteractionForm3(form3Data);\n }\n }",
"private void callNextQuestion() {\n questionProgress++;\n\n if (questionProgress <= 10) {\n\n if (Utils.isKitkat()) {\n ContinuousSlide slide = new ContinuousSlide(Gravity.RIGHT);\n TransitionManager.beginDelayedTransition(llBody, slide);\n }\n\n btNext.setVisibility(View.GONE);\n currentQuestion = getQuestionById(questionProgress);\n ivScene.setVisibility(View.GONE);\n tvQuestion.setVisibility(View.GONE);\n\n if (tvResult != null) {\n flSceneFrame.removeView(tvResult);\n }\n ivScene.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {\n @Override\n public void onGlobalLayout() {\n ivScene.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n resizeSceneArea();\n for (int i = 0; i < 4; i++) {\n positionAnswer(answerButtonList.get(i), currentQuestion.getAnswers().get(i));\n waitAnimations();\n }\n }\n });\n } else {\n questionProgress = 10;\n Intent intent = new Intent(this, ResultActivity_.class);\n startActivity(intent);\n }\n }",
"private void moveToLastPage() {\n while (!isLastPage()) {\n click(findElement(next_btn));\n }\n }",
"public void goToNext() {\r\n\t\tif (curr == null)\r\n\t\t\treturn;\r\n\t\tprev = curr;\r\n\t\tcurr = curr.link;\r\n\t}",
"@Override\r\n\tpublic void onLoadMore() {\n\t}",
"@Override\n\tpublic void nextPage() {\n\t\tif ( yesBox.isChecked() ) {\n\t\t\tcore.modelCore.events.remove(core.modelCore.selectedEvent);\n\t\t\t\n\t\t\tcore.currentScreen.thisRemoveScreen();\n\t\t\tcore.currentScreen = null;\n\t\t\tPage_Event12Yes newPage = new Page_Event12Yes(core);\n\t\t} else {\n\t\t\tcore.currentScreen.thisRemoveScreen();\n\t\t\tcore.currentScreen = null;\n\t\t\tPage_Event12No newPage = new Page_Event12No(core);\n\t\t}\n\t\t\n\t\t//core.currentScreen.thisRemoveScreen();\n\t\t//core.currentScreen = null;\n\t\t//Page_Event03 newPage = new Page_Event03(core);\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\r\n\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\tnextStep = USER;\r\n\t\t\t\tmsg.what = nextStep;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t\tisPause =true;\r\n\t\t\t}",
"public void Next(View view)\n {\n increaseNum();\n }",
"@Override\n public void onLoadMore() {\n }",
"private void previousButtonActionPerformed(ActionEvent e) {\n // TODO add your code here\n if(this.page == 0){\n Warning.run(\"No previous page here.\");\n }\n else{\n this.page--;\n this.update();\n }\n }",
"public void onClick(View v) {\n if (iNext == count) {\n iNext = count-1;\n }\n if (pCheck) {\n iNext--;\n }\n if (iNext > 0) {\n iNext--;\n dataSource = data.get(iNext);\n ExammodeAdapter adapter = new ExammodeAdapter(context, dataSource,iNext,device,frag,resData);\n list.setAdapter(adapter);\n next.setEnabled(true);\n next.setText(\"Next\");\n nCheck =true;\n pCheck = false;\n\n }\n if (iNext == 0){\n priv.setEnabled(false);\n iNext = 0;\n nCheck =false;\n\n }\n\n\n }",
"private void getNextQuestionHandler() {\n //Log.i(TAG, \"getNextQuestionHandler\");\n p.setVisibility(View.VISIBLE);\n questionText.setText(\"Loading...\");\n readableCheck.setChecked(false);\n readableCheck.setEnabled(false);\n submitBtn.setEnabled(false);\n skipBtn.setEnabled(false);\n img01.setImageResource(R.drawable.new_rating_smile_grey);\n img02.setImageResource(R.drawable.new_rating_nutral_grey);\n img03.setImageResource(R.drawable.new_rating_angry_grey);\n imgb01 = false;\n imgb02 = false;\n imgb03 = false;\n rateValue = 0;\n\n controller.getNextQuestion();\n }",
"public void onEvent(Event e) throws Exception {\n\t\t\t\tlistData.getItems().clear();\n\t\t\t\tpage += 1;\n\t\t\t\tif(page.intValue() > ((listAllRow.size()-1)/manyRow)+1) page = ((listAllRow.size()-1)/manyRow)+1;\n\t\t\t\tif(page.intValue() == ((listAllRow.size()-1)/manyRow)+1){\n\t\t\t\t\t//berarti last page\n\t\t\t\t\t((Button)next).setDisabled(true);\n\t\t\t\t\t((Button)lastPage).setDisabled(true);\n\t\t\t\t\tshowListPerPage(listData,((page-1)*manyRow)+1,listAllRow.size());\n\t\t\t\t\tComponentUtil.setValue(perData,\"[ \"+String.valueOf(((page-1)*manyRow)+1)+\" - \"+String.valueOf(listAllRow.size()));\n\t\t\t\t}else{\n\t\t\t\t\t((Button)next).setDisabled(false);\n\t\t\t\t\t((Button)lastPage).setDisabled(false);\n\t\t\t\t\tshowListPerPage(listData,((page-1)*manyRow)+1,page*manyRow);\n\t\t\t\t\tComponentUtil.setValue(perData,\"[ \"+String.valueOf(((page-1)*manyRow)+1)+\" - \"+String.valueOf(page*manyRow));\n\t\t\t\t}\n\t\t\t\t((Button)previous).setDisabled(false);\n\t\t\t\t((Button)firstPage).setDisabled(false);\n\t\t\t}",
"public void onEvent(Event e) throws Exception {\n\t\t\t\tInteger insertPageData =(Integer)ComponentUtil.getValue(insertPage);\n\t\t\t\tif(insertPageData.intValue() > 0){\n\t\t\t\t\tif(insertPageData.intValue() <= ((listAllRow.size()-1)/manyRow)+1){\n\t\t\t\t\t\tlistData.getItems().clear();\n\t\t\t\t\t\tpage = insertPageData;\n\t\t\t\t\t\tif(insertPageData.intValue() == 1){\n\t\t\t\t\t\t\t//berarti first page\n\t\t\t\t\t\t\t((Button)previous).setDisabled(true);\n\t\t\t\t\t\t\t((Button)firstPage).setDisabled(true);\n\t\t\t\t\t\t\t((Button)next).setDisabled(false);\n\t\t\t\t\t\t\t((Button)lastPage).setDisabled(false);\n\t\t\t\t\t\t\tshowListPerPage(listData,1,page*manyRow);\n\t\t\t\t\t\t\tComponentUtil.setValue(perData,\"[ 1 - \"+String.valueOf(page*manyRow));\n\t\t\t\t\t\t}else if(insertPageData.intValue() == ((listAllRow.size()-1)/manyRow)+1){\n\t\t\t\t\t\t\t//berarti last page\n\t\t\t\t\t\t\t((Button)previous).setDisabled(false);\n\t\t\t\t\t\t\t((Button)firstPage).setDisabled(false);\n\t\t\t\t\t\t\t((Button)next).setDisabled(true);\n\t\t\t\t\t\t\t((Button)lastPage).setDisabled(true);\n\t\t\t\t\t\t\tshowListPerPage(listData,((page-1)*manyRow)+1,listAllRow.size());\n\t\t\t\t\t\t\tComponentUtil.setValue(perData,\"[ \"+String.valueOf(((page-1)*manyRow)+1)+\" - \"+String.valueOf(listAllRow.size()));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t((Button)previous).setDisabled(false);\n\t\t\t\t\t\t\t((Button)firstPage).setDisabled(false);\n\t\t\t\t\t\t\t((Button)next).setDisabled(false);\n\t\t\t\t\t\t\t((Button)lastPage).setDisabled(false);\n\t\t\t\t\t\t\tshowListPerPage(listData,((page-1)*manyRow)+1,page*manyRow);\n\t\t\t\t\t\t\tComponentUtil.setValue(perData,\"[ \"+String.valueOf(((page-1)*manyRow))+1+\" - \"+String.valueOf(page*manyRow));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"@Override\r\n\tpublic void onLoadMore() {\n\r\n\t}",
"boolean isNextButtonDisabled() {\r\n\t\treturn nextPage.isDisabled();\r\n\t}",
"public void showNextAd() {\n if (reInitializeCampaign) clearExternalAds();\n int extViewIndicator = getChildCount() - (1 + numInternalChildren);\n AppyAdService.getInstance().debugOut(TAG,\"External view indicator is \"+extViewIndicator+\". Indexes: current=\"+curAd+\", next=\"+nextAd+\", base=\"+baseAd);\n if ((extViewIndicator < nextAd) && (nextAd > (numInternalChildren-1))) {\n addAdView(tozAdCampaign.get(nextAd));\n }\n if (reInitializeCampaign && (nextAd == 0) && (numInternalChildren > 0) && (getDisplayedChild() == 0)) {\n AppyAdService.getInstance().debugOut(TAG,\"Leaving root internal ad (index=0) displayed (first pass with new ad campaign)\");\n }\n else {\n AppyAdService.getInstance().debugOut(TAG,\"Current ad bumped to next index\");\n if (nextAd != getDisplayedChild()) {\n setInAnimation(AppyAdService.getInstance().setAnimation(\"in\", tozAdCampaign.get(nextAd)));\n setOutAnimation(AppyAdService.getInstance().setAnimation(\"out\", tozAdCampaign.get(curAd)));\n setDisplayedChild(nextAd);\n }\n curAd = nextAd;\n }\n if (reInitializeCampaign) initializeCounters();\n }"
]
| [
"0.7038883",
"0.6922434",
"0.689707",
"0.68315554",
"0.6653732",
"0.6619436",
"0.6574927",
"0.65516734",
"0.6550316",
"0.6545493",
"0.6543971",
"0.6463447",
"0.6451723",
"0.6435895",
"0.64338696",
"0.6433657",
"0.6359712",
"0.6342502",
"0.6274445",
"0.6267691",
"0.6235855",
"0.6232284",
"0.6204556",
"0.6190305",
"0.6184702",
"0.61482996",
"0.61395156",
"0.6115588",
"0.61072195",
"0.6102398",
"0.607855",
"0.60654736",
"0.6046922",
"0.6005593",
"0.59877115",
"0.5972424",
"0.5968448",
"0.5967654",
"0.5950009",
"0.593827",
"0.59314966",
"0.5930685",
"0.59070814",
"0.5886299",
"0.5884464",
"0.5882458",
"0.5882056",
"0.5856471",
"0.5853713",
"0.5845438",
"0.58452034",
"0.58323896",
"0.5817138",
"0.5807519",
"0.5799342",
"0.57924247",
"0.57811177",
"0.57810485",
"0.578053",
"0.57781863",
"0.57658595",
"0.5765026",
"0.57621044",
"0.5749073",
"0.5748547",
"0.5748148",
"0.5744686",
"0.57343054",
"0.57129043",
"0.5701425",
"0.5696273",
"0.56918085",
"0.56891716",
"0.56863004",
"0.56705076",
"0.5664589",
"0.5650605",
"0.5644472",
"0.5641515",
"0.5640943",
"0.5634485",
"0.5633891",
"0.5619241",
"0.56161547",
"0.56133527",
"0.56109434",
"0.56096464",
"0.55945337",
"0.5589589",
"0.55854964",
"0.5579312",
"0.55615115",
"0.556145",
"0.5560743",
"0.55562615",
"0.55433095",
"0.55424345",
"0.55412877",
"0.5539766",
"0.5539185"
]
| 0.61626196 | 25 |
Processes requests for both HTTP GET and POST methods. | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
HttpSession session = request.getSession();
RequestDispatcher dis = null;
DaftarPelanggan daftarPelanggan = new DaftarPelanggan();
String message = null;
String username = request.getParameter("username");
String password = request.getParameter("password");
Pelanggan plgn = daftarPelanggan.getPelanggan(username, password);
//Kondisi jika username dan password ada yang tidak diisi
try{
if (username.equals("") || password.equals("")) {
RequestDispatcher requestDispatcher =
request.getRequestDispatcher("/error_login.jsp");
message = "Username dan password harus diisi!";
request.setAttribute("message", message);
requestDispatcher.forward(request, response);
} else {
if (plgn != null) {
session.setAttribute("sessionusername", username);
if (plgn.getTipe() == 0) {
request.setAttribute("pelanggan", plgn);
dis = request.getRequestDispatcher("/HomeAdmin.jsp");
dis.include(request, response);
} else if (plgn.getTipe() == 1) {
request.setAttribute("pelanggan", plgn);
dis = request.getRequestDispatcher("/HomePelanggan.jsp");
dis.include(request, response);
}
else{
RequestDispatcher requestDispatcher =
request.getRequestDispatcher("/error_page.jsp");
message ="Maaf, pendaftaran Anda belum dikonfirmasi!";
request.setAttribute("message", message);
requestDispatcher.forward(request, response);
}
}
else {
RequestDispatcher requestDispatcher =
request.getRequestDispatcher("/error_login.jsp");
message = "Username atau Password yang anda masukkan tidak cocok!";
request.setAttribute("message", message);
requestDispatcher.forward(request, response);
}
}
}
catch (NullPointerException npe){
response.sendRedirect("../Login/");
}} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_ALLOWED);\n }\n }",
"private void processRequest(HttpServletRequest request, HttpServletResponse response) {\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // only POST should be used\n doPost(request, response);\n }",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\nSystem.err.println(\"=====================>>>>>123\");\n\t\tString key=req.getParameter(\"method\");\n\t\tswitch (key) {\n\t\tcase \"1\":\n\t\t\tgetProvinces(req,resp);\n\t\t\tbreak;\n\t\tcase \"2\":\n\t\t\tgetCities(req,resp);\t\t\t\n\t\t\tbreak;\n\t\tcase \"3\":\n\t\t\tgetAreas(req,resp);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t\tdoGet(req, resp);\r\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\r\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n processRequest(request, response);\n }",
"@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t\t\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }"
]
| [
"0.7004024",
"0.66585696",
"0.66031146",
"0.6510023",
"0.6447109",
"0.64421695",
"0.64405906",
"0.64321136",
"0.6428049",
"0.6424289",
"0.6424289",
"0.6419742",
"0.6419742",
"0.6419742",
"0.6418235",
"0.64143145",
"0.64143145",
"0.6400266",
"0.63939095",
"0.63939095",
"0.639271",
"0.63919044",
"0.63919044",
"0.63903785",
"0.63903785",
"0.63903785",
"0.63903785",
"0.63887113",
"0.63887113",
"0.6380285",
"0.63783026",
"0.63781637",
"0.637677",
"0.63761306",
"0.6370491",
"0.63626",
"0.63626",
"0.63614637",
"0.6355308",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896"
]
| 0.0 | -1 |
Handles the HTTP POST method. | @Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }",
"public void doPost( )\n {\n \n }",
"@Override\n public String getMethod() {\n return \"POST\";\n }",
"public String post();",
"@Override\n\tpublic void doPost(HttpRequest request, AbstractHttpResponse response)\n\t\t\tthrows IOException {\n\t\t\n\t}",
"@Override\n public String getMethod() {\n return \"POST\";\n }",
"public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }",
"protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n }",
"public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException {\n\n\t}",
"public void postData() {\n\n\t}",
"@Override\n public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {\n logger.warn(\"doPost Called\");\n handle(req, res);\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metPost(request, response);\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\t\r\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}",
"@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}",
"@Override\n\tprotected void handlePostBody(HashMap<String, HashMap<String, String>> params, DataFormat format) throws Exception {\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }",
"@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }",
"@Override\n\n\tpublic void handlePOST(CoapExchange exchange) {\n\t\tFIleStream read = new FIleStream();\n\t\tread.tempWrite(Temp_Path, exchange.getRequestText());\n\t\texchange.respond(ResponseCode.CREATED, \"POST successfully!\");\n\t\t_Logger.info(\"Receive post request:\" + exchange.getRequestText());\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.getWriter().println(\"go to post method in manager\");\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"public abstract boolean handlePost(FORM form, BindException errors) throws Exception;",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.doPost(req, resp);\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\n\t\t\t\n\t\t \n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"public void processPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n }",
"@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}",
"@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\n\t}",
"public void doPost(HttpServletRequest request ,HttpServletResponse response){\n\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"public void post(){\n\t\tHttpClient client = new HttpClient();\n\n\t\tPostMethod post = new PostMethod(\"http://211.138.245.85:8000/sso/POST\");\n//\t\tPostMethod post = new PostMethod(\"/eshopclient/product/show.do?id=111655\");\n//\t\tpost.addRequestHeader(\"Cookie\", cookieHead);\n\n\n\t\ttry {\n\t\t\tSystem.out.println(\"��������====\");\n\t\t\tint status = client.executeMethod(post);\n\t\t\tSystem.out.println(status);\n\t\t} catch (HttpException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n//\t\ttaskCount++;\n//\t\tcountDown--;\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"POST log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) {\r\n\t try {\r\n\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t } catch (IOException ex) {\r\n\t }\r\n\t logError( req, resp, new Exception(\"Unrecognized POST\"), \"\" );\r\n\t sendError(resp, \"Unrecognized POST\");\r\n\t} else\r\n\t if (\"post-request\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onMEVPostsRequest( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"MEV POST error\" );\r\n\t\t sendError( resp, \"MEV POST error: \" + e.toString() );\r\n\t\t}\r\n\t } else if (\"post-response\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onPVMPostsResponse( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"PVM POST error\" );\r\n\t\t sendError( resp, \"PVM POST error: \" + e.toString() );\r\n\t\t}\r\n\t }\r\n }",
"@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest req, HttpServletResponse resp, Object handler, ModelAndView m)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}",
"@Override\n public final void doPost() {\n try {\n checkPermissions(getRequest());\n final IItem jSonStreamAsItem = getJSonStreamAsItem();\n final IItem outputItem = api.runAdd(jSonStreamAsItem);\n\n output(JSonItemWriter.itemToJSON(outputItem));\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }",
"@Override\n\tvoid post() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tSystem.out.println(\"=========interCpetor Post=========\");\r\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString method = request.getParameter(\"method\");\n\t\tswitch(method){\n\t\tcase \"Crawl\":\n\t\t\tcrawl(request, response);\n\t\t\tbreak;\n\t\tcase \"Extract\":\n\t\t\textract(request, response);\n\t\t\tbreak;\n\t\tcase \"JDBC\":\n\t\t\tjdbc(request, response);\n\t\t\tbreak;\n\t\tcase \"Indexer\":\n\t\t\tindexer(request, response);\n\t\t\tbreak;\n\t\t}\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }",
"protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response)\r\n\t/* 43: */throws ServletException, IOException\r\n\t/* 44: */{\r\n\t\t/* 45:48 */doGet(request, response);\r\n\t\t/* 46: */}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tprocess(req, resp);\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\tprocess(req,resp);\r\n\t}",
"public void handlePost(SessionSrvc session, IObjectContext context)\n throws Exception\n {\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tdoGet(request, response);\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}",
"@Override\n protected void doPost\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (JSONException ex) {\r\n Logger.getLogger(PDCBukUpload.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"@Override\r\n protected void doPost(HttpServletRequest request,\r\n HttpServletResponse response)\r\n throws ServletException,\r\n IOException {\r\n processRequest(request,\r\n response);\r\n\r\n }",
"@Override\r\n\tpublic void doPost(CustomHttpRequest request, CustomHttpResponse response) throws Exception {\n\t\tdoGet(request, response);\r\n\t}",
"@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response,\n\t\t\tObject handler, ModelAndView modelAndView) throws Exception {\n\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoHandle(request, response);\n\t}",
"private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\n public void postHandle(HttpServletRequest request,\n HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (Exception ex) {\n Logger.getLogger(PedidoController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }"
]
| [
"0.73289514",
"0.71383566",
"0.7116213",
"0.7105215",
"0.7100045",
"0.70236707",
"0.7016248",
"0.6964149",
"0.6889435",
"0.6784954",
"0.67733276",
"0.67482096",
"0.66677034",
"0.6558593",
"0.65582114",
"0.6525548",
"0.652552",
"0.652552",
"0.652552",
"0.65229493",
"0.6520197",
"0.6515622",
"0.6513045",
"0.6512626",
"0.6492367",
"0.64817846",
"0.6477479",
"0.64725804",
"0.6472099",
"0.6469389",
"0.6456206",
"0.6452577",
"0.6452577",
"0.6452577",
"0.6450273",
"0.6450273",
"0.6438126",
"0.6437522",
"0.64339423",
"0.64253825",
"0.6422238",
"0.6420897",
"0.6420897",
"0.6420897",
"0.6407662",
"0.64041835",
"0.64041835",
"0.639631",
"0.6395677",
"0.6354875",
"0.63334197",
"0.6324263",
"0.62959254",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6280875",
"0.6272104",
"0.6272104",
"0.62711537",
"0.62616795",
"0.62544584",
"0.6251865",
"0.62274224",
"0.6214439",
"0.62137586",
"0.621211",
"0.620854",
"0.62023044",
"0.61775357",
"0.61775357",
"0.61775357",
"0.61775357",
"0.61775357",
"0.61775357",
"0.61775357",
"0.61638993",
"0.61603814",
"0.6148914",
"0.61465937",
"0.61465937",
"0.614548",
"0.6141879",
"0.6136717",
"0.61313903",
"0.61300284",
"0.6124381",
"0.6118381",
"0.6118128",
"0.61063534",
"0.60992104",
"0.6098801",
"0.6096766"
]
| 0.0 | -1 |
Returns a short description of the servlet. | @Override
public String getServletInfo() {
return "Short description";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getServletInfo()\n {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }",
"@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }",
"@Override\r\n\tpublic String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}",
"@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }"
]
| [
"0.87634975",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8531295",
"0.8531295",
"0.85282224",
"0.85282224",
"0.85282224",
"0.8527433",
"0.8527433",
"0.8527433",
"0.8527433",
"0.8527433",
"0.8527433",
"0.8516995",
"0.8512296",
"0.8511239",
"0.8510324",
"0.84964365"
]
| 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.shared_preferences, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}",
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }"
]
| [
"0.72473437",
"0.7202402",
"0.71960324",
"0.7177793",
"0.7108265",
"0.7040525",
"0.70388484",
"0.70126176",
"0.70101976",
"0.6981143",
"0.69461405",
"0.694",
"0.69346833",
"0.69183874",
"0.69183874",
"0.6891571",
"0.6884306",
"0.68758994",
"0.687534",
"0.68627334",
"0.68627334",
"0.68627334",
"0.68627334",
"0.6853258",
"0.6847784",
"0.6820167",
"0.68177783",
"0.68134266",
"0.68132955",
"0.68132955",
"0.6806282",
"0.68011856",
"0.6798178",
"0.67916524",
"0.67897713",
"0.6788724",
"0.6783952",
"0.6759952",
"0.6757919",
"0.6748738",
"0.67445415",
"0.67445415",
"0.6741439",
"0.67401767",
"0.6726359",
"0.6724678",
"0.6723058",
"0.6723058",
"0.6721303",
"0.67123276",
"0.670777",
"0.67050874",
"0.670039",
"0.66992784",
"0.6697299",
"0.6695259",
"0.6686728",
"0.668404",
"0.668404",
"0.6683142",
"0.668091",
"0.66799283",
"0.6677784",
"0.6669004",
"0.66677624",
"0.66630834",
"0.66577506",
"0.66577506",
"0.66577506",
"0.6656902",
"0.66553235",
"0.66553235",
"0.66553235",
"0.66530025",
"0.66522014",
"0.6650771",
"0.66497517",
"0.6647805",
"0.66470283",
"0.66469866",
"0.6646818",
"0.6645723",
"0.66454786",
"0.66439635",
"0.66434425",
"0.6642393",
"0.6639529",
"0.6635146",
"0.6634077",
"0.6632954",
"0.66327274",
"0.66327274",
"0.66327274",
"0.66297686",
"0.66288346",
"0.66275346",
"0.66271275",
"0.6625066",
"0.6621276",
"0.6619167",
"0.6619167"
]
| 0.0 | -1 |
Returns an attribute option combo filter SQL clause. The filter enforces that only attribute option combinations which the given user has access to are returned. | private String getAttributeOptionComboClause(User user) {
return "and dv.attributeoptioncomboid not in ("
+ "select distinct(cocco.categoryoptioncomboid) "
+ "from categoryoptioncombos_categoryoptions as cocco "
+
// Get inaccessible category options
"where cocco.categoryoptionid not in ( "
+ "select co.categoryoptionid "
+ "from dataelementcategoryoption co "
+ " where "
+ JpaQueryUtils.generateSQlQueryForSharingCheck(
"co.sharing", user, AclService.LIKE_READ_DATA)
+ ") )";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hqlFilterAttrDefsWhereClause(GrouperSession grouperSession, \r\n Subject subject, HqlQuery hqlQuery, StringBuilder hqlTables, StringBuilder hqlWhereClause, \r\n String attrDefColumn, Set<Privilege> privInSet);",
"public boolean hqlFilterAttributeDefsWithPrivWhereClause(GrouperSession grouperSession, \r\n Subject subject, HqlQuery hqlQuery, StringBuilder hql, \r\n String attributeDefColumn, Privilege privilege, boolean considerAllSubject);",
"public boolean hqlFilterAttributeDefsNotWithPrivWhereClause(GrouperSession grouperSession, \r\n Subject subject, HqlQuery hqlQuery, StringBuilder hql, \r\n String attributeDefColumn, Privilege privilege, boolean considerAllSubject);",
"String getWhereClause();",
"private void addWhereClauseForAttributes(\n\t\t\tStringBuffer sb,\n\t\t\tString type,\n\t\t\tMap<Attribute<? extends IValue>, Collection<IValue>> attribute2values\n\t\t\t) {\n\t\tsb.append(\" WHERE (\");\n\t\tboolean first = true;\n\t\tfor (Attribute<? extends IValue> attribute: attribute2values.keySet()) {\n\t\t\tif (first) first = false; else sb.append(\") AND (\");\n\t\t\tCollection<IValue> values = attribute2values.get(attribute);\n\t\t\tIValue[] vv = new IValue[values.size()];\n\t\t\tvalues.toArray(vv);\n\t\t\taddWhereClauseForAttribute(sb, type, attribute, vv);\n\t\t}\n\t\tsb.append(\")\");\n\t}",
"public AttributeDialog(Frame aFrame, String attribute, Vector aggs, String[] operators) {\r\n super(aFrame, true);\r\n\r\n setTitle(\"Attribute Aggregate/Filter Dialog: \"+attribute);\r\n\r\n this.attribute = attribute;\r\n this.aggregators = aggs;\r\n\r\n JPanel aggPanel = new JPanel();\r\n aggPanel.setBorder(BorderFactory.createTitledBorder(\"Aggregators\"));\r\n\r\n Vector v = new Vector();\r\n v.addElement(\"No Aggregator\");\r\n for (int i=0; i<aggregators.size(); i++) {\r\n v.addElement(((TASKAggInfo)aggregators.elementAt(i)).getName());\r\n }\r\n\r\n aggList = new JComboBox(v);\r\n aggList.setSelectedIndex(0);\r\n aggList.setRenderer(new MyComboBoxRenderer());\r\n aggPanel.add(aggList);\r\n\r\n aggList.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) { \r\n JComboBox cb = (JComboBox)e.getSource();\r\n int index = cb.getSelectedIndex();\r\n if (index == 0) {\r\n arg1.setEnabled(false);\r\n arg1.setText(\"N/A\");\r\n arg2.setEnabled(false);\r\n arg2.setText(\"N/A\");\r\n }\r\n else {\r\n TASKAggInfo ai = (TASKAggInfo)aggregators.elementAt(index-1);\r\n if (ai.getNumConstArgs() == 1) {\r\n arg1.setEnabled(true);\r\n if (arg1.getText().equals(\"N/A\")) {\r\n arg1.setText(\"Argument 1\");\r\n }\r\n arg2.setEnabled(false);\r\n arg2.setText(\"N/A\");\r\n }\r\n else {\r\n arg1.setEnabled(true);\r\n if (arg1.getText().equals(\"N/A\")) {\r\n arg1.setText(\"Argument 1\");\r\n }\r\n arg2.setEnabled(true);\r\n if (arg2.getText().equals(\"N/A\")) {\r\n arg2.setText(\"Argument 2\");\r\n }\r\n }\r\n }\r\n }\r\n });\r\n \r\n arg1 = new JTextField(10);\r\n arg2 = new JTextField(10);\r\n aggPanel.add(arg1);\r\n aggPanel.add(arg2);\r\n arg1.setEnabled(false);\r\n arg1.setText(\"N/A\");\r\n arg2.setEnabled(false);\r\n arg2.setText(\"N/A\");\r\n\r\n JPanel filterPanel = new JPanel(new FlowLayout());\r\n JLabel label = new JLabel(attribute);\r\n filterPanel.setBorder(BorderFactory.createTitledBorder(\"Filter\"));\r\n opMenu = new JComboBox(operators);\r\n field = new JTextField(30);\r\n filterPanel.add(label);\r\n filterPanel.add(opMenu);\r\n filterPanel.add(field);\r\n\r\n JButton ok = new JButton(\"OK\");\r\n ok.addActionListener(this);\r\n JButton cancel = new JButton(\"Cancel\");\r\n cancel.addActionListener(this);\r\n JPanel submit = new JPanel(new FlowLayout(FlowLayout.CENTER,5,5));\r\n submit.add(ok);\r\n submit.add(cancel);\r\n\r\n JPanel main = new JPanel(new GridLayout(0,1));\r\n main.add(aggPanel);\r\n main.add(filterPanel);\r\n main.add(submit);\r\n \r\n getContentPane().add(main);\r\n\r\n addWindowListener(new WindowAdapter() {\r\n public void windowClosing(WindowEvent e) {\r\n }\r\n });\r\n\r\n setResizable(false);\r\n }",
"GroupQueryBuilder attributeValuesFilter(String attributeName, String[] attributeValue) throws UnsupportedQueryCriterium;",
"@Override\n\tprotected String getWhereConditionBaseOnIdRecord()\n\t{\n\t\tStringBuilder whereCondition = new StringBuilder(\"GAZOID='\");\n\t\twhereCondition.append(getMyDataModel().getOptionId());\n\t\twhereCondition.append(\"'and GAZFLD='\");\n\t\twhereCondition.append(getMyDataModel().getFieldId());\n\t\twhereCondition.append(\"'and GAZPVN='\");\n\t\twhereCondition.append(getMyDataModel().getPvId());\n\t\twhereCondition.append(\"'and GAZTYP='\");\n\t\twhereCondition.append(getMyDataModel().getType());\n\t\twhereCondition.append(\"'\");\n\t\treturn whereCondition.toString();\n\t}",
"private String generateWhereString(UserGroupAssignment parameter){\r\n\t\tString whereString = \"\";\r\n\t\tif(parameter.getGroupId() != null){\r\n\t\t\twhereString += \" AND a.groupId=:GROUP_ID\";\r\n\t\t}\t\t\r\n\t\tif(parameter.getId() != null){\r\n\t\t\twhereString += \" AND a.id=:ID\";\r\n\t\t}\r\n\t\treturn whereString;\r\n\t}",
"private String getQuery(String attribute, String condition){\n String query= \"Select \" + attribute + \"\\n\";\n query += \"From \" + TABLE + \"\\n\";\n query += \"Where \" +condition + \";\";\n return query;\n }",
"protected String updateWhere() {\n String where = WHERE_CALENDARS_VISIBLE;\r\n if (mHideDeclined || !mShowDetailsInMonth) {\r\n where += \" AND \" + CalendarContract.Instances.SELF_ATTENDEE_STATUS + \"!=\"\r\n + CalendarContract.Attendees.ATTENDEE_STATUS_DECLINED;\r\n }\r\n return where;\r\n }",
"public String buildWhereSQL() throws Exception {\r\n if (!inputData.hasFilter()) {\r\n return null;\r\n }\r\n\r\n List<BasicFilter> filters = null;\r\n try {\r\n String filterString = inputData.getFilterString();\r\n Object filterObj = getFilterObject(filterString);\r\n\r\n filters = convertBasicFilterList(filterObj, filters);\r\n\r\n StringBuffer sb = new StringBuffer();\r\n String andDivisor = \"\";\r\n for (Object obj : filters) {\r\n BasicFilter filter = (BasicFilter) obj;\r\n\r\n sb.append(andDivisor);\r\n andDivisor = \" AND \";\r\n\r\n ColumnDescriptor column = inputData.getColumn(filter.getColumn().index());\r\n //the column name of filter\r\n sb.append(column.columnName());\r\n\r\n //the operation of filter\r\n FilterParser.Operation op = filter.getOperation();\r\n switch (op) {\r\n case HDOP_LT:\r\n sb.append(\"<\");\r\n break;\r\n case HDOP_GT:\r\n sb.append(\">\");\r\n break;\r\n case HDOP_LE:\r\n sb.append(\"<=\");\r\n break;\r\n case HDOP_GE:\r\n sb.append(\">=\");\r\n break;\r\n case HDOP_EQ:\r\n sb.append(\"=\");\r\n break;\r\n default:\r\n throw new UnsupportedFilterException(\"unsupported Filter operation : \" + op);\r\n }\r\n\r\n Object val = filter.getConstant().constant();\r\n switch (DataType.get(column.columnTypeCode())) {\r\n case SMALLINT:\r\n case INTEGER:\r\n case BIGINT:\r\n case FLOAT8:\r\n case REAL:\r\n case BOOLEAN:\r\n sb.append(val.toString());\r\n break;\r\n case TEXT:\r\n sb.append(\"'\").append(val.toString()).append(\"'\");\r\n break;\r\n case DATE:\r\n sb.append(\"'\" + val.toString() + \"'\");\r\n break;\r\n default:\r\n throw new UnsupportedFilterException(\"unsupported column type for filtering : \" + column.columnTypeCode());\r\n }\r\n\r\n }\r\n return sb.toString();\r\n } catch (UnsupportedFilterException ex) {\r\n // Do not throw exception, impose no constraints instead\r\n return null;\r\n }\r\n }",
"public Expression getSelectionCriteria() {\n return getSQLStatement().getWhereClause();\n }",
"@Override\r\n public StringBuilder getWhereStatement(BuildingContext context, StringBuilder targetAlias, List<Object> params) {\n AbstractMsSQLDatabaseDialect dialect = (AbstractMsSQLDatabaseDialect)context.getDialect(); \r\n String schemaName;\r\n try{\r\n schemaName = dialect.getSchemaName();\r\n }catch(Exception e){\r\n throw new RuntimeException(\"Failed to get schema name from MSSQL Dialect\", e);\r\n }\r\n \r\n StringBuilder statement = new StringBuilder((schemaName.length() != 0 ? schemaName+\".\" : \"\"))\r\n .append(\"PREAD\")\r\n .append(\"(\")\r\n .append(QueryUtils.asPrefix(targetAlias)).append(dialect.convertColumnName(Constants.FIELD_ID))\r\n .append(\",\")\r\n .append(QueryUtils.asPrefix(targetAlias)).append(dialect.convertColumnName(Constants.TABLE_NODE__SECURITY_ID))\r\n .append(\",?,?,?,?)>0\");\r\n\r\n \r\n Collection<String> groups = context.getSession().getGroupIDs();\r\n Collection<String> contexts = context.getSession().getContextIDs();\r\n StringBuffer groupNames = new StringBuffer();\r\n int i = 0;\r\n for(String group:groups){\r\n if(i++>0) {\r\n groupNames.append(',');\r\n }\r\n \r\n groupNames.append(dialect.convertStringToSQL(group));\r\n }\r\n \r\n StringBuffer contextNames = new StringBuffer();\r\n i = 0;\r\n for(String c:contexts){\r\n if(i++>0)\r\n contextNames.append(',');\r\n \r\n contextNames.append(dialect.convertStringToSQL(c));\r\n }\r\n \r\n \r\n params.add(dialect.convertStringToSQL(context.getSession().getUserID()));\r\n params.add(groupNames.toString());\r\n params.add(contextNames.toString());\r\n params.add(context.isAllowBrowse());\r\n \r\n return statement;\r\n }",
"@Test\n public void testDenyAccessWithNegateUserAttributeCondition() {\n final String flowAlias = \"browser - user attribute condition\";\n final String userWithoutAttribute = \"test-user@localhost\";\n final String errorMessage = \"You don't have necessary attribute.\";\n\n Map<String, String> attributeConfigMap = new HashMap<>();\n attributeConfigMap.put(ConditionalUserAttributeValueFactory.CONF_ATTRIBUTE_NAME, \"attribute\");\n attributeConfigMap.put(ConditionalUserAttributeValueFactory.CONF_ATTRIBUTE_EXPECTED_VALUE, \"value\");\n attributeConfigMap.put(ConditionalUserAttributeValueFactory.CONF_NOT, \"true\");\n\n Map<String, String> denyAccessConfigMap = new HashMap<>();\n denyAccessConfigMap.put(DenyAccessAuthenticatorFactory.ERROR_MESSAGE, errorMessage);\n\n configureBrowserFlowWithDenyAccessInConditionalFlow(flowAlias, ConditionalUserAttributeValueFactory.PROVIDER_ID, attributeConfigMap, denyAccessConfigMap);\n\n try {\n loginUsernameOnlyPage.open();\n loginUsernameOnlyPage.assertCurrent();\n loginUsernameOnlyPage.login(userWithoutAttribute);\n\n errorPage.assertCurrent();\n assertThat(errorPage.getError(), is(errorMessage));\n\n events.expectLogin()\n .user((String) null)\n .session((String) null)\n .error(Errors.ACCESS_DENIED)\n .detail(Details.USERNAME, userWithoutAttribute)\n .removeDetail(Details.CONSENT)\n .assertEvent();\n } finally {\n revertFlows(testRealm(), flowAlias);\n }\n }",
"public void queryLimitedAttributes() {\r\n\t\tFile file = null;\r\n\t\tSystem.out.println(\"select from the options\");\r\n\t\tSystem.out.println(\"1. query only name and mobile number\\n2. query only name and email\");\r\n\t\tint choice = Integer.parseInt(scanner.nextLine());\r\n\t\t\r\n\t\t \r\n\t\tList<Contact> contactList = service.getContactList();\r\n\t\tMap<String, String[]> transformedContacts = service.getMappedTranform(contactList, choice);\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"1. show in console\\n2. write to a file\");\r\n\t\tint option = Integer.parseInt(scanner.nextLine());\r\n\t\tif(option==1) {\r\n\t\t\tshowTransformedContacts(transformedContacts);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif(choice==1) {\r\n\t\t\t\tfile = new File(\"nameNumber.txt\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfile = new File(\"nameEmail.txt\");\r\n\t\t\t}\r\n\t\t\tservice.writeTransformedContacts(transformedContacts,file);\r\n\t\t\tSystem.out.println(\"contacts written to a file\");\r\n\t\t}\r\n\t}",
"java.lang.String getQueryAuthorizations();",
"public ArrayList<String> select(boolean byUser, String user) {\n ArrayList<String> categories = new ArrayList<>();\n String SQL_TMP = byUser ? SQL_SELECT_USER_CATEGORIES : SQL_SELECT_CATEGORIES;\n // connect DB\n try ( PreparedStatement ps = DBConnection.getConnection().prepareStatement(SQL_TMP)) {\n if (byUser) {\n ps.setString(1, user);\n }\n ResultSet rs = ps.executeQuery();\n while (rs.next()) {\n if (byUser) {\n categories.add(rs.getString(\"category\"));\n } else {\n categories.add(rs.getString(\"name\"));\n }\n }\n } catch (SQLException e) {\n System.out.println(\"Error trying to get tags at [DB.DAOs.Magazines..[TagsDAO] \" + e.getMessage());\n }\n return categories;\n }",
"public Filter condition();",
"public String buildFilter() {\n String qs = \"\";\n Set<Map.Entry<String, String>> set = instance.arguments.entrySet();\n\n for (Map.Entry<String, String> entry : set) {\n qs += entry.getKey() + \"=\" + entry.getValue() + \"&\";\n }\n return qs.substring(0, qs.length() - 1);\n }",
"public void filterInActiveRoles(Integer userId, Role roleName){\n \tleftJoin(\" socs.organizationClinicalStaff ocs left join ocs.clinicalStaff cs left join cs.user u \");\n \tandWhere(\" u.id = :id\");\n \tsetParameter(\"id\", userId);\n \tandWhere(\"socs.role = :ROLE_NAME\");\n \tsetParameter(\"ROLE_NAME\", roleName);\n \tandWhere(\" socs.roleStatus = 'ACTIVE'\");\n }",
"private String getUserQuery() {\n return \"select UserName,Password, Enabled from users where UserName=?\";\n //return \"select username,password, enabled from users_temp where username=?\";\n }",
"java.lang.String getDataItemFilter();",
"String getAssignmentFilter(PropertyResolver.Table tableType, String tableAlias, boolean constrainResult, Collection<? extends FxPropertyAssignment> assignments);",
"public Object[] getUserFilterArgs()\n {\n return this.userFilterArgs;\n }",
"Collection<DynamicAttribute> getActiveAttributes(String nodeType, boolean searchableOnly, String[] attributeTypes);",
"@Override\n public String getUserGroupsQuery()\n {\n return \"SELECT ROLE_NAME FROM INFORMATION_SCHEMA.ROLE_AUTHORIZATION_DESCRIPTORS WHERE GRANTEE=? AND ROLE_NAME!=GRANTEE;\";\n }",
"ColumnInfoFilter getColumnInfoFilter();",
"public List getDatabaseFilterParams() {\n\t\tSqlExpression expr = this.getFilterSqlExpression();\n\t\treturn expr != null ? Arrays.asList(expr.getValues()) : new ArrayList();\n\t}",
"protected Disjunction clause(Argument a) {\n\t\tDisjunction result = new Disjunction(\"clause_\" + a.getName());\n\t\tSet<Argument> attackers = this.CAF.getArgumentAttackers(this.instance, a);\n\t\tFormula accepted = this.isAccepted(a, attackers);\n\t\tFormula notAccepted = this.isNotAccepted(a, attackers);\n\t\tresult.addSubformula(accepted);\n\t\tif(notAccepted != null) {\n\t\t\tresult.addSubformula(notAccepted);\n\t\t}\n\t\treturn result;\n\t}",
"@Query(\"select q from Question q where q.questionCategory.categoryName like ?1 or q.questionLevel.levelName like ?2 \"\r\n\t\t\t+ \"or q.questionType.typeName like ?3 or q.userQuestion.fullName like ?4 or q.dateCreated = ?5 or q.questionTag.tagName like ?6\" )\r\n\tList<Question> filterByAttribute(String categoryName, String levelName, String typeName, \r\n\t\t\tString fullName, Date dateCreated, String tagName, Pageable pageable );",
"List<UserGift> selectByExample(UserGiftCriteria example);",
"private Criteria buildInactiveCriteria(){\r\n Criteria criteria = new Criteria();\r\n criteria.addEqualTo(KRADPropertyConstants.ACTIVE, false);\r\n\r\n return criteria;\r\n }",
"public static void filter() {\n\t\t\n\t\tResult.filter(toggleGroup.getSelectedToggle().getUserData(), ((ComboBox)hbox3.getChildren().get(0)).getValue());\n\t\t\n\t}",
"protected void generateWhereClause( WrqInfo wrqInfo, SQLStatementWithParams sqlStatement ) throws Exception\n {\n StringBuilder sql = new StringBuilder();\n List<Element> boundVariables = new LinkedList<Element>();\n\n // Can be a meta-data request\n if( (rowEnd > 0 && rowStart > rowEnd) || rowEnd == 0 ) {\n sql.append(\" WHERE 1=0 \");\n sqlStatement.append(sql.toString());\n return;\n }\n\n WrqFilter2Sql wrqFilter2Sql = new WrqFilter2Sql(wrqInfo, wrqInfo.getFilterNode(), false);\n String filterClause = wrqFilter2Sql.getAsSql( boundVariables );\n\n // Take care for row level security\n String subjectSettingsClause = \"\";\n Subject subject = null;\n try { subject = SecurityUtils.getSubject(); } catch (Exception e) {/* no shiro at all */}\n if (subject != null) {\n if (WebUtils.isHttp(SecurityUtils.getSubject())) {\n SQLStatementWithParams subjectSettingsStmt = wrqInfo.getResultingBindingSet().getSubjectFilterExpression(wrqInfo);\n subjectSettingsClause = subjectSettingsStmt.getStatement();\n boundVariables.addAll(subjectSettingsStmt.getFilterItems());\n }\n else {\n Iterator<StandardBindingSet> bsIterator = wrqInfo.getResultingBindingSet().getResolvedBindingSets().iterator();\n while(bsIterator.hasNext()) {\n StandardBindingSet bs = bsIterator.next();\n if (! bs.isBackendCanBypassSubjectFilter())\n throw new BindingException(\"The BindingSet \" + bs.getName() +\" can't bypass SubjectFilters. Consider using bnd:BindingSet/sec:SubjectSettings/sec:SubjectFilters/@backendCanBypassSubjectFilter\");\n }\n }\n }\n\n // Now combine the two restrictions (Filter and SubjectSettings) into one WHERE clause\n if( ! filterClause.isEmpty() || ! subjectSettingsClause.isEmpty() )\n sql.append(\" WHERE \");\n if( ! filterClause.isEmpty() )\n sql.append(\"( \"+filterClause+\" )\");\n if( ! filterClause.isEmpty() && ! subjectSettingsClause.isEmpty() )\n sql.append(\" AND \");\n if( ! subjectSettingsClause.isEmpty() )\n sql.append(\" ( \"+subjectSettingsClause+\" )\");\n\n sqlStatement.append(sql.toString(), boundVariables, wrqInfo.getResultingBindingSet());\n }",
"private String getFilteringWhereClause(String tableAlias, boolean withWHERE) {\n StringBuilder expr = new StringBuilder();\n if (filter != null && filter.length()>0 && keywordAllFields != null && keywordAllFields.size()>0) {\n int i = 0;\n expr.append(withWHERE ? \" WHERE \" : \"\");\n for (String column : keywordAllFields) {\n if (i++==0) expr.append(\"concat(\");\n else expr.append(\",'||',\");\n if (tableAlias != null && tableAlias.length()>0) {\n expr.append(\"COALESCE(\");\n expr.append(tableAlias);\n expr.append(\".\");\n }\n expr.append(column);\n expr.append(\", '')\");\n }\n expr.append(\") like '%\");\n expr.append(filter);\n expr.append(\"%'\");\n }\n return expr.toString();\n }",
"public String getUserFilter()\n {\n return this.userFilter;\n }",
"public void addBusinessFilterToAttributes(ViewerFilter filter);",
"List<AdminUser> selectByExample(AdminUserCriteria example);",
"List<AdminUser> selectByExample(AdminUserCriteria example);",
"private String createWhere() {\n String where = \"\";\n if (getLatitude() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + LATITUDE + \"=\" + getLatitude(\"\");\n } // if getLatitude\n if (getLongitude() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + LONGITUDE + \"=\" + getLongitude(\"\");\n } // if getLongitude\n if (getDepth() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + DEPTH + \"=\" + getDepth(\"\");\n } // if getDepth\n if (getTemperatureMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + TEMPERATURE_MIN + \"=\" + getTemperatureMin(\"\");\n } // if getTemperatureMin\n if (getTemperatureMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + TEMPERATURE_MAX + \"=\" + getTemperatureMax(\"\");\n } // if getTemperatureMax\n if (getSalinityMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + SALINITY_MIN + \"=\" + getSalinityMin(\"\");\n } // if getSalinityMin\n if (getSalinityMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + SALINITY_MAX + \"=\" + getSalinityMax(\"\");\n } // if getSalinityMax\n if (getOxygenMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + OXYGEN_MIN + \"=\" + getOxygenMin(\"\");\n } // if getOxygenMin\n if (getOxygenMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + OXYGEN_MAX + \"=\" + getOxygenMax(\"\");\n } // if getOxygenMax\n if (getNitrateMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + NITRATE_MIN + \"=\" + getNitrateMin(\"\");\n } // if getNitrateMin\n if (getNitrateMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + NITRATE_MAX + \"=\" + getNitrateMax(\"\");\n } // if getNitrateMax\n if (getPhosphateMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + PHOSPHATE_MIN + \"=\" + getPhosphateMin(\"\");\n } // if getPhosphateMin\n if (getPhosphateMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + PHOSPHATE_MAX + \"=\" + getPhosphateMax(\"\");\n } // if getPhosphateMax\n if (getSilicateMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + SILICATE_MIN + \"=\" + getSilicateMin(\"\");\n } // if getSilicateMin\n if (getSilicateMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + SILICATE_MAX + \"=\" + getSilicateMax(\"\");\n } // if getSilicateMax\n if (getChlorophyllMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + CHLOROPHYLL_MIN + \"=\" + getChlorophyllMin(\"\");\n } // if getChlorophyllMin\n if (getChlorophyllMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + CHLOROPHYLL_MAX + \"=\" + getChlorophyllMax(\"\");\n } // if getChlorophyllMax\n if (dbg) System.out.println (\"<br>where = \" + where); // debug\n return (!where.equals(\"\") ? where : null);\n }",
"private Criteria buildActiveCriteria(){\r\n Criteria criteria = new Criteria();\r\n criteria.addEqualTo(KRADPropertyConstants.ACTIVE, true);\r\n\r\n return criteria;\r\n }",
"public String getWhereString()\n {\n String outString = \n \"WHERE lid = '\" + lid + \"'\" \n + \" AND agency_code = '\" + agency_code + \"'\" \n + \" AND office = '\" + office + \"'\" \n ;\n return outString;\n }",
"private String getWhereFilter(ArrayList<Object> prmList) {\n StringBuffer filterBuffer = new StringBuffer();\n \n /* Set active Flag Filter */ \n if (this.activeFlgFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\"nct.active_flg = ?\");\n prmList.add(this.activeFlgFilter);\n }\n \n return filterBuffer.toString();\n }",
"public RoleCQ queryRole() {\n return xdfgetConditionQueryRole();\n }",
"List<TbProductAttributes> selectByExampleSelective(@Param(\"example\") TbProductAttributesExample example, @Param(\"selective\") TbProductAttributes.Column ... selective);",
"public String getDatabaseFilter() {\n\t\tSqlExpression expr = this.getFilterSqlExpression();\n\t\treturn expr != null ? expr.toSqlString() : \"\";\n\t}",
"public void addBusinessFilterToAdvancedtablecompositionRequiredProperty(ViewerFilter filter);",
"private void searchLecturerByAttributes(String attribute) {\n try {\n ArrayList<String[]> attributeConditionValueList = new ArrayList<>();\n String[] ACV1 = {\"lecturer_name\", CommonConstants.sql.LIKE, \"%\" + attribute + \"%\"};\n attributeConditionValueList.add(ACV1);\n\n String[] ACV2 = {\"lecturer_email\", CommonConstants.sql.LIKE, \"%\" + attribute + \"%\"};\n attributeConditionValueList.add(ACV2);\n\n String[] ACV3 = {\"lecturer_contact_no\", CommonConstants.sql.LIKE, \"%\" + attribute + \"%\"};\n attributeConditionValueList.add(ACV3);\n\n ResultSet rset = new lecturerDaoImpl().getLecturerByMoreAttributes(attributeConditionValueList, CommonConstants.sql.OR);\n String[] columnList = {\"lecturer_id\", \"lecturer_name\", \"lecturer_email\", \"lecturer_contact_no\", \"lecturer_detail\", \"lecturer_prefix_code\"};\n CommonController.loadDataToTable(tblLectures, rset, columnList);\n\n } catch (SQLException ex) {\n Logger.getLogger(manageLecturersNewUI.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public IAverageClause or(String column);",
"private String searchAllUserAccountSQL(){\n\t\tString sql = (\"SELECT username, type From user\");\n\t\tString addsql;\n\t\tif(!accountNameViewTextField.getText().equals(\"\")){\n\t\t\taddsql = \" WHERE username = \\'\" + accountNameViewTextField.getText() + \"\\'\";\n\t\t\tsql = sql + addsql;\n\t\t}\n\t\tSystem.out.println(sql);\n\t\treturn sql;\n\t}",
"String getMetadataWhereClause();",
"@Override\n\tpublic ArrayList<User> queryUserByCondition(User u) {\n\t\treturn userDao.queryUserByCondition(u);\n\t}",
"public String asWhereClause() {\r\n LinkedList<String> whereClause = new LinkedList<>();\r\n \r\n if (noInduk != null && !noInduk.isEmpty())\r\n whereClause.add(noIndukColName + \" LIKE '%\" + noInduk + \"%'\");\r\n \r\n if (currentLevel != null)\r\n whereClause.add(currentLevelColName + \" LIKE '%\" + currentLevel.asWhereClause() + \"%'\");\r\n \r\n if (biodata != null){\r\n String wc = biodata.asWhereClause();\r\n if(wc != null && !wc.isEmpty())\r\n whereClause.add(wc);\r\n }\r\n \r\n if (tanggalMasuk != null)\r\n whereClause.add(tanggalMasukColName + \" LIKE '%\" + tanggalMasuk.asWhereClause(true) + \"%'\");\r\n \r\n if (tanggalLulus != null)\r\n whereClause.add(tanggalLulusColName + \" LIKE '%\" + tanggalLulus.asWhereClause(true) + \"%'\");\r\n if (gelombang != null)\r\n whereClause.add(gelombangColName + \" = '\" + gelombang + \"'\");\r\n if (statusPendaftaran != null)\r\n whereClause.add(statusPendaftaranColName + \" = '\" + statusPendaftaran + \"'\");\r\n if (lastUpdateDate != null)\r\n whereClause.add(lastUpdateDateColName + \" LIKE '%\" + lastUpdateDate.asWhereClause(true) + \"%'\");\r\n return whereClause.isEmpty()? \"\" : StringUtils.join(whereClause, \" AND \");\r\n }",
"private JComboBox getCondition() {\n\t\tif (condition == null) {\n\t\t\tcondition = new JComboBox();\n\t\t\tcondition.setModel(new DefaultComboBoxModel(new String [] {\"<\", \"=\", \">\"}));\n\t\t\tcondition.setSelectedIndex(1);\n\t\t\t\n\t\t}\n\t\treturn condition;\n\t}",
"public void addBusinessFilterToAdvancedtablecompositionOptionalProperty(ViewerFilter filter);",
"public String getFilter() {\n if(isHot) {\n // buy = max\n // view = max\n }\n String s = \"oderby @exo:\"+orderBy + \" \" + orderType;\n return null;\n }",
"Condition(Column col1, String relation, Column col2) {\n // YOUR CODE HERE\n }",
"public ActionCriteria getUsageFilter() {\n\t\treturn usageFilter;\n\t}",
"protected String generateRuleBasedConstraint( String user, List<String> roles ) {\n\n List<String> pieces = new ArrayList<String>();\n for ( Map.Entry<SecurityOwner, String> entry : roleBasedConstraintMap.entrySet() ) {\n SecurityOwner owner = entry.getKey();\n String formula = entry.getValue();\n\n // if the user or a user role matches this constraint\n // add it to the pieces list\n\n if ( ( owner.getOwnerType() == SecurityOwner.OWNER_TYPE_USER && owner.getOwnerName().equals( user ) )\n || ( roles != null && owner.getOwnerType() == SecurityOwner.OWNER_TYPE_ROLE && roles.contains( owner\n .getOwnerName() ) ) ) {\n pieces.add( formula );\n }\n }\n\n if ( pieces.size() == 0 ) {\n return \"FALSE()\";\n } else if ( pieces.size() == 1 ) {\n return pieces.get( 0 );\n } else {\n\n // generate an OR(PIECE0;PIECE1;...) list\n\n StringBuilder buf = new StringBuilder();\n buf.append( FUNC_OR );\n buf.append( PARAM_LIST_BEGIN );\n int index = 0;\n for ( String piece : pieces ) {\n if ( index > 0 ) {\n buf.append( PARAM_SEPARATOR );\n }\n buf.append( piece );\n index++;\n }\n buf.append( PARAM_LIST_END );\n return buf.toString();\n }\n\n }",
"List<String> getActiveFilters();",
"@AllowFailure(message=\"runs only on databases with CURRENT_USER() function e.g. MySQL but not Derby\")\n public void testFunctionWithNoArgument() {\n String jpql = \"SELECT c.balanceOwed FROM Customer c\";\n String sql = \"SELECT CURRENT_USER(), t0.balanceOwed FROM CR_CUST t0\";\n\n CriteriaQuery<Tuple> q = cb.createTupleQuery();\n Root<Customer> c = q.from(Customer.class);\n q.multiselect(cb.function(\"CURRENT_USER\", String.class, (Expression<?>[])null), c.get(Customer_.balanceOwed));\n\n executeAndCompareSQL(q, sql);\n// assertEquivalence(q, jpql);\n }",
"public QbWhere where();",
"@TransactionAttribute(TransactionAttributeType.SUPPORTS)\n protected Criteria<Customer, Customer> configRestrictions(Filter<Customer> filter) {\n Criteria<Customer, Customer> criteria = criteria();\n \n if (filter.hasParam(Customer_.id.getName())) {\n criteria.eq(Customer_.id, filter.getLongParam(Customer_.id.getName())); \n } \n if (filter.hasParam(Customer_.name.getName())) {\n criteria.eq(Customer_.name, (String)filter.getParam(Customer_.name.getName())); \n } \n if (filter.hasParam(Customer_.email.getName())) {\n criteria.eq(Customer_.email, (String)filter.getParam(Customer_.email.getName())); \n } \n if (filter.hasParam(Customer_.dateOfBirth.getName())) {\n criteria.eq(Customer_.dateOfBirth, (Date)filter.getParam(Customer_.dateOfBirth.getName())); \n } \n if (filter.hasParam(Customer_.city.getName())) {\n criteria.join(Customer_.city,\n where(City.class, JoinType.LEFT)\n .eq(City_.id, ((City) filter.getParam(\"city\")).getId()));\n } \n if (filter.hasParam(Customer_.state.getName())) {\n criteria.join(Customer_.state,\n where(State.class, JoinType.LEFT)\n .eq(State_.id, ((State) filter.getParam(\"state\")).getId()));\n } \n\n //create restrictions based on filter entity\n if (has(filter.getEntity())) {\n Customer filterEntity = filter.getEntity();\n \n\t if (has(filterEntity.getId())) {\n criteria.eq(Customer_.id, filterEntity.getId()); \n\t } \n\t if (has(filterEntity.getName())) {\n criteria.eq(Customer_.name, filterEntity.getName()); \n\t } \n\t if (has(filterEntity.getEmail())) {\n criteria.eq(Customer_.email, filterEntity.getEmail()); \n\t } \n\t if (has(filterEntity.getDateOfBirth())) {\n criteria.eq(Customer_.dateOfBirth, filterEntity.getDateOfBirth()); \n\t } \n\t if (has(filterEntity.getCity())) {\n criteria.join(Customer_.city,\n where(City.class, JoinType.LEFT)\n .eq(City_.id, filterEntity.getCity().getId()));\n\t } \n\t if (has(filterEntity.getState())) {\n criteria.join(Customer_.state,\n where(State.class, JoinType.LEFT)\n .eq(State_.id, filterEntity.getState().getId()));\n\t } \n }\n return criteria;\n }",
"public String getWhere()\n {\n // StringBuffer ==> String\n return this.whSelect.toString(); \n }",
"public Set<Filterable> getSelections();",
"TbProductAttributes selectByPrimaryKeySelective(@Param(\"productAttributesId\") Integer productAttributesId, @Param(\"selective\") TbProductAttributes.Column ... selective);",
"List<BsUserRole> selectByExample(BsUserRoleExample example);",
"private static Map<String, String> filterAttributes(Map<String, String> attributes, List<String> forbidden){\n Map<String, String> filtered = new HashMap<>();\n for(String key : attributes.keySet()){\n boolean forb = false;\n for(String f : forbidden){\n if(f.equals(key)){ //filter attributes\n forb = true;\n }\n if(f.startsWith(key)){ //filter sub attributes\n forb = true;\n }\n }\n if(!forb){\n filtered.put(key, attributes.get(key));\n }\n }\n return filtered;\n }",
"@Override\n public ArrayList<Propiedad> getPropiedadesFiltroCliente(String pCriterio, String pDato) throws\n SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE ESTADO \"\n + \"= 'ACTIVO' AND \" + pCriterio + \" = '\" + pDato + \"'\");\n return resultado;\n }",
"private String getSelectQuery() {\n String query = null;\n try {\n query = crudQueryComposer.composeReadQuery();\n } catch (MissingPropertyException e) {\n logger.error(e);\n }\n return query;\n }",
"Set<AttributeDef> getAttributeDefsWhereSubjectDoesHavePrivilege(GrouperSession grouperSession,\r\n String stemId, Scope scope, Subject subject, Privilege privilege, boolean considerAllSubject, \r\n String sqlLikeString);",
"public static String buildTypeSourceWhereFilter() {\n PDCOptionData pcOptions = PDCOptionData.getInstance();\n StringBuilder buffer = new StringBuilder();\n String returnValue = null;\n\n for (int i = 0; i < pcOptions.getTypeSourceChosenList().size(); i++) {\n buffer.append(\" '\" + pcOptions.getTypeSourceChosenList().get(i)\n + \"' \");\n\n if (i != pcOptions.getTypeSourceChosenCount() - 1) {\n buffer.append(\", \");\n }\n }\n\n if (pcOptions.getTypeSourceChosenCount() > 0) {\n returnValue = \" and ts in (\" + buffer.toString() + \") \";\n } else {\n returnValue = \"\";\n }\n\n return returnValue;\n }",
"public boolean isEntityAccessGranted(User user)\n\t{\t\t\n\t\tif (this.entityConditions.isEmpty())\n\t\t{\n\t\t\tif (!this.attributeConditions.isEmpty() || !this.fieldConditions.isEmpty())\n\t\t\t{\n\t\t\t\treturn true;\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (this.logicOperator.equals(\"AND\"))\n\t\t{\n\t\t\tfor (EntityCondition next : this.entityConditions)\n\t\t\t{\n\t\t\t\tif (!next.entityConditionAccessGranted(user)) return false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\telse // if logicOperator equals OR\n\t\t{\n\t\t\tfor (EntityCondition next : this.entityConditions)\n\t\t\t{\n\t\t\t\tif (next.entityConditionAccessGranted(user)) return true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}",
"private String searchAllViewerAccountSQL(){\n\t\tString sql = (\"SELECT username, type From viewer\");\n\t\tString addsql;\n\t\tif(!accountNameViewTextField.getText().equals(\"\")){\n\t\t\taddsql = \" WHERE username = \\'\" + accountNameViewTextField.getText() + \"\\'\";\n\t\t\tsql = sql + addsql;\n\t\t}\n\t\tSystem.out.println(sql);\n\t\treturn sql;\n\t}",
"public void orWhere(String dbsel)\n {\n this._appendWhere(dbsel, WHERE_OR);\n }",
"TbProductAttributes selectOneByExampleSelective(@Param(\"example\") TbProductAttributesExample example, @Param(\"selective\") TbProductAttributes.Column ... selective);",
"Collection<DynamicAttributeDTO> listActiveAttributes(String[] nodeTypes, boolean searchableOnly, String[] attributeTypes);",
"protected Criteria buildActiveCriteria() {\r\n Criteria criteria = new Criteria();\r\n criteria.addEqualTo(KRADPropertyConstants.ACTIVE, true);\r\n\r\n return criteria;\r\n }",
"private List<AccessibleGroupProduct> accessibleGroupProducts(RequestingUser ru, User user) {\n\t\tList<AccessibleGroupProduct> accessibleGroupProducts;\n\t\tif (ru.isSuperUser()) {\n\t\t\taccessibleGroupProducts = groupDao.findForSuperUser();\n\t\t} else if (ru.isAccountManager()) {\n\t\t\t\n\t\t\t\n\t\t\tList<String> lobs = new ArrayList<String>();\n\t\t\t\n\t\t\tif( user.getProducerLob() != null && (user.getProducerLob().equals(\"WC\") || user.getProducerLob().equals(\"SL\")) ) {\n\t\t\t\tlobs.add(user.getProducerLob());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlobs.add(\"WC\");\n\t\t\t\tlobs.add(\"SL\");\n\t\t\t}\n\t\t\t\n\t\t\taccessibleGroupProducts = groupDao.findForAccountManager(user.getId(), lobs);\n\t\t} else if (ru.isHLCUser()) {\n\t\t\t\n\t\t\t\n\t\t\tList<String> lobs = new ArrayList<String>();\n\t\t\t\n\t\t\tif( user.getProducerLob() != null && (user.getProducerLob().equals(\"WC\") || user.getProducerLob().equals(\"SL\")) ) {\n\t\t\t\tlobs.add(user.getProducerLob());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlobs.add(\"WC\");\n\t\t\t\tlobs.add(\"SL\");\n\t\t\t}\n\t\t\t\n\t\t\taccessibleGroupProducts = groupDao.findForAccountManager(user.getId(), lobs);\n\t\t} else if (ru.isWcAuditor()) {\n\t\t\taccessibleGroupProducts = groupDao.findForWCAuditor(user.getAuditorCompany());\n\t\t} else if (ru.isSalesUser()) {\n\t\t\taccessibleGroupProducts = groupDao.findForSales(user.getId(), user.getSalesOfficeIds());\n\t\t} else if (ru.isProducer()) {\n\t\t\taccessibleGroupProducts = groupDao.findForProducer(user.getId(), user.getAllProducers());\n\t\t} else if (ru.isTPAUser()) {\n\t\t\taccessibleGroupProducts = groupDao.findForTPAUser(user.getId(), user.getAllPayeeIds());\n\t\t} else {\n\t\t\taccessibleGroupProducts = groupDao.findForStandardUser(user.getId());\n\t\t}\n\t\t\n\t\treturn accessibleGroupProducts;\n\t}",
"public void addFilterToAdvancedtablecompositionRequiredProperty(ViewerFilter filter);",
"private void addWhereClauseForCoordinate(\n\t\t\tStringBuffer sb,\n\t\t\tString type,\n\t\t\tMap<Attribute<? extends IValue>, IValue> attribute2values\n\t\t\t) {\n\t\tsb.append(\" WHERE (\");\n\t\tboolean first = true;\n\t\tfor (Attribute<? extends IValue> attribute: attribute2values.keySet()) {\n\t\t\tif (first) first = false; else sb.append(\") AND (\");\n\t\t\taddWhereClauseForAttribute(sb, type, attribute, new IValue[] {attribute2values.get(attribute)});\n\t\t}\n\t\tsb.append(\")\");\n\t}",
"public List<AttributeColumn> getActiveAttributeColumns() {\n\t\tList<AttributeColumn> list = new LinkedList<AttributeColumn>();\n\t\tfor (AttributeColumn column : attributeColumns) {\n\t\t\tif (column.isActivated()) {\n\t\t\t\tlist.add(column);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"public void addFilterToAdvancedtablecompositionOptionalProperty(ViewerFilter filter);",
"cn.infinivision.dataforce.busybee.pb.meta.Expr getCondition();",
"OclExpression getCondition();",
"@Override\r\n\tpublic String getCondition(String[] sql) {\n\t\treturn sql[4];\r\n\t}",
"public Select(ArrayList<String> attrList, ArrayList<Integer> attrTableRelation, ArrayList<String> tableNames, Condition cond, Aggregation aggregateMode) { this.queryName = \"SELECT\";\n\t\tthis.tableNames = tableNames;\n\t\tthis.attrList = attrList;\n\t\tthis.attrTableRelation = attrTableRelation;\n\t\tthis.cond = cond;\n\t\tthis.aggregateMode = aggregateMode;\n\t\tthis.isSelectAll = checkSelectAll();\n\t}",
"public String getAndOr();",
"private String createSelectWithNameAndAddress() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"SELECT * FROM client\");\n sb.append(\" WHERE name =?\");\n sb.append(\" AND address =?\");\n\n return sb.toString();\n }",
"public Boolean getCanSelectValues() {\r\n return getAttributeAsBoolean(\"canSelectValues\");\r\n }",
"@ZAttr(id=360)\n public String getGalAutoCompleteLdapFilter() {\n return getAttr(Provisioning.A_zimbraGalAutoCompleteLdapFilter, \"externalLdapAutoComplete\");\n }",
"@SuppressWarnings(justification = \"connectionManager is OSGi managed\", value = {\n \"NP_UNWRITTEN_FIELD\", \"UWF_UNWRITTEN_FIELD\" })\n private String getMyContacts(String user) {\n List<String> connectedUsers = connectionManager.getConnectedUsers(user,\n ConnectionState.ACCEPTED);\n StringBuilder sb = new StringBuilder();\n for (String u : connectedUsers) {\n sb.append(\"@sakai:user=\\\"\").append(u).append(\"\\\" or \");\n }\n String usersClause = sb.toString();\n int i = usersClause.lastIndexOf(\" or \");\n if (i > -1) {\n usersClause = usersClause.substring(0, i);\n }\n if (usersClause.length() > 0) {\n usersClause = \" and (\" + usersClause + \")\";\n return usersClause;\n }\n\n return \"\";\n }",
"String genWhereConditionsFromFilters(TableFields tableFields, String filters);",
"public String applyFilter() {\n if (!filterSelectedField.equals(\"-1\")) {\n Class<?> fieldClass = getFieldType(filterSelectedField);\n\n if ((fieldClass.equals(Integer.class) && !NumberUtil.isInteger(filterCriteria))\n || (fieldClass.equals(Long.class) && !NumberUtil.isLong(filterCriteria))\n || (fieldClass.equals(BigInteger.class) && !NumberUtil.isBigInteger(filterCriteria))) {\n setWarnMessage(i18n.iValue(\"web.client.backingBean.abstractCrudBean.message.MustBeInteger\"));\n filterCriteria = \"\";\n } else {\n signalRead();\n }\n paginationHelper = null; // For pagination recreation\n dataModel = null; // For data model recreation\n selectedItems = null; // For clearing selection\n } else {\n setWarnMessage(i18n.iValue(\"web.client.backingBean.abstractCrudBean.message.MustSelectFindOption\"));\n }\n return null;\n }",
"public Set<AttributeDef> postHqlFilterAttributeDefs(GrouperSession grouperSession, \r\n Set<AttributeDef> attributeDefs, Subject subject, Set<Privilege> privInSet);",
"public static Criterion createUserCriterion(long userId)\n\t {\n\t Criterion criterion = RestrictionsFactoryUtil.eq(\"requestorId\", userId);\n\t // criterion = RestrictionsFactoryUtil.or(criterion,\n\t // RestrictionsFactoryUtil.eq(\"supervisorId\", userId));\n\t criterion = RestrictionsFactoryUtil.or(criterion, RestrictionsFactoryUtil.eq(\"createdBy\", userId));\n\t criterion = RestrictionsFactoryUtil.or(criterion, RestrictionsFactoryUtil.eq(\"nextStage\", String\n\t .valueOf(userId)));\n\n\t return criterion;\n\t }",
"public String generateStringCamposFiltro() {\r\n\t\treturn inicializarCamposComunes();\r\n\t}",
"List<MyUserRoleRelation> selectByExample(MyUserRoleRelationExample example);",
"private String getUserRoleListQuery() throws APIManagementException {\n StringBuilder rolesQuery = new StringBuilder();\n rolesQuery.append('(');\n rolesQuery.append(APIConstants.NULL_USER_ROLE_LIST);\n String[] userRoles = APIUtil.getListOfRoles(userNameWithoutChange);\n String skipRolesByRegex = APIUtil.getSkipRolesByRegex();\n if (StringUtils.isNotEmpty(skipRolesByRegex)) {\n List<String> filteredUserRoles = new ArrayList<>(Arrays.asList(userRoles));\n String[] regexList = skipRolesByRegex.split(\",\");\n for (int i = 0; i < regexList.length; i++) {\n Pattern p = Pattern.compile(regexList[i]);\n Iterator<String> itr = filteredUserRoles.iterator();\n while(itr.hasNext()) {\n String role = itr.next();\n Matcher m = p.matcher(role);\n if (m.matches()) {\n itr.remove();\n }\n }\n }\n userRoles = filteredUserRoles.toArray(new String[0]);\n }\n if (userRoles != null) {\n for (String userRole : userRoles) {\n rolesQuery.append(\" OR \");\n rolesQuery.append(ClientUtils.escapeQueryChars(APIUtil.sanitizeUserRole(userRole.toLowerCase())));\n }\n }\n rolesQuery.append(\")\");\n if(log.isDebugEnabled()) {\n \tlog.debug(\"User role list solr query \" + APIConstants.PUBLISHER_ROLES + \"=\" + rolesQuery.toString());\n }\n return APIConstants.PUBLISHER_ROLES + \"=\" + rolesQuery.toString();\n }"
]
| [
"0.5450786",
"0.5402853",
"0.5183553",
"0.516302",
"0.51151",
"0.5025721",
"0.49961275",
"0.49758866",
"0.48653954",
"0.48314163",
"0.46962717",
"0.4615482",
"0.45735383",
"0.45501718",
"0.45494217",
"0.45262936",
"0.45192894",
"0.45065638",
"0.45002365",
"0.4495172",
"0.44582826",
"0.44563282",
"0.44315705",
"0.44236803",
"0.4423362",
"0.44218367",
"0.44208616",
"0.44028848",
"0.4386197",
"0.4381857",
"0.43705213",
"0.434969",
"0.43462473",
"0.4324786",
"0.43209258",
"0.431948",
"0.43186125",
"0.431057",
"0.43063128",
"0.43063128",
"0.4291442",
"0.42850322",
"0.42833632",
"0.42811376",
"0.42776808",
"0.42747927",
"0.42747545",
"0.42738044",
"0.42705536",
"0.4270376",
"0.42597398",
"0.42562512",
"0.4252547",
"0.424925",
"0.42454252",
"0.42298698",
"0.42275664",
"0.4224989",
"0.42200184",
"0.4213502",
"0.42088544",
"0.42084128",
"0.42012388",
"0.41949657",
"0.41910106",
"0.41761667",
"0.41686693",
"0.41685522",
"0.41683117",
"0.41669825",
"0.41619435",
"0.41521034",
"0.4144436",
"0.41407245",
"0.4135873",
"0.41279918",
"0.41197497",
"0.41141242",
"0.41137522",
"0.41084027",
"0.41073298",
"0.410323",
"0.41012907",
"0.41009828",
"0.40991613",
"0.40984416",
"0.4094087",
"0.40927717",
"0.40921152",
"0.40906644",
"0.40877116",
"0.40838173",
"0.40776405",
"0.40762416",
"0.40749678",
"0.4073241",
"0.40730795",
"0.40724012",
"0.4070418",
"0.40652508"
]
| 0.7751861 | 0 |
method name is the default bean name | @Bean(name = "bean") //name=" " to change the bean name
public Address addressBean() {
return new Address();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setBeanName(String name) {\n System.out.println(\"## setBeanName(name) My bean Name is : \" + name);\n }",
"private String getName() {\n return method.getName();\n }",
"public String getBeanName() {\r\n\t\treturn beanName;\r\n\t}",
"@Nullable\n protected final String getBeanName() {\n return this.beanName;\n }",
"@Override\n\tpublic void setBeanName(String beanname) {\n\t\t\n\t\tSystem.out.println(\"Bean name is : \" + beanname);\n\t\t\n\t}",
"@Override\n\tpublic void setBeanName(String beanName) {\n\t\tSystem.out.println(\"Bean Name:\"+beanName);\n\t\t\n\t}",
"@Override\n\tprotected String buildDefaultBeanName(BeanDefinition definition) {\n\t\tClass<?> clasz = null;\n\t\ttry {\n\t\t\tclasz = ClassUtils.forName(definition.getBeanClassName());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\treturn super.buildDefaultBeanName(definition);\n\t\t}\n\t\tif (clasz == null) {\n\t\t\treturn super.buildDefaultBeanName(definition);\n\t\t}\n\t\tif (clasz.getAnnotation(Controller.class) != null) {\n\t\t\treturn super.buildDefaultBeanName(definition);\n\t\t}\n\t\tClass<?> interfaceClass = ClassUtils.getImplementSuitInterface(clasz);\n\t\tif (interfaceClass != null) {\n\t\t\tString shortClassName = ClassUtils.getShortClassName(interfaceClass);\n\t\t\treturn Introspector.decapitalize(shortClassName);\n\t\t} else {\n\t\t\treturn super.buildDefaultBeanName(definition);\n\t\t}\n\t}",
"public LookupOverride(String methodName, String beanName) {\r\n\t\tsuper(methodName);\r\n\t\tthis.beanName = beanName;\r\n\t}",
"private static String beanName(Object bean) {\r\n\t\tString fullClassName = bean.getClass().getName();\r\n\t\tString classNameTemp = fullClassName.substring(fullClassName\r\n\t\t\t\t.lastIndexOf(\".\") + 1, fullClassName.length());\r\n\t\treturn classNameTemp.substring(0, 1) + classNameTemp.substring(1);\r\n\t}",
"@Override\n protected String getMethodName() {\n return suitename() + \"-\" + super.getMethodName();\n }",
"java.lang.String getMethodName();",
"java.lang.String getMethodName();",
"java.lang.String getMethodName();",
"java.lang.String getMethodName();",
"public String getName() {\n return nameRule.getMethodName();\n }",
"@Bean\n\tpublic String message() {\n\t\treturn \"Hello, Spring!\";\n\t}",
"@Override\n public java.lang.String getBeanIdentifier() {\n return _muQuxianQujianLocalService.getBeanIdentifier();\n }",
"@Override\n public String getMethodName() {\n return null;\n }",
"@Override\n\tString name();",
"String getMethodName();",
"String getMethodName();",
"@Override\n public String getMethod() {\n return METHOD_NAME;\n }",
"@Override\n\tpublic String getJmxBeanName() {\n\t\treturn null;\n\t}",
"public java.lang.String getBeanIdentifier();",
"@Override\n public String getName() {\n return super.getName();\n }",
"String generateBeanName(BeanDefinitionV5 definition, BeanDefinitionRegistryV5 registry);",
"@Override\n public String getBeanIdentifier() {\n return _beanIdentifier;\n }",
"@Override\n public String getBeanIdentifier() {\n return _beanIdentifier;\n }",
"@Override\n public String getBeanIdentifier() {\n return _beanIdentifier;\n }",
"@Override\n\tpublic void name() {\n\t\t\n\t}",
"@Override\n\tpublic void name() {\n\t\t\n\t}",
"@Override\n public String getName() {\n return name();\n }",
"@Override\n public String getName() {\n return name();\n }",
"@Override\n\tpublic BeanEntity getBeanDefinition(String name) {\n\t\treturn null;\n\t}",
"@Override\n public String name() {\n return name;\n }",
"public String getMethodName() {\r\n return _methodName;\r\n }",
"@Override\n\tpublic String getName()\n\t{\n\t\treturn super.getName();\n\t}",
"@Override\n\tpublic String getName() {\n\t\treturn super.getName();\n\t}",
"@Override\n\tpublic String getName() {\n\t\treturn super.getName();\n\t}",
"public String getNombreBeanActual() {\n\t\tString nombre = this.getClass().getAnnotation(ManagedBean.class).name();\n\t\tif (TratamientoDeDatos.esNullCeroVacio(nombre)) {\n\t\t\tnombre = this.getClass().getSimpleName().substring(0, 1).toLowerCase()+ this.getClass().getSimpleName().substring(1);\n\t\t}\n\t\treturn nombre;\n\t}",
"public String getName () {\n return impl.getName ();\n }",
"public String methodBase() {\n\t\tString tmp = name;\n\t\ttmp = tmp.replaceFirst(\"^get\", \"\");\n\t\ttmp = tmp.replaceFirst(\"^is\", \"\");\n\t\treturn tmp.substring(0,1).toLowerCase()+tmp.substring(1);\n\t}",
"@Override\n\tpublic java.lang.String getBeanIdentifier() {\n\t\treturn _vanBanPhapQuyLocalService.getBeanIdentifier();\n\t}",
"default void printMyName(){ // interfaces can have only 1 method type with body and have default prefix as a keyword\n System.out.println(\"My name is bla bla\");\n }",
"public String getMethodName(String name) {\n return methodResources.getString(name);\n }",
"@Override\n public String getName();",
"@Override \n public String getName() {\n return NAME;\n }",
"@Override\n String getName();",
"private void method(String name) {\n app.method(name);\n }",
"private void populateMethod(UIBean uiBean) {\r\n String methodName;\r\n if (method != null) {\r\n methodName = eval.evaluateExpression(method);\r\n } else {\r\n methodName = DEFAULT_METHOD;\r\n }\r\n uiBean.addParameter(\"method\", methodName);\r\n }",
"public static Object getBean(String name) {\r\n\t\tWebApplicationContext wac = ContextLoader.getCurrentWebApplicationContext();\r\n\t\treturn wac.getBean(name);\r\n\t}",
"public String getMethodName() {\n\t\treturn this.methodName;\n\t}",
"public String getMethodName() {\n\t\treturn this.methodName;\n\t}",
"@Override\n public java.lang.String getBeanIdentifier() {\n return _marksService.getBeanIdentifier();\n }",
"@Override\r\n\tprotected String getName() {\n\t\treturn NAME;\r\n\t}",
"@Override\n public String getName() {\n return name;\n }",
"@Override\n public abstract String getName();",
"@Override\r\n String getName();",
"public String getBrowseBeanName() {\n\treturn \"com.hps.july.persistence.LeasePosSchetFaktAccessBean\";\n}",
"public void setGetMethodName(String name) {\n m_getMethodName = name;\n }",
"BaseComponent getComponentName();",
"@Override\n public String getName() {\n return name;\n }",
"@Override\n public String getName() {\n return name;\n }",
"@Override\n public String getName() {\n return this.getClass().getSimpleName();\n }",
"@Override\n\tpublic void randomMethod(String name) {\n\t\t\n\t}",
"public interface BeanPostProcessor {\n\n default Object postProcessBeforeInitialization(Object bean, String beanName) throws Exception {\n return bean;\n }\n\n default Object postProcessAfterInitialization(Object bean, String beanName) throws Exception {\n return bean;\n }\n}",
"private OperationType methodSignatureMapping() {\n String methodName = this.methodSignature.getName();\n try {\n MethodNameMapping methodNameMapping = SpiOrIocUtils.getBean(applicationContext, MethodNameMapping.class);\n assignOperationType(methodNameMapping, methodName);\n return operationType == null ? doDefaultMapping(methodName) : operationType;\n } catch (GetBeanException gbe) {\n if (logger.isErrorEnabled()) {\n logger.error(\"get the method name mapping from spi or spring ioc happen error. \" +\n \"demote the default mapping\", gbe);\n }\n return doDefaultMapping(methodName);\n }\n }",
"public String getMethodName() {\n return methodName;\n }",
"public String getMethodName() {\n return methodName;\n }",
"protected static String _beanMethodName(String prefix, String fieldName)\n {\n StringBuffer sb = new StringBuffer(prefix);\n sb.append(fieldName.substring(0,1).toUpperCase());\n sb.append(fieldName.substring(1));\n return sb.toString();\n }",
"protected String getName(){\r\n return this.name;\r\n }",
"@Override\n public abstract String getName();",
"@Bean\n\tpublic String message2() {\n\t\treturn \"Message #2\";\n\t}",
"@Override\n public String getName() {\n return NAME;\n }",
"@Override\n public String getName() {\n return NAME;\n }",
"@Override\n public String getName() {\n return NAME;\n }",
"public String getName() {\n\t}",
"@Override\n public String getName() {\n return name;\n }",
"@Override\n public String getName() {\n return name;\n }",
"@Override\n public String getName() {\n return name;\n }",
"@Override\n public String getName() {\n return name;\n }",
"@Override\n public String getName() {\n return name;\n }",
"@Override\n public String getName() {\n return name;\n }",
"@Override\n public String getName() {\n return name;\n }",
"@Override\n public String getName() {\n return name;\n }",
"@Override\n public String getName()\n {\n return name;\n }",
"@XmlAttribute(name=\"method\")\n public void setMethodName(String name)\n {\n this.methodName = name;\n flushJBossObjectCache();\n }",
"private String name() {\r\n return cls.getSimpleName() + '.' + mth;\r\n }",
"@Override\n\tpublic String name() {\n\n\t\treturn NAME;\n\t}",
"@Override\n protected String testName(FrameworkMethod method)\n {\n return method.getName() + getName();\n }",
"public Object getBean(String name) {\r\n\t\tif (ctx == null) {\r\n\t\t\tctx = WebApplicationContextUtils\r\n\t\t\t\t\t.getRequiredWebApplicationContext(servlet\r\n\t\t\t\t\t\t\t.getServletContext());\r\n\t\t}\r\n\t\treturn ctx.getBean(name);\r\n\t}",
"@Override\n public String getName() {\n return this.name();\n }",
"Object getBean();",
"@Override\r\n public String getName() {\r\n return NAME;\r\n }",
"void register(String name, Object bean);",
"@Override\n public String name() {\n return this.name;\n }",
"@Override\n\tvoid name() {\n\t\tSystem.out.println(\"name is anubhav\");\n\t\t\n\t}",
"public String getEndpointName() {\n return endpointName;\n }",
"public String getName() {\r\n \treturn this.getClass().getName();\r\n }",
"@Nullable\n @Override\n public String getName() {\n return /*this.requestMethod + \" \" +*/ this.url;\n }"
]
| [
"0.6896814",
"0.6727101",
"0.665212",
"0.66060525",
"0.6540071",
"0.6491603",
"0.6443222",
"0.64150447",
"0.62217957",
"0.6060468",
"0.59690756",
"0.59690756",
"0.59690756",
"0.59690756",
"0.59448695",
"0.5925564",
"0.59199774",
"0.5859038",
"0.58577955",
"0.58441716",
"0.58441716",
"0.5842487",
"0.5812928",
"0.57944447",
"0.57563466",
"0.5754215",
"0.5742465",
"0.5742465",
"0.5742465",
"0.5717819",
"0.5717819",
"0.5714094",
"0.56914955",
"0.5682407",
"0.5640833",
"0.56392854",
"0.5632887",
"0.5632692",
"0.5632692",
"0.5623381",
"0.5606307",
"0.5600829",
"0.5598446",
"0.55862176",
"0.55512184",
"0.55501294",
"0.5548477",
"0.5543948",
"0.5526541",
"0.5523441",
"0.5517143",
"0.5496577",
"0.5496577",
"0.54940575",
"0.5493614",
"0.54918593",
"0.5484192",
"0.5481149",
"0.5479588",
"0.5476067",
"0.54750955",
"0.54721946",
"0.54721946",
"0.5467312",
"0.5459543",
"0.5452915",
"0.5445301",
"0.5440729",
"0.5440729",
"0.5437551",
"0.5433347",
"0.5428309",
"0.5419734",
"0.5419486",
"0.5419486",
"0.5419486",
"0.5417134",
"0.5416325",
"0.5416325",
"0.5416325",
"0.5416325",
"0.5416325",
"0.5416325",
"0.5416325",
"0.5416325",
"0.5409522",
"0.53963196",
"0.5396295",
"0.5395028",
"0.5366126",
"0.53654605",
"0.5358236",
"0.5357967",
"0.53511393",
"0.5345799",
"0.5344819",
"0.5342767",
"0.53395593",
"0.53391933",
"0.5339058"
]
| 0.54073083 | 86 |
TODO Autogenerated method stub | @Override
protected void executeClass() throws BusClassException {
Attribute attEmpresas = this.getCurrentEntity().getAttribute("P5_DOCUNI_EMPRESA_FACTURA");
PossibleValue posMautibla = new PossibleValue("Mautibla", "Mautibla");
PossibleValue posGroove = new PossibleValue("Groove", "Groove");
attEmpresas.addPossibleValues(posMautibla);
attEmpresas.addPossibleValues(posGroove);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
Reads in the key the player uses and uses the cases accordingly to call to the command to execute. After every key press the GUI is updated. | @Override
public void keyPressed(KeyEvent e)
{
char entered = e.getKeyChar();
switch (entered)
{
case 'w':
move.execute(entered);
break;
case 's':
move.execute(entered);
break;
case 'a':
move.execute(entered);
break;
case 'd':
move.execute(entered);
break;
case 'x':
equip.execute(entered);
break;
default:
break;
}
game.updateState();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void interactWithKeyboard() {\n renderMenu();\n Interaction interact = null;\n // open from the menu\n boolean wait = true;\n while (wait) {\n if (!StdDraw.hasNextKeyTyped()) {\n continue;\n }\n String c = (\"\" + StdDraw.nextKeyTyped()).toUpperCase();\n System.out.println(c);\n switch (c) {\n case \"N\":\n // get the seed\n renderTypeString();\n long seed = getSeed();\n TETile[][] WorldFrame = null;\n WorldFrame = WorldGenerator.generate(seed, WorldFrame, WIDTH, HEIGHT);\n interact = new Interaction(WorldFrame, seed);\n wait = false;\n break;\n case \"L\":\n interact = loadInteraction();\n wait = false;\n break;\n case \"Q\":\n System.exit(0);\n break;\n default:\n System.exit(0);\n break;\n }\n }\n // start to play\n interact.initialize();\n char preKey = ',';\n while (true) {\n if (StdDraw.hasNextKeyTyped()) {\n char key = StdDraw.nextKeyTyped();\n // if a user enter ':' then 'Q', then save and exit the game\n if ((\"\" + preKey + key).toUpperCase().equals(\":Q\")) {\n saveInteraction(interact);\n System.exit(0);\n }\n // in case the player enter something else\n if (\"WSAD\".contains((\"\" + key).toUpperCase())) {\n interact.move((\"\" + key).toUpperCase());\n }\n preKey = key;\n }\n interact.show();\n }\n }",
"public void keyPressed()\n{\n switch (key)\n {\n case ' ': //play and pause\n s =! s;\n if (s == false)\n {\n //pausets = millis()/4;\n controlP5.getController(\"play\").setLabel(\"Play\");\n } else if (s == true )\n {\n //origint = origint + millis()/4 - pausets;\n controlP5.getController(\"play\").setLabel(\"Pause\");\n }\n break; \n\n case TAB: //change of basemap\n if (mapwd == map1)\n {\n mapwd = map3;\n mapwk = map4; \n } else\n {\n mapwd = map1;\n mapwk = map2;\n }\n break; \n\n case ',': //backwards\n runtimes = runtimes - 300;\n break;\n\n case '<': //backwards\n runtimes = runtimes - 300;\n break; \n\n case '.': //forwards\n runtimes = runtimes + 300;\n break;\n\n case '>': //forwards\n runtimes = runtimes + 300;\n break;\n\n case 'z': //zoom to origin layer\n mapwk.zoomAndPanTo(BeijingLocation, 12);\n mapwd.zoomAndPanTo(BeijingLocation, 12);\n break;\n\n// case 'q': //switch mode\n// f.show();\n// break;\n }\n}",
"public void interactWithKeyboard() {\n StdDraw.setCanvasSize(WIDTH * 16, HEIGHT * 16);\n StdDraw.setXscale(0, WIDTH);\n StdDraw.setYscale(0, HEIGHT);\n createMenu();\n StdDraw.enableDoubleBuffering();\n while (true) {\n if (StdDraw.hasNextKeyTyped()) {\n char input = Character.toUpperCase(StdDraw.nextKeyTyped());\n if (input == 'v' || input == 'V') {\n StdDraw.enableDoubleBuffering();\n StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a name: \" + name);\n StdDraw.text(WIDTH / 2, HEIGHT * 5 / 6, \"Press # to finish.\");\n StdDraw.show();\n while (true) {\n if (StdDraw.hasNextKeyTyped()) {\n char next = StdDraw.nextKeyTyped();\n if (next == '#') {\n createMenu();\n break;\n } else {\n name += next;\n StdDraw.enableDoubleBuffering(); StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a name: \" + name);\n StdDraw.text(WIDTH / 2, HEIGHT * 5 / 6, \"Press # to finish.\");\n StdDraw.show();\n }\n }\n }\n }\n if (input == 'l' || input == 'L') {\n toInsert = loadWorld();\n if (toInsert.substring(0, 1).equals(\"k\")) {\n floorTile = Tileset.GRASS;\n }\n toInsert = toInsert.substring(1);\n interactWithInputString(toInsert);\n ter.renderFrame(world);\n startCommands();\n }\n if (input == 'n' || input == 'N') {\n toInsert += 'n';\n StdDraw.enableDoubleBuffering();\n StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a seed: \" + toInsert);\n StdDraw.show();\n while (true) {\n if (!StdDraw.hasNextKeyTyped()) {\n continue;\n }\n char c = StdDraw.nextKeyTyped();\n if (c == 's' || c == 'S') {\n toInsert += 's';\n StdDraw.enableDoubleBuffering();\n StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a seed: \" + toInsert);\n StdDraw.show(); interactWithInputString(toInsert);\n ter.renderFrame(world); mouseLocation(); startCommands();\n break;\n }\n if (c != 'n' || c != 'N') {\n toInsert += c;\n StdDraw.enableDoubleBuffering(); StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a seed: \" + toInsert);\n StdDraw.show();\n }\n }\n }\n if (input == 'l' || input == 'L') {\n toInsert = loadWorld();\n if (toInsert.substring(0, 1).equals(\"k\")) {\n floorTile = Tileset.GRASS;\n }\n toInsert = toInsert.substring(1); interactWithInputString(toInsert);\n ter.renderFrame(world); startCommands();\n }\n }\n }\n }",
"public void interactWithKeyboard() {\n initialize_frame();\n InputSource inputSource = new KeyboardInputSource();\n char c = inputSource.getNextKey();\n while(inputSource.possibleNextInput() && c != 'Q') {\n if (c == 'N') {\n // instructions_page();\n draw_frame_seed();\n start_game(\"New\");\n break;\n } else if (c == 'L') {\n File seed = new File(\"seed.txt\");\n File directions = new File(\"movements.txt\");\n String old_seed = loadEditor(seed);\n String old_directions = loadEditor(directions);\n load_and_move(old_seed, old_directions);\n start_game(\"Load\");\n } else if (c == 'I') {\n instructions_page();\n if (inputSource.getNextKey() == 'B') {\n interactWithKeyboard();\n }\n }\n }\n\n }",
"protected void keyPressed(int keyCode) {\n switch (gameStatus) {\n\t case notInitialized: if (keyCode==END_KEY) midlet.killApp();\n\t break;\n\t case Finished:\n\t case gameOver: if (ticks<TOTAL_OBSERVING_TIME) if (ticks>ANTI_CLICK_DELAY && ticks<FINAL_PICTURE_OBSERVING_TIME)\n\t ticks=FINAL_PICTURE_OBSERVING_TIME+1;\n\t case demoPlay:\n case titleStatus : {\n\t\t // System.out.println(\"kk:\"+keyCode/*+\", ac:\"+getGameAction(keyCode)+\", acn:\"+getKeyName(keyCode)*/);\n\t\t switch (keyCode) {\n\t\t\t\t case MENU_KEY:\n\t\t\t\t midlet.ShowMainMenu();\n\t\t\t\t break;\n\t\t\t\t case END_KEY: midlet.ShowQuitMenu(false);\n\t\t\t\t break;\n\t\t\t\t default:\n\t\t\t\t if (gameStatus == demoPlay || ticks>=TOTAL_OBSERVING_TIME){\n\t gameStatus=titleStatus;\n\t\t\t ticks=0;\n\t\t\t blink=false;\n\t\t\t\t\t repaint();\n\t\t\t\t }\n\t\t }\n\t\t\t\t //midlet.commandAction(midlet.newGameCommand,this);\n } break;\n case playGame : {\n\n\t\t\t int action = getGameAction(keyCode);\n\t\t\t if (keyCode == MENU_KEY) midlet.ShowGameMenu(); else\n\t\t\t if (keyCode == END_KEY) midlet.ShowQuitMenu(true); else\n\t switch (keyCode/*action*/) {\n\t\t\t\t case Canvas.KEY_NUM6/*RIGHT*/: direct=StarGun_SB.DIRECT_RIGHT; break;\n\t case Canvas.KEY_NUM4/*LEFT*/: direct=StarGun_SB.DIRECT_LEFT; break;\n\t\t\t\t case Canvas.KEY_NUM3: direct=StarGun_SB.DIRECT_ANGLE_LEFT; break;\n\t\t\t\t case Canvas.KEY_NUM1: direct=StarGun_SB.DIRECT_ANGLE_RIGHT; break;\n\t\t\t\t case Canvas.KEY_NUM9/*RIGHT*/: direct=StarGun_SB.DIRECT_RIGHT|StarGun_SB.DIRECT_ANGLE_RIGHT; break;\n\t case Canvas.KEY_NUM7/*LEFT*/: direct=StarGun_SB.DIRECT_LEFT|StarGun_SB.DIRECT_ANGLE_LEFT; break;\n\t\t\t\t case Canvas.KEY_NUM5/*FIRE*/: direct=StarGun_SB.DIRECT_FIRE; break;\n\n\t\t\t\tdefault:direct=StarGun_SB.DIRECT_NONE;\n\t }\n }\n }\n }",
"private void typeKey(char keyChar) {\r\n if(keyChar == '1') {\r\n gameMode.typed(true);\r\n gameMode.setGameMode(1);\r\n }\r\n if(keyChar == '2') {\r\n gameMode.typed(true);\r\n gameMode.setGameMode(2);\r\n }\r\n if(keyChar == '3') {\r\n gameMode.typed(true);\r\n gameMode.setGameMode(3);\r\n }\r\n if(keyChar == '4') {\r\n gameMode.typed(true);\r\n gameMode.setGameMode(4);\r\n }\r\n if(keyChar == 's' || keyChar == 'S')\r\n restart.typed(true);\r\n if(keyChar == 'n' || keyChar == 'N')\r\n System.exit(0); // TODO: funciona estando en inselection y no deberia\r\n }",
"public void keyPressed() {\n\t ackEvent();\n if (key == ' ') {\n pauseTic = !pauseTic;\n EventQueue.getInstance().togglePause();\n }\n if (key == '.') {\n EventQueue.getInstance().beginEvents();\n } else if (key == '\\n') {\n if (pauseTic) { //only let this run if the display is paused\n StringManager.getInstance().ticAllOneCycle();\n }\n }else KeyMap.getInstance().run(key);\n }",
"public void processCommand() {\n if (cam != null) {\n // No commands if no draw canvas to retrieve them from!\n if (this.cam.getDr().isKeyPressed(KeyEvent.VK_UP) || StdDraw.isKeyPressed(KeyEvent.VK_UP))\n this.setR(this.getR().minus(this.getFacingVector().times(1e8)));\n if (this.cam.getDr().isKeyPressed(KeyEvent.VK_DOWN) || StdDraw.isKeyPressed(KeyEvent.VK_DOWN)) \n this.setR(this.getR().plus(this.getFacingVector().times(1e8)));\n if (this.cam.getDr().isKeyPressed(KeyEvent.VK_LEFT) || StdDraw.isKeyPressed(KeyEvent.VK_LEFT)) \n this.rot += FOV_INCREMENT;\n if (this.cam.getDr().isKeyPressed(KeyEvent.VK_RIGHT) || StdDraw.isKeyPressed(KeyEvent.VK_RIGHT)) \n this.rot -= FOV_INCREMENT; \n }\n }",
"@Override\n\tpublic void process() {\n\n\t\tInputCommand cmd = InputManager.nextCommandPreserveKeyData();\n\t\tif (cmd != null) {\n\t\t\tswitch (cmd) {\n\n\t\t\tcase NEW:\n\t\t\t\tsetNextScreen(new NewGameScreen(terminal));\n\t\t\t\tbreak;\n\n\t\t\tcase LOAD:\n\t\t\t\tsetNextScreen(new MainScreen(this.terminal, loadGame()), false);\n\t\t\t\tbreak;\n\n\t\t\tcase CANCEL:\n\t\t\t\tSystem.exit(0);\n\n\t\t\tdefault:\n\t\t\t}\n\t\t}\n\t}",
"public void input(){\n\t\tboolean[] inputKeyArray = inputHandler.processKeys();\n\t\tint[] inputMouseArray = inputHandler.processMouse();\n\t\tcurrentLevel.userInput(inputKeyArray, inputMouseArray);\n\t}",
"public void key()\r\n {\n int leftChange=-60;//choose the appropriate left step size ; \r\n int rightChange=60;//choose the appropriate right step size ; \r\n int upChange=-60;//choose the appropriate up step size ; \r\n int downChange=60;//choose the appropriate down step size ; \r\n if (Greenfoot.isKeyDown(\"left\"))\r\n {\r\n if (canMove(leftChange, 0)==true){\r\n setLocation(getX()+leftChange, getY()) ;}\r\n Greenfoot.playSound(\"move.wav\"); //(Sound-Ideas,2014)\r\n }\r\n if (Greenfoot.isKeyDown(\"right\"))\r\n {\r\n if (canMove(rightChange, 0)==true){\r\n setLocation(getX()+rightChange, getY()) ;}\r\n Greenfoot.playSound(\"move.wav\"); //(Sound-Ideas,2014)\r\n }\r\n if (Greenfoot.isKeyDown(\"up\"))\r\n {\r\n if (canMove(0, upChange)==true){\r\n setLocation(getX(), getY()+upChange) ;}\r\n }\r\n if (Greenfoot.isKeyDown(\"down\"))\r\n {\r\n if (canMove(0, downChange)==true){\r\n setLocation(getX(), getY()+downChange) ;}\r\n }\r\n }",
"public void controlPressed(Command com)\n {\n //System.out.println(\"pressed: \" + com);\n \n if(com.equals(left))\n {\n setMovingDir(Direction.LEFT);\n userHoldingLeftXOrRight = true;\n }\n else if(com.equals(right))\n {\n setMovingDir(Direction.RIGHT);\n userHoldingLeftXOrRight = true;\n }\n else if(com.equals(jump))\n {\n \tjumpKeyDown = true;\n \tif(canJump)\n \t{\n \t\tstartJump();\n \t}\n }\n else if(com.equals(playNote1))\n {\n \tSystem.out.println(\"playNote1 key pressed\");\n \tplayNote1KeyDown = true;\n \t\n \tif(hasInstrument)\n \t{\n \t\tcurrentInstrument.play(0); \n \t\t// TODO\n \t}\n }\n else if(com.equals(run))\n {\n \tSystem.out.println(\"-- Shift is down\");\n \tfastMoveMode = true;\n }\n }",
"default void interactWith(Key key) {\n\t}",
"public void keyPressed(int key) {\n\t\tif(key==GameSystem.DOWN){\n\t\t\tif(dSelected==DEATH.RESTART){\n\t\t\t\tdSelected=DEATH.BACKTOMENU;\n\t\t\t}\n\t\t}\n\t\telse if(key==GameSystem.UP){\n\t\t\tif(dSelected==DEATH.BACKTOMENU){\n\t\t\t\tdSelected=DEATH.RESTART;\n\t\t\t}\t\n\t\t}\n\t\telse if(key==GameSystem.CONFIRM){\n\t\t\tif(dSelected==DEATH.BACKTOMENU){\n\t\t\t\tGameSystem.TWO_PLAYER_MODE=false;\n\t\t\t\tGameSystem.PLAYER_ONE_CHOSEN=false;\n\t\t\t\tMenu.backToMenu();\n\t\t\t}\n\t\t\telse if(dSelected==DEATH.RESTART){\n\t\t\t\tMenu.toGameMode();\n\t\t\t}\n\t\t}\n\t}",
"public boolean updateGame(Player currentPlayer, char command, int level) {\n\t\tint cpl = currentPlayer.getCurrentRoom().getLocation(); //get current player location\n\t\tboolean validKeyTyped = false;\t//initialize sentinel value to be returned.\n\n\n\t\t//NOTE: Also see DrawCanvas class that allows players to use arrow keys to move the robot.\n\t\t//\t\tFor example, the UP arrow key is mapped to 'F'.\n\t\tswitch(Character.toUpperCase(command)){\n\t\t/* 'F' moves a player forward. So this makes the player in the current room GUI invisible\n\t\t * before moving him to the next room. */\n\t\tcase 'F':\n\t\t\tif(currentPlayer == h1)\n\t\t\t\tsquares[cpl/ROWS][cpl%COLS].pics[2][0].setVisible(false);\n\t\t\telse\n\t\t\t\tsquares[cpl/ROWS][cpl%COLS].pics[2][2].setVisible(false);\n\t\t\tcurrentPlayer.forward(this.boardPerceivedByAI); \t//custom method\n\t\t\tvalidKeyTyped = true;\n\t\t\tbreak;\n\t\t\t/* 'L' turns a character to the left. */\n\t\tcase 'L':\n\t\t\tcurrentPlayer.turnLeft();\n\t\t\tif(currentPlayer == h1){\n\t\t\t\tif (currentImageH1 == 0) //rotate picture\n\t\t\t\t\tcurrentImageH1 = 3;\n\t\t\t\telse\n\t\t\t\t\tcurrentImageH1 --;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif (currentImageH2 == 0) //rotate picture\n\t\t\t\t\tcurrentImageH2 = 3;\n\t\t\t\telse\n\t\t\t\t\tcurrentImageH2 --;\n\t\t\t}\n\t\t\tvalidKeyTyped = true;\n\t\t\tbreak;\n\t\tcase 'R':\n\t\t\tcurrentPlayer.turnRight();\n\t\t\tif(currentPlayer == h1){\n\t\t\t\tif (currentImageH1 == 3) //rotate picture\n\t\t\t\t\tcurrentImageH1 = 0;\n\t\t\t\telse\n\t\t\t\t\tcurrentImageH1 ++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif (currentImageH2 == 3) //rotate picture\n\t\t\t\t\tcurrentImageH2 = 0;\n\t\t\t\telse\n\t\t\t\t\tcurrentImageH2 ++;\n\t\t\t}\n\t\t\tvalidKeyTyped = true;\n\t\t\tbreak;\n\t\tcase 'G':\n\t\t\tif(currentPlayer.giveAid()){\n\t\t\t\tsquares[cpl/ROWS][cpl%COLS].pics[1][2].setVisible(true); //show victim aid icon\n\t\t\t}\n\t\t\tvalidKeyTyped = true;\n\t\t\tbreak;\n\t\tcase 'S':\n\t\t\tresultOfShooting = currentPlayer.shoot();\n\t\t\tif(currentPlayer.isWasteKiller()){\n\t\t\t\t(new DecontaminantHitPopupThread()).start();\n\t\t\t\tsquares[cpl/ROWS][cpl%COLS].pics[1][1].setVisible(true); //show disinfected icon\n\t\t\t\tcurrentPlayer.resetWasteKiller();\n\t\t\t} else if (resultOfShooting == -1) {\n\t\t\t\t(new DecontaminantMissedPopupThread()).start();\n\t\t\t} else if (resultOfShooting == 0) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Cannot use decontaminant (Shots remaining : \" + currentPlayer.getNumOfShotsLeft() + \")\", \"\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t}\n\t\t\tvalidKeyTyped = true;\n\t\t\tbreak;\n\t\tcase 'Q':\n\t\t\tcurrentPlayer.quit();\n\t\t\tvalidKeyTyped = true;\n\t\t\tbreak;\n\t\tcase ' ':\n\t\t\t//pressing spacebar activates AI as long as the current player has been initialized as an AI player.\n\t\t\tif(currentPlayer.isAI()) {\n//\t\t\t\tSystem.out.printf(\"========================================\\nSPACEBAR PRESSED. Activating AI for %s...\\n\"\n//\t\t\t\t\t\t+ \"========================================\\n\",\n//\t\t\t\t\t\tcurrentPlayer.getName());\n\t\t\t\tvalidKeyTyped = true;\n\t\t\t\t/* See the Player.java class for the custom method getAction(). It returns a command char.\n\t\t\t\t * This is the heart of AI's algorithm. */\n\t\t\t\tint percentRandom = 0;\t//initialize the % of time the AI robot will act randomly\n\t\t\t\t//If the options were set before the mission to allow random acts by robot a certain % of the time,\n\t\t\t\t//extract that percent value now and execute updateGame() method with it as parameter\n\t\t\t\tif (SAR.this.options.indexOf(\"%\") != -1) {\n\t\t\t\t\tpercentRandom = Integer.parseInt(this.options.substring(this.options.indexOf(\" \") + 1, this.options.indexOf(\"%\")));\n//\t\t\t\t\tSystem.out.printf(\"Random action chance: %s%%\\n\", percentRandom);\n\t\t\t\t}\n\t\t\t\tthis.updateGame(currentPlayer, currentPlayer.getAction(this.board, this.boardPerceivedByAI, percentRandom), 1);\n\t\t\t\tthis.numOfTimesAITriggered++;\n\t\t\t}\n\t\t\tbreak;\n\n\t\tcase 'O':\t//Options window\n\t\t\tthis.openOptionsWindow();\t//custom method\n\t\t\tbreak;\n\t\t}\n\t\t//end switch(Character.toUpperCase(command)){\n\n\t\t/* Now that the player has made a move, we'll go thru each RoomAsPerceivedByAI object on the Board and,\n\t\t * for each explored room aka cell, update the perceptions and probabilities by invoking setExplored() method\n\t\t * and the assignProbabilityToNeighbors from the CellAsPerceivedByAI class. This updates AI's overall\n\t\t * perceptions of which rooms have which types of risks. */\n\t\tfor(int i = 0; i < ROWS; i++) {\n\t\t\tfor(int j = 0; j < COLS; j++) {\n\t\t\t\tCellAsPerceivedByAI tempR = this.boardPerceivedByAI.getRoomAI(i, j);\n\t\t\t\t/* For every room that has been explored, refresh the perceptions via the setExplored() method\n\t\t\t\t * and refresh the AI's probability calculation of neighboring rooms' risks. */\n\t\t\t\tif(tempR.isExplored()) {\n\t\t\t\t\tthis.greyOutCell(i, j);\n//\t\t\t\t\tsquares[i][j].setBackground(Color.LIGHT_GRAY);\t//gray out explored room\n\t\t\t\t\ttempR.setExplored(true, this.board.getRoom(i, j));\n\t\t\t\t\ttempR.assignProbabilityToNeighbors(this.board, this.boardPerceivedByAI);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//end for i\n\n\t\t/* Now the AI will make some manual adjustments to the probability of UNEXPLORED rooms.\n\t\t * Go thru the whole board again, locate unexplored rooms, then invoke\n\t\t * custom method modifyProbabilityIfSurroundedByDanger(). See the comments accompanying\n\t\t * this custom method for more details. */\n\t\tfor(int i = 0; i < ROWS; i++) {\n\t\t\tfor(int j = 0; j < COLS; j++) {\n\t\t\t\tCellAsPerceivedByAI tempR = this.boardPerceivedByAI.getRoomAI(i, j);\n\t\t\t\tif(!tempR.isExplored()) {\n\t\t\t\t\ttempR.modifyProbabilityIfSurroundedByDanger(board, boardPerceivedByAI);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//end for i\n\n\t\tif (hasWon(currentPlayer)) { // check for mission success\n\t\t\tcurrentState = (currentPlayer == h1) ? GameState.H1_WON : GameState.H2_WON;\n\t\t\tif (level > 0) return validKeyTyped;\t//If the recursion level is not at the root level, we skip the below steps for now\n\n\t\t\t(new PopupThread()).start();\t//Popup message game over, needs to run in new thread for thread safety\n\t\t\tif (isTutorialMode()) tutorial.checkTutorialStatus(String.valueOf(command));\t//If this was a tutorial mode, update tutorial status\n\t\t\telse if (this.isPracticeMissionHumanMode()) practiceDrillHuman.checkStatus(String.valueOf(command));\n\t\t\telse if (this.isPracticeMissionAIMode()) practiceDrillAI.checkStatus(String.valueOf(command));\n\t\t\telse if (this.isFinalMissionMode()) finalMission.checkStatus(String.valueOf(command));\n\t\t} else if (isDraw()) { // if \"draw\", it means neither player 1 nor 2 (if in 2-player mode) has found the victim and are both dead. Mission fail\n\t\t\tcurrentState = GameState.DRAW;\n\t\t\tif (level > 0) return validKeyTyped;\t//If the recursion level is not at the root level, we skip the below steps for now\n\t\t\tif (this.isTutorialMode()) tutorial.checkTutorialStatus(String.valueOf(command));\t//If this was a tutorial mode, update tutorial status\n\t\t\telse (new PopupThread()).start();\t//Popup message game over, needs to run in new thread for thread safety\n\t\t\tif (this.isPracticeMissionHumanMode()) practiceDrillHuman.checkStatus(String.valueOf(command));\n\t\t\telse if (this.isPracticeMissionAIMode()) practiceDrillAI.checkStatus(String.valueOf(command));\n\t\t\telse if (this.isFinalMissionMode()) finalMission.checkStatus(String.valueOf(command));\n\t\t}\n\t\t// Otherwise, no change to current state (still GameState.PLAYING).\n\t\treturn validKeyTyped;\n\t}",
"private void manageKeys() {\n if (!gameOver) {\n if (keyStateManager.isPressed(KeyEvent.VK_UP) && \n !keyStateManager.isAlreadyPressed(KeyEvent.VK_UP)) {\n keyStateManager.setAlreadyPressed(KeyEvent.VK_UP);\n if (currentPiece.rotateRight(grid)) {\n effectsReader.play(\"rotate.mp3\", 1);\n sinceLastMove = LocalTime.now();\n }\n }\n if (keyStateManager.isPressed(KeyEvent.VK_DOWN)) {\n keyStateManager.increaseBuffer(KeyEvent.VK_DOWN);\n if (keyStateManager.canBeUsed(KeyEvent.VK_DOWN)) {\n if (currentPiece.canDown(grid)) {\n currentPiece.down();\n if (!keyStateManager.isAlreadyPressed(KeyEvent.VK_DOWN)) {\n effectsReader.play(\"move.mp3\", 1);\n }\n timeBufer = 0;\n score += 1;\n keyStateManager.setAlreadyPressed(KeyEvent.VK_DOWN);\n } else if (sincePieceDown == null) {\n sincePieceDown = LocalTime.now();\n sinceLastMove = LocalTime.now();\n }\n }\n }\n if (keyStateManager.isPressed(KeyEvent.VK_LEFT)) {\n keyStateManager.increaseBuffer(KeyEvent.VK_LEFT);\n if (keyStateManager.canBeUsed(KeyEvent.VK_LEFT)) {\n if (currentPiece.setXDirection(-1, grid)) {\n effectsReader.play(\"move.mp3\", 1);\n sinceLastMove = LocalTime.now();\n }\n keyStateManager.setAlreadyPressed(KeyEvent.VK_LEFT);\n }\n }\n if (keyStateManager.isPressed(KeyEvent.VK_RIGHT)) {\n keyStateManager.increaseBuffer(KeyEvent.VK_RIGHT);\n if (keyStateManager.canBeUsed(KeyEvent.VK_RIGHT)) {\n if (currentPiece.setXDirection(1, grid)) {\n effectsReader.play(\"move.mp3\", 1);\n sinceLastMove = LocalTime.now();\n }\n keyStateManager.setAlreadyPressed(KeyEvent.VK_RIGHT);\n }\n }\n if (keyStateManager.isPressed(KeyEvent.VK_SPACE) && \n !keyStateManager.isAlreadyPressed(KeyEvent.VK_SPACE)) {\n keyStateManager.setAlreadyPressed(KeyEvent.VK_SPACE);\n if (currentPiece.canDown(grid)) {\n score += (currentPiece.fix() * 2);\n sincePieceDown = LocalTime.MIN;\n sinceLastMove = LocalTime.MIN;\n }\n }\n if (keyStateManager.isPressed(KeyEvent.VK_C)) {\n if (!hasSwiched && !keyStateManager.isAlreadyPressed(KeyEvent.VK_C)) {\n keyStateManager.setAlreadyPressed(KeyEvent.VK_C);\n if (holdPiece == null) {\n holdPiece = currentPiece;\n holdPiece.setPointsAsInitial();\n initNextPiece();\n } else {\n Piece tempPiece = holdPiece;\n holdPiece = currentPiece;\n holdPiece.setPointsAsInitial();\n currentPiece = tempPiece;\n currentPiece.initPosition(grid);\n hasSwiched = true;\n sincePieceDown = null;\n sinceLastMove = null;\n }\n effectsReader.play(\"hold.mp3\", 1);\n }\n } \n if (keyStateManager.isPressed(KeyEvent.VK_Z) && \n !keyStateManager.isAlreadyPressed(KeyEvent.VK_Z)) {\n keyStateManager.setAlreadyPressed(KeyEvent.VK_Z);\n if (currentPiece.rotateLeft(grid)) {\n effectsReader.play(\"rotate.mp3\", 1);\n sinceLastMove = LocalTime.now();\n }\n }\n } else {\n if (keyStateManager.isPressed(KeyEvent.VK_R)) {\n initGame();\n }\n }\n }",
"public void onKeyEvent(String ke) {\n if (ke.equals(\"b\")) {\n bfs = true;\n dfs = false;\n manual = false;\n reset();\n }\n else if (ke.equals(\"d\")) {\n bfs = false;\n dfs = true;\n manual = false;\n reset();\n }\n else if (ke.equals(\"p\")) {\n bfs = false;\n dfs = false;\n manual = true;\n reset();\n }\n else if (ke.equals(\"r\")) {\n boardSetup();\n }\n else if (manual) {\n if (p.hasNext()) {\n if (ke.equals(\"left\")) {\n p.moveLeft();\n }\n else if (ke.equals(\"up\")) {\n p.moveUp();\n }\n else if (ke.equals(\"right\")) {\n p.moveRight();\n }\n else if (ke.equals(\"down\")) {\n p.moveDown();\n }\n }\n }\n }",
"@Override\r\n\tpublic void keyPressed(KeyEvent arg0) {\n\t\tif(game.playerType == C.SERVER){\r\n\t\t\tint k = arg0.getKeyCode();\r\n\t\t\tswitch(k){\r\n\t\t\tcase KeyEvent.VK_UP: \r\n\t\t\t\tgame.direction1=(C.UP);\r\n\t\t\t\tbreak;\r\n\t\t\tcase KeyEvent.VK_RIGHT: \r\n\t\t\t\tgame.direction1=(C.RIGHT);\r\n\t\t\t\tbreak;\r\n\t\t\tcase KeyEvent.VK_DOWN: \r\n\t\t\t\tgame.direction1=(C.DOWN);\r\n\t\t\t\tbreak;\r\n\t\t\tcase KeyEvent.VK_LEFT: \r\n\t\t\t\tgame.direction1=(C.LEFT);\r\n\t\t\t\tbreak;\r\n\t\t\tcase '=': \r\n\t\t\t\tgame.mine.send(\"FASTER\");\r\n\t\t\t\tif(game.speed < C.FAST) game.changeSpeed(game.speed+1); \r\n\t\t\t\tbreak;\r\n\t\t\tcase '-':\r\n\t\t\t\tgame.mine.send(\"SLOWER\");\r\n\t\t\t\tif(game.speed > C.SLOW) game.changeSpeed(game.speed-1);\r\n\t\t\t\tbreak;\r\n\t\t\tcase KeyEvent.VK_SPACE: \r\n\t\t\t\tgame.mine.send(\"PAUSE\");\r\n\t\t\t\tpause();\r\n\t\t\t\tgame.mine.send(\"RESUME\");\r\n\t\t\t\tresume();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault : break;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tchar c = arg0.getKeyChar(); \r\n\t\t\tswitch(c){\r\n\t\t\tcase 'w': \r\n\t\t\t\tgame.mine.send(\"UP\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'a': \r\n\t\t\t\tgame.mine.send(\"LEFT\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase 's': \r\n\t\t\t\tgame.mine.send(\"DOWN\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'd': \r\n\t\t\t\tgame.mine.send(\"RIGHT\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase '=': \r\n\t\t\t\tgame.mine.send(\"FASTER\");\r\n\t\t\t\tif(game.speed < C.FAST) game.changeSpeed(game.speed+1); \r\n\t\t\t\tbreak;\r\n\t\t\tcase '-':\r\n\t\t\t\tgame.mine.send(\"SLOWER\");\r\n\t\t\t\tif(game.speed > C.SLOW) game.changeSpeed(game.speed-1);\r\n\t\t\t\tbreak;\r\n\t\t\tcase KeyEvent.VK_SPACE:\r\n\t\t\t\tgame.mine.send(\"PAUSE\");\r\n\t\t\t\tpause();\r\n\t\t\t\tgame.mine.send(\"RESUME\");\r\n\t\t\t\tresume();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault : break;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void handleInput(){\n if(\"W\".charCodeAt(0) in this.keypressed) {\n this.player1SpeedY = this.playerSpeed * -1;\n } else if (\"S\".charCodeAt(0) in this.keypressed){\n this.player1SpeedY = this.playerSpeed;\n } else {\n this.player1SpeedY = 0;\n }\n // player 2 (on the right) uses 'I' to move up and 'K' to move down\n if(\"I\".charCodeAt(0) in this.keypressed) {\n this.player2SpeedY = this.playerSpeed * -1;\n } else if (\"K\".charCodeAt(0) in this.keypressed){\n this.player2SpeedY = this.playerSpeed;\n } else {\n this.player2SpeedY = 0;\n }\n }",
"public abstract void keycommand(long ms);",
"@FXML\n public void handleKeyPress(KeyEvent event) {\n // TODO = handle additional key presses, e.g. for consuming a health potion\n switch (event.getCode()) {\n case SPACE:\n if (isPaused) {\n startTimer();\n } else {\n pause();\n }\n break;\n case H: // try to use health potion\n world.useHealthPotion();\n break;\n case M:\n world.showGameMode();\n break;\n // case R: // restart game\n // LoopManiaApplication a = new LoopManiaApplication();\n // Stage s = new Stage();\n // try {\n // a.start(s);\n // } catch (IOException e) {\n // // TODO Auto-generated catch block\n // e.printStackTrace();\n // }\n // break;\n case P: // generate potion for player (test usage)\n System.out.println(\"Lot of items & cards generated for Player......\");\n loadItem(\"Potion\");\n loadItem(\"Helmet\");\n loadItem(\"Armour\");\n loadItem(\"Shield\");\n loadItem(\"Sword\");\n loadItem(\"Stake\");\n loadItem(\"Staff\");\n loadCard(\"Tower\");\n loadCard(\"Barracks\");\n loadCard(\"Campfire\");\n loadCard(\"Trap\");\n loadCard(\"VampireCastle\");\n loadCard(\"ZombiePit\");\n loadCard(\"Village\");\n break;\n // case L: \n // System.out.println(\"++++++++++++++++++++++++++++++++++\");\n // System.out.println(\"Showing equiped items:\");\n // for (int i = 0; i < 4; i++) {\n // for (int j = 0; i < 4; i++) {\n // Boolean b = world.getEquippedInventoryItemEntityByCoordinates(i, j) != null;\n // System.out.print(\" \" + b + \" \");\n // }\n // System.out.println(\"\");\n // }\n // System.out.println(\"++++++++++++++++++++++++++++++++++\");\n // break;\n default:\n break;\n }\n }",
"public void entryPanelProcess() {\n\t\tif (nmfkpinds.funKey03() || nmfkpinds.funKey12()) {\n\t\t\treturn;\n\t\t}\n\t\tstateVariable.setZmsage(blanks(78));\n\t\t// Action command keys\n\t\tif (nmfkpinds.pgmInd28()) {\n\t\t\tcmdkey();\n\t\t}\n\t\telse {\n\t\t\t// Else action selections\n\t\t\tzselec();\n\t\t}\n\t\tmainline0();\n\t\treturn;\n\t}",
"protected void keyTyped(char par1, int par2)\n {\n if (par2 == 15)\n {\n completePlayerName();\n }\n else\n {\n field_50060_d = false;\n }\n\n if (par2 == 1)\n {\n mc.displayGuiScreen(null);\n }\n else if (par2 == 28)\n {\n String s = field_50064_a.getText().trim();\n\n if (s.length() > 0 && !mc.lineIsCommand(s))\n {\n mc.thePlayer.sendChatMessage(s);\n }\n\n mc.displayGuiScreen(null);\n }\n else if (par2 == 200)\n {\n func_50058_a(-1);\n }\n else if (par2 == 208)\n {\n func_50058_a(1);\n }\n else if (par2 == 201)\n {\n mc.ingameGUI.func_50011_a(19);\n }\n else if (par2 == 209)\n {\n mc.ingameGUI.func_50011_a(-19);\n }\n else\n {\n field_50064_a.func_50037_a(par1, par2);\n }\n }",
"@Override\r\n\tpublic void keyPressed(KeyEvent event) {\r\n\t\tswitch(event.getKeyCode())//iterate over buttons and dispatch command\r\n\t\t{\r\n\t\tcase 38://up\r\n\t\tcase 87://w\r\n\t\t\tforwardV += 2;\r\n\t\t\tbreak;\r\n\t\tcase 40://down\r\n\t\tcase 83://s\r\n\t\t\tforwardV -= 2;\r\n\t\t\tbreak;\r\n\t\tcase 37://left\r\n\t\tcase 65://a\r\n\t\t\thorizV -= 2;\r\n\t\t\tbreak;\r\n\t\tcase 39://right\r\n\t\tcase 68://d\r\n\t\t\thorizV += 2;\r\n\t\t}\r\n\t\t\r\n\t\t//set max and min for character speed\r\n\t\tif(horizV>2)\r\n\t\t\thorizV=2;\r\n\t\tif(forwardV>2)\r\n\t\t\tforwardV=2;\r\n\t\tif(horizV<-2)\r\n\t\t\thorizV=-2;\r\n\t\tif(forwardV<-2)\r\n\t\t\tforwardV=-2;\r\n\t\t\r\n\t\t//set character speed\r\n\t\tVector v = new Vector(forwardV, horizV);\r\n\t\tv = v.rotate(aSquare.getOrientation().getAngle());\r\n\t\taSquare.setVelocity(v);\r\n\t}",
"public void keyPressed(int keyCode) {\n switch (keyCode) {\n // 0,1,2,3 are speed keys.\n\n // 0: Pause - set a very long delay until the next update\n case Canvas.KEY_NUM0:\n delay = 1000000;\n delayCount = 1000000;\n\n break;\n\n // 1: Full speed - set no delay until next update\n case Canvas.KEY_NUM1:\n delay = 0;\n delayCount = 0;\n\n break;\n\n // 2: Speed up - if not already at full speed, decrease delay\n case Canvas.KEY_NUM2:\n\n if (delay > 0) {\n delay--;\n }\n\n delayCount = 0;\n\n break;\n\n // 3: Slow down - if not already at minimum speed, increase delay\n case Canvas.KEY_NUM3:\n\n if (delay < 20) {\n delay++;\n }\n\n delayCount = 0;\n\n break;\n\n // 4,5 are pattern keys\n\n // 4: Select and load previous pattern in library. If at the\n // start of the library, or using a random pattern, will start\n // again at the last pattern.\n case Canvas.KEY_NUM4:\n pattern--;\n\n if (pattern < 0) {\n pattern = patternLibrary.length - 1;\n }\n\n patternName = patternLibrary[pattern][0];\n loadStateFromString(patternLibrary[pattern][1]);\n\n break;\n\n // 5: Select and load next pattern in library. If at the\n // end of the library, or using a random pattern, will start\n // again at the first pattern.\n case Canvas.KEY_NUM5:\n pattern++;\n\n if (pattern >= patternLibrary.length) {\n pattern = 0;\n }\n\n patternName = patternLibrary[pattern][0];\n loadStateFromString(patternLibrary[pattern][1]);\n\n break;\n\n // *: Loads a random state\n case Canvas.KEY_STAR:\n loadRandomState();\n\n break;\n }\n }",
"public final void keyPressed(KeyEvent keyevent) {\n idleTime = 0; //idleTime\n int i = keyevent.getKeyCode(); //get the code\n int j = keyevent.getKeyChar(); //get the char\n\n //start detection algorithms xD\n\n\n /*\n if(i == 38) { //up\n client.inputString = \"fail\";\n client.inputTaken = true;\n }\n \n if(i == 40) { //down\n client.inputString = \"fail\";\n client.inputTaken = true;\n }\n */\n\n\n if (i == 86) { //V\n pressingV = true;\n }\n if (i == 17) { //CTRL\n pressingCtrl = true;\n }\n\n if (i == KeyEvent.VK_F1) {\n client.setTab(0);\n }\n if (i == KeyEvent.VK_F2) {\n client.setTab(1);\n }\n if (i == KeyEvent.VK_F3) {\n client.setTab(2);\n }\n if (i == KeyEvent.VK_F4) {\n client.setTab(3);\n }\n if (i == KeyEvent.VK_F5) {\n client.setTab(4);\n }\n if (i == KeyEvent.VK_F6) {\n client.setTab(5);\n }\n if (i == KeyEvent.VK_F7) {\n client.setTab(6);\n }\n if (i == KeyEvent.VK_F8) {\n client.setTab(8);\n }\n if (i == KeyEvent.VK_F9) {\n client.setTab(9);\n }\n if (i == KeyEvent.VK_ESCAPE) {\n client.setTab(10); //logout tab\n }\n if (i == KeyEvent.VK_F10) {\n client.setTab(11);\n }\n if (i == KeyEvent.VK_F11) {\n client.setTab(12);\n }\n if (i == KeyEvent.VK_F12) {\n client.setTab(13);\n }\n\n //WTF do these DO!!!\n if (j < 30) {\n j = 0;\n }\n\n\n if (i == 37) //left arrow\n {\n j = 1;\n }\n if (i == 39) //right arrow\n {\n j = 2;\n }\n if (i == 38) //up arrow\n {\n j = 3;\n }\n if (i == 40) //down arrow\n {\n j = 4;\n }\n\n\n if (i == 17) {\n j = 5;\n }\n if (i == 8) {\n j = 8;\n }\n if (i == 127) {\n j = 8;\n }\n if (i == 9) {\n j = 9;\n }\n if (i == 10) {\n j = 10;\n }\n if (i >= 112 && i <= 123) {\n j = (1008 + i) - 112;\n }\n if (i == 36) {\n j = 1000;\n }\n if (i == 35) {\n j = 1001;\n }\n if (i == 33) {\n j = 1002;\n }\n if (i == 34) {\n j = 1003;\n }\n\n if (j > 0 && j < 128) {\n keyArray[j] = 1;\n }\n if (j > 4) { //not arrow keys\n charQueue[anInt33] = j; //writeIndex for the key code\n anInt33 = anInt33 + 1 & 0x7f; //writeIndex\n }\n }",
"@Override\n\tpublic void execute(InputKeyEvent event)\n\t{\n\t\tif(event.keyCode() == this.keyCode)\n\t\t\tkeyPressed = event.pressed();\n\t\t\n\t\t// Execute related event\n\t\tif(keyPressed)\n\t\t\tstrategy.execute(event);\n\t\t\t\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t//Converts e.getKeyChar() to a string\n\t\tString keyPressed = e.getKeyChar() + \"\";\n\t\t//only runs if the player has pressed a valid key\n\t\t\n\t\tif (contains(keys,keyPressed)){ \n\t\t\t\n\t\t\tswitch (keyPressed){\n\t\t\t//if the key is w, then it moves the player up.\n\t\t\tcase \"w\": \n\t\t\t\tb.p.moveUp();\n\t\t\t\tbreak;\n\t\t\t\t//if the key is a, then it moves the player left.\n\t\t\tcase \"a\": \n\t\t\t\tb.p.moveLeft();\n\t\t\t\tbreak;\n\t\t\t\t//if the key is x, then it moves the player down.\t\n\t\t\tcase \"x\": \n\t\t\t\tb.p.moveDown();\n\t\t\t\tbreak;\n\t\t\t\t//if the key is d, then it moves the player right.\n\t\t\tcase \"d\": \n\t\t\t\tb.p.moveRight();\n\t\t\t\tbreak;\n\t\t\t\t//if the key is q, then it moves the player up and to the left.\n\t\t\tcase \"q\":\n\t\t\t\tb.p.moveUpLeft();\n\t\t\t\tbreak;\n\t\t\t\t//if the key is e, then it moves the player up and to the right. \n\t\t\tcase \"e\":\n\t\t\t\tb.p.moveUpRight();\t\n\t\t\t\tbreak;\n\t\t\t\t//if the key is z, then it moves the player down and to the left.\n\t\t\tcase \"z\":\n\t\t\t\tb.p.moveDownLeft();\n\t\t\t\tbreak;\n\t\t\t\t//if the key is c, then it moves the player down and to the right.\n\t\t\tcase \"c\":\n\t\t\t\tb.p.moveDownRight();\n\t\t\t\tbreak;\n\t\t\t\t//if the key is j, then it moves the player to a random location.\n\t\t\tcase \"j\":\n\t\t\t\tb.jump(b.p);\n\t\t\t\tbreak;\n\t\t\t\t//if the key is s, then it doesn't move\n\t\t\tcase \"s\":\n\t\t\t\tbreak;\n\t\t\t\t//if the key is y when game is over, then the game resets.\n\t\t\tcase \"y\":\n\t\t\t\tif (gameOver){\n\t\t\t\t\tgameStarted = false;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t//if the key is n when game is over, then JFrame window closes and program terminates.\n\t\t\tcase \"n\":\n\t\t\t\tif(gameOver){\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//Updates mho position and discards the mhos that need to be discarded\n\t\t\tif (!keyPressed.equals(\"j\") && !keyPressed.equals(\"y\") && !keyPressed.equals(\"n\")){\n\t\t\t\tfor (int i =0; i <b.mhos.size(); i++) {\n\t\t\t\t\tb.mhos.get(i).updatePosition(b);\n\t\t\t\t\tif (b.mhos.get(i).isDiscard()) {\n\t\t\t\t\t\tdiscardMhos.add(b.mhos.get(i));\n\t\t\t\t\t\tb.mhos.remove(i);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Checks if the player won or lost\n\t\t\tif (!gameOver){\n\t\t\t\tif (b.mhos.size() == 0) {\n\t\t\t\t\tplayerWon = true;\n\t\t\t\t\tgameOver = true;\n\t\t\t\t}\n\t\t\t\tif(!b.p.canMove()){\n\t\t\t\t\tplayerWon = false;\n\t\t\t\t\tgameOver = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\trepaint();\n\t}",
"@SuppressWarnings(\"serial\")\n private void enableGamePlayKeys() {\n if (CLASSIC_MODE.equals(myGameMode)) {\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, 0), \"left\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, 0), \"right\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), \"down\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), \"rotateCW\");\n }\n else {\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, 0), \"left\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, 0), \"right\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), \"down\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), \"rotateCW\");\n }\n\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0), \"drop\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_P, 0), \"pause\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_Z, 0), \"rotateCCW\");\n\n getActionMap().put(\"left\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n myBoard.left();\n }\n });\n\n getActionMap().put(\"right\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n myBoard.right();\n }\n });\n\n getActionMap().put(\"down\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n myBoard.down();\n }\n });\n\n getActionMap().put(\"rotateCW\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n myBoard.rotateCW();\n }\n });\n\n getActionMap().put(\"rotateCCW\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n myBoard.rotateCCW();\n }\n });\n\n getActionMap().put(\"right\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n myBoard.right();\n }\n });\n\n getActionMap().put(\"drop\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n myBoard.drop();\n }\n });\n\n getActionMap().put(\"pause\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n if (myTimer.isRunning()) {\n pauseTimer();\n } else {\n startTimer();\n }\n }\n });\n }",
"@Override\r\n public void handle(KeyEvent keyEvent) {\r\n KeyCode code = keyEvent.getCode();\r\n String inp = \"none\";\r\n if (code == KeyCode.LEFT || code == KeyCode.A) {\r\n inp = \"left\";\r\n } else if (code == KeyCode.RIGHT || code == KeyCode.D) {\r\n inp = \"right\";\r\n } else if (code == KeyCode.UP || code == KeyCode.W) {\r\n inp = \"up\";\r\n } else if (code == KeyCode.DOWN || code == KeyCode.S) {\r\n inp = \"down\";\r\n } else if (code == KeyCode.SPACE){\r\n inp = \"space\";\r\n }\r\n if(!inp.equals(\"none\")) {\r\n model.receiveInput(inp);\r\n }\r\n }",
"private void processInput() \n\t{\n\t\tif (keys.get(Keys.RIGHT))\n\t\t{\n\t\t\tworld.getHunter().move_right();\n\t\t}\n\t\t\n\t\tif (keys.get(Keys.UP))\n\t\t{\n\t\t\tworld.getHunter().move_up();\n\t\t}\n\t\t\n\t\tif (keys.get(Keys.LEFT))\n\t\t{\n\t\t\tworld.getHunter().move_left();\n\t\t}\n\t\t\n\t\tif (keys.get(Keys.DOWN))\n\t\t{\n\t\t\tworld.getHunter().move_down();\n\t\t}\n\t\t\n\t\tif (keys.get(Keys.STEALTH))\n\t\t{\n\t\t\tworld.getHunter().setNoisiness(false);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tworld.getHunter().setNoisiness(true);\n\t\t}\n\t\t\n\t\tif (keys.get(Keys.RELOAD))\n\t\t{\n\t\t\tworld.getHunter().do_reload();\n\t\t}\n\t\t\n\t\tif (keys.get(Keys.FIRE))\n\t\t{\n\t\t\tworld.getHunter().do_fire();\n\t\t}\n\t}",
"@Override\r\n public void getInput() { \r\n \r\n String command;\r\n Scanner inFile = new Scanner(System.in);\r\n \r\n do {\r\n \r\n this.display();\r\n \r\n command = inFile.nextLine();\r\n command = command.trim().toUpperCase();\r\n \r\n switch (command) {\r\n case \"B\":\r\n this.helpMenuControl.displayBoardHelp();\r\n break;\r\n case \"C\":\r\n this.helpMenuControl.displayComputerPlayerHelp();\r\n break;\r\n case \"G\":\r\n this.helpMenuControl.displayGameHelp();\r\n break; \r\n case \"Q\": \r\n break;\r\n default: \r\n new Connect4Error().displayError(\"Invalid command. Please enter a valid command.\");\r\n }\r\n } while (!command.equals(\"Q\")); \r\n }",
"@Override\n public void inputHandling() {\n if (input.clickedKeys.contains(InputHandle.DefinedKey.ESCAPE.getKeyCode())\n || input.clickedKeys.contains(InputHandle.DefinedKey.RIGHT.getKeyCode())) { \n if (sourceMenu != null) {\n exit();\n sourceMenu.activate(); \n return;\n }\n }\n \n if (input.clickedKeys.contains(InputHandle.DefinedKey.UP.getKeyCode())) { \n if (selection > 0) {\n selection--;\n }\n }\n \n if (input.clickedKeys.contains(InputHandle.DefinedKey.DOWN.getKeyCode())) { \n if (selection < choices.size() - 1) {\n selection++;\n } \n }\n \n if (input.clickedKeys.contains(InputHandle.DefinedKey.ENTER.getKeyCode())) {\n if (choices.size() > 0) {\n use();\n }\n exit(); \n }\n }",
"private void handleKeys(Scene scene, Player hero, Board board) {\n scene.setOnKeyPressed(event -> {\n int deltaY = 0;\n int deltaX = 0;\n boolean[] randomItemChance = {false, false, true, true, true};\n int prob = (int) Math.round(Math.random() * (randomItemChance.length - 1));\n switch (event.getCode()) {\n case SPACE: //Go to next or previous level or pick up item\n if (board.onExit(hero) != null\n && currentLevelScreen.getMonstersList().size() == 0) {\n board.onExit(hero).setIsOpen(true);\n }\n if (board.onExit(hero) != null && board.onExit(hero).getIsOpen()) {\n getNextLevel(board.onExit(hero, gameModel));\n }\n deltaY = hero.getPlayerMovement().getYPosition();\n deltaX = hero.getPlayerMovement().getXPosition();\n if (board.hasItem(deltaY, deltaX)) {\n Collectable currItem = board.getItem(deltaY, deltaX);\n hero.pickUpItem(currItem);\n currItem.setCollected(true);\n updateLevelScreen(true, null);\n }\n break;\n case UP: //Move up\n if (!hero.getCurrentSide().equals(\"up\")) {\n hero.setCurrentSide(\"up\");\n }\n deltaY = hero.getPlayerMovement().getYPosition() - 1;\n deltaX = hero.getPlayerMovement().getXPosition();\n if (!board.isBlocked(deltaY, deltaX)) {\n moveHeroBy(hero, 0, -1, board);\n } else {\n switchHeroSide(hero, board);\n }\n break;\n case DOWN: //Move down\n if (!hero.getCurrentSide().equals(\"down\")) {\n hero.setCurrentSide(\"down\");\n }\n deltaY = hero.getPlayerMovement().getYPosition() + 1;\n deltaX = hero.getPlayerMovement().getXPosition();\n if (!board.isBlocked(deltaY, deltaX)) {\n moveHeroBy(hero, 0, 1, board);\n } else {\n switchHeroSide(hero, board);\n }\n break;\n case LEFT: //Move left\n if (!hero.getCurrentSide().equals(\"left\")) {\n hero.setCurrentSide(\"left\");\n }\n deltaY = hero.getPlayerMovement().getYPosition();\n deltaX = hero.getPlayerMovement().getXPosition() - 1;\n if (!board.isBlocked(deltaY, deltaX)) {\n moveHeroBy(hero, -1, 0, board);\n } else {\n switchHeroSide(hero, board);\n }\n break;\n case RIGHT: //Move right\n if (!hero.getCurrentSide().equals(\"right\")) {\n hero.setCurrentSide(\"right\");\n }\n deltaY = hero.getPlayerMovement().getYPosition();\n deltaX = hero.getPlayerMovement().getXPosition() + 1;\n if (!board.isBlocked(deltaY, deltaX)) {\n moveHeroBy(hero, 1, 0, board);\n } else {\n switchHeroSide(hero, board);\n }\n break;\n case Z: //Attack\n //Obtain id of monster\n String monsterId = checkMonster(board, hero);\n //If monster exists in front of the player\n if (monsterId != null) {\n int length = currentLevelScreen.getMonstersList().size();\n //Look for monster object using id in ArrayList\n for (int i = 0; i < length; i++) {\n Monster monster = currentLevelScreen.getMonstersList().get(i);\n //If found\n if (monsterId.equals(monster.getId())) {\n //Deal damage to monster\n monster.getMonsterHealth().removeHealth(hero.getWeapon().getDamage());\n //If monster has no health\n if (monster.getMonsterHealth().getHealthLevel() == 0) {\n //Remove it from game\n currentLevelScreen.getMonstersList().remove(i);\n if (randomItemChance[prob]) {\n currentLevelScreen.getItems().add(\n itemRandomizer.randomItem(\n monster.getRow(), monster.getCol())\n );\n prob = (int) Math.round(Math.random()\n * (randomItemChance.length - 1));\n }\n }\n hero.getPlayerHealth().removeHealth(monster.getAttackDamage());\n //System.out.println(hero.getPlayerHealth().getHealthLevel());\n updateLevelScreen(false, monster); //Update all objects visually\n break;\n } //if\n } //for\n\n } //if\n\n break;\n case X: //Use item\n hero.getInventoryList().get(currentSelectedItem).action(hero);\n if (hero.getInventoryList().get(currentSelectedItem).getQuantity() == 0) {\n currentLevelScreen.getInventory()\n .removeObject(hero.getInventoryList().get(currentSelectedItem));\n hero.getInventoryList().remove(currentSelectedItem);\n currentSelectedItem = (currentSelectedItem - 1)\n % hero.getInventoryList().size();\n hero.getInventoryList().get(currentSelectedItem).changeSelected(true);\n }\n switchHeroSide(hero, board);\n updateLevelScreen(false, null);\n break;\n case C: //next item\n hero.getInventoryList().get(currentSelectedItem).changeSelected(false);\n currentSelectedItem = (currentSelectedItem + 1) % hero.getInventoryList().size();\n hero.getInventoryList().get(currentSelectedItem).changeSelected(true);\n updateLevelScreen(false, null);\n break;\n default:\n } //switch\n }); //scene.setOnKeyPressed\n }",
"private static void command() {\n Scanner reader = new Scanner(System.in);\n System.out.print(\"Write action (buy, fill, take):\\n> \");\n String input = reader.next();\n\n switch (input) {\n case \"buy\" :\n buy();\n break;\n case \"fill\" :\n fill();\n break;\n case \"take\" :\n take();\n break;\n default:\n System.out.println(\"not accepted command\");\n }\n }",
"private void handleInput() {\n if (UserInput.isDown(UserInput.UP) || UserInput.isDown(UserInput.DOWN)) {\n setSelection(UserInput.isDown(UserInput.UP));\n }\n if (UserInput.isDown(UserInput.JUMP_BUTTON)) {\n if (mControlsStageActorsArray.contains(mWhiteDotControllerControls)) {\n //TODO switch mCurrentTexture\n }\n else if (mControlsStageActorsArray.contains(mWhiteDotKeyboardControls)) {\n //TODO switch mCurrentTexture\n }\n else if (mControlsStageActorsArray.contains(mWhiteDotBack)) {\n mControlsScreen.goBackToStartScreen();\n }\n }\n\n //reset toggle flag\n if (!UserInput.isDown(UserInput.UP)\n && !UserInput.isDown(UserInput.DOWN)) {\n mToggleSelectionFlag = false;\n }\n }",
"@Override\r\n\tpublic void keyPressed(KeyEvent e) {\n\t\tint cmdType = 0, nr = 0, speed;\r\n\t\tString name = null;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif( e.getKeyCode() == KeyEvent.VK_CONTROL ) {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Ctrl\");\r\n\t\t\tfor(Cmd c : Cmds) {\r\n\t\t\t\tif( c.getName().equals(\"Ctrl1\") || c.getName().equals(\"Ctrl2\") || c.getName().equals(\"Ctrl3\") )\r\n\t\t\t\t{\r\n\t\t\t\t\tc.setY(-50);\r\n\t\t\t\t\r\n\t\t\t\t cmdType = rand.nextInt(3);\r\n\t\t nr = 1 + rand.nextInt(9);\r\n\t\t\t\t if(cmdType == 0)\r\n\t\t\t\t \tname = \"Ctrl\";\r\n\t\t\t\t else if(cmdType == 1)\r\n\t\t\t\t \tname = \"Alt\";\r\n\t\t\t\t else\r\n\t\t\t\t \tname = \"Shift\";\r\n\t\t\t\t \r\n\t\t\t\t speed = 1+rand.nextInt(3);\r\n\t\t\t\t name = name+\"\"+nr;\r\n\t\t\t\t\r\n\t\t\t\t c.setName(name);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n @SneakyThrows\n public void nextRound() {\n Interpreter interpreter = Zuul.getInstance().getInterpreter();\n /*\n Getting player's input\n */\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n interpreter.handleCommand(this, reader.readLine());\n }",
"public void keyReleased() {\r\n if (key == '1')\r\n drawMode = 1;\r\n if (key == '2')\r\n drawMode = 2;\r\n if (key == '3')\r\n drawMode = 3;\r\n if (key == '4')\r\n drawMode = 4;\r\n if (key == '5')\r\n drawMode = 5;\r\n }",
"void keyPressed(String code);",
"private void command(){\n out.println(\"Enter command: \");\n String comInput = in.nextLine();\n\n if (comInput.toLowerCase().equals(\"vote\")) {\n voteCommand();\n }else if (comInput.toLowerCase().equals(\"trade\")){\n tradeCommand();\n }else if (comInput.toLowerCase().equals(\"next\")){\n out.println(waitPrint());\n await();\n// nextRound();\n }else if(comInput.toLowerCase().equals(\"logout\")){\n// login = false;\n logout();\n }\n }",
"public void addKeyListeners() {\n\t\t\tkeyAdapter = new KeyAdapter(){\n\t\t\t\t@Override\n\t\t\t\tpublic void keyPressed(KeyEvent e){\n\t\t\t\t\tchar command;\n\t\t\t\t\tif (e.getKeyCode() == KeyEvent.VK_SHIFT) {\n//\t\t\t\t\t\tSystem.out.println(\"FORWARD\");\n\t\t\t\t\t\tcommand = 'F';\n\t\t\t\t\t} else if (e.getKeyCode() == KeyEvent.VK_RIGHT) {\n//\t\t\t\t\t\tSystem.out.println(\"TURN RIGHT\");\n\t\t\t\t\t\tcommand = 'R';\n\t\t\t\t\t} else if (e.getKeyCode() == KeyEvent.VK_LEFT){\n//\t\t\t\t\t\tSystem.out.println(\"TURN LEFT\");\n\t\t\t\t\t\tcommand = 'L';\n\t\t\t\t\t//Let's disable 'F', 'R' and 'L' keys because they're captured by the arrow keys above\n\t\t\t\t\t} else if (e.getKeyCode() == KeyEvent.VK_F || e.getKeyCode() == KeyEvent.VK_R || e.getKeyCode() == KeyEvent.VK_L) {\n\t\t\t\t\t\tcommand = '-';\t//this signifies an invalid command.\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcommand = Character.toUpperCase(e.getKeyChar());\n\t\t\t\t\t}\n\n\n\t\t\t\t\tif (currentState == GameState.PLAYING) {\n\t\t\t\t\t\t//If this is tutorial mode, check status first to see if this action should be allowed at all.\n\t\t\t\t\t\t//If not approved, end this method immediately\n\t\t\t\t\t\tif (SAR.this.isTutorialMode()) {\n\t\t\t\t\t\t\tboolean actionApproved = tutorial.checkTutorialActionApproved(command);\n\t\t\t\t\t\t\tif (!actionApproved) return;\n\t\t\t\t\t\t} else if (SAR.this.isPracticeMissionHumanMode()) {\n\t\t\t\t\t\t\tboolean actionApproved = practiceDrillHuman.checkMissionActionApproved(command);\n\t\t\t\t\t\t\tif (!actionApproved) return;\n\t\t\t\t\t\t} else if (SAR.this.isPracticeMissionAIMode()) {\n\t\t\t\t\t\t\tboolean actionApproved = practiceDrillAI.checkMissionActionApproved(command);\n\t\t\t\t\t\t\tif (!actionApproved) return;\n\t\t\t\t\t\t} else if (SAR.this.isFinalMissionMode()){\n\t\t\t\t\t\t\tif (!finalMission.checkMissionActionApproved(command)) return;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Depending on whether the control mode is \"H\" for manual control only, \"R\" for automated control only,\n\t\t\t\t\t\t//or \"B\" for both modes enabled, certain commands will be disabled / enabled accordingly.\n\t\t\t\t\t\t//For instance, in mode \"R\", only the spacebar command will be recognized.\n\t\t\t\t\t\tif ( (\"H\".contains(SAR.this.controlMode) && \"FRLGSQO\" .contains(String.valueOf(command))) ||\n\t\t\t\t\t\t\t (\"R\".contains(SAR.this.controlMode) && \" \" .contains(String.valueOf(command))) ||\n\t\t\t\t\t\t\t (\"B\".contains(SAR.this.controlMode) && \"FRLGSQO \".contains(String.valueOf(command))) ) {\n\t\t\t\t\t\t\tboolean validKeyTyped = updateGame(currentPlayer, command, 0); // invoke update method with the given command\n\t\t\t\t\t\t\t// Switch player (in the event that we have a 2-player mission)\n\t\t\t\t\t\t\tif(validKeyTyped) {\n\t\t\t\t\t\t\t\tSAR.this.numOfMoves++;\n\t\t\t\t\t\t\t\tPlayer nextPlayer = (currentPlayer == h1 ? h2 : h1);\n\t\t\t\t\t\t\t\tif (nextPlayer.isAlive())\n\t\t\t\t\t\t\t\t\tcurrentPlayer = nextPlayer;\n//\t\t\t\t\t\t\t\tSystem.out.printf(\"Total no. of moves so far: %s\\n\", numOfMoves);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//end nested if\n\n\t\t\t\t\t\t//If we're in tutorial mode, we need to check to see\n\t\t\t\t\t\t//if user has completed what the tutorial asked them to do\n\t\t\t\t\t\tif (SAR.this.isTutorialMode()) {\n\t\t\t\t\t\t\ttutorial.checkTutorialStatus(String.valueOf(command));\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (Character.toUpperCase(command) == 'A') { // this command can be used when mission is over to restart mission\n\t\t\t\t\t\tif (SAR.this.isTutorialMode()) {\n\t\t\t\t\t\t\tinitTutorial();\t//If this was a tutorial mode, restart the same tutorial\n//\t\t\t\t\t\t\ttutorial = new Tutorial(SAR.this);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse initMission();\t\t\t\t\t\t\t\t\t//otherwise, initialize mission again\n\t\t\t\t\t} else if(Character.toUpperCase(command) == 'O' && !SAR.this.isTutorialOrMissionMode()) {\t// open options window as long as this isn't' tutorial mode\n\t\t\t\t\t\topenOptionsWindow();\t//custom method\n\t\t\t\t\t}\n\t\t\t\t\t// Refresh the drawing canvas\n\t\t\t\t\trepaint(); // Call-back paintComponent().\n\n\t\t\t\t}\n\t\t\t\t//end public void keyPressed\n\t\t\t};\n\t\t\t//end keyAdapter initialization\n\t\t\taddKeyListener(keyAdapter);\n\t\t}",
"public void keyPressed(KeyEvent event){\r\n\t\t\tchar input = event.getKeyChar();\r\n\t\t\tSystem.out.println(event.getExtendedKeyCode());\r\n\t\t\tif(event.getExtendedKeyCode()== 10){\r\n\t\t\t equals.doClick();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tswitch(input){\r\n\t\t\t\tcase '0': button0.doClick();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase '1': button1.doClick();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase '2': button2.doClick();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase '3': button3.doClick();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase '4': button4.doClick();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase '5': button5.doClick();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase '6': button6.doClick();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase '7': button7.doClick();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase '8': button8.doClick();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase '9': button9.doClick();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase '.': dot.doClick();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase '+': plus.doClick();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase '-': minus.doClick();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase '/': divide.doClick();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase '*': multiply.doClick();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase '=': equals.doClick();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase '\b': del.doClick();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase '\u001b': clear.doClick();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase 'c': clear.doClick();\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tdefault: break;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t}",
"void correctKeyPress();",
"private void processInputUntilRoomChange() {\n while (true) {\n // Get the user input\n System.out.print(\"> \");\n String input = scan.nextLine();\n\n // Determine which command they used and act accordingly\n if (input.startsWith(\"help\")) {\n this.displayCommands();\n } else if (input.startsWith(\"look\")) {\n this.displayDescription(input.substring(input.indexOf(\" \") + 1));\n } else if (input.startsWith(\"get\")) {\n this.acquireItem(input.substring(input.indexOf(\" \") + 1));\n } else if (input.startsWith(\"go\")) {\n if (this.movePlayer(input.substring(input.indexOf(\" \") + 1))) {\n break;\n }\n } else if (input.startsWith(\"use\")) {\n this.useItem(input.substring(input.indexOf(\" \") + 1));\n } else if (input.startsWith(\"inventory\")) {\n System.out.print(player.listInventory());\n } // The player did not enter a valid command.\n else {\n System.out.println(\"I don't know how to \" + input);\n }\n }\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n String action = e.getActionCommand();\n\n\n if (action.equals(keys[2])){\n //用户按下C\n handleC();\n }else if (action.equals(keys[3])){\n //用户按下退格\n handleBackspace();\n }else if (action.equals(keys[18])){\n //用户按下=\n handleCalc();\n }else{\n //用户输入表达式\n handleExpression(action);\n }\n }",
"public void onKeyEvent(String key) {\n if (this.board.get(powerRow).get(powerCol).hasNeighbor(key)) {\n if (key.equals(\"right\") && this.board.get(powerRow).get(powerCol).connected(\"right\")) {\n this.board.get(powerRow).get(powerCol).powerStation = false;\n powerRow++;\n this.placePowerStation();\n }\n else if (key.equals(\"left\") && this.board.get(powerRow).get(powerCol).connected(\"left\")) {\n this.board.get(powerRow).get(powerCol).powerStation = false;\n powerRow--;\n this.placePowerStation();\n }\n else if (key.equals(\"up\") && this.board.get(powerRow).get(powerCol).connected(\"up\")) {\n this.board.get(powerRow).get(powerCol).powerStation = false;\n powerCol--;\n this.placePowerStation();\n }\n else if (key.equals(\"down\") && this.board.get(powerRow).get(powerCol).connected(\"down\")) {\n this.board.get(powerRow).get(powerCol).powerStation = false;\n powerCol++;\n this.placePowerStation();\n }\n }\n }",
"public void commandListener(KeyEvent event) {\n\t\tKeyCode code = event.getCode();\n\t\tif(code == KeyCode.ENTER) {\n\t\t\tinputBar.setText((\"entered:\" + inputBar.getText()));\n\t\t}\n\t}",
"public void chooseFunction(){\n\t\t\n\t\tString commands=keyBoard.nextLine();\n\t\t\n\t\tswitch(interp.getFunctionName(commands)){\n\t\t\tcase \"addplayer\":\n\t\t\t\tplayerMgr.addPlayer(interp.getParameter(commands));\n\t\t\t\tbreak;\n\t\t\tcase \"removeplayer\":\n\t\t\t\tif(interp.getParameter(commands)==null){\n\t\t\t\t\tplayerMgr.removePlayer();\n\t\t\t\t}else{\n\t\t\t\t\tplayerMgr.removePlayer(interp.getParameter(commands));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"editplayer\":\n\t\t\t\tplayerMgr.editPlayer(interp.getParameter(commands));\n\t\t\t\tbreak;\n\t\t\tcase \"resetstats\":\n\t\t\t\tif(interp.getParameter(commands)==null){\n\t\t\t\t\tplayerMgr.resetStats();\n\t\t\t\t}else{\n\t\t\t\t\tplayerMgr.resetStats(interp.getParameter(commands));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"displayplayer\":\n\t\t\t\tif(interp.getParameter(commands)==null){\n\t\t\t\t\tplayerMgr.displayPlayer();\n\t\t\t\t}else{\n\t\t\t\t\tplayerMgr.displayPlayer(interp.getParameter(commands));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"rankings\":\n\t\t\t\tplayerMgr.displayRanking();\n\t\t\t\tbreak;\n\t\t\tcase \"playgame\":\n\t\t\t\tplayerMgr.assignPlayerToGM(interp.getParameter(commands),gameMgr);\n\t\t\t\tgameMgr.playGame();\n\t\t\t\tbreak;\n\t\t\tcase \"exit\":\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.exit(0);\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}",
"void handleKey(int keyCode, char keyChar, boolean press) {\r\n //keyCode.get == MouseEvent.c;\r\n //java.awt.event.MouseEvent e = null;\r\n // System.out.println(\"so \" + e.getClickCount());\r\n if (keyCode > 0) {\r\n setVal(button, press);\r\n }\r\n\r\n /*switch (keyCode) {\r\n\r\n // PLAYER_1\r\n case MOUSE_EVENT_MASK:\r\n setVal(button, 0, press);\r\n break;\r\n // PLAYER_2\r\n /*case VK_M:\r\n setVal(button, 1, press);\r\n break;\r\n // PLAYER_3\r\n case VK_LEFT:\r\n setVal(button, 2, press);\r\n break;\r\n // PLAYER_4\r\n case VK_NUMPAD3:\r\n setVal(button, 3, press);\r\n break;*/\r\n //default:\r\n //}\r\n }",
"public boolean keyInput(int code, int action);",
"public void input() {\n \n \t\tboolean aPressed = Keyboard.isKeyDown(Keyboard.KEY_A);\n \t\tboolean dPressed = Keyboard.isKeyDown(Keyboard.KEY_D);\n \t\tboolean wPressed = Keyboard.isKeyDown(Keyboard.KEY_W);\n \t\tboolean sPressed = Keyboard.isKeyDown(Keyboard.KEY_S);\n \n \t\tif ((aPressed) && (!dPressed)) {\n \t\t\ttryToMove(Keyboard.KEY_A);\n \t\t} else if ((dPressed) && (!aPressed)) {\n \t\t\ttryToMove(Keyboard.KEY_D);\n \t\t} else if ((wPressed) && (!sPressed)) {\n \t\t\ttryToMove(Keyboard.KEY_W);\n \t\t} else if ((sPressed) && (!wPressed)) {\n \t\t\ttryToMove(Keyboard.KEY_S);\n \t\t}\n \t}",
"private void KeyActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"void bindKeys() {\n // ahh, the succinctness of java\n KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager();\n\n kfm.addKeyEventDispatcher( new KeyEventDispatcher() {\n public boolean dispatchKeyEvent(KeyEvent e) {\n String action=null;\n if(e.getID() != KeyEvent.KEY_PRESSED) \n return false;\n if(e.getModifiers() != 0)\n return false;\n switch(e.getKeyCode()) {\n case KeyEvent.VK_UP:\n action = \"forward\";\n movingForward=true;\n turnval = 0;\n break;\n case KeyEvent.VK_DOWN:\n action=\"backward\";\n movingForward=false;\n turnval = 0;\n break;\n case KeyEvent.VK_LEFT:\n if(movingForward) {\n turnval = (turnval==0) ? 100 : turnval-turnval/2;\n if(turnval<10) { action=\"spinleft\"; turnval=0; }\n else action = \"turn\"+turnval;\n }\n else action = \"spinleft\";\n //action = (movingForward) ? \"turn100\" : \"spinleft\";\n break;\n case KeyEvent.VK_RIGHT:\n if(movingForward) {\n turnval = (turnval==0) ? -100 : turnval-turnval/2;\n if(turnval>-10) { action=\"spinright\"; turnval=0; }\n else action = \"turn\"+turnval;\n }\n else action = \"spinright\";\n //action = (movingForward) ? \"turn-100\" : \"spinright\";\n break;\n case KeyEvent.VK_SPACE:\n action=\"stop\";\n movingForward=false;\n turnval = 0;\n break;\n case KeyEvent.VK_L:\n action=\"blink-leds\";\n break;\n case KeyEvent.VK_R:\n action=\"reset\";\n break;\n case KeyEvent.VK_T:\n action=\"test\";\n break;\n case KeyEvent.VK_V:\n vacuuming = !vacuuming;\n action = (vacuuming) ? \"vacuum-on\":\"vacuum-off\";\n break;\n case KeyEvent.VK_1:\n action=\"50\";\n break;\n case KeyEvent.VK_2:\n action=\"100\";\n break;\n case KeyEvent.VK_3:\n action=\"150\";\n break;\n case KeyEvent.VK_4:\n action=\"250\";\n break;\n case KeyEvent.VK_5:\n action=\"400\";\n break;\n case KeyEvent.VK_6:\n action=\"500\";\n break;\n }\n\n if(action!=null)\n getCurrentTab().actionPerformed(new ActionEvent(this,0,action));\n //System.out.println(\"process '\"+e.getKeyCode()+\"' \"+e);\n return true;\n } \n });\n }",
"void handleKeyboard(KeyboardHandler kh, Player player) throws IOException {\n\n if (kh.wPressed()) {\n if (player.checkCollisionHorizWall(90) == 1) {\n player.setDeltaY(-7);\n }\n else {\n player.setDeltaY(0);\n }\n }\n if (kh.sPressed()) {\n if (player.checkCollisionHorizWall(height-220) == 0) {\n player.setDeltaY(7);\n }\n else {\n player.setDeltaY(0);\n }\n }\n if (kh.aPressed()) {\n if (player.checkCollisionVerticalWall(150) == 1) {\n player.setDeltaX(-7);\n }\n else {\n player.setDeltaX(0);\n }\n }\n if (kh.dPressed()) {\n if (player.checkCollisionVerticalWall(width-200) == 0) {\n player.setDeltaX(7);\n }\n else {\n player.setDeltaX(0);\n }\n }\n\n if (kh.shiftPressed()) {\n shiftPress = 1;\n }\n else {\n if (shiftPress == 1) {\n\n player.meleeAttack();\n }\n shiftPress = 0;\n }\n\n if (kh.onePressed()) {\n onePress = 1;\n }\n else {\n if (onePress == 1) {\n\n player.shootArrow();\n }\n onePress = 0;\n }\n\n if (!kh.wPressed() && !kh.sPressed()) {\n player.setDeltaY(0);\n }\n\n if (!kh.aPressed() && !kh.dPressed()) {\n player.setDeltaX(0);\n }\n\n if (kh.escapePressed()) {\n escapePress = 1;\n }\n else {\n if (escapePress == 1) {\n \tingamemenu = new Menuingame(window, kh, level.getLevelNum());\n }\n escapePress = 0;\n }\n\n /*\n End keyboard handling block\n */\n }",
"private void handleKeyInput (KeyCode code) {\n \tif (code == KeyCode.RIGHT) {\n \t\tcellSociety.next();\n \t} else if (code == KeyCode.ESCAPE) {\n \t\trestart();\n \t} else if (code == KeyCode.ENTER) {\n \t\tif (gridSize > GRID_TOO_SMALL && gridSize < GRID_TOO_BIG) {\n \t\t\tgridSize = Integer.valueOf(test.getText());\n \t\t}\n \t}\n }",
"public abstract Menu execute(String commandKey);",
"public void keyPressed(KeyEvent event)\n {\n \tif (isServer)\n \t{\n switch(event.getKeyCode())\n {\n // Move Player 1's Paddle\n case KeyEvent.VK_W:\n \t\tplayer1UpFlag = true;\n \t\tbreak;\n case KeyEvent.VK_S:\n \t\tplayer1DownFlag = true;\n \t\t\tbreak;\n case KeyEvent.VK_C:\n \t\tp1Spd = true;\n \t\tbreak;\n case KeyEvent.VK_X:\n \t\t\tp1Inv = true;\n \t\t\tbreak;\n }\n }\n else {\n switch(event.getKeyCode())\n \t\t\t{\n // Move Player 2's Paddle \n case KeyEvent.VK_UP:\n \t\t\ts.send(\"P2UP\");\n \t\t\tbreak;\n case KeyEvent.VK_DOWN:\n \t\t\ts.send(\"P2DOWN\");\n\t\t\tbreak;\n case KeyEvent.VK_C:\n \t\t\ts.send(\"P2SPD\");\n \t\t\tbreak;\n case KeyEvent.VK_X:\n \t\t\ts.send(\"P2INV\");\n \t\t\tbreak;\n\t\t\n \t\t\t}\n }\n }",
"public static void getCommand(int inputCommand){\n\t\t\n\t\t//Inputs for main menu\n\t\t//Note: I'm not exactly sure why there is a repeated boolean statement, but when it is removed, the program\n\t\t//fails to perform properly\n\t\tif (screenNumber == ID_MAIN_MENU){\n\t\t\tif (screenNumber == ID_MAIN_MENU){\n\t\t\t\tif (inputCommand == 0){\n\t\t\t\t\n\t\t\t\t\t//Prompting the user to create a new save\n\t\t\t\t\t/*\n\t\t\t\t\tSystem.out.println(\"Create new save? (Type 'y' to overwrite save)\");\n\t\t\t\t\t\n\t\t\t\t\tScanner sc = new Scanner(System.in);\n\t\t\t\t\tString input = sc.nextLine();\n\t\t\t\t\tif(input.length() > 0){\n\n\t\t\t\t\t\t\tchar inputChar = input.charAt(0);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (inputChar == 'y'){\n\t\t\t\t\t\t\t\t*/\n\t\t\t\t\t\tplayer = new Player();\n\t\t\t\t\t\tMainMenu.createSave(player);\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t*/\n\t\t\t\t\t\n\t\t\t\t\t//If the player created a new save, then initialize the game\n\t\t\t\t\tif (player != null){\n\t\t\t\t\t\tshop = new Shop();\n\t\t\t\t\t\tshop.setCurLevelMemory(-1);\n\t\t\t\t\t\tscreenNumber = ID_PRE_BATTLE_CUTSCENE;\n\t\t\t\t\t\tCutscene.loadCutscene(player.getCurLevel(), true);\n\t\t\t\t\t\tgui.initializeCutscene();\n\t\t\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}else if (inputCommand == 1){\n\t\t\t\t\tplayer = MainMenu.loadSave();\n\t\t\t\t\topenMenu(ID_SUB_MENU);\n\t\t\t\t\t\n\t\t\t\t}else if (inputCommand == 2){\n\t\t\t\t\tMainMenu.exitGame();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (player != null){\n\t\t\t\t\tshop = new Shop();\n\t\t\t\t\tscreenNumber = ID_PRE_BATTLE_CUTSCENE;\n\t\t\t\t\tCutscene.loadCutscene(player.getCurLevel(), true);\n\t\t\t\t\tgui.initializeCutscene();\n\t\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else if (inputCommand == 1){\n\t\t\t\tplayer = MainMenu.loadSave();\n\t\t\t\topenMenu(ID_SUB_MENU);\n\t\t\t\t\n\t\t\t}else if (inputCommand == 2){\n\t\t\t\tMainMenu.exitGame();\n\t\t\t}\n\t\n\t\t//Inputs for sub menu\n\t\t}else if (screenNumber == ID_SUB_MENU){\n\t\t\t\n\t\t\tif (inputCommand == 0){\n\t\t\t\t\n\t\t\t\tscreenNumber = ID_BATTLE;\n\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t\t\n\t\t\t\tgui.setUnits(player.getCharacters(), map.getEnemies());\n\t\t\t\t\n\t\t\t\tgui.setBoard(board, mapWidth, mapHeight, map);\n\t\t\t\tplayer.resetAllHeroesForNewLevel();\n\t\t\t\t\n\t\t\t}else if (inputCommand == 1){\n\t\t\t\topenMenu(ID_INVENTORY_MENU);\n\t\t\t\tprevScreen = ID_SUB_MENU;\n\t\t\t}else if (inputCommand == 2){\n\t\t\t\t\n\t\t\t\t//Open character menu\n\t\t\t\topenMenu(ID_CHARACTER_MENU);\n\t\t\t}else if (inputCommand == 3){\n\t\t\t\t\n\t\t\t\t//Opening shop\n\t\t\t\topenMenu(ID_SHOP_MENU);\n\t\t\t}else if(inputCommand == 4){\n\t\t\t\tMainMenu.createSave(player);\n\t\t\t}\n\t\t\n\t\t//Inputs for intermediate menu\n\t\t}else if (screenNumber == ID_INTERMEDIATE_MENU){\n\t\t\n\t\t\tif(inputCommand == 0){\n\t\t\t\t\n\t\t\t\tif (player.getCurLevel() < NUM_LEVELS){\n\t\t\t\t\tscreenNumber = ID_PRE_BATTLE_CUTSCENE;\n\t\t\t\t\tCutscene.loadCutscene(player.getCurLevel(), true);\n\t\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t\t\tgui.initializeCutscene();\n\t\t\t\t}else{\n\t\t\t\t\topenMenu(ID_MAIN_MENU);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t//Inputs for cutscenes\n\t\t}else if (screenNumber == ID_PRE_BATTLE_CUTSCENE){\n\t\t\t\n\t\t\tif (inputCommand == 0){\n\t\t\t\topenMenu(ID_SUB_MENU);\n\t\t\t}\n\t\t\n\t\t//Inputs for the post battle cutscene\n\t\t}else if (screenNumber == ID_POST_BATTLE_CUTSCENE){\n\t\t\t\n\t\t\tif (inputCommand == 0 && !inBattle){\n\t\t\t\topenMenu(ID_INTERMEDIATE_MENU);\n\t\t\t}else{\n\t\t\t\t\n\t\t\t\tif (inBattle && !isEnemyAttacking){\n\t\t\t\t\tinBattle = false;\n\t\t\t\t\tscreenNumber = ID_BATTLE;\n\t\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t\t}else{\n\t\t\t\t\tboolean found = false;\n\t\t\t\t\tfor (int i = curEnemyAttacker + 1; i < enemyList.length && !found; i++){\n\t\t\t\t\t\tif (ai.getAttackCommands(i) != null){\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tcurEnemyAttacker = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (curEnemyAttack <= totalEnemyAttacks){\n\t\t\t\t\t\tString message = ((Enemy)enemyList[curEnemyAttacker]).getEnemyType() + \" did \" + ai.getAttackCommandsDamage(curEnemyAttacker) + \" damage to \" + ((Hero)ai.getAttackCommands(curEnemyAttacker)).getName() + \"!\";\n\t\t\t\t\t\tCutscene.loadAttackCutscene(((Enemy)enemyList[curEnemyAttacker]).getEnemyID() * -1 - 1, ai.getAttackCommands(curEnemyAttacker).getUnitID(), message, map.getTileNumber(enemyList[curEnemyAttacker].getCoordinate()));\n\t\t\t\t\t\tgui.initializeCutscene();\n\t\t\t\t\t}\n\t\t\t\t\tcurEnemyAttack++;\n\t\t\t\t\t\n\t\t\t\t\tif (curEnemyAttack > totalEnemyAttacks){\n\t\t\t\t\t\tisEnemyAttacking = false;\n\t\t\t\t\t\tif (!checkDefeat()){\n\t\t\t\t\t\t\tinBattle = false;\n\t\t\t\t\t\t\topenMenu (ID_MAIN_MENU);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int i = 0; i < player.getCharacters().length; i++){\n\t\t\t\t\t\t\t\tif (heroList[i].isAlive()){\n\t\t\t\t\t\t\t\t\tunitPositions[i] = heroList[i].getCoordinate();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tunitPositions[i] = null;\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\tAlgorithm.setUnitPositions(unitPositions);\n\t\t\t\t\t\t\tscreenNumber = ID_BATTLE;\n\t\t\t\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t\t\t\t\tplayer.resetAllHeroes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t//Inputs for the inventory\n\t\t}else if (screenNumber == ID_INVENTORY_MENU){\n\t\t\t\n\t\t\tif (inputCommand == -1){\n\t\t\t\t\n\t\t\t\tif (!recentlySearched){\n\t\t\t\t\t\n\t\t\t\t\tif (!inBattle){\n\t\t\t\t\t\t//Return to previous menu\n\t\t\t\t\t\topenMenu(ID_SUB_MENU);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tscreenNumber = ID_ACTION_MENU;\n\t\t\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t\t\t\tinBattle = false;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\trecentlySearched = false;\n\t\t\t\t\tgui.setItemSelected(0);\n\t\t\t\t\tgui.setItemsToDisplay(player.getBag().getAllItems());\n\t\t\t\t}\n\t\t\t}else if(inputCommand == -2){\n\t\t\t\tSystem.out.println(\"Enter keyword to search (by name): \");\n\t\t\t\tString searchKeyword = sc.nextLine();\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\tsearchedItemList = Algorithm.searchItemName(searchKeyword, player.getBag().getAllItems());\n\t\t\t\tgui.setItemsToDisplay(searchedItemList);\n\t\t\t\tgui.setItemSelected(0);\n\t\t\t\trecentlySearched = true;\n\t\t\t}else if (inputCommand == -4){\n\t\t\t\tSystem.out.println(\"Enter keyword to search (by price): \");\n\t\t\t\ttry{\n\t\t\t\t\tint searchKeyword = sc.nextInt();\n\t\t\t\t\tsc.nextLine();\n\t\t\t\t\tsearchedItemList = Algorithm.searchItemSalePrice(searchKeyword, player.getBag().getAllItems());\n\t\t\t\t\tgui.setItemsToDisplay(searchedItemList);\n\t\t\t\t\tgui.setItemSelected(0);\n\t\t\t\t\trecentlySearched = true;\n\t\t\t\t}catch(InputMismatchException im){\n\t\t\t\t\tSystem.out.println(\"Invalid input\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\t\n\t\t\t}else if (inputCommand == -3){\n\t\t\t\t\n\t\t\t\tItem[] items = player.getBag().getAllItems();\n\t\t\t\tgui.setItemSelected(0);\n\t\t\t\t\n\t\t\t\tif (menuSortType == 0){\n\t\t\t\t\tmenuSortType = 1;\n\t\t\t\t\t\n\t\t\t\t\tAlgorithm.sortItemsAlphabet(items);\n\t\t\t\t\t\n\t\t\t\t}else if (menuSortType == 1){\n\t\t\t\t\tmenuSortType = 2;\n\t\t\t\t\t\n\t\t\t\t\tAlgorithm.sortItemsPriceMinToMax(items);\n\t\t\t\t\t\n\t\t\t\t}else if (menuSortType == 2){\n\t\t\t\t\tmenuSortType = 0;\n\t\t\t\t\tAlgorithm.sortItemsPriceMaxToMin(items);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tgui.setItemsToDisplay(items);\n\t\t\t}else{\n\t\t\t\tif (recentlySearched){\n\t\t\t\t\titemSelected = searchedItemList[inputCommand];\n\t\t\t\t\topenMenu(ID_INVENTORY_ACTION_MENU);\n\t\t\t\t}else{\n\t\t\t\t\tif (player.getBag().getAllItems().length > 0){\n\t\t\t\t\t\titemSelected = player.getBag().getAllItems()[inputCommand];\n\t\t\t\t\t\topenMenu(ID_INVENTORY_ACTION_MENU);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t//Inputs for the inventory action menu\n\t\t}else if (screenNumber == ID_INVENTORY_ACTION_MENU){\n\t\t\t\n\t\t\tif (inputCommand == -1){\n\t\t\t\t//Return to inventory menu\n\t\t\t\topenMenu(ID_INVENTORY_MENU);\n\t\t\t\t\n\t\t\t\tif(recentlySearched){\n\t\t\t\t\tgui.setItemsToDisplay(searchedItemList);\n\t\t\t\t\trecentlySearched = false;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif (inputCommand == 0){\n\t\t\t\t//System.out.println(\"char menu open\");\n\t\t\t\t\tif (!inBattle){\n\t\t\t\t\t\topenMenu(ID_CHARACTER_MENU);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (player.getCharacters()[recentUnitSelected].getOtherAction()){\t\n\t\t\t\t\t\t\tplayer.useItem(itemSelected, player.getCharacters()[recentUnitSelected]);\n\t\t\t\t\t\t\tgui.setItemsToDisplay(player.getBag().getAllItems());\n\t\t\t\t\t\t\tgui.setCharactersToDisplay(player.getCharacters());\n\t\t\t\t\t\t\tif (!player.getCharacters()[recentUnitSelected].getOtherAction()) {\n\t\t\t\t\t\t\t\tscreenNumber = ID_BATTLE;\n\t\t\t\t\t\t\t\tgui.setScreenID(screenNumber);\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 (inputCommand == 1){\n\t\t\t\t\tplayer.setMoney(itemSelected.getSalePrice() + player.getMoney());\n\t\t\t\t\tplayer.getBag().removeItem(itemSelected);\n\t\t\t\t\t\n\t\t\t\t\topenMenu(ID_INVENTORY_MENU);\n\t\t\t\t\tgui.setMoney(player.getMoney());\n\t\t\t\t\tgui.setItemsToDisplay(player.getBag().getAllItems());\n\t\t\t\t\t\n\t\t\t\t\tif (player.getBag().getAllItems().length > 0){\n\t\t\t\t\t\tgui.setItemSelected(0);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(!inBattle){\n\t\t\t\t\t\t\topenMenu(ID_SUB_MENU);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tscreenNumber = ID_BATTLE;\n\t\t\t\t\t\t\tgui.setScreenID(screenNumber);\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//Inputs for the battle screen\n\t\t}else if (screenNumber == ID_BATTLE){\n\t\t\tinBattle = true;\n\t\t\tcheckTurnEnd();\n\t\t\t//System.out.println(inBattle + \" \" + player.getCharacters()[recentUnitSelected].getOtherAction());\n\t\t\trecentUnitSelected = inputCommand;\n\t\t\t//Open action menu and set possible moves\n\t\t\t\n\t\t\tif (inBattle && player.getCharacters()[recentUnitSelected].getOtherAction()) {\n\t\t\t\topenMenu(ID_ACTION_MENU);\n\t\t\t}\n\t\t\t\t\t//Inputs for the action menu\n\t\t}else if (screenNumber == ID_ACTION_MENU){\n\t\t\t\n\t\t\tif (inputCommand == -1){\n\t\t\t\t//Return to battle screen\n\t\t\t\tscreenNumber = ID_BATTLE;\n\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t}else if(inputCommand == 0){\n\t\t\t\t\tscreenNumber = ID_ACTION_ATTACK_MENU;\n\t\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t}else if(inputCommand == 1){\n\t\t\t\tif (player.getCharacters()[recentUnitSelected].getMoveAction()) {\n\t\t\t\t\tgui.setPossibleMoves(player.getCharacters()[recentUnitSelected].getMovementArea(map, unitPositions));\n\t\t\t\t\tscreenNumber = ID_ACTION_MOVE_MENU;\n\t\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t\t}\n\t\t\t}else if (inputCommand == 2) {\n\t\t\t\t\tplayer.getCharacters()[recentUnitSelected].defend();\n\t\t\t\t\tscreenNumber = ID_BATTLE;\n\t\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t}else if (inputCommand == 3){\n\t\t\t\t\t//Open inventory menu\n\t\t\t\t\topenMenu(ID_INVENTORY_MENU);\n\t\t\t}\n\t\t\t\n\t\t//Inputs for the Action Move menu\n\t\t}else if (screenNumber == ID_ACTION_MOVE_MENU){\n\t\t\tif(inputCommand == -1){\n\t\t\t\tscreenNumber = ID_ACTION_MENU;\n\t\t\t\topenMenu(screenNumber);\n\t\t\t}else if (inputCommand == 0){\n\t\t\t\t\n\t\t\t\t//Moving the unit to the desired location using the designate path, if possible\n\t\t\t\tCoordinate[] path = player.getCharacters()[recentUnitSelected].move(gui.getCursorPosition());\n\t\t\t\tif (path != null){\n\t\t\t\t\tscreenNumber = ID_ACTION_MENU;\n\t\t\t\t\tgui.setPath(path);\n\t\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t//Inputs for the Action Attack menu\n\t\t}else if (screenNumber == ID_ACTION_ATTACK_MENU){\n\t\t\tif (inputCommand == -1){\n\t\t\t\tscreenNumber = ID_ACTION_MENU;\n\t\t\t\topenMenu(screenNumber);\n\t\t\t}else{\n\t\t\t\tUnit target;\n\t\t\t\tif ((target = getUnitOn(gui.getCursorPosition())) != null && Algorithm.showAttackRange(player.getCharacters()[recentUnitSelected])[gui.getCursorPosition().getX()][gui.getCursorPosition().getY()]) {\n\t\t\t\t\t\n\t\t\t\t\t//the message is displayed by Cutscene\n\t\t\t\t\tint damage = player.getCharacters()[recentUnitSelected].calculateDamage(target);\n\t\t\t\t\tString message = ((Hero)player.getCharacters()[recentUnitSelected]).getName() + \" did \" + damage + \" damage to \" + ((Enemy)target).getEnemyType() + \"!\";\n\t\t\t\t\t\n\t\t\t\t\tif (player.getCharacters()[recentUnitSelected].attack(target)) {\n\t\t\t\t\t\ttarget.kill();\n\t\t\t\t\t\tplayer.collectReward(((Enemy)target).getGold());\n\t\t\t\t\t\t\n\t\t\t\t\t\tmessage += \"\\n\" + ((Enemy)target).getGold() + \" gold was collected!\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tunitPositions = new Coordinate[heroList.length + enemyList.length];\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Initializing the unit positions\n\t\t\t\t\t\tfor (int i = 0; i < heroList.length; i++){\n\t\t\t\t\t\t\tif (heroList[i].isAlive()){\n\t\t\t\t\t\t\t\tunitPositions[i] = heroList[i].getCoordinate();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tunitPositions[i] = null;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\tfor (int i = 0; i < enemyList.length; i++){\n\t\t\t\t\t\t\tif (enemyList[i].isAlive()){\n\t\t\t\t\t\t\t\tunitPositions[i + heroList.length] = enemyList[i].getCoordinate();\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tunitPositions[i + heroList.length] = null;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tAlgorithm.setUnitPositions(unitPositions);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tscreenNumber = ID_POST_BATTLE_CUTSCENE;\n\t\t\t\t\t//Playing attacking cutscene\n\t\t\t\t\tCutscene.loadAttackCutscene(player.getCharacters()[recentUnitSelected].getUnitID(), ((Enemy)target).getEnemyID() * -1 - 1, message, map.getTileNumber(player.getCharacters()[recentUnitSelected].getCoordinate()));\n\t\t\t\t\tgui.initializeCutscene();\n\t\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t//Inputs for the Shop menu\n\t\t}else if (screenNumber == ID_SHOP_MENU){\n\t\t\tif (inputCommand == -1){\n\t\t\t\tif (!recentlySearched){\n\t\t\t\t\t//Return to previous menu\n\t\t\t\t\topenMenu(ID_SUB_MENU);\n\t\t\t\t}else{\n\t\t\t\t\trecentlySearched = false;\n\t\t\t\t\tgui.setItemSelected(0);\n\t\t\t\t\tgui.setItemsToDisplay(shopItems);\n\t\t\t\t}\n\t\t\t}else if (inputCommand == -2){\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Enter keyword to search: \");\n\t\t\t\tString searchKeyword = sc.nextLine();\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\tsearchedItemList = Algorithm.searchItemName(searchKeyword, shopItems);\n\t\t\t\tgui.setItemsToDisplay(searchedItemList);\n\t\t\t\tgui.setItemSelected(0);\n\t\t\t\trecentlySearched = true;\n\t\t\t\t\n\t\t\t}else if (inputCommand == -4){\n\t\t\t\tSystem.out.println(\"Enter keyword to search (by price): \");\n\t\t\t\t\n\t\t\t\t//try catch structure here to ensure that the user's input is valid\n\t\t\t\ttry{\n\t\t\t\t\tint searchKeyword = sc.nextInt();\n\t\t\t\t\tsc.nextLine();\n\t\t\t\t\tsearchedItemList = Algorithm.searchItemShopPrice(searchKeyword, shopItems);\n\t\t\t\t\tgui.setItemsToDisplay(searchedItemList);\n\t\t\t\t\tgui.setItemSelected(0);\n\t\t\t\t\trecentlySearched = true;\n\t\t\t\t}catch(InputMismatchException im){\n\t\t\t\t\tSystem.out.println(\"Invalid input\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\t\n\t\t\t}else if (inputCommand == -3){\n\t\t\t\t\n\t\t\t\tgui.setItemSelected(0);\n\t\t\t\t\n\t\t\t\tif (menuSortType == 0){\n\t\t\t\t\tmenuSortType = 1;\n\t\t\t\t\t\n\t\t\t\t\tAlgorithm.sortItemsAlphabet(shopItems);\n\t\t\t\t\t\n\t\t\t\t}else if (menuSortType == 1){\n\t\t\t\t\tmenuSortType = 2;\n\t\t\t\t\t\n\t\t\t\t\tAlgorithm.sortItemsPriceMinToMax(shopItems);\n\t\t\t\t\t\n\t\t\t\t}else if (menuSortType == 2){\n\t\t\t\t\tmenuSortType = 0;\n\t\t\t\t\t\n\t\t\t\t\tAlgorithm.sortItemsPriceMaxToMin(shopItems);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tgui.setItemsToDisplay(shopItems);\n\t\t\t}else{\n\t\t\t\t\n\t\t\t\tif (player.getMoney() >= shopItems[inputCommand].getPrice()){\n\t\t\t\t\tplayer.setMoney(player.getMoney() - shopItems[inputCommand].getPrice());\n\t\t\t\t\tplayer.getBag().addItem(shopItems[inputCommand]);\n\t\t\t\t\tshop.purchaseItem(shopItems[inputCommand]);\n\t\t\t\t\tshopItems = shop.getItemsInShop();\n\t\t\t\t\tgui.setItemsToDisplay(shopItems);\n\t\t\t\t\tgui.setMoney(player.getMoney());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t//Inputs for the Character menu\n\t\t}else if (screenNumber == ID_CHARACTER_MENU){\t\t\n\t\t\tif (inputCommand == -1){\n\t\t\t\t\tif (prevScreen == ID_SUB_MENU){\n\t\t\t\t\t\topenMenu(prevScreen);\n\t\t\t\t\t}else if (prevScreen == ID_INVENTORY_ACTION_MENU){\n\t\t\t\t\t\topenMenu(ID_INVENTORY_MENU);\n\t\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (prevScreen == ID_INVENTORY_ACTION_MENU) {\n\t\t\t\t\tplayer.useItem(itemSelected, player.getCharacters()[inputCommand]);\n\t\t\t\t\tgui.setItemsToDisplay(player.getBag().getAllItems());\n\t\t\t\t\tgui.setCharactersToDisplay(player.getCharacters());\n\t\t\t\t\topenMenu (ID_INVENTORY_MENU);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public abstract void keyPressed(int key);",
"@Override\n public void keyUp(KeyEvent e){\n super.keyUp(e);\n// if(e.getKeyCode() == KeyEvent.VK_S)\n// spawnControl.spawnNow();\n// if(e.getKeyCode() == KeyEvent.VK_D)\n// player.sleep();\n// if(e.getKeyCode() == KeyEvent.VK_E)\n// player.invincibility();\n// if(e.getKeyCode() == KeyEvent.VK_F)\n// player.fast();\n }",
"@Override\n\tpublic void keyPressed(KeyEvent arg0) {\n\t\tswitch(arg0.getExtendedKeyCode()){\n\t\t\tcase KeyEvent.VK_DOWN:\n\t\t\t\tlast = new AgentAction(Maze.SOUTH);\n\t\t\t\tbreak;\n\t\t\tcase KeyEvent.VK_UP:\n\t\t\t\tlast = new AgentAction(Maze.NORTH);\n\t\t\t\tbreak;\n\t\t\tcase KeyEvent.VK_LEFT:\n\t\t\t\tlast = new AgentAction(Maze.WEST);\n\t\t\t\tbreak;\n\t\t\tcase KeyEvent.VK_RIGHT:\n\t\t\t\tlast = new AgentAction(Maze.EAST);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\t\t\t\n\t\t}\t\n\t\ttest.setText(Integer.toString(arg0.getExtendedKeyCode()));\n\t}",
"public boolean keyTyped(gb gui, char keyChar, int keyCode) {\n/* 222 */ if (keyCode == NEIConfig.getKeyBinding(\"recipe\"))\n/* 223 */ return transferRect(gui, false); \n/* 224 */ if (keyCode == NEIConfig.getKeyBinding(\"usage\")) {\n/* 225 */ return transferRect(gui, true);\n/* */ }\n/* 227 */ return false;\n/* */ }",
"void keyPress(int key);",
"@Override\r\n\t\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\tswitch(e.getKeyCode()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase KeyEvent.VK_UP:\r\n\t\t\t\t\t\tcontrol.up = true;\r\n\t\t\t\t\t\t//juego.moverBombermanUP();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase KeyEvent.VK_DOWN:\t\r\n\t\t\t\t\t\tcontrol.down = true;\r\n//\t\t\t\t\t\tjuego.moverBombermanDOWN();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase KeyEvent.VK_RIGHT:\t\r\n\t\t\t\t\t\tcontrol.der = true;\r\n//\t\t\t\t\t\tjuego.moverBombermanRIGHT();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase KeyEvent.VK_LEFT:\t\r\n\t\t\t\t\t\tcontrol.izq = true;\r\n//\t\t\t\t\t\tjuego.moverBombermanLEFT();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\r\n\t\t\t\t\tcase KeyEvent.VK_SPACE:\r\n\t\t\t\t\t\tjuego.ponerBomba();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t\t}",
"@Override\n\tpublic void keyPressed() {\n\t\tif (key == ENTER || key == RETURN) {\n\t\t\tnewGame();\n\t\t\treturn;\n\t\t}\n\n\t\tif (state == State.GAME_OVER)\n\t\t\treturn;\n\n\t\tif (key == ' ') {\n\t\t\tTimer_Procedures.togglePauseResume(this);\n\t\t\treturn;\n\t\t}\n\n\t\t// no fair playing with timer paused\n\t\tif (state != State.PLAYING)\n\t\t\treturn;\n\n\t\tString legal = \"QWERTYUASDFGHJZXCVVBNMqwertyuasdfghjzxcvbnm+=-_Pp \";\n\t\tif (legal.indexOf(key) < 0) {\n\t\t\tmessage = 8;\n\t\t\treturn;\n\t\t}\n\n\t\tif (\"+=-_ \".indexOf(key) >= 0) {\n\t\t\tswitch (key) {\n\t\t\tcase ' ':\n\t\t\t\tTimer_Procedures.togglePauseResume(this);\n\t\t\t\tbreak;\n\t\t\tcase '=':\n\t\t\tcase '+':\n\t\t\t\tgrid.addColumn();\n\t\t\t\tbreak;\n\t\t\tcase '_':\n\t\t\tcase '-':\n\t\t\t\tstate = State.FIND_SET;\n\t\t\t\thighlightCounter = 0;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tint col = \"qazQAZ\".indexOf(key) >= 0 ? 0\n\t\t\t\t: \"wsxWSX\".indexOf(key) >= 0 ? 1\n\t\t\t\t\t\t: \"edcEDC\".indexOf(key) >= 0 ? 2\n\t\t\t\t\t\t\t\t: \"rfvRFV\".indexOf(key) >= 0 ? 3\n\t\t\t\t\t\t\t\t\t\t: \"tgbTGB\".indexOf(key) >= 0 ? 4\n\t\t\t\t\t\t\t\t\t\t\t\t: \"yhnYHN\".indexOf(key) >= 0 ? 5 : \"ujmUJM\".indexOf(key) >= 0 ? 6 : 7;\n\t\tint row = \"qwertyuQWERTYU\".indexOf(key) >= 0 ? 0 : \"asdfghjASDFGHJ\".indexOf(key) >= 0 ? 1 : 2;\n\n\t\tif (col < currentCols) {\n\t\t\tgrid.updateSelected(col, row);\n\t\t} else {\n\t\t\tmessage = 8;\n\t\t}\n\t}",
"public void keyPressed(KeyEvent keyEvent) {\n if ((keyEvent.getKeyCode() == KeyEvent.VK_O)\n && ( ((keyEvent.getModifiers() & KeyEvent.CTRL_MASK) != 0) || (keyEvent.getModifiers() & KeyEvent.VK_META) != 0)) {\n for(UserCommandEventListener userCommandEventListener : userCommandEventListenerList) {\n userCommandEventListener.onFileOpenCommand();\n }\n }\n\n /**\n * CTRL + N => Open Network File\n */\n if ((keyEvent.getKeyCode() == KeyEvent.VK_N)\n && ( ((keyEvent.getModifiers() & KeyEvent.CTRL_MASK) != 0) || (keyEvent.getModifiers() & KeyEvent.VK_META) != 0)) {\n for(UserCommandEventListener userCommandEventListener : userCommandEventListenerList) {\n userCommandEventListener.onNetworkFileOpenCommand();\n }\n }\n\n if(keyEvent.getKeyCode() == KeyEvent.VK_V) {\n for(UserCommandEventListener userCommandEventListener : userCommandEventListenerList) {\n userCommandEventListener.onToggleSubtitles();\n }\n }\n\n /**\n * CTRL + G => Go to specific time in track.\n */\n if ((keyEvent.getKeyCode() == KeyEvent.VK_G)\n && ( ((keyEvent.getModifiers() & KeyEvent.CTRL_MASK) != 0) || (keyEvent.getModifiers() & KeyEvent.VK_META) != 0)) {\n for(UserCommandEventListener userCommandEventListener : userCommandEventListenerList) {\n userCommandEventListener.goTo();\n }\n }\n\n }",
"public void tick() {\r\n up = keys[KeyEvent.VK_UP];\r\n left = keys[KeyEvent.VK_LEFT];\r\n right = keys[KeyEvent.VK_RIGHT];\r\n\r\n j = keys[KeyEvent.VK_J];\r\n k = keys[KeyEvent.VK_K];\r\n l = keys[KeyEvent.VK_L];\r\n\r\n q = keys[KeyEvent.VK_Q];\r\n w = keys[KeyEvent.VK_W];\r\n e = keys[KeyEvent.VK_E];\r\n\r\n z = keys[KeyEvent.VK_Z];\r\n x = keys[KeyEvent.VK_X];\r\n c = keys[KeyEvent.VK_C];\r\n\r\n space = keys[KeyEvent.VK_SPACE];\r\n pause = keys[KeyEvent.VK_P];\r\n enter = keys[KeyEvent.VK_ENTER];\r\n\r\n save = keys[KeyEvent.VK_S];\r\n load = keys[KeyEvent.VK_L];\r\n }",
"public void keyPressed(KeyEvent e) {\n\t\tswitch (e.getKeyCode())\n {\n \t\t\tcase KeyEvent.VK_ESCAPE:\n if(GAME_RUNNING == true)\n {\n /* stop running */\n switchGameState(GameState.EDITING);\n }\n else\n {\n if(SELECT_MODE == SelectMode.SELECTED)\n {\n /* deselect current widget */\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n canvas.repaint();\n }\n else if(SELECT_MODE == SelectMode.DRAGGING)\n {\n /* cancel dragging */\n SELECT_MODE = SelectMode.SELECTED;\n canvas.repaint();\n }\n else if(SELECT_MODE == SelectMode.ADDING)\n {\n /* cancel adding */\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n canvas.repaint();\n }\n else\n {\n /* not running and no widget selected */\n //TODO: show main menu\n }\n }\n\t\t\t\tbreak;\n case KeyEvent.VK_DELETE:\n if(GAME_RUNNING == false)\n {\n if(SELECT_MODE == SelectMode.SELECTED)\n {\n /* game not running and we're in selected mode */\n /* delete currently selected widget */\n timWorld.removeWidget(selectedWidget);\n\n String widgetType = selectedWidget.getClass().getName();\n ws.addWidget(widgetType.substring(widgetType.lastIndexOf(\".\")+1,widgetType.length()), 1);\n\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n\n canvas.repaint();\n }\n }\n break;\n case KeyEvent.VK_LEFT:\n if(GAME_RUNNING == false && SELECT_MODE == SelectMode.SELECTED)\n {\n /* game is not running and we have a widget selected */\n if(selectedWidget != null)\n {\n /* rotate is counter clockwise */\n selectedWidget.rotateCounterClockwise();\n canvas.repaint();\n }\n }\n break;\n case KeyEvent.VK_RIGHT:\n if(GAME_RUNNING == false && SELECT_MODE == SelectMode.SELECTED)\n {\n /* game is not running and we have a widget selected */\n if(selectedWidget != null)\n {\n /* rotate it clockwise */\n selectedWidget.rotateClockwise();\n canvas.repaint();\n }\n }\n break;\n\t\t}\n\t}",
"public void keyPressed() {\n for (Player player : players) {\n // Need two if statements because key = char and keyCode = int\n if (key == CODED) {\n if (player.isKey(keyCode)) {\n player.changeDirection(keyCode);\n }\n } else {\n if (player.isKey(key)) {\n player.changeDirection(key);\n }\n }\n }\n}",
"public void keyPressed(KeyEvent evt)\n\t{\n\t\tint key = evt.getKeyCode(); \t\n\t\tfor (int i = 0; i < 5; i++)\n\t\t{\n\t\t\tif (players[i].exist && !players[i].ai)\n\t\t\t{\n\t\t\t\tif (key == players[i].keyDown)\n\t\t\t\t\tplayers[i].dir = 'd';\n\t\t\t\telse if (key == players[i].keyLeft)\n\t\t\t\t\tplayers[i].dir = 'l';\n\t\t\t\telse if (key == players[i].keyRight)\t\n\t\t\t\t\tplayers[i].dir = 'r';\n\t\t\t\telse if (key == players[i].keyUp)\n\t\t\t\t\tplayers[i].dir = 'u';\n\t\t\t}\n\t\t}\n\t}",
"public void keyPressed(KeyEvent e){\n \tSystem.out.println(\"Evento do teclado\");\n\tswitch(e.getKeyChar())\n\t{\n case '1': \n r=0;\n g=0;\n b=0;\n break;\n case '2':\n r=1;\n g=1;\n b=1;\n break;\n case '3':\n r=1;\n g=0;\n b=0;\n break;\n case '4': \n r=0;\n g=1;\n b=0;\n break;\n case '5':\n r=0;\n g=0;\n b=1;\n break;\n case '6':\n r=1;\n g=1;\n b=0;\n break;\n \n case 'W': //pra cima\n case 'w': //pra cima\n vx1=vx1; vy1=vy1+5;\n vx2=vx2; vy2=vy2+5;\n vx3=vx3; vy3=vy3+5;\n vx4=vx4; vy4=vy4+5;\n break; \n case 'D': //pra esquerda\n case 'd': //pra cima\n vx1=vx1+5; vy1=vy1;\n vx2=vx2+5; vy2=vy2;\n vx3=vx3+5; vy3=vy3;\n vx4=vx4+5; vy4=vy4;\n break; \n case 'A': //pra direita\n case 'a': //pra direita\n vx1=vx1-5; vy1=vy1;\n vx2=vx2-5; vy2=vy2;\n vx3=vx3-5; vy3=vy3;\n vx4=vx4-5; vy4=vy4;\n break;\n case 'S': //pra baixo\n case 's': //pra baixo\n vx1=vx1; vy1=vy1-5;\n vx2=vx2; vy2=vy2-5;\n vx3=vx3; vy3=vy3-5;\n vx4=vx4; vy4=vy4-5; \n break;\n }\n switch(e.getKeyCode()) \n {\n// case KeyEvent.VK_LEFT: //seta esquerda pressionada\n//\t break;\n// case KeyEvent.VK_RIGHT: //seta direita pressionada\n//\t break;\n case KeyEvent.VK_UP: //seta esquerda pressionada\n raio_s=raio_s*2;\n\t break;\n case KeyEvent.VK_DOWN: //seta direita pressionada\n if(raio_s>=2.5f)\n {\n raio_s=raio_s/2;\n }\n\t break; \n } \n }",
"public void keyPressed(KeyEvent e) {\n if (e.getKeyCode() == KeyEvent.VK_RIGHT) {\n right = true;\n }\n if (e.getKeyCode() == KeyEvent.VK_LEFT) {\n left = true;\n }\n if (e.getKeyCode() == KeyEvent.VK_UP) {\n up = true;\n }\n if (e.getKeyCode() == KeyEvent.VK_DOWN) {\n down = true;\n }\n // space bar = shoot\n if (e.getKeyCode() == KeyEvent.VK_SPACE) {\n spacebar = true;\n }\n // key 3 = Grenade Launcher\n if (e.getKeyCode() == KeyEvent.VK_3){\n if (SwitchCount > 50) {\n if (three == false){\n ship.counter = 75;\n three = true;\n two = false;\n one = false;\n }\n SwitchCount = 0;\n }\n }\n // key 2 = Energy Blaster\n if (e.getKeyCode() == KeyEvent.VK_2){\n if (SwitchCount > 50) {\n if (two == false){\n ship.counter = 175;\n three = false;\n two = true;\n one = false;\n }\n SwitchCount = 0;\n }\n }\n // key 1 = Bullets\n if (e.getKeyCode() == KeyEvent.VK_1){\n if (SwitchCount > 50) {\n if (one == false){\n ship.counter = 75;\n three = false;\n two = false;\n one = true;\n }\n SwitchCount = 0;\n }\n }\n }",
"public void onKeyReleased(String key) {\r\n if (key.equals(\"r\")) {\r\n if (this.worklist.size() == 0) {\r\n this.currTurn = 0;\r\n this.initializeBoard();\r\n }\r\n }\r\n }",
"protected void keyTyped(char typedChar, int keyCode) throws IOException {\n/* 80 */ if (this.ipEdit.textboxKeyTyped(typedChar, keyCode)) {\n/* */ \n/* 82 */ ((GuiButton)this.buttonList.get(0)).enabled = (!this.ipEdit.getText().isEmpty() && (this.ipEdit.getText().split(\":\")).length > 0);\n/* */ }\n/* 84 */ else if (keyCode == 28 || keyCode == 156) {\n/* */ \n/* 86 */ actionPerformed(this.buttonList.get(0));\n/* */ } \n/* */ }",
"void keyPressed() {\n if (key == 'w') {\n up = true;\n }\n if (key == 's') {\n down = true;\n }\n if (key == 'a') {\n left = true;\n\n }\n if (key == 'd') {\n right = true;\n\n }\n \n if (key == 27) {\n pause = !pause;\n }\n\n // player.turnToDir(0);\n}",
"protected void keyPressed(int keyCode) {\n if( !isBluetoothMode ){\n\t\t\tprocessKeyCode(keyCode) ;\n\t\t}\n\t\telse{\n\t\t\tbluetoothServerProcessing(keyCode) ;\n\t\t}\n if( softKey.isLeftSoftkey(keyCode)){\n\t shouldStop=true;\n\t if( server != null ){\n\t \tserver.sendByte((byte)DataTransmiting.MESSAGE_EXIT_GAME) ;\n\t }\n\t midlet.showMenuScreen(false);\n }\t\n\t}",
"private void handleKeyPress(String key)\n {\n if (key.equals(\"enter\") && validName)\n {\n handleStartGame();\n }\n else\n {\n nameInputLabel.handleKeyPress(key);\n if (nameInputLabel.wasTextChanged())\n {\n checkValidName(nameInputLabel.getText());\n }\n }\n }",
"@Override\n\tpublic void onKeyInput(long window, int key, int scancode, int action,\n\t\t\tint mods) {\n\n\t}",
"public abstract void update(KeyEvent evt, int mode);",
"public static void setKeyEvent(Scene scene) {\n scene.setOnKeyPressed(event -> {\n\n switch (event.getCode()) {\n case NUMPAD1:\n if (tiles.get(lastClicked).isEditable) {\n tiles.get(lastClicked).setTextValue(\"1\");\n solveRec.filledBoard.put(lastClicked, \"1\");\n checker(lastClicked, \"1\");\n\n }\n break;\n case DIGIT1:\n if (tiles.get(lastClicked).isEditable) {\n tiles.get(lastClicked).setTextValue(\"1\");\n solveRec.filledBoard.put(lastClicked, \"1\");\n checker(lastClicked, \"1\");\n }\n break;\n case NUMPAD2:\n if (tiles.get(lastClicked).isEditable) {\n tiles.get(lastClicked).setTextValue(\"2\");\n solveRec.filledBoard.put(lastClicked, \"2\");\n checker(lastClicked, \"2\");\n }\n break;\n case DIGIT2:\n if (tiles.get(lastClicked).isEditable) {\n tiles.get(lastClicked).setTextValue(\"2\");\n solveRec.filledBoard.put(lastClicked, \"2\");\n checker(lastClicked, \"2\");\n }\n break;\n case NUMPAD3:\n if (tiles.get(lastClicked).isEditable) {\n tiles.get(lastClicked).setTextValue(\"3\");\n solveRec.filledBoard.put(lastClicked, \"3\");\n checker(lastClicked, \"3\");\n }\n break;\n case DIGIT3:\n if (tiles.get(lastClicked).isEditable) {\n tiles.get(lastClicked).setTextValue(\"3\");\n solveRec.filledBoard.put(lastClicked, \"3\");\n checker(lastClicked, \"3\");\n }\n break;\n case NUMPAD4:\n if (tiles.get(lastClicked).isEditable) {\n tiles.get(lastClicked).setTextValue(\"4\");\n solveRec.filledBoard.put(lastClicked, \"4\");\n checker(lastClicked, \"4\");\n }\n break;\n case DIGIT4:\n if (tiles.get(lastClicked).isEditable) {\n tiles.get(lastClicked).setTextValue(\"4\");\n solveRec.filledBoard.put(lastClicked, \"4\");\n checker(lastClicked, \"4\");\n }\n break;\n case NUMPAD5:\n if (tiles.get(lastClicked).isEditable) {\n tiles.get(lastClicked).setTextValue(\"5\");\n solveRec.filledBoard.put(lastClicked, \"5\");\n checker(lastClicked, \"5\");\n }\n break;\n case DIGIT5:\n if (tiles.get(lastClicked).isEditable) {\n tiles.get(lastClicked).setTextValue(\"5\");\n solveRec.filledBoard.put(lastClicked, \"5\");\n checker(lastClicked, \"5\");\n }\n break;\n case NUMPAD6:\n if (tiles.get(lastClicked).isEditable) {\n tiles.get(lastClicked).setTextValue(\"6\");\n solveRec.filledBoard.put(lastClicked, \"6\");\n checker(lastClicked, \"6\");\n }\n break;\n case DIGIT6:\n if (tiles.get(lastClicked).isEditable) {\n tiles.get(lastClicked).setTextValue(\"6\");\n solveRec.filledBoard.put(lastClicked, \"6\");\n checker(lastClicked, \"6\");\n }\n break;\n case NUMPAD7:\n if (tiles.get(lastClicked).isEditable) {\n tiles.get(lastClicked).setTextValue(\"7\");\n solveRec.filledBoard.put(lastClicked, \"7\");\n checker(lastClicked, \"7\");\n }\n break;\n case DIGIT7:\n if (tiles.get(lastClicked).isEditable) {\n tiles.get(lastClicked).setTextValue(\"7\");\n solveRec.filledBoard.put(lastClicked, \"7\");\n checker(lastClicked, \"7\");\n }\n break;\n case NUMPAD8:\n if (tiles.get(lastClicked).isEditable) {\n tiles.get(lastClicked).setTextValue(\"8\");\n solveRec.filledBoard.put(lastClicked, \"8\");\n checker(lastClicked, \"8\");\n }\n break;\n case DIGIT8:\n if (tiles.get(lastClicked).isEditable) {\n tiles.get(lastClicked).setTextValue(\"8\");\n solveRec.filledBoard.put(lastClicked, \"8\");\n checker(lastClicked, \"8\");\n }\n break;\n case NUMPAD9:\n if (tiles.get(lastClicked).isEditable) {\n tiles.get(lastClicked).setTextValue(\"9\");\n solveRec.filledBoard.put(lastClicked, \"9\");\n checker(lastClicked, \"9\");\n }\n break;\n case DIGIT9:\n if (tiles.get(lastClicked).isEditable) {\n tiles.get(lastClicked).setTextValue(\"9\");\n solveRec.filledBoard.put(lastClicked, \"9\");\n checker(lastClicked, \"9\");\n }\n break;\n case DELETE:\n if (tiles.get(lastClicked).isEditable) {\n tiles.get(lastClicked).setTextValue(\"\");\n solveRec.filledBoard.put(lastClicked, \"0\");\n }\n break;\n case UP: {\n if (tiles.get(lastClicked).isEmpty()) tiles.get(lastClicked).changeTileFillToNull();\n if (!tiles.get(lastClicked).isEmpty()) tiles.get(lastClicked).changeTileFillToLightPink();\n setLastClicked(new Coordinates(lastClicked.getX(), lastClicked.getY() - 1 < 0 ? 8 : lastClicked.getY() - 1));\n tiles.get(lastClicked).changeTileFillToPink();\n }\n break;\n case DOWN: {\n if (tiles.get(lastClicked).isEmpty()) tiles.get(lastClicked).changeTileFillToNull();\n if (!tiles.get(lastClicked).isEmpty()) tiles.get(lastClicked).changeTileFillToLightPink();\n setLastClicked(new Coordinates(lastClicked.getX(), lastClicked.getY() + 1 > 8 ? 0 : lastClicked.getY() + 1));\n tiles.get(lastClicked).changeTileFillToPink();\n\n }\n break;\n case LEFT: {\n if (tiles.get(lastClicked).isEmpty()) tiles.get(lastClicked).changeTileFillToNull();\n if (!tiles.get(lastClicked).isEmpty()) tiles.get(lastClicked).changeTileFillToLightPink();\n setLastClicked(new Coordinates(lastClicked.getX() - 1 < 0 ? 8 : lastClicked.getX() - 1, lastClicked.getY()));\n tiles.get(lastClicked).changeTileFillToPink();\n }\n break;\n case RIGHT: {\n if (tiles.get(lastClicked).isEmpty()) tiles.get(lastClicked).changeTileFillToNull();\n if (!tiles.get(lastClicked).isEmpty()) tiles.get(lastClicked).changeTileFillToLightPink();\n setLastClicked(new Coordinates(lastClicked.getX() + 1 > 8 ? 0 : lastClicked.getX() + 1, lastClicked.getY()));\n tiles.get(lastClicked).changeTileFillToPink();\n }\n break;\n }\n });\n }",
"private void handleCommands() {\n for (Command c : commands) {\n try {\n if (!game.isPaused()) {\n switch (c) {\n case INTERACT:\n game.interact();\n break;\n case PRIMARY_ATTACK:\n game.shoot(mouse.getX(), mouse.getY());\n break;\n case SECONDARY_ATTACK:\n game.specialAbility(mouse.getX(), mouse.getY());\n break;\n case PAUSE:\n game.pauseGame();\n break;\n }\n }\n } catch (Exception ignored) { }\n }\n }",
"private void pressUpFromCLI() {\n\t\tupLastPressed = true;\n\t\tif (commandIterator.hasNext()) {\n\t\t\ttextInput.setText(commandIterator.next());\n\t\t}\n\t\tif (downLastPressed) {\n\t\t\ttextInput.setText(commandIterator.next());\n\t\t\tdownLastPressed = false;\n\t\t}\n\t}",
"protected void keyTyped(char par1, int par2) {}",
"private void processMainMenuCommand() {\n String command;\n boolean keepgoing = true;\n while (keepgoing) {\n\n System.out.println(\"Hello \" + pickedAccount.getName());\n System.out.println(\"Your balance: \" + pickedAccount.getBalance());\n System.out.println(\"What would you like to do? (quit/reserve/view/deposit)\");\n\n command = input.next();\n command = command.toLowerCase();\n\n if (command.equals(\"quit\")) {\n keepgoing = false;\n } else if (command.equals(\"reserve\") || command.equals(\"view\") || command.equals(\"deposit\")) {\n processCommand(command);\n } else {\n System.out.println(\"Invalid command, try again\");\n }\n }\n }",
"protected void keyPressedImpl()\n {\n if (key == 'g') {\n trigger = true;\n triggerCount = 1;\n }\n else if (key == 'h') {\n trigger = !trigger;\n }\n }",
"@Override\n\tpublic void keyPressed(KeyEvent e)\n\t{\n\t\t// TODO Auto-generated method stub\n\t\t//System.out.println(\"Source: \"+ e.getSource());\n\t\t//name = e.getKeyText(e.getKeyCode());\n\t\t//numValue = e.getKeyCode()-37;\n\t\t//JButton btn = new JButton(\"button\");\n//\t\tif(e.getKeyCode()>=37 && e.getKeyCode()<=40){\n//\t\t\ttestPlayer.move(numValue);\n//\t\t\t//\t\t\t\tx = testPlayer.xPos;\n//\t\t\t//y = ...\n//\t\t\tgameStarted = true; //tells the program that the map has been loaded once\n//\t\t\tshowMap.repaint();\n//\n//\t\t}\n\t\tnumValue = e.getKeyCode()-37;\n\t\tif(e.getKeyCode()>=37 && e.getKeyCode()<=40){\n\t\t\ttestPlayer.move(numValue);\n\t\t\tgameStarted = true; //tells the program that the map has been loaded once\n//\t\t\tshowMap.repaint();\n\t\t\tthis.repaint();\n\t\t\t//drawStuff();\n\n\t\t}\n\t\telse if(e.getKeyCode() == KeyEvent.VK_ESCAPE){//press escape to exit\n\t\t\tdispose();\n\t\t}\n\t\t//\t\telse if(e.getKeyCode()==80){\n\t\t//\t\t\t//pause screen\n\t\t//\t\t\tpausePanel = new Pause();\n\t\t//\t\t\tpausePanel.setBackground(new Color(0, 0, 0,50));\n\t\t//\t\t\tcontent.add(pausePanel, BorderLayout.CENTER); \n\t\t//\t\t\tSystem.out.println(\"paused key pressed\");\n\t\t//\t\t\t//pausePanel.repaint();\n\t\t//\t\t}\n\t}",
"public void handleKeyPressed(KeyEvent event) {\n keyInput.set(String.valueOf(event.getCode()));\n }",
"@SuppressWarnings(\"serial\")\n private void enableStartupKeys() {\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_C, 0), \"controls\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_A, 0), \"about\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_E, 0), \"end game\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_N, 0), \"new game\");\n\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_N, 0), \"new game\");\n getActionMap().put(\"new game\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n endGame();\n if (myGameOver || myWelcome) {\n startNewGame();\n }\n }\n });\n\n getActionMap().put(\"controls\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n pauseTimer();\n displayControlDialog();\n if (!myWelcome) {\n startTimer();\n }\n }\n });\n\n getActionMap().put(\"about\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n pauseTimer();\n displayAboutDialog();\n if (!myWelcome) {\n startTimer();\n }\n }\n });\n\n getActionMap().put(\"end game\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n endGame();\n }\n });\n }",
"public void run()\n {\n try\n {\n while (!done)\n {\n select();\n handleSelectedKeys();\n // TODO: check command buffer for commands\n }\n }\n catch (final Exception e)\n {\n e.printStackTrace();\n }\n }",
"public static void runGame() {\n //Create instance of Datacontroller for sample data\n DataController dataController = DataController.getInstance();\n Encounter encounter;\n Scanner scan = new Scanner( System.in);\n\n int commandNum; //Variable that determines state of game\n\n while(true) {\n //TODO: Enter list of options for movement at every iteration\n System.out.println(\"Please enter your command\");\n System.out.println(\"1. Exit Game\\n2. Enter Combat\\n3. Items\");\n commandNum = scan.nextInt();\n\n switch (commandNum) {\n case 1: //Exit Game\n return;\n case 2: // Join Controller.Encounter\n encounter = new Encounter(dataController.getPlayer(),dataController.getEnemy());\n try {\n encounter.startFight();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n break;\n case 3: // View Menu TODO: create menu class\n\n }\n }\n }",
"public void keyPressed(KeyEvent e){\n\t\tif(chatmode){\n\t\t\tchar key = e.getKeyChar();\n\t\t\tif(key == KeyEvent.VK_ENTER){\n\t\t\t\tif(clientMode){\n\t\t\t\t\tclient.out.println(\"Chat\");\n\t\t\t\t\tclient.out.flush();\n\t\t\t\t\tif(!chatPane.getText().equals(\"\")){\n\t\t\t\t\t\tclient.out.println(chatarea.getText());\n\t\t\t\t\t\tchatPane.setText(chatPane.getText() + \"\\n\" + \"Ich: \" + chatarea.getText());\n\t\t\t\t\t}else{\n\t\t\t\t\t\tclient.out.println(chatarea.getText());\n\t\t\t\t\t\tchatPane.setText(\"Ich: \" + chatarea.getText());\n\t\t\t\t\t}\n\t\t\t\t\tchatarea.setText(\"\");\n\t\t\t\t\tclient.out.flush();\n\t\t\t\t}else if(serverMode){\n\t\t\t\t\tserver.out.println(\"Chat\");\n\t\t\t\t\tserver.out.flush();\n\t\t\t\t\tif(!chatPane.getText().equals(\"\")){\n\t\t\t\t\t\tserver.out.println(chatarea.getText());\n\t\t\t\t\t\tchatPane.setText(chatPane.getText() + \"\\n\" + \"Ich: \" + chatarea.getText());\n\t\t\t\t\t}else{\n\t\t\t\t\t\tserver.out.println(chatarea.getText());\n\t\t\t\t\t\tchatPane.setText(\"Ich: \" + chatarea.getText());\n\t\t\t\t\t}\n\t\t\t\t\tchatarea.setText(\"\");\n\t\t\t\t\tserver.out.flush();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}else{\n\t\t\tif (e.getKeyCode() == KeyEvent.VK_LEFT){ //linke Pfeiltaste\n\t\t\t\tleft = true;\n\t\t\t\tif(clientMode){\n\t\t\t\t\tclient.out.println(\"left\");\n\t\t\t\t\tclient.out.flush();\n\t\t\t\t} \n\t\t\t\tif(serverMode){\n\t\t\t\t\tserver.out.println(\"left\");\n\t\t\t\t\tserver.out.flush();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (e.getKeyCode() == KeyEvent.VK_RIGHT){ //rechte Pfeiltaste\n\t\t\t\tright = true;\n\t\t\t\tif(clientMode){\n\t\t\t\t\tclient.out.println(\"right\");\n\t\t\t\t\tclient.out.flush();\n\t\t\t\t}\n\t\t\t\tif(serverMode){\n\t\t\t\t\tserver.out.println(\"right\");\n\t\t\t\t\tserver.out.flush();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (e.getKeyCode() == KeyEvent.VK_UP){ //obere Pfeiltaste\n\t\t\t\tup = true;\n\t\t\t\tif(clientMode){\n\t\t\t\t\tclient.out.println(\"up\");\n\t\t\t\t\tclient.out.flush();\n\t\t\t\t}\n\t\t\t\tif(serverMode){\n\t\t\t\t\tserver.out.println(\"up\");\n\t\t\t\t\tserver.out.flush();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (e.getKeyCode() == KeyEvent.VK_DOWN){//untere Pfeiltaste\n\t\t\t\tdown = true;\n\t\t\t\tif(clientMode){\n\t\t\t\t\tclient.out.println(\"down\");\n\t\t\t\t\tclient.out.flush();\n\t\t\t\t}\n\t\t\t\tif(serverMode){\n\t\t\t\t\tserver.out.println(\"down\");\n\t\t\t\t\tserver.out.flush();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (e.getKeyCode() == KeyEvent.VK_ENTER){\n\t\t\t\t\n\t\t\t\tenterShop = true;\n\t\t\t\tenterNPC = true;\n\t\t\t\t\n\t\t\t}\n\t\t\tif(e.getKeyCode() == KeyEvent.VK_S){\n\t\t\t\tif(!multiplayer){\n\t\t\t\t\tskillmode = true;\n\t\t\t\t\tskills();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(e.getKeyCode() == KeyEvent.VK_T){\n\t\t\t\tif(multiplayer){\n\t\t\t\t\tchatmode = true;\n\t\t\t\t\tchat.setVisible(true);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif(e.getKeyCode() == KeyEvent.VK_X){\n\t\t\t\tif(clientMode){\n\t\t\t\t\tclient.out.println(\"Attack\");\n\t\t\t\t\tclient.out.flush();\n\t\t\t\t}\n\t\t\t\tif(serverMode){\n\t\t\t\t\tserver.out.println(\"Attack\");\n\t\t\t\t\tserver.out.flush();\n\t\t\t\t}\n\t\t\t\tattack = true;\n\t\t\t}\n\t\t\tif (e.getKeyCode() == KeyEvent.VK_C){\n\t\t\t\tif(clientMode){\n\t\t\t\t\tclient.out.println(\"Magic\");\n\t\t\t\t\tclient.out.flush();\n\t\t\t\t}\n\t\t\t\tif(serverMode){\n\t\t\t\t\tserver.out.println(\"Magic\");\n\t\t\t\t\tserver.out.flush();\n\t\t\t\t}\n\t\t\t\tmagic = true;\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public void keyPressed() {\n if (keyCode == ENTER){\n if (2 == currentPage) {\n currentPage = 3;\n }\n if (1 == currentPage) {\n tmpframecount = frameCount;\n currentPage = 2;\n }\n else if (0 == currentPage) {\n currentPage = 1;\n }\n }\n if (key == 'z' || key == 'Z') shoot = true;\n if (key == 'x' || key == 'X') useBomb = true;\n if (key == 'r' ||key == 'R') restart = true;\n if (currentPage == 1){\n if (keyCode == 49) flightType = 1;\n if (keyCode == 50) flightType = 2;\n if (keyCode == 51) flightType = 3;\n if (keyCode == 52) flightType = 4;\n }\n if (keyCode == UP) {\n up = true;\n changeFlightType(0);\n }\n if (keyCode == DOWN) {\n down = true;\n changeFlightType(1);\n }\n if (keyCode == LEFT) {\n left = true;\n changeFlightType(2);\n }\n if (keyCode == RIGHT) {\n right = true;\n changeFlightType(3);\n }\n}",
"public void handleInput(KeyEvent kEvent, MouseEvent mEvent, ViewController viewController) {\n Game game = Game.getInstance();\n switch (game.getGameState()) {\n case GAME_SCREEN:\n if (kEvent != null) {\n if (!game.isGameStarted() && !game.isPlayerDead()) {\n if (game.startGame()) {\n viewController.isDeathAnimPlaying = false;\n viewController.isDeathAnimFinished = true;\n }\n }\n if (kEvent.getCode().equals(inputsMap.get(Input.UP_P1)))\n game.setNextPlayerAction(Movement.UP, 0);\n if (kEvent.getCode().equals(inputsMap.get(Input.DOWN_P1)))\n game.setNextPlayerAction(Movement.DOWN, 0);\n if (kEvent.getCode().equals(inputsMap.get(Input.RIGHT_P1)))\n game.setNextPlayerAction(Movement.RIGHT, 0);\n if (kEvent.getCode().equals(inputsMap.get(Input.LEFT_P1)))\n game.setNextPlayerAction(Movement.LEFT, 0);\n\n if (kEvent.getCode().equals(inputsMap.get(Input.UP_P2)))\n game.setNextPlayerAction(Movement.UP, 1);\n if (kEvent.getCode().equals(inputsMap.get(Input.DOWN_P2)))\n game.setNextPlayerAction(Movement.DOWN, 1);\n if (kEvent.getCode().equals(inputsMap.get(Input.RIGHT_P2)))\n game.setNextPlayerAction(Movement.RIGHT, 1);\n if (kEvent.getCode().equals(inputsMap.get(Input.LEFT_P2)))\n game.setNextPlayerAction(Movement.LEFT, 1);\n\n if (kEvent.getCode().equals(inputsMap.get(Input.ENTER)))\n if (game.isGameFinished() && game.isPlayerDead() && viewController.isDeathAnimFinished) {\n viewController.initButtons();\n game.runLater(() -> game.setGameState(GameState.MENU_SCREEN));\n Menu.getInstance().setTab(MenuTab.HIGHSCORE_ENTER);\n }\n }\n break;\n case MENU_SCREEN:\n switch (Menu.getInstance().getTab()) {\n case MAIN:\n if (mEvent != null) {\n Point mouseCoords = new Point((int) (mEvent.getSceneX() / ViewController.SCALE), (int) (mEvent.getSceneY() / ViewController.SCALE));\n if (Utils.isInside(mouseCoords, MenuTab.MAIN.getButton(\"1-player\").getHitbox())) {\n game.runLater(() -> game.setGameState(GameState.GAME_SCREEN));\n game.setNbPlayer(1);\n viewController.resetSprites();\n viewController.whenToStopDeathAnim = System.currentTimeMillis() - 1;\n viewController.whenToStopScoreAnim = System.currentTimeMillis() - 1;\n viewController.audioController.canPlayIntro(true);\n }\n if (Utils.isInside(mouseCoords, MenuTab.MAIN.getButton(\"2-players\").getHitbox())) {\n game.runLater(() -> game.setGameState(GameState.GAME_SCREEN));\n game.setNbPlayer(2);\n viewController.resetSprites();\n viewController.whenToStopDeathAnim = System.currentTimeMillis() - 1;\n viewController.whenToStopScoreAnim = System.currentTimeMillis() - 1;\n viewController.audioController.canPlayIntro(true);\n }\n if (Utils.isInside(mouseCoords, MenuTab.MAIN.getButton(\"controls\").getHitbox()))\n Menu.getInstance().setTab(MenuTab.CONTROLS);\n if (Utils.isInside(mouseCoords, MenuTab.MAIN.getButton(\"highscore\").getHitbox()))\n Menu.getInstance().setTab(MenuTab.HIGHSCORE);\n if (Utils.isInside(mouseCoords, MenuTab.MAIN.getButton(\"editor\").getHitbox())) {\n game.setGameState(GameState.LEVEL_EDITOR);\n if (!editorLaunched) {\n Runnable runnable = () -> {\n try {\n EditorViewController editorController = new EditorViewController();\n editorController.setInputController(this);\n editorController.start(new Stage());\n } catch (IOException e) {\n e.printStackTrace();\n }\n };\n Platform.runLater(runnable);\n editorLaunched = true;\n }\n }\n }\n break;\n case CONTROLS:\n boolean isButtonFocused = false;\n Input selectedInput = null;\n for (String id : MenuTab.CONTROLS.getButtonList())\n if (MenuTab.CONTROLS.getButton(id).isSelected()) {\n isButtonFocused = true;\n selectedInput = Input.valueOf(id);\n }\n if (mEvent != null) {\n Point mouseCoords = new Point((int) (mEvent.getSceneX() / ViewController.SCALE), (int) (mEvent.getSceneY() / ViewController.SCALE));\n if (!isButtonFocused) {\n if (Utils.isInside(mouseCoords, MenuTab.CONTROLS.getButton(\"back\").getHitbox()))\n Menu.getInstance().setTab(MenuTab.MAIN);\n if (Utils.isInside(mouseCoords, MenuTab.CONTROLS.getButton(Input.UP_P1.toString()).getHitbox())) {\n MenuTab.CONTROLS.getButton(Input.UP_P1.toString()).setSelected(true);\n currentCode = inputsMap.get(Input.UP_P1);\n }\n if (Utils.isInside(mouseCoords, MenuTab.CONTROLS.getButton(Input.DOWN_P1.toString()).getHitbox())) {\n MenuTab.CONTROLS.getButton(Input.DOWN_P1.toString()).setSelected(true);\n currentCode = inputsMap.get(Input.DOWN_P1);\n }\n if (Utils.isInside(mouseCoords, MenuTab.CONTROLS.getButton(Input.RIGHT_P1.toString()).getHitbox())) {\n MenuTab.CONTROLS.getButton(Input.RIGHT_P1.toString()).setSelected(true);\n currentCode = inputsMap.get(Input.RIGHT_P1);\n }\n if (Utils.isInside(mouseCoords, MenuTab.CONTROLS.getButton(Input.LEFT_P1.toString()).getHitbox())) {\n MenuTab.CONTROLS.getButton(Input.LEFT_P1.toString()).setSelected(true);\n currentCode = inputsMap.get(Input.LEFT_P1);\n }\n\n if (Utils.isInside(mouseCoords, MenuTab.CONTROLS.getButton(Input.UP_P2.toString()).getHitbox())) {\n MenuTab.CONTROLS.getButton(Input.UP_P2.toString()).setSelected(true);\n currentCode = inputsMap.get(Input.UP_P2);\n }\n if (Utils.isInside(mouseCoords, MenuTab.CONTROLS.getButton(Input.DOWN_P2.toString()).getHitbox())) {\n MenuTab.CONTROLS.getButton(Input.DOWN_P2.toString()).setSelected(true);\n currentCode = inputsMap.get(Input.DOWN_P2);\n }\n if (Utils.isInside(mouseCoords, MenuTab.CONTROLS.getButton(Input.RIGHT_P2.toString()).getHitbox())) {\n MenuTab.CONTROLS.getButton(Input.RIGHT_P2.toString()).setSelected(true);\n currentCode = inputsMap.get(Input.RIGHT_P2);\n }\n if (Utils.isInside(mouseCoords, MenuTab.CONTROLS.getButton(Input.LEFT_P2.toString()).getHitbox())) {\n MenuTab.CONTROLS.getButton(Input.LEFT_P2.toString()).setSelected(true);\n currentCode = inputsMap.get(Input.LEFT_P2);\n }\n }\n }\n if (kEvent != null) {\n if (isButtonFocused && selectedInput != null) {\n if (currentCode == kEvent.getCode() || !inputsMap.containsValue(kEvent.getCode())) {\n setKey(selectedInput, kEvent.getCode());\n MenuTab.CONTROLS.getButton(selectedInput.toString()).setSelected(false);\n MenuTab.CONTROLS.getButton(selectedInput.toString()).setText(kEvent.getCode().getName());\n Loader.getInstance().saveConfigs(inputsMap);\n currentCode = null;\n } else\n audioController.warning();\n }\n }\n break;\n case HIGHSCORE:\n if (mEvent != null) {\n Point mouseCoords = new Point((int) (mEvent.getSceneX() / ViewController.SCALE), (int) (mEvent.getSceneY() / ViewController.SCALE));\n if (Utils.isInside(mouseCoords, MenuTab.CONTROLS.getButton(\"back\").getHitbox()))\n Menu.getInstance().setTab(MenuTab.MAIN);\n }\n break;\n case HIGHSCORE_ENTER:\n if (kEvent != null) {\n Button button = MenuTab.HIGHSCORE_ENTER.getButton(\"name\");\n if ((kEvent.getCode().isLetterKey() || kEvent.getCode().isDigitKey())&& (button.getText().length() < 5))\n button.setText(button.getText() + kEvent.getText());\n else if (kEvent.getCode() == KeyCode.BACK_SPACE && button.getText().length() >= 1)\n button.setText(button.getText().substring(0, button.getText().length() - 1));\n else if (kEvent.getCode().equals(inputsMap.get(Input.ENTER)) && button.getText().length() > 0) {\n game.runLater(() -> game.addHighscore(new Score(game.getScoreToSave(), button.getText())));\n Loader.getInstance().saveHighscore(game.getHighscores());\n Menu.getInstance().setTab(MenuTab.MAIN);\n }\n }\n }\n break;\n }\n }",
"protected void handleKeyEvent(KeyEvent ev) {\n\t\t//System.out.println(\"Got key event: \"+this.getClass().getName()+\" - \"+ev+\" \"+ev.getKeyChar()+\" \"+ev.getExtendedKeyCode());\n\t\tif (getStatus() != DefaultActionButton.INACTIVE) {\n\t\t\tfor (char key : shortcutKey) {\n\t\t\t\t//System.out.println(\"sck \"+key);\n\t\t\t\tif (ev.getKeyChar()==key) {\n\t\t\t\t\t//System.out.println(\"da key \"+key);\n\t\t\t\t\tclick();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic void keyPressed() {\n\t\tl.key();\r\n\t\t\r\n\t}",
"public override void Do() \r\n {\r\n if (TextEditor.UiScope == null) \r\n { \r\n // We dont want to process the input item if the editor has already been detached from its UiScope.\r\n return; \r\n }\r\n\r\n // Delegate the work to specific handlers.\r\n switch (_key) \r\n {\r\n case Key.RightShift: \r\n // Only support RTL flow direction in case of having the installed \r\n // bidi input language.\r\n if (TextSelection.IsBidiInputLanguageInstalled() == true) \r\n {\r\n TextEditorTyping.OnFlowDirectionCommand(TextEditor, _key);\r\n }\r\n break; \r\n case Key.LeftShift:\r\n TextEditorTyping.OnFlowDirectionCommand(TextEditor, _key); \r\n break; \r\n\r\n default: \r\n Invariant.Assert(false, \"Unexpected key value!\");\r\n break;\r\n }\r\n }",
"private boolean processInput() {\r\n\r\n\t\tif (keys.get(Keys.ROOM_ONE)) {\r\n\t\t\t// If there is a defined room\r\n\t\t\tif (world.getRooms().size >= 1) {\r\n\t\t\t\t// If current room is different then pressed key\r\n\t\t\t\tif (!world.getCurrentRoom().equals(world.getRooms().get(0))) {\r\n\t\t\t\t\t// If world has at least one trap\r\n\t\t\t\t\tif (world.getCurrentRoom().hasTraps()) {\r\n\t\t\t\t\t\t// If current trap is deactivated\r\n\t\t\t\t\t\tif (!world.getCurrentRoom().getCurrentTrap().isActive())\r\n\t\t\t\t\t\t\tworld.setCurrentRoom(0);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// else switch directly\r\n\t\t\t\t\t\tworld.setCurrentRoom(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if (keys.get(Keys.ROOM_TWO)) {\r\n\t\t\t// If there are two defined room\r\n\t\t\tif (world.getRooms().size >= 2) {\r\n\t\t\t\t// If current room is different then pressed key\r\n\t\t\t\tif (!world.getCurrentRoom().equals(world.getRooms().get(1))) {\r\n\t\t\t\t\t// If world has at least one trap\r\n\t\t\t\t\tif (world.getCurrentRoom().hasTraps()) {\r\n\t\t\t\t\t\t// If current trap is deactivated\r\n\t\t\t\t\t\tif (!world.getCurrentRoom().getCurrentTrap().isActive())\r\n\t\t\t\t\t\t\tworld.setCurrentRoom(1);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// else switch directly\r\n\t\t\t\t\t\tworld.setCurrentRoom(1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if (keys.get(Keys.ROOM_THREE)) {\r\n\t\t\t// If there are two defined room\r\n\t\t\tif (world.getRooms().size >= 3) {\r\n\t\t\t\t// If current room is different then pressed key\r\n\t\t\t\tif (!world.getCurrentRoom().equals(world.getRooms().get(2))) {\r\n\t\t\t\t\t// If world has at least one trap\r\n\t\t\t\t\tif (world.getCurrentRoom().hasTraps()) {\r\n\t\t\t\t\t\t// If current trap is deactivated\r\n\t\t\t\t\t\tif (!world.getCurrentRoom().getCurrentTrap().isActive())\r\n\t\t\t\t\t\t\tworld.setCurrentRoom(2);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// else switch directly\r\n\t\t\t\t\t\tworld.setCurrentRoom(2);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (keys.get(Keys.TRAP_ONE)) {\r\n\t\t\t// If there is a defined room\r\n\t\t\tif (world.getCurrentRoom().getTraps().size >= 1) {\r\n\t\t\t\tif (!world.getCurrentRoom().getCurrentTrap().isActive()) {\r\n\t\t\t\t\tworld.getCurrentRoom().setCurrentTrap(0);\r\n\t\t\t\t\ttrapOneReleased();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if (keys.get(Keys.TRAP_TWO)) {\r\n\t\t\t// If there is a defined room\r\n\t\t\tif (world.getCurrentRoom().getTraps().size >= 2) {\r\n\t\t\t\tif (!world.getCurrentRoom().getCurrentTrap().isActive()) {\r\n\t\t\t\t\tworld.getCurrentRoom().setCurrentTrap(1);\r\n\t\t\t\t\ttrapTwoReleased();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if (keys.get(Keys.TRAP_THREE)) {\r\n\t\t\t// If there is a defined room\r\n\t\t\tif (world.getCurrentRoom().getTraps().size >= 3) {\r\n\t\t\t\tif (!world.getCurrentRoom().getCurrentTrap().isActive()) {\r\n\t\t\t\t\tworld.getCurrentRoom().setCurrentTrap(2);\r\n\t\t\t\t\ttrapThreeReleased();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (keys.get(Keys.TRAP_FINAL)) {\r\n\t\t\tworld.getPlayer().setState(Player.State.DEAD);\r\n\t\t\tworld.getPlayer().setDeathType(Player.DeathType.BLOODY);\r\n\t\t\t\r\n\t\t\ttrapFinalReleased();\r\n\t\t}\r\n\t\t\r\n\t\tif (world.getCurrentRoom().hasTraps()) {\r\n\t\t\tTrap trap = world.getCurrentRoom().getCurrentTrap();\r\n\t\t\tif (keys.get(Keys.TRAP_TOGGLE)) {\r\n\t\t\t\t// Trap activation and deactivation\r\n\t\t\t\tif (!trap.isActive()) {\r\n\t\t\t\t\ttrap.activate();\r\n\t\t\t\t\ttrapToggleReleased(); // To limit input triggering\r\n\t\t\t\t} else if (trap.isActive()) {\r\n\t\t\t\t\ttrap.deactivate();\r\n\t\t\t\t\ttrapToggleReleased(); // To limit input triggering\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (keys.get(Keys.TRAP_INCREASE)) {\r\n\t\t\t\tif (trap.isActive()) {\r\n\t\t\t\t\tif (trap instanceof FloodTrap) {\r\n\t\t\t\t\t\t((FloodTrap) trap).increaseWaterLevel();\r\n\t\t\t\t\t} else if (trap instanceof BloodTrap) {\r\n\t\t\t\t\t\t((BloodTrap) trap).increaseBloodLevel();\r\n\t\t\t\t\t} else if (trap instanceof GasTrap) {\r\n\t\t\t\t\t\t((GasTrap) trap).increaseGasLevel();\r\n\t\t\t\t\t} else if (trap instanceof FreezeTrap) {\r\n\t\t\t\t\t\t((FreezeTrap) trap).increaseFreezeLevel();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (trap instanceof ElectroTrap) {\r\n\t\t\t\t\t((ElectroTrap) trap).increase();\r\n\t\t\t\t} else if (trap instanceof SpikeTrap) {\r\n\t\t\t\t\t((SpikeTrap) trap).increase();\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttrapIncreaseReleased();\r\n\t\t\t} else if (keys.get(Keys.TRAP_DECREASE)) {\r\n\t\t\t\tif (trap.isActive()) {\r\n\t\t\t\t\tif (trap instanceof FloodTrap) {\r\n\t\t\t\t\t\t((FloodTrap) trap).decreaseWaterLevel();\r\n\t\t\t\t\t} else if (trap instanceof BloodTrap) {\r\n\t\t\t\t\t\t((BloodTrap) trap).decreaseBloodLevel();\r\n\t\t\t\t\t} else if (trap instanceof GasTrap) {\r\n\t\t\t\t\t\t((GasTrap) trap).decreaseGasLevel();\r\n\t\t\t\t\t} else if (trap instanceof FreezeTrap) {\r\n\t\t\t\t\t\t((FreezeTrap) trap).decreaseFreezeLevel();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (trap instanceof ElectroTrap) {\r\n\t\t\t\t\t((ElectroTrap) trap).decrease();\r\n\t\t\t\t} else if (trap instanceof SpikeTrap) {\r\n\t\t\t\t\t((SpikeTrap) trap).decrease();\r\n\t\t\t\t}\r\n\t\t\t\ttrapDecreaseReleased();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private void processInput(String command) {\r\n\r\n if (command.equals(\"1\")) {\r\n displayListings();\r\n } else if (command.equals(\"2\")) {\r\n listYourCar();\r\n } else if (command.equals(\"3\")) {\r\n removeYourCar(user);\r\n } else if (command.equals(\"4\")) {\r\n checkIfWon();\r\n } else if (command.equals(\"5\")) {\r\n saveCarListings();\r\n } else if (command.equals(\"6\")) {\r\n exitApp = true;\r\n } else {\r\n System.out.println(\"Invalid selection\");\r\n }\r\n }",
"@Override\n\tpublic void run() {\n\t\tString algorithem = \"LRU\";\n\t\tInteger capacity = 5;\n\t\t// TODO Auto-generated method stub\n\t\twhile (true) {\n\n\t\t\twrite(\"Please enter your command\");\n\t\t\tString input = this.m_Scanner.nextLine();\n\t\t\tif (input.equalsIgnoreCase(\"stop\")) {\n\t\t\t\twrite(\"Thank you\");\n\t\t\t\tpcs.firePropertyChange(\"statechange\", this.state, StateEnum.STOP);\n\t\t\t\tthis.state = StateEnum.STOP;\n\t\t\t\tbreak;\n\t\t\t} else if (input.contains(\"Cache_unit_config\")) {\n\t\t\t\twhile (true) {\n\t\t\t\t\tString[] splited = input.split(\"\\\\s+\");\n\t\t\t\t\tif (splited.length != 3) {\n\t\t\t\t\t\twrite(\"Worng params, Please enter your command\");\n\t\t\t\t\t\tinput = this.m_Scanner.nextLine();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tboolean found = false;\n\t\t\t\t\tfor (String algo : this.m_AlgoNames) {\n\t\t\t\t\t\tif (splited[1].contains(algo)) {\n\t\t\t\t\t\t\tpcs.firePropertyChange(\"algochange\", algorithem, algo);\n\t\t\t\t\t\t\talgorithem = algo;\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (found == false) {\n\t\t\t\t\t\twrite(\"Unknown alogrithem, Please enter your command\");\n\t\t\t\t\t\tinput = this.m_Scanner.nextLine();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tInteger cap = Integer.parseInt(splited[2]);\n\t\t\t\t\t\tpcs.firePropertyChange(\"capcitychange\", capacity, cap);\n\t\t\t\t\t\tcapacity = cap;\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\twrite(\"Capcity is alogrithem, Please enter your command\");\n\t\t\t\t\t\tinput = this.m_Scanner.nextLine();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if (input.equalsIgnoreCase(\"start\")) {\n\t\t\t\tpcs.firePropertyChange(\"statechange\", this.state, StateEnum.START);\n\t\t\t\tthis.state = StateEnum.START;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}"
]
| [
"0.70942",
"0.7032393",
"0.6958665",
"0.68592066",
"0.6764382",
"0.67056656",
"0.6664124",
"0.6617836",
"0.6572767",
"0.65677214",
"0.6549831",
"0.65407085",
"0.6507311",
"0.6500244",
"0.6492643",
"0.64894795",
"0.64796835",
"0.6469169",
"0.64594734",
"0.6456274",
"0.64111924",
"0.6387543",
"0.632412",
"0.6313855",
"0.6288632",
"0.62859106",
"0.62831694",
"0.62828016",
"0.6249867",
"0.62457883",
"0.62426734",
"0.6241133",
"0.62350106",
"0.6234039",
"0.6224416",
"0.62221247",
"0.6202148",
"0.61823523",
"0.61683303",
"0.6157521",
"0.613457",
"0.6123942",
"0.61227757",
"0.61220807",
"0.61219996",
"0.6104365",
"0.61039054",
"0.6101196",
"0.61000067",
"0.6098993",
"0.60953426",
"0.6087683",
"0.60867",
"0.6085276",
"0.60810316",
"0.60577214",
"0.6056781",
"0.6049501",
"0.6042831",
"0.6025391",
"0.60225695",
"0.6016495",
"0.6008062",
"0.60061425",
"0.6005986",
"0.6000797",
"0.5988691",
"0.59876853",
"0.59851295",
"0.5983462",
"0.5974124",
"0.5967458",
"0.59672385",
"0.5962276",
"0.5959272",
"0.59577274",
"0.59535867",
"0.5948671",
"0.59413385",
"0.59356475",
"0.5917919",
"0.59174097",
"0.5916181",
"0.5914693",
"0.5911006",
"0.5899905",
"0.5899103",
"0.5898759",
"0.5896417",
"0.58959305",
"0.5886811",
"0.58835864",
"0.58819497",
"0.58817977",
"0.5880808",
"0.58790886",
"0.5865637",
"0.5863738",
"0.5859826",
"0.5850588"
]
| 0.6093637 | 51 |
TODO Autogenerated method stub | @Override
public void keyTyped(KeyEvent e)
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
Allows us to set the game value | public void setGame(Game g)
{
game = g;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setGame() {\n }",
"public abstract void setGame(Gyges game);",
"void setValue(int value);",
"protected void setGame(Game game) {\n this.game = game;\n }",
"public abstract void setValue(int value);",
"void setGame (Game game) {\n this.game = game;\n }",
"@Override\r\n\tpublic void betPlayValue(int play) {\n\t\trps.setPlay(play);\r\n\t}",
"public void setGame(Game game) {\n this.game = game;\n }",
"public void setValue(int value);",
"void setScoreValue(int scoreValue);",
"private void startDBValue(String target){\n database.getReference(gameCodeRef).child(target).setValue(1);\n }",
"@Override\r\n\tpublic void setCell(Integer x, Integer y, Integer value) {\n\t\tgame[x][y] = value;\r\n\t}",
"protected void setScore(int s)\r\n\t{\r\n\t\tGame.score = s;\r\n\t}",
"public void setValueInternal(UUID player, T value) {\n\t\tvalues.put(player, value);\n\t}",
"void setToValue(int val);",
"@Override\r\n\tpublic void setComputerValue() {\n\t\trps.setCom((int) (Math.random() * 3 + 1));\r\n\t}",
"public int setValue (int val);",
"public void setValues(GameModel gameModel) {\r\n\t\tthis.acts = gameModel.acts;\r\n\t\tthis.character = gameModel.character;\r\n\r\n\t}",
"void setTurn(int turn);",
"void setCurrentHP(final int newHP);",
"public void setValue(Player player, T value) {\n\t\tsetValue(player.getUniqueId(), value);\n\t}",
"public void setValue(int value) {\r\n this.value = value;\r\n }",
"protected abstract void setValue(Entity e,FloatTrait t,float value);",
"void SetValueOfBuild(int value) {\n\n // Value must be greater than 0 and less than 15 to remain in the size of a build\n if(value > 0 && value < 15) {\n cardValueOfBuild = value;\n }\n else {\n Log.d(\"MyError\", \"Error in setting the value of a build in the build class.\");\n }\n }",
"public void gameValueSetter(int mv1,int mv2,int mv3,int dv1,int dv2,\n\t\t\tint dv3,int ev1,int ev2,int ev3,int fv1,int fv2,int fv3,\n\t\t\tint hv1, int hv2, int hv3){\n\n\t\tif (gameLevel == 1){\n\t\t\tmoneyValue = mv1;\n\t\t\tdepressionValue = dv1;\n\t\t\tenergyValue = ev1;\n\t\t\tfoodValue = fv1;\n\t\t\thappinessValue = hv1;\n\t\t}\n\t\telse if (gameLevel == 2){\n\t\t\tmoneyValue = mv2;\n\t\t\tdepressionValue = dv2;\n\t\t\tenergyValue = ev2;\n\t\t\tfoodValue = fv2;\n\t\t\thappinessValue = hv2;\n\t\t}\n\t\telse if (gameLevel == 3){\n\t\t\tmoneyValue = mv3;\n\t\t\tdepressionValue = dv3;\n\t\t\tenergyValue = ev3;\n\t\t\tfoodValue = fv3;\n\t\t\thappinessValue = hv3;\n\t\t}\n\n\t\tmo.setMoneyValue(moneyValue);\n\t\tde.setDepressionValue(depressionValue);\n\t\the.setHungerValue(energyValue);\n\t}",
"private void setGameState(GAMESTATE gameState) {\r\n\t\tlog.info(\"GID \" + this.GID + \" GAME STATE has changed to \" + gameState );\r\n\t\tthis.gameState = gameState;\r\n\t\t\r\n\t}",
"public void setGameDraw() {\n this.gameStarted = false; \n this.winner = 0; \n this.isDraw = true; \n }",
"protected abstract void setValue(V value);",
"public void setValue(int value)\n {\n this.value = value;\n }",
"public void setValue(int value)\n {\n // we have assumed value 1 for X and 10 for O\n this.value = value;\n }",
"void setValue(V value);",
"public void setPlayer(Player myPlayer){\n battlePlayer=myPlayer;\n }",
"public void setTime( int value ) {\n final int oldTime = currentTime;\n currentTime = value;\n selectedThingsChanged( oldTime );\n\n mapComponent.getOptionContainer().getTimeCode().setText( DataExporter.generateTimeCode( value ) );\n\n mapComponent.getRadiantGoldLabel().setText( Integer.toString( appState.getReplay().getTeamGold( value, true ) ) );\n mapComponent.getDireGoldLabel().setText( Integer.toString( appState.getReplay().getTeamGold( value, false ) ) );\n\n mapComponent.getRadiantXPLabel().setText( Integer.toString( appState.getReplay().getTeamXP( value, true ) ) );\n mapComponent.getDireXPLabel().setText( Integer.toString( appState.getReplay().getTeamXP( value, false ) ) );\n\n }",
"public void setHaveGame()\n\t{\n\t\tthis.haveGame = true;\n\t\tthis.isTurn = true;\n\t\tSystem.out.println(\"Setting have game\");\n\t}",
"public void setValue(int new_value){\n this.value=new_value;\n }",
"private void setPlayerRoom(){\n player.setRoom(currentRoom);\n }",
"public void setValue(int v) {\n if (!frozen) {\n //if (v > 0 || v <= numSides) {\n if (0 < v && v <= numSides) {\n value = v;\n getValue();\n } else {\n value = v;\n System.out.println(\"Attempted to set value to \" + value + \" , assumed 1.\");\n this.value = 1;\n getValue();\n }\n }\n }",
"@Override\r\n\tpublic void set(final Player t) {\n\r\n\t}",
"String setValue();",
"public void setValue(Object value) { this.value = value; }",
"public void setValue(Object value);",
"private static void setValueInt(int value)\n {\n Util.valueInt = value;\n }",
"public static void setScoreBoard(Player p) {\n\t\n}",
"void setValue(Object value);",
"void editAssetValue(int newVal);",
"public void setValue(int value) {\n this.value = value;\n }",
"public void setValue(int value) {\n this.value = value;\n }",
"public void setValue(int value) {\n this.value = value;\n }",
"public void setValue(int value) {\n this.value = value;\n }",
"public void setValue(int value) {\n this.value = value;\n }",
"public void setValue(int val)\r\n {\r\n value = val;\r\n }",
"public void setGameState(GameState gs){\n this.gameState = gs;\n }",
"void setScore(long score);",
"public void setInGame() {\n this.inGame = true;\n }",
"@Override\n public void run(){\n Settings.setGameSettings(new Player(0,Color.RED,1800, \"Player 1\",true),\n new Player(1,Color.BLUE,1800, \"Player 2\",false),1800,25);\n MenuFrame menuFrame = new MenuFrame();\n }",
"private void setTileInField(int row, int column, int value, char section){\n if(!checkInput(row, column, value)) return;\n\n if(value > 0){\n gameField[row][column] = new Assignment(value, Section.getSection(section));\n } else {\n gameField[row][column] = new Guess(Section.getSection(section));\n }\n }",
"public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(Object val);",
"public V setValue(V value);",
"public void setValue (String Value);",
"void setGameName(String gameName);",
"private void setPlayer()\t{\n\t\tgrid.setGameObject(spy, Spy.INITIAL_X, Spy.INITIAL_Y);\n\t}",
"public synchronized void setMyGameStatus(boolean status)\n {\n \tgameStatus=status;\n }",
"public void setGame(GameModel gameModel) {\n this.gameModel = gameModel;\n viewMatrix = null; // needs to be recalculated\n setPaused(gameModel == null);\n invalidate();\n }",
"public abstract void setValueAction(Object value);",
"public static void setPerson_to_play(int aPerson_to_play)\n {\n person_to_play = aPerson_to_play;\n }",
"public void setScore (int newScore)\n {\n this.score = newScore;\n }",
"public void setTurn(int turn) {\n this.turn = turn; \n }",
"public void setMode(int i){\n\tgameMode = i;\n }",
"private static void SetMode() {\n Enum[] modes = {Mode.SINGLEPLAYER, Mode.MULTIPLAYER};\r\n // setting GameMode by passing in array to validator which will prompt what Enum is wanted\r\n Game.GameMode = (Mode) Validator.Mode(modes);\r\n }",
"private void setGameStatus() {\n this.gameStatus = false;\n }",
"public void setValue(int value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(int value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(Integer value) {\n _value = value ;\n }",
"public void setValue(Value value) {\n this.value = value;\n }",
"@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}",
"private void setNextGame() {\n Persistence db = Persistence.getInstance();\n game = db.getNextGame();\n\n // set the initial grid in the model\n grid = game.getInitial();\n\n // get rid of everything on the view grid\n view.clearGrid(true);\n\n // put givens for new game into view\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n if (grid.isGiven(i, j)) {\n view.setGiven(i, j, grid.getNumber(i, j));\n } // if given\n } // for j\n } // for i\n\n }",
"public void setPlayer(int row, int col, int value) {\n\t\tplayer[row][col] = value;\n\t}",
"void setValue(R value);",
"public void setMatch(Match game) {\n this.game = game;\n }",
"private void increaseDBValue(String target, int value){\n database.getReference(gameCodeRef).child(target).setValue(value+1);\n }",
"void setSelectedSpriteValue(int value);",
"void setValueLocked(boolean valueLocked);",
"public void set(int value){\n val = value;\n }",
"public void setRoundNum(int roundNum){\n gameRounds = roundNum;\n }",
"@Test\n public void testSetScore() {\n System.out.println(\"setScore\");\n int score = 5;\n Player instance = new Player(PlayerColor.WHITE, \"\");\n instance.setScore(score);\n\n assertEquals(score, instance.getScore());\n }",
"public void setScore(){\n\t\t//get player's score and change it to the string\n\t\tthis.scoreLabel.setSize(scoreLabel.getPreferredSize().width, \n\t\t\t\tscoreLabel.getPreferredSize().height);\n\t\tthis.scoreLabel.setText(String.valueOf(this.player.getScore()));\n\t}",
"public void setTrueValue(int newValue)\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************ Start setTrueValue Method ***************/\n\n\t// Set true value of card\n trueValue = newValue;\n\n }",
"public void setScore(int score) {this.score = score;}",
"public void setValue(int value) {\n\t\tthis._value = value;\n\t}",
"public void setGameScore(Integer gameScore) {\n this.gameScore = gameScore;\n }",
"public void aendereWert (int value) {\n\t\tvalue = 0 ;\n\t}",
"public void setPlayer(int play)\n {\n this.player=play;\n }",
"@Override\n public void setPlayerDoneBrainstorming(Player player, boolean value){\n DatabaseReference currentRef = database.getReference(gameCodeRef).child(\"Players\").child(player.getUsername());\n currentRef.child(\"DoneBrainstorming\").setValue(value);\n if(value){\n updateNrPlayerValues(\"PlayersDoneBrainstorming\");\n }\n }",
"protected void changeValue() {\n \tif(value == null)\n \t\tvalue = true;\n \telse if(!value) { \n \t\tif (mode == Mode.THREE_STATE)\n \t\t\tvalue = null;\n \t\telse\n \t\t\tvalue = true;\n \t}else\n \t\tvalue = false;\n \t\n \tsetStyle();\n \t\n \tValueChangeEvent.fire(this, value);\n }",
"public void setGov(int value);"
]
| [
"0.73703146",
"0.7056565",
"0.6775924",
"0.6711422",
"0.66510105",
"0.6619039",
"0.66149855",
"0.66045386",
"0.66031337",
"0.66015744",
"0.6467609",
"0.64144415",
"0.63796335",
"0.63569164",
"0.6335826",
"0.6334324",
"0.63194764",
"0.63044554",
"0.6296731",
"0.62939423",
"0.6281864",
"0.6276903",
"0.6270204",
"0.62473184",
"0.62395513",
"0.62372565",
"0.62270874",
"0.6216411",
"0.6212691",
"0.6192399",
"0.6173946",
"0.61719406",
"0.61684984",
"0.6163337",
"0.6150875",
"0.6142032",
"0.6141736",
"0.6141529",
"0.61383766",
"0.6128563",
"0.6127286",
"0.6113377",
"0.6108872",
"0.610365",
"0.61024064",
"0.60914683",
"0.60914683",
"0.60846573",
"0.60846573",
"0.60846573",
"0.60779434",
"0.6071714",
"0.6069817",
"0.60681844",
"0.60669",
"0.6049248",
"0.6037374",
"0.6037374",
"0.6037374",
"0.6037374",
"0.6037374",
"0.60363364",
"0.60266834",
"0.6019752",
"0.60135245",
"0.60108393",
"0.6008997",
"0.6006729",
"0.6001134",
"0.59939855",
"0.5988404",
"0.59815615",
"0.59810686",
"0.5980735",
"0.59804356",
"0.59698546",
"0.59698546",
"0.59679765",
"0.5967882",
"0.59519744",
"0.5950552",
"0.59415215",
"0.59320885",
"0.5923965",
"0.59217113",
"0.59183174",
"0.5911783",
"0.59113514",
"0.59092784",
"0.59068197",
"0.5904016",
"0.59019417",
"0.5898575",
"0.5887874",
"0.58838165",
"0.58764493",
"0.5876017",
"0.58751035",
"0.5873852",
"0.5865205"
]
| 0.6565173 | 10 |
TODO Autogenerated method stub | @Override
public IBinder onBind(Intent intent) {
return mBinder;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
This example implementation walks a local file structure to find the most recently modified files. Other implementations might include making a network call to query a server. Create a cursor with the requested projection, or the default projection. | @Override
public Cursor queryRecentDocuments(String rootId, String[] projection)
throws FileNotFoundException {
final MatrixCursor result =
new MatrixCursor(resolveDocumentProjection(projection));
final File parent = getFileForDocId(rootId);
// Create a queue to store the most recent documents,
// which orders by last modified.
PriorityQueue<File> lastModifiedFiles =
new PriorityQueue<>(5, (i, j) -> Long.compare(i.lastModified(), j.lastModified()));
// Iterate through all files and directories
// in the file structure under the root. If
// the file is more recent than the least
// recently modified, add it to the queue,
// limiting the number of results.
final LinkedList<File> pending = new LinkedList<>();
// Start by adding the parent to the list of files to be processed
if(parent.exists() && parent.isDirectory()) {
pending.add(parent);
// Do while we still have unexamined files
while (!pending.isEmpty()) {
// Take a file from the list of unprocessed files
final File file = pending.removeFirst();
if (file.isDirectory()) {
// If it's a directory, add all its children to the unprocessed list
Collections.addAll(pending, Objects.requireNonNull(file.listFiles()));
} else {
// If it's a file, add it to the ordered queue.
lastModifiedFiles.add(file);
}
}
}
// Add the most recent files to the cursor,
// not exceeding the max number of results.
for (int i = 0; i < Math.min(MAX_LAST_MODIFIED + 1, lastModifiedFiles.size()); i++) {
final File file = lastModifiedFiles.remove();
includeFile(result, getDocIdForFile(file), file);
}
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getLatestCursor(DbxClientV2 dbxClient, String path) throws DbxApiException, DbxException {\n\t\tListFolderGetLatestCursorResult result = dbxClient.files().listFolderGetLatestCursorBuilder(path).withIncludeDeleted(true).withIncludeMediaInfo(false).withRecursive(true).start();\n\t\treturn result.getCursor();\n\t}",
"public DBCursor getFileList() {\n\treturn getFileList(new BasicDBObject());\n }",
"public DBCursor getFileList(DBObject query, DBObject sort) {\n\treturn _filesCollection.find(query).sort(sort);\n }",
"public DBCursor getFileList(DBObject query) {\n\treturn getFileList(query, new BasicDBObject(\"filename\", 1));\n }",
"private String getChanges(DbxClientV2 client, String cursor) throws DbxApiException, DbxException, IOException {\n\n\t\t// TODO: remove true\n\t\twhile (true) {\n\t\t\tListFolderResult result = client.files().listFolderContinue(cursor);\n\t\t\tfor (Metadata metadata : result.getEntries()) {\n\t\t\t\tChangeType type;\n\t\t\t\tString details;\n\t\t\t\tif (metadata instanceof FileMetadata) {\n\t\t\t\t\tFileMetadata fileMetadata = (FileMetadata) metadata;\n\t\t\t\t\ttype = ChangeType.FILE;\n\t\t\t\t\tdetails = \"(rev=\" + fileMetadata.getRev() + \")\";\n\t\t\t\t} else if (metadata instanceof FolderMetadata) {\n\t\t\t\t\tFolderMetadata folderMetadata = (FolderMetadata) metadata;\n\t\t\t\t\ttype = ChangeType.FOLDER;\n\t\t\t\t\tdetails = folderMetadata.getSharingInfo() != null ? \"(shared)\" : \"\";\n\t\t\t\t} else if (metadata instanceof DeletedMetadata) {\n\t\t\t\t\ttype = ChangeType.DELETE;\n\t\t\t\t\tdetails = \"\";\n\t\t\t\t} else {\n\t\t\t\t\tthrow new IllegalStateException(\"Unrecognized metadata type: \" + metadata.getClass());\n\t\t\t\t}\n\n\t\t\t\tFileMessage fileMessage = getFileMessage(type, metadata);\n\t\t\t\tupdateFileMessage(client, fileMessage);\n\n\t\t\t\t// channel.send(MessageBuilder.withPayload(fileMessage).build());\n\t\t\t\tint updateListeners = updateListeners(fileMessage);\n\t\t\t\tlogger.debug(updateListeners + \" where updated\");\n\t\t\t\tlogger.debug(\"type:\" + type + \" details:\" + details + \" meta:\" + metadata.getPathLower());\n\t\t\t}\n\t\t\t// update cursor to fetch remaining results\n\t\t\tcursor = result.getCursor();\n\n\t\t\tif (!result.getHasMore()) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn cursor;\n\t}",
"DeltaFileEntry[] query(long lastSeqNo, int limit);",
"public List<LsFileEntry> lsFiles() \n \tthrows CorruptObjectException, IOException {\n \t\tMap<String, LsFileEntry> cachedEntries = new TreeMap<String, LsFileEntry>(); \n \t\t\n \t\t//first read all the files which are the Index\n \t\tfinal DirCache cache = DirCache.read(db);\n \t\tfor (int i = 0; i < cache.getEntryCount(); i++) {\n \t\t\tfinal DirCacheEntry ent = cache.getEntry(i);\n \t\t\t\n \t\t\t//X TODO this is surely not enough ;)\n \t\t\tLsFileStatus fs = LsFileStatus.CACHED;\n \t\t\tLsFileEntry fileEntry = new LsFileEntry(ent.getPathString(), fs, ent.getObjectId());\n \t\t\tcachedEntries.put(ent.getPathString(), fileEntry);\n \t\t}\n \n \t\t// now read all the files on the disk\n \t\tSet<String> filesOnDisk = new TreeSet<String>(); \n \t\tFile workDir = db.getWorkDir();\n \t\taddFiles(filesOnDisk, \"\", workDir);\n \t\t\n \t\t// and now compare them. since both are already sorted because we used TreeMap and TreeSort\n \t\t// we can simply crawl over them end compare them. kind of a merge sort though...\n \t\tArrayList<LsFileEntry> fileEntries = new ArrayList<LsFileEntry>();\n \n \t\tIterator<String> cacheIt = cachedEntries.keySet().iterator();\n \t\tIterator<String> fileIt = filesOnDisk.iterator();\n \t\t\n \t\tString cachedPath = null;\n \t\tString fsPath = null;\n \t\twhile (cacheIt.hasNext() || fileIt.hasNext()) {\n \t\t\t\n \t\t\tif (cachedPath == null && cacheIt.hasNext()) {\n \t\t\t\tcachedPath = cacheIt.next();\n \t\t\t}\n \t\t\t\n \t\t\tif (fsPath == null && fileIt.hasNext()) {\n \t\t\t\tfsPath = fileIt.next();\n \t\t\t}\n \t\t\t\n \t\t\tif (cachedPath != null && cachedPath.equals(fsPath)) {\n \t\t\t\t// oh found in both systems\n \t\t\t\tfileEntries.add(cachedEntries.get(cachedPath));\n \t\t\t\tcachedPath = null;\n \t\t\t\tfsPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tif (cachedPath != null && !fileEntries.contains(cachedPath)) {\n \t\t\t\tfileEntries.add(new LsFileEntry(cachedPath, LsFileStatus.REMOVED, null));\n \t\t\t\tcachedPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tif (fsPath != null && !cachedEntries.keySet().contains(fsPath)) {\n \t\t\t\tfileEntries.add(new LsFileEntry(fsPath, LsFileStatus.OTHER, null));\n \t\t\t\tfsPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tcachedPath = null;\n \t\t\tfsPath = null;\n \t\t\t\n \t\t}\n \t\t\n \t\treturn fileEntries;\n \t}",
"private Iterable<File> findUpdateFilesAfter(long minimumLastModified) {\r\n\t\t String dataFileName = dataFile.getName();\r\n\t\t int period = dataFileName.indexOf('.');\r\n\t\t String startName = period < 0 ? dataFileName : dataFileName.substring(0, period);\r\n\t\t File parentDir = dataFile.getParentFile();\r\n\t\t Map<Long, File> modTimeToUpdateFile = new TreeMap<Long,File>();\r\n\t\t for (File updateFile : parentDir.listFiles()) {\r\n\t\t String updateFileName = updateFile.getName();\r\n\t\t if (updateFileName.startsWith(startName)\r\n\t\t && !updateFileName.equals(dataFileName)\r\n\t\t && updateFile.lastModified() >= minimumLastModified) {\r\n\t\t modTimeToUpdateFile.put(updateFile.lastModified(), updateFile);\r\n\t\t }\r\n\t\t }\r\n\t\t return modTimeToUpdateFile.values();\r\n\t\t }",
"public List<GridFSDBFile> find(DBObject query, DBObject sort) {\n\tList<GridFSDBFile> files = new ArrayList<GridFSDBFile>();\n\n\tDBCursor c = null;\n\ttry {\n\t c = _filesCollection.find(query);\n\t if (sort != null) {\n\t\tc.sort(sort);\n\t }\n\t while (c.hasNext()) {\n\t\tfiles.add(_fix(c.next()));\n\t }\n\t} finally {\n\t if (c != null) {\n\t\tc.close();\n\t }\n\t}\n\treturn files;\n }",
"NewsFile selectByPrimaryKey(Integer fileId);",
"public abstract List<LocalFile> getAllFiles();",
"@Test\n public void testFileMetadataColumnSelection() {\n Path filePath = new Path(\"hdfs:///w/x/y/z.csv\");\n ImplicitColumnManager implictColManager = new ImplicitColumnManager(\n fixture.getOptionManager(),\n standardOptions(filePath));\n\n // Simulate SELECT a, fqn, filEPath, filename, suffix ...\n\n ScanLevelProjection scanProj = ScanLevelProjection.build(\n RowSetTestUtils.projectList(\"a\",\n ScanTestUtils.FULLY_QUALIFIED_NAME_COL,\n \"filEPath\", // Sic, to test case sensitivity\n ScanTestUtils.FILE_NAME_COL,\n ScanTestUtils.SUFFIX_COL),\n Lists.newArrayList(implictColManager.projectionParser()));\n\n assertFalse(scanProj.projectAll());\n assertEquals(5, scanProj.requestedCols().size());\n\n assertEquals(5, scanProj.columns().size());\n\n assertEquals(\"a\", scanProj.columns().get(0).name());\n assertEquals(ScanTestUtils.FULLY_QUALIFIED_NAME_COL, scanProj.columns().get(1).name());\n assertEquals(\"filEPath\", scanProj.columns().get(2).name());\n assertEquals(ScanTestUtils.FILE_NAME_COL, scanProj.columns().get(3).name());\n assertEquals(ScanTestUtils.SUFFIX_COL, scanProj.columns().get(4).name());\n\n // Verify column type\n\n assertTrue(scanProj.columns().get(0) instanceof UnresolvedColumn);\n assertTrue(scanProj.columns().get(1) instanceof FileMetadataColumn);\n assertTrue(scanProj.columns().get(2) instanceof FileMetadataColumn);\n assertTrue(scanProj.columns().get(3) instanceof FileMetadataColumn);\n assertTrue(scanProj.columns().get(4) instanceof FileMetadataColumn);\n\n assertTrue(implictColManager.hasImplicitCols());\n }",
"private void seekBy() {\n Queue<File> queue = new LinkedList<>();\n queue.offer(new File(root));\n while (!queue.isEmpty()) {\n File file = queue.poll();\n File[] list = file.listFiles();\n if (file.isDirectory() && list != null) {\n for (File tempFile : list) {\n queue.offer(tempFile);\n }\n } else {\n if (args.isFullMatch() && searchingFile.equalsIgnoreCase(file.getName())) {\n result.add(file);\n }\n if (args.isMask() && searchingFile.replaceAll(\"\\\\*\", \".*\").equalsIgnoreCase(file.getName())) {\n result.add(file);\n }\n if (args.isRegex() && file.getName().matches(args.getName())) {\n result.add(file);\n }\n }\n }\n this.writeLog(output, result);\n }",
"public Cursor fetchLatestBooks() {\n \tSQLiteDatabase db = dbHelper.getReadableDatabase();\n \tCursor c = db.query(TABLE_NAME, BOOK_COLUMNS, null, null, null, null, KEY_LAST_MODIFIED + \" DESC\");\n \tLog.i(TAG, c.getCount() + \"books loaded from db.\");\n \treturn c;\n\t}",
"public List<GridFSFile> getDBFilesInfo() {\n try {\n List<GridFSFile> files = new LinkedList<>();\n GridFSFindIterable gfsi = gridFSBucket.find();\n for (GridFSFile gfsf : gfsi) {\n files.add(gfsf);\n }\n return files;\n } catch (MongoException e) {\n System.err.println(e.getCode() + \" \" + e.getMessage());\n return null;\n }\n }",
"public FileInfo getFileInformation(SrvSession sess, TreeConnection tree, String name)\n throws IOException {\n\n // Check for the null file name\n \n if (name == null)\n return null;\n\n // Access the JDBC context\n\n DBDeviceContext dbCtx = (DBDeviceContext) tree.getContext();\n\n // Check if the database is online\n \n if ( dbCtx.getDBInterface().isOnline() == false)\n throw new DiskOfflineException( \"Database is offline\");\n \n // Check if the path is a file stream\n \n FileState fstate = null;\n FileInfo finfo = null;\n \n if ( FileName.containsStreamName(name)) {\n\n // Check if there is an active file state for the stream\n \n fstate = getFileState(name,dbCtx,true);\n \n if ( fstate != null) {\n \n // Check if the file information is available\n \n finfo = (FileInfo) fstate.findAttribute(FileState.FileInformation);\n }\n\n // If the cached file information is not available then create it\n \n if ( finfo == null) { \n\n // Split the path into directory, file and stream name components\n \n String[] paths = FileName.splitPathStream(name); \n \n // Get, or create, the file state for main file path\n \n String filePath = paths[0] + paths[1];\n FileState parent = getFileState(filePath,dbCtx,true);\n \n // Check if the top level file exists\n \n if ( parent != null && parent.fileExists() == true) {\n \n // Get the top level file details\n \n DBFileInfo dbInfo = getFileDetails(name,dbCtx,parent);\n \n if ( dbInfo != null) {\n \n // Get the list of available streams\n \n StreamInfoList streams = loadStreamList(parent, dbInfo, dbCtx, true);\n \n if ( streams != null && streams.numberOfStreams() > 0) {\n \n // Get the details for the stream, if the information is valid copy it to a file information\n // object\n \n StreamInfo sInfo = streams.findStream(paths[2]);\n \n if ( sInfo != null) {\n \n // Create a file information object, copy the stream details to it\n \n finfo = new DBFileInfo(paths[1], name, dbInfo.getFileId(), dbInfo.getDirectoryId());\n finfo.setFileId(sInfo.getFileId());\n finfo.setFileSize(sInfo.getSize());\n \n // Use the parent files timestamps for now\n \n finfo.setCreationDateTime(dbInfo.getCreationDateTime());\n finfo.setAccessDateTime(dbInfo.getAccessDateTime());\n finfo.setModifyDateTime(dbInfo.getModifyDateTime());\n \n // Attach to the file state\n \n fstate.addAttribute(FileState.FileInformation, finfo);\n \n // DEBUG\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"getFileInformation() stream=\" + name + \", info=\" + finfo);\n }\n }\n }\n }\n }\n }\n else {\n\n // Get, or create, the file state for the path\n \n fstate = getFileState(name, dbCtx, true);\n \n // Get the file details for the path\n \n DBFileInfo dbInfo = getFileDetails(name, dbCtx, fstate);\n \n // Set the full file/path name\n \n if ( dbInfo != null)\n dbInfo.setFullName(name);\n finfo = dbInfo;\n }\n\n // DEBUG\n \n if ( Debug.EnableInfo && hasDebug() && finfo != null)\n Debug.println(\"getFileInformation info=\" + finfo.toString());\n\n // Return the file information\n\n return finfo;\n }",
"public abstract long getCursor();",
"public List<GridFSDBFile> find(DBObject query) {\n\treturn find(query, null);\n }",
"public GridFSDBFile findOne(DBObject query) {\n\treturn _fix(_filesCollection.findOne(query));\n }",
"EhrPersonFile selectByPrimaryKey(Long id);",
"public abstract Cursor buildCursor();",
"public ArrayList<FileDesc> getAllFiles() {\n\n\t\tArrayList<FileDesc> result = new ArrayList<FileDesc>();\n\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement ps = ((org.inria.jdbc.Connection) db).prepareStatement(TCell_QEP_IDs.QEP.EP_getAllFiles);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\n\t\t\tString query = \"SELECT FILEGID, TYPE, DESCRIPTION FROM FILE\";\n\t\t\tSystem.out.println(\"Executing query : \" + query);\t\t\t\n\n\t\t\t\n\t\t\twhile (rs.next() == true) {\n\t\t\t\tString fileGID = rs.getString(1);\n\t\t\t\tString type = rs.getString(2);\n\t\t\t\tString Description = rs.getString(3);\n\t\t\t\tresult.add(new FileDesc(fileGID, \"\", \"\", \"\", type, Description));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// Uncomment when the close function will be implemented\n\t\t\t// attemptToClose(ps);\n\t\t\t\n\t\t}\n\n\t\treturn result;\n\t}",
"public Cursor getCursor()\n {\n// Object localObject1;\n// if (!this.mCursorValid)\n// {\n// this.mCursor = new EsMatrixCursor(PROJECTION);\n// this.mCursorValid = true;\n// if ((this.mLocalProfilesLoaded) && (this.mGaiaIdsAndCirclesLoaded))\n// {\n// localObject1 = new HashSet();\n// HashSet localHashSet = new HashSet();\n// Object localObject3 = this.mLocalProfiles.iterator();\n// while (true)\n// {\n// long l1;\n// if (!((Iterator)localObject3).hasNext())\n// {\n// localObject5 = this.mContacts.iterator();\n// while (true)\n// {\n// if (!((Iterator)localObject5).hasNext())\n// {\n// localObject2 = this.mPublicProfiles.iterator();\n// while (true)\n// {\n// if (!((Iterator)localObject2).hasNext())\n// {\n// localObject3 = this.mPublicProfiles.iterator();\n// while (true)\n// {\n// if (!((Iterator)localObject3).hasNext())\n// {\n// localObject1 = this.mCursor;\n// break;\n// }\n// localObject4 = (PublicProfile)((Iterator)localObject3).next();\n// localObject2 = ((PublicProfile)localObject4).gaiaId;\n// if (((HashSet)localObject1).contains(localObject2))\n// continue;\n// localObject5 = this.mCursor;\n// arrayOfObject = new Object[11];\n// l1 = this.mNextId;\n// this.mNextId = (1L + l1);\n// arrayOfObject[0] = Long.valueOf(l1);\n// arrayOfObject[1] = ((PublicProfile)localObject4).personId;\n// arrayOfObject[2] = null;\n// arrayOfObject[3] = localObject2;\n// arrayOfObject[4] = ((PublicProfile)localObject4).name;\n// arrayOfObject[5] = null;\n// arrayOfObject[6] = null;\n// arrayOfObject[7] = null;\n// arrayOfObject[8] = null;\n// arrayOfObject[9] = null;\n// arrayOfObject[10] = ((PublicProfile)localObject4).snippet;\n// ((EsMatrixCursor)localObject5).addRow(arrayOfObject);\n// }\n// }\n// localObject3 = (PublicProfile)((Iterator)localObject2).next();\n// localObject5 = ((PublicProfile)localObject3).gaiaId;\n// localObject4 = (String)this.mGaiaIdsAndCircles.get(localObject5);\n// if ((((HashSet)localObject1).contains(localObject5)) || (TextUtils.isEmpty((CharSequence)localObject4)))\n// continue;\n// ((HashSet)localObject1).add(localObject5);\n// localObject6 = this.mCursor;\n// Object[] arrayOfObject = new Object[11];\n// l1 = this.mNextId;\n// this.mNextId = (1L + l1);\n// arrayOfObject[0] = Long.valueOf(l1);\n// arrayOfObject[1] = ((PublicProfile)localObject3).personId;\n// arrayOfObject[2] = null;\n// arrayOfObject[3] = localObject5;\n// arrayOfObject[4] = ((PublicProfile)localObject3).name;\n// arrayOfObject[5] = localObject4;\n// arrayOfObject[6] = null;\n// arrayOfObject[7] = null;\n// arrayOfObject[8] = null;\n// arrayOfObject[9] = null;\n// arrayOfObject[10] = null;\n// ((EsMatrixCursor)localObject6).addRow(arrayOfObject);\n// }\n// }\n// localObject3 = (Contact)((Iterator)localObject5).next();\n// if (l1.contains(((Contact)localObject3).name))\n// continue;\n// localObject2 = this.mCursor;\n// localObject4 = new Object[11];\n// l2 = this.mNextId;\n// this.mNextId = (1L + l2);\n// localObject4[0] = Long.valueOf(l2);\n// localObject4[1] = ((Contact)localObject3).personId;\n// localObject4[2] = ((Contact)localObject3).lookupKey;\n// localObject4[3] = null;\n// localObject4[4] = ((Contact)localObject3).name;\n// localObject4[5] = null;\n// localObject4[6] = null;\n// localObject4[7] = ((Contact)localObject3).email;\n// localObject4[8] = ((Contact)localObject3).phoneNumber;\n// localObject4[9] = ((Contact)localObject3).phoneType;\n// localObject4[10] = null;\n// ((EsMatrixCursor)localObject2).addRow(localObject4);\n// }\n// }\n// Object localObject6 = (LocalProfile)((Iterator)localObject3).next();\n// Object localObject2 = ((LocalProfile)localObject6).gaiaId;\n// ((HashSet)localObject1).add(localObject2);\n// l1.add(((LocalProfile)localObject6).name);\n// Object localObject4 = this.mCursor;\n// Object localObject5 = new Object[11];\n// long l2 = this.mNextId;\n// this.mNextId = (1L + l2);\n// localObject5[0] = Long.valueOf(l2);\n// localObject5[1] = ((LocalProfile)localObject6).personId;\n// localObject5[2] = null;\n// localObject5[3] = localObject2;\n// localObject5[4] = ((LocalProfile)localObject6).name;\n// localObject5[5] = ((LocalProfile)localObject6).packedCircleIds;\n// localObject5[6] = ((LocalProfile)localObject6).email;\n// localObject5[7] = null;\n// localObject5[8] = ((LocalProfile)localObject6).phoneNumber;\n// localObject5[9] = ((LocalProfile)localObject6).phoneType;\n// localObject5[10] = null;\n// ((EsMatrixCursor)localObject4).addRow(localObject5);\n// }\n// }\n// localObject1 = this.mCursor;\n// }\n// else\n// {\n// localObject1 = this.mCursor;\n// }\n// return (Cursor)(Cursor)(Cursor)(Cursor)(Cursor)(Cursor)localObject1;\n return null;\n }",
"private void query() {\n if (mDriveServiceHelper != null) {\n Log.d(\"error\", \"Querying for files.\");\n\n mDriveServiceHelper.queryFiles()\n .addOnSuccessListener(fileList -> {\n StringBuilder builder = new StringBuilder();\n for (File file : fileList.getFiles()) {\n builder.append(file.getName()).append(\"\\n\");\n }\n String fileNames = builder.toString();\n\n// mFileTitleEditText.setText(\"File List\");\n// mDocContentEditText.setText(fileNames);\n\n setReadOnlyMode();\n })\n .addOnFailureListener(exception -> Log.e(\"error\", \"Unable to query files.\", exception));\n }\n }",
"public static File modified (File f)\n\t{\n\t\tif(f.isFile())\n\t\t{\n\t\t\treturn f;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFile mostRecent = f;\n\t\t\tfor (File file: f.listFiles())\n\t\t\t{\n\t\t\t\tFile g = modified(file);\n\t\t\t\tif(g.lastModified()>file.lastModified())\n\t\t\t\t{\n\t\t\t\t\tmostRecent = g;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn mostRecent;\n\t\t}\n\t}",
"private Excursion cursorToExcursion(Cursor cursor) {\n Excursion exc = new Excursion();\n\n exc.setmID(cursor.getLong(0));\n exc.setmTimeStamp(cursor.getString(1));\n exc.setmDuration(cursor.getDouble(2));\n exc.setmDistance(cursor.getDouble(3));\n exc.setmGPSDATA(cursor.getBlob(4));\n exc.setmPictureIDs(deserialize(cursor.getBlob(5)));\n exc.setmName(cursor.getString(6));\n\n return exc;\n }",
"long getLastModifiedDate(String path) throws NotFoundException;",
"public interface FileSelectInfo\n{\n /**\n * Returns the base folder of the traversal.\n * @return FileObject representing the base folder.\n */\n FileObject getBaseFolder();\n\n /**\n * Returns the file (or folder) to be considered.\n * @return The FileObject.\n */\n FileObject getFile();\n\n /**\n * Returns the depth of the file relative to the base folder.\n * @return The depth of the file relative to the base folder.\n */\n int getDepth();\n}",
"public boolean nextFileInfo(FileInfo info) {\n\n\t\t// Get the next file from the search\n\n\t\ttry {\n\n\t\t\t// Return the next file details or loop until a match is found if a\n\t\t\t// complex wildcard filter\n\t\t\t// has been specified\n\t\t\twhile (m_rs.next()) {\n\t\t\t\tString name = m_rs.getString(\"name\");\n\t\t\t\t// Get the file name for the next file\n\t\t\t\tinfo.setFileId(m_rs.getInt(\"id\"));\n\t\t\t\tinfo.setFileName(name);\n\t\t\t\tinfo.setSize(m_rs.getLong(\"size\"));\n\t\t\t\tif(name.equalsIgnoreCase(DBUtil.CLOUDURL))\n\t\t\t\t{\n\t\t\t\t\ttry{\n\t\t\t\t\t//重设置大小\n\t\t\t\t\tinfo.setFileId(-99);\n//\t\t\t\t\tinfo.setFileId(-userId);\n\t\t\t\t\tinfo.setSize(DBUtil.getURLMYFILE_TXT(this.getBaseUrl(),userId).getBytes().length);\n\t\t\t\t\t}catch(Exception e)\n\t\t\t\t\t{\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlong modifyDate = m_rs.getLong(\"lastModified\");\n\t\t\t\tif (modifyDate != 0L)\n\t\t\t\t\tinfo.setModifyDateTime(modifyDate);\n\t\t\t\telse\n\t\t\t\t\tinfo.setModifyDateTime(System.currentTimeMillis());\n\t\t\t\t\n\t\t\t\tTimestamp ts = m_rs.getTimestamp(\"add_time\");\n\t\t\t\tif (ts !=null && ts.getTime()>0)\n\t\t\t\t{\n\t\t\t\t\tinfo.setCreationDateTime(ts.getTime());\n\t\t\t\t\tinfo.setChangeDateTime(info.getModifyDateTime());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tinfo.setCreationDateTime(info.getModifyDateTime());\n\t\t\t\t\tinfo.setChangeDateTime(info.getModifyDateTime());\n\t\t\t\t}\t\t\t\t\n\t\t\t\tint attr = 0;\n\t\t\t\tif (m_rs.getBoolean(\"isFile\") == true) {\n\t\t\t\t\tinfo.setFileType(FileType.RegularFile);\t\t\t\t\t\n\t\t\t\t\tattr += FileAttribute.ReadOnly;// 只读权限\n\t\t\t\t} else\n\t\t\t\t\tattr += FileAttribute.Directory;\n\n\t\t\t\tif (m_rs.getBoolean(\"isHidden\") == true) \n\t\t\t\t{\n\t\t\t\t\tattr += FileAttribute.Hidden;//隐藏\n\t\t\t\t}\n\t\t\t\tinfo.setFileType(FileType.Directory);\n\t\t\t\t\t\t\t\t\n\t\t\t\tif (hasMarkAsOffline()) {\n\t\t\t\t\tif (getOfflineFileSize() == 0 || info.getSize() >= getOfflineFileSize())\n\t\t\t\t\t\tattr += FileAttribute.NTOffline;\n\t\t\t\t}\n\t\t\t\tinfo.setFileAttributes(attr);\n\t\t\t\tinfo.setUid(userId);\n\n\t\t\t\tif (m_filter == null || m_filter.matchesPattern(info.getFileName()) == true)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t} catch (SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t// No more files\n\t\tcloseSearch();\n\t\treturn false;\n\t}",
"public abstract List<File> listFiles() throws AccessException;",
"public AbstractNode select_ret_file(String sql, QueryCallback cb) {\n\n final AbstractNode scanNode = startSql(sql);\n\n final LocalFileResultNode fileNode = new LocalFileResultNode(scanNode, cb);\n\n fileNode.exec();\n return fileNode;\n }",
"public ArrayList<File> findRelevantFiles (int reimburseID);",
"long getLastModifiedTime() throws FileSystemException;",
"@Test\n\tpublic void cursorDirtyRead() throws IOException {\n\t\tfinal ArangoCursor<VPackSlice> cursor = arango.db().query(\"FOR i IN 1..4 RETURN i\",\n\t\t\tnew AqlQueryOptions().batchSize(1).allowDirtyRead(true), VPackSlice.class);\n\t\t// get the initial result\n\t\tassertThat(cursor.hasNext(), is(true));\n\t\tassertThat(cursor.next().isInteger(), is(true));\n\t\t// get the second batch\n\t\tassertThat(cursor.hasNext(), is(true));\n\t\tassertThat(cursor.next().isInteger(), is(true));\n\t\t// close the cursor before fetching the all batches\n\t\tcursor.close();\n\t}",
"GitFile[] getFilesImpl() throws Exception\n {\n TreeWalk twalk = new TreeWalk(getRepo()); twalk.addTree(_rev);\n List <GitFile> files = new ArrayList();\n while(twalk.next()) {\n ObjectId id = twalk.getObjectId(0);\n RevObject rid = getRevObject(id);\n String path = _path + (_path.length()>1? \"/\" : \"\") + twalk.getNameString();\n GitFile child = rid instanceof RevTree? new GitTree((RevTree)rid, path) : new GitBlob((RevBlob)rid, path);\n files.add(child);\n }\n return files.toArray(new GitFile[files.size()]);\n }",
"@Test\n\tpublic void testModifiedLast() {\n\t\tFile test = new File(\"X:\\\\Documents\\\\PS9 Test\");\n\t\tassertEquals(\"Poop - Copy.docx\",Explorer.modifiedLast(test).getName());\n\t}",
"DiaryFile selectByPrimaryKey(String maperId);",
"long getLastAccessTimeUtc(String path) throws IOException;",
"public List<cn.edu.nju.teamwiki.jooq.tables.pojos.Document> fetchByModifiedTime(LocalDateTime... values) {\n return fetch(Document.DOCUMENT.MODIFIED_TIME, values);\n }",
"public ProjectFiles selectByPrimaryKey(Long id) {\r\n ProjectFiles key = new ProjectFiles();\r\n key.setId(id);\r\n ProjectFiles record = (ProjectFiles) getSqlMapClientTemplate().queryForObject(\"project_files.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }",
"public int cursor();",
"@Test\n public void testLegacyWildcardAndFileMetadata() {\n Path filePath = new Path(\"hdfs:///w/x/y/z.csv\");\n ImplicitColumnOptions options = standardOptions(filePath);\n options.useLegacyWildcardExpansion(true);\n ImplicitColumnManager implictColManager = new ImplicitColumnManager(\n fixture.getOptionManager(),\n options);\n\n ScanLevelProjection scanProj = ScanLevelProjection.build(\n RowSetTestUtils.projectList(\n SchemaPath.DYNAMIC_STAR,\n ScanTestUtils.FILE_NAME_COL,\n ScanTestUtils.SUFFIX_COL),\n Lists.newArrayList(implictColManager.projectionParser()));\n\n List<ColumnProjection> cols = scanProj.columns();\n assertEquals(5, cols.size());\n assertTrue(scanProj.columns().get(0) instanceof UnresolvedWildcardColumn);\n assertTrue(scanProj.columns().get(1) instanceof FileMetadataColumn);\n assertTrue(scanProj.columns().get(2) instanceof FileMetadataColumn);\n assertTrue(scanProj.columns().get(3) instanceof PartitionColumn);\n assertTrue(scanProj.columns().get(4) instanceof PartitionColumn);\n }",
"@SuppressWarnings(\"resource\")\n\tpublic static Document fetchqueryResultLatest(String collectionName, Document selection, Bson projection,\n\t\t\tBson sortValue) throws Exception {\n\n\t\tDocument doc = null;\n\t\ttry {\n\n\t\t\tMongoClient mongoClient = null;\n\n\t\t\tString Password = URLEncoder.encode(decodedPassword.trim(), \"UTF-8\");\n\t\t\tString finalMongoUri = \"mongodb://\" + userName + \":\" + Password + \"@\" + mongoUri;\n\n\t\t\tMongoClientURI uri = new MongoClientURI(finalMongoUri);\n\t\t\tmongoClient = new MongoClient(uri);\n\t\t\tMongoDatabase db = mongoClient.getDatabase(\"aceuat01db\");\n\t\t\tMongoCollection<Document> collection = db.getCollection(collectionName);\n\t\t\tFindIterable<Document> resultSubset = collection.find(selection).projection(projection).sort(sortValue);\n\n\t\t\tif (resultSubset == null) {\n\t\t\t\tlog.error(\"The query returned and empty result.\");\n\n\t\t\t}\n\t\t\tfor (Document resdoc : resultSubset) {\n\t\t\t\tdoc = resdoc;\n\t\t\t}\n\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\tlog.error(\"Unknown host Exception.\");\n\t\t}\n\n\t\treturn doc;\n\n\t}",
"public DBCursor find(final DBObject query, final DBObject projection) {\n return new DBCursor(this, query, projection, getReadPreference());\n }",
"public List<GridFSDBFile> find(String filename, DBObject sort) {\n\treturn find(new BasicDBObject(\"filename\", filename), sort);\n }",
"public List<File> selectByQuery(FileQuery fileQuery) {\n return fileDao.selectByQuery(fileQuery);\n }",
"public List<BigMonsters> loadAllDeepFromCursor(Cursor cursor) {\n int count = cursor.getCount();\n List<BigMonsters> list = new ArrayList<BigMonsters>(count);\n \n if (cursor.moveToFirst()) {\n if (identityScope != null) {\n identityScope.lock();\n identityScope.reserveRoom(count);\n }\n try {\n do {\n list.add(loadCurrentDeep(cursor, false));\n } while (cursor.moveToNext());\n } finally {\n if (identityScope != null) {\n identityScope.unlock();\n }\n }\n }\n return list;\n }",
"@Test\n public void filesGetTest() throws ApiException {\n Integer limit = null;\n Integer offset = null;\n List<FileInfo> response = api.filesGet(limit, offset);\n\n // TODO: test validations\n }",
"public List<RssGeneratedFile> selectRssFileList( )\n {\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_RSS_FILE_LIST );\n daoUtil.executeQuery( );\n\n List<RssGeneratedFile> list = new ArrayList<RssGeneratedFile>( );\n\n while ( daoUtil.next( ) )\n {\n RssGeneratedFile rssFile = new RssGeneratedFile( );\n rssFile.setId( daoUtil.getInt( 1 ) );\n rssFile.setPortletId( daoUtil.getInt( 2 ) );\n rssFile.setName( daoUtil.getString( 3 ) );\n rssFile.setState( daoUtil.getInt( 4 ) );\n rssFile.setUpdateDate( daoUtil.getTimestamp( 5 ) );\n rssFile.setDescription( daoUtil.getString( 6 ) );\n rssFile.setWorkgroup( daoUtil.getString( 7 ) );\n rssFile.setTypeResourceRss( daoUtil.getString( 8 ) );\n rssFile.setMaxItems( daoUtil.getInt( 9 ) );\n rssFile.setFeedType( daoUtil.getString( 10 ) );\n rssFile.setEncoding( daoUtil.getString( 11 ) );\n\n list.add( rssFile );\n }\n\n daoUtil.free( );\n\n return list;\n }",
"@Override\n\tprotected Cursor loadCursor() {\n\t\treturn DataManager.get().queryLocations();\n\t}",
"public Collection<File> getRetrievedFiles() {\n Collection<File> result = new ArrayList<>(upToDateFiles.size() + copiedFiles.size());\n result.addAll(upToDateFiles);\n result.addAll(copiedFiles);\n return result;\n }",
"public DBCursor exportData() {\n\t\tCalendar startDate = new GregorianCalendar(2012, 9-1, 01, 0, 0, 0);\n\t\tCalendar endDate = new GregorianCalendar(2012, 9-1, 30, 23, 59, 59);\n\n\t\t/*\t*/\n\t\tBasicDBObject query = new BasicDBObject(\"date\", new BasicDBObject(\n\t\t\t\t\"$gte\", startDate.getTime()).append(\"$lte\", endDate.getTime()));\n\t\t//query.append(\"componentName\", \"CONTROL/DV10/FrontEnd/Cryostat\");\n\t\t//query.append(\"monitorPointName\", \"GATE_VALVE_STATE\");\n\t\t//query.append(\"componentName\", \"CONTROL/DV16/LLC\");\n\t\t//query.append(\"monitorPointName\", \"POL_MON4\");\n\n\t\t// Used only when the query take more than 10 minutes.\n\t\t_collection.addOption(Bytes.QUERYOPTION_NOTIMEOUT);\n\n\t\t/*\t*/\n\n\t\t// Registros utilizados para probar la diferencia de la zona horaria \n\t\t// local con la del servidor de mongo\n\t\t//BasicDBObject query = new BasicDBObject(\"_id\", new ObjectId(\"50528be325d8b6dfbafd7ac2\"));\n\t\t//BasicDBObject query = new BasicDBObject(\"_id\", new ObjectId(\"50529496a310ecc5da59531c\"));\n\n\t\tcursor = _collection.find(query);\n\n\t\t//System.out.println(\"Collections: \"+_database.getCollectionNames());\n\t\t\n\t\t//System.out.println(\"Error: \"+_database.getLastError());\n\t\treturn cursor;\n\t}",
"public int getCursor() { return curs; }",
"static void viewFiles()\r\n\t {\n\t\t File directoryPath = new File(\"D:\\\\java_project\");\r\n\t File filesList[] = directoryPath.listFiles();\r\n System.out.println(\"List of files and directories in the specified directory:\");\r\n\t for(File file : filesList) \r\n\t {\r\n\t System.out.println(\"File name: \"+file.getName());\r\n\t System.out.println(\"File path: \"+file.getAbsolutePath());\r\n\t System.out.println(\"Size :\"+file.getTotalSpace());\r\n\t System.out.println(\"last time file is modified :\"+new Date(file.lastModified()));\r\n System.out.println(\" \");\r\n\t }\r\n }",
"public native WinFileMappingBuffer captureMouseCursorAsFileMapping(Point origin, Point hotspot, int[] type);",
"List<ChangedFile> getChangedFiles(Project project);",
"public void searchAllFiles() {\n\t\t/**\n\t\t * Realizamos un pequeño algoritmo de recorrido de árboles en preorden para listar todos los\n\t\t * ebooks con un coste de 2n+1 donde n es el número de nodos.\n\t\t */\n\t\tArrayList<Entry> booksEntry = null;\n\t\ttry {\n\t\t\tString auxPath;\n\t\t\tbooksEntry = new ArrayList<DropboxAPI.Entry>();\n\t\t\tLinkedList<Entry> fifo = new LinkedList<DropboxAPI.Entry>();\n\t\t\tEntry nodo = _mApi.metadata(\"/\", 0, null, true, null);\n\t\t\tfifo.addAll(nodo.contents);\n\t\t\twhile (!fifo.isEmpty()) {\n\t\t\t\tSystem.out.println(fifo);\n\t\t\t\tnodo = fifo.getFirst();\n\t\t\t\tfifo.removeFirst();\n\t\t\t\tauxPath = nodo.path;\n\t\t\t\tif (nodo.isDir) {\n\t\t\t\t\tfifo.addAll(_mApi.metadata(auxPath, 0, null, true, null).contents);\n\t\t\t\t} else {\n\t\t\t\t\tif (isEbook(nodo))\n\t\t\t\t\t\tbooksEntry.add(nodo);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"parar\");\n\t\t} catch (DropboxUnlinkedException e) {\n\t\t\t// The AuthSession wasn't properly authenticated or user unlinked.\n\t\t} catch (DropboxPartialFileException e) {\n\t\t\t// We canceled the operation\n\t\t\t_mErrorMsg = \"Download canceled\";\n\t\t} catch (DropboxServerException e) {\n\t\t\t// Server-side exception. These are examples of what could happen,\n\t\t\t// but we don't do anything special with them here.\n\t\t\tif (e.error == DropboxServerException._304_NOT_MODIFIED) {\n\t\t\t\t// won't happen since we don't pass in revision with metadata\n\t\t\t} else if (e.error == DropboxServerException._401_UNAUTHORIZED) {\n\t\t\t\t// Unauthorized, so we should unlink them. You may want to\n\t\t\t\t// automatically log the user out in this case.\n\t\t\t} else if (e.error == DropboxServerException._403_FORBIDDEN) {\n\t\t\t\t// Not allowed to access this\n\t\t\t} else if (e.error == DropboxServerException._404_NOT_FOUND) {\n\t\t\t\t// path not found (or if it was the thumbnail, can't be\n\t\t\t\t// thumbnailed)\n\t\t\t} else if (e.error == DropboxServerException._406_NOT_ACCEPTABLE) {\n\t\t\t\t// too many entries to return\n\t\t\t} else if (e.error == DropboxServerException._415_UNSUPPORTED_MEDIA) {\n\t\t\t\t// can't be thumbnailed\n\t\t\t} else if (e.error == DropboxServerException._507_INSUFFICIENT_STORAGE) {\n\t\t\t\t// user is over quota\n\t\t\t} else {\n\t\t\t\t// Something else\n\t\t\t}\n\t\t\t// This gets the Dropbox error, translated into the user's language\n\t\t\t_mErrorMsg = e.body.userError;\n\t\t\tif (_mErrorMsg == null) {\n\t\t\t\t_mErrorMsg = e.body.error;\n\t\t\t}\n\t\t} catch (DropboxIOException e) {\n\t\t\t// Happens all the time, probably want to retry automatically.\n\t\t\t_mErrorMsg = \"Network error. Try again.\";\n\t\t} catch (DropboxParseException e) {\n\t\t\t// Probably due to Dropbox server restarting, should retry\n\t\t\t_mErrorMsg = \"Dropbox error. Try again.\";\n\t\t} catch (DropboxException e) {\n\t\t\t// Unknown error\n\t\t\t_mErrorMsg = \"Unknown error. Try again.\";\n\t\t}\n\t\t_booksListEntry = booksEntry;\n\t\tcreateListBooks();\n\t}",
"@Override\n\tpublic ResultTO getFileInfoFromInterval(LocalDateTime startDateTime, LocalDateTime endDateTime) {\n\t\tResultTO result = this.getAllFiles();\n\t\tif (result.isError()) {\n\t\t\treturn result;\n\t\t}\n\t\tList<InfoFileTO> infoFileList = result.getFiles();\n\t\tList<InfoFileTO> filterFileList = new ArrayList<>();\n\t\t// If it is void (when some error occurred) it is not executed\n\t\tfor (InfoFileTO infoFileTO : infoFileList) {\n\t\t\tLocalDateTime lastModify = infoFileTO.getLastModify();\n\t\t\tif (lastModify.isAfter(startDateTime) && lastModify.isBefore(endDateTime)) {\n\t\t\t\tfilterFileList.add(infoFileTO);\n\t\t\t}\n\t\t}\n\t\tresult.setFiles(filterFileList);\n\t\treturn result;\n\t}",
"public ArrayList<String> getLinkedFiles(ArrayList<String> tag_names) {\n\n\t\tString query = \"\";\n\n\t\t//\n\t\t// construct string builder\n\t\t//\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tif (tag_names.size() == 1) {\n\t\t\tquery = \"SELECT \" + MAP_FIELD_FILE + \" FROM \" + MAP_TABLE_NAME\n\t\t\t\t\t+ \" WHERE \" + MAP_FIELD_TAG + \" =?\";\n\t\t} else {\n\t\t\t//\n\t\t\t// build query\n\t\t\t//\n\t\t\tfor (int index = 0; index < tag_names.size(); index++) {\n\t\t\t\tif (builder.length() == 0) {\n\t\t\t\t\tbuilder.append(\"SELECT T1.\" + MAP_FIELD_FILE + \" FROM \"\n\t\t\t\t\t\t\t+ MAP_TABLE_NAME + \" AS T1 WHERE T1.\"\n\t\t\t\t\t\t\t+ MAP_FIELD_TAG + \"=?\");\n\t\t\t\t} else {\n\t\t\t\t\tint pos = builder.indexOf(\" FROM\");\n\t\t\t\t\tString str = \", T\" + Integer.toString(index + 1) + \".\"\n\t\t\t\t\t\t\t+ MAP_FIELD_FILE;\n\t\t\t\t\tbuilder.insert(pos, str);\n\n\t\t\t\t\tpos = builder.indexOf(\" WHERE\");\n\t\t\t\t\tstr = \", \" + MAP_TABLE_NAME + \" AS T\"\n\t\t\t\t\t\t\t+ Integer.toString(index + 1);\n\t\t\t\t\tbuilder.insert(pos, str);\n\n\t\t\t\t\tstr = \" AND T\" + Integer.toString(index + 1) + \".\"\n\t\t\t\t\t\t\t+ MAP_FIELD_TAG + \" =? AND T1.\" + MAP_FIELD_FILE\n\t\t\t\t\t\t\t+ \" = T\" + Integer.toString(index + 1) + \".\"\n\t\t\t\t\t\t\t+ MAP_FIELD_FILE;\n\t\t\t\t\tbuilder.append(str);\n\t\t\t\t}\n\n\t\t\t\tquery = builder.toString();\n\t\t\t}\n\t\t}\n\n\t\tString[] ids = new String[tag_names.size()];\n\t\tfor (int index = 0; index < tag_names.size(); index++) {\n\t\t\t//\n\t\t\t// convert to ids\n\t\t\t//\n\t\t\tids[index] = new String(\n\t\t\t\t\tLong.toString(getTagId(tag_names.get(index))));\n\t\t}\n\n\t\tCursor cursor = m_db.rawQuery(query, ids);\n\n\t\tif (cursor.moveToFirst() == false) {\n\t\t\t//\n\t\t\t// no entries\n\t\t\t//\n\t\t\tcursor.close();\n\t\t\tLogger.e(\"no entries\");\n\t\t\treturn null;\n\t\t}\n\n\t\t//\n\t\t// construct array list\n\t\t//\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\tdo {\n\n\t\t\t//\n\t\t\t// add result\n\t\t\t//\n\t\t\tCursor file_cursor = m_db.query(FILE_TABLE_NAME,\n\t\t\t\t\tnew String[] { FILE_FIELD_PATH }, FILE_FIELD_ID + \"=?\",\n\t\t\t\t\tnew String[] { cursor.getString(0) }, null, null, null);\n\n\t\t\t//\n\t\t\t// collect result\n\t\t\t//\n\t\t\tcollectResultSet(file_cursor, list);\n\n\t\t\t//\n\t\t\t// close cursor\n\t\t\t//\n\t\t\tfile_cursor.close();\n\n\t\t} while (cursor.moveToNext());\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// return result list\n\t\t//\n\t\treturn list;\n\t}",
"@Override\n public Vector<CloudFile> list() {\n if (!this.directoryExists) {\n fileList.removeAllElements();\n return fileList;\n }\n\n if (!directoryHasChanged) {\n return fileList;\n }\n\n final Integer listingComplete = new Integer(0);\n fileList.removeAllElements();\n\n System.out.println(\"GOOGLE DRIVE ls <\" + currentDirectory + \">\");\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n List<com.google.api.services.drive.model.File> res = new ArrayList<File>();\n Drive.Files.List request = drive.files().list();\n System.out.println(\"~~~Listing\");\n\n do {\n try {\n FileList files = request.setQ(\"'\" + currentFolderID + \"' in parents and trashed=false\").execute();\n\n res.addAll(files.getItems());\n request.setPageToken(files.getNextPageToken());\n } catch (HttpResponseException e) {\n\n if (e.getStatusCode() == 401) { // Credentials have been revoked.\n System.err.println(\"Google Drive API credentials have been revoked\");\n authenticate();\n }\n } catch (IOException e) {\n System.err.println(\"An error occurred: \" + e);\n request.setPageToken(null);\n\n }\n\n } while (request.getPageToken() != null &&\n request.getPageToken().length() > 0);\n\n //add shared with me directory when listing home\n if (currentDirectory.equals( getHomeDirectory() )) {\n FileList files = request.setQ(\"sharedWithMe\").execute();\n res.addAll(files.getItems());\n }\n\n for (com.google.api.services.drive.model.File f : res) {\n fileList.add(new GoogleCloudFile(drive, f));\n }\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n System.out.println(\"~~~Listed\");\n //notify parent function that listing has completed\n synchronized (listingComplete) {\n listingComplete.notify();\n }\n }\n });\n\n //start the file listing thread\n thread.start();\n //wait for it to complete listing\n System.out.println(\"Waiting ls\");\n synchronized (listingComplete) {\n try {\n listingComplete.wait();\n } catch (InterruptedException e) {\n }\n }\n System.out.println(\"Ls complete\");\n\n return fileList;\n }",
"@Override\n public Collection<AbstractFile> visit(FileSystem fs) {\n \n SleuthkitCase sc = Case.getCurrentCase().getSleuthkitCase();\n \n StringBuilder queryB = new StringBuilder();\n queryB.append(\"SELECT * FROM tsk_files WHERE (fs_obj_id = \").append(fs.getId());\n queryB.append(\") AND (size > 0)\");\n queryB.append(\" AND ( (meta_type = \").append(TskData.TSK_FS_META_TYPE_ENUM.TSK_FS_META_TYPE_REG.getMetaType());\n queryB.append(\") OR (meta_type = \").append(TskData.TSK_FS_META_TYPE_ENUM.TSK_FS_META_TYPE_DIR.getMetaType());\n queryB.append( \"AND (name != '.') AND (name != '..')\");\n queryB.append(\") )\");\n if (getUnallocatedFiles == false) {\n queryB.append( \"AND (type = \");\n queryB.append(TskData.TSK_DB_FILES_TYPE_ENUM.FS.getFileType());\n queryB.append(\")\");\n }\n \n try {\n final String query = queryB.toString();\n logger.log(Level.INFO, \"Executing query: \" + query);\n ResultSet rs = sc.runQuery(query);\n List<AbstractFile> contents = sc.resultSetToAbstractFiles(rs);\n Statement s = rs.getStatement();\n rs.close();\n if (s != null) {\n s.close();\n }\n return contents;\n } catch (SQLException ex) {\n logger.log(Level.WARNING, \"Couldn't get all files in FileSystem\", ex);\n return Collections.emptySet();\n }\n }",
"static private Cursor readRawCursor(Context context, String positionSelection, String[] positionSelArgs) {\n Position.context = context;\r\n\r\n // Read GuardTracker database helper\r\n GuardTrackerDbHelper dbHelper = new GuardTrackerDbHelper(context);\r\n // Initialize database for read\r\n db = dbHelper.getReadableDatabase();\r\n\r\n // Define a projection that specifies which columns from the database\r\n // you will actually use after this query.\r\n String[] positionProjection = {\r\n GuardTrackerContract.PositionTable._ID,\r\n GuardTrackerContract.PositionTable.COLUMN_NAME_SESSION,\r\n GuardTrackerContract.PositionTable.COLUMN_NAME_LT,\r\n GuardTrackerContract.PositionTable.COLUMN_NAME_LG,\r\n GuardTrackerContract.PositionTable.COLUMN_NAME_TIME,\r\n GuardTrackerContract.PositionTable.COLUMN_NAME_ALTITUDE,\r\n GuardTrackerContract.PositionTable.COLUMN_NAME_NSAT,\r\n GuardTrackerContract.PositionTable.COLUMN_NAME_HDOP,\r\n GuardTrackerContract.PositionTable.COLUMN_NAME_FIXED\r\n };\r\n\r\n cursor = db.query(\r\n GuardTrackerContract.PositionTable.TABLE_NAME, // The table to query\r\n positionProjection, // The columns to return\r\n positionSelection, // The columns for the WHERE clause\r\n positionSelArgs, // The values for the WHERE clause\r\n null, // don't group the rows\r\n null, // don't filter by row groups\r\n null // The sort order\r\n );\r\n if (cursor.getCount() == 0) throw new IllegalStateException(\"No entries PositionTable\");\r\n\r\n // O cursor dependerá dos db ou dbHelper? Se não depender, deverei fechar db e dbHelper.\r\n return cursor;\r\n }",
"long getLastAccessTime(String path) throws IOException;",
"public Map<String,ChangeData> diffFiles(final List<String> fl){\n \t\t\n \t\tList<String> working = new LinkedList<String>();\n \t\tList<String> snap = new LinkedList<String>();\n \t\tMap<String,ChangeData> cm = new HashMap<String,ChangeData>();\n \t\tList<String> files= fl;\n \t\t\n \t\tif(fl == null || fl.isEmpty())\n \t\t\tfiles=this.getFileNames();\n \t\t\n \t\tfor (String str : files){\n \t\tFile file = new File(this.getRoot()+ File.separatorChar +str);\n \t\t\n \t\tif(this.getFileNames().contains(str) && file.exists()){\n \t\t\tFile f = new File(this.getSnapshot().getRoot() + File.separatorChar +str);\n \t\t\tif(!f.exists())\n \t\t\t\tthis.pCreateFile(this.getSnapshot().getRoot() + File.separatorChar +str);\n \t\t\n \t\tcm.put(str, new ChangeData(str));\t\n \t\t\t\n \t\tworking = this.readFile(this.getRoot()+ File.separatorChar +str);\n \t\tsnap = this.readFile(this.getSnapshot().getRoot() + File.separatorChar +str);\n \t\t\n \t\tcm.get(str).getDifflist().add(this.getSnapshot().getDiff(snap, working));\n \t\t\n \t\tif(!cm.get(str).getDifflist().get(0).getDeltas().isEmpty())//addOfEmptyFile\n \t\t\tthis.getFilelist().get(str).put(this.getAddress(), this.getFilelist().get(str).get(this.getAddress()) + 1);\n \t\t\n \t\tcm.get(str).getLclock().putAll(this.getFilelist().get(str));\n \t\t\t\n \t\t\n \t\tthis.pCopyFile(this.getRoot()+ File.separatorChar +str, this.getSnapshot().getRoot() + File.separatorChar +str);\n \t\t\n \t\tworking.clear();\n \t\tsnap.clear();\n \t\t\t}\n \t\t}\n \t\t\n \t\tfor(String str : this.getFileNames()){\n \t\t\tif(!cm.containsKey(str)){\n \t\t\t\tcm.put(str, new ChangeData(str));\n \t\t\t\tcm.get(str).getLclock().putAll(this.getFilelist().get(str));\n \t\t\t}\n \t\t}\n \t\t\t\n \t\tfor(String str : this.dirRecursiveRel(this.getSnapshot().getRoot())){\n \t\t\t\n \t\t\tif(!this.getFileNames().contains(str)){\n //\t\t\t\tthis.pDeleteFile(this.getRoot()+ File.separatorChar +str);\n \t\t\t\tthis.pDeleteFile(this.getSnapshot().getRoot()+ File.separatorChar +str);\n \t\t\t}\n \t\t}\n \t\t\n \t\t\n \tthis.storeMetadata(this.getRoot());\t\n \t\t\n \treturn cm;\n \t\t\n \t}",
"public static void main(String[] args) throws IOException{\n\n\n long startTime = System.currentTimeMillis();\n new GetAllFileFromFolder().tarverseAllFile(\"D:\\\\mongodb\");\n long endTime = System.currentTimeMillis();\n\n System.out.println(\"TotalFolder : \" + totalFolder);\n System.out.println(\"TotalFile : \" + totalFile);\n System.out.println(\"Using Time : \" + (endTime - startTime));\n\n }",
"@Test\n public void testQueries() {\n nuxeoClient.repository().createDocumentById(testWorkspaceId, new Document(\"file1\", \"File\"));\n nuxeoClient.repository().createDocumentById(testWorkspaceId, new Document(\"file2\", \"File\"));\n\n // Get descendants of Workspaces\n String query = \"select * from Document where ecm:path startswith '/default-domain/workspaces'\";\n Documents documents = nuxeoClient.repository().query(query, \"10\", \"0\", \"50\", \"ecm:path\", \"asc\", null);\n assertEquals(3, documents.size());\n\n // Get all the File documents\n // TODO\n\n // Content of a given Folder, using a page provider\n // TODO\n }",
"public void onMouseClickedOnRecentFile(MouseEvent mouseEvent) {\n if (MouseButton.PRIMARY.equals(mouseEvent.getButton()) && 2 == mouseEvent.getClickCount()) {\n String fileLocationStr = listRecentProjects.getSelectionModel().getSelectedItem();\n\n if (StringUtils.isNotBlank(fileLocationStr)) {\n File projectFile = new File(fileLocationStr);\n openProject(projectFile);\n }\n }\n }",
"public abstract Date getLastModified() throws AccessException;",
"@Override\n public Iterable<File> list(File storageDirectory, FilenameFilter filter) {\n\treturn null;\n }",
"@SuppressWarnings(\"unused\") \n\tprivate void extractChanges(Node commit_node, RevCommit m) throws Exception\n\t{\n\n\t\tList<String> commitIds = new ArrayList<String>(); \n\n\t\tcommitIds.add(m.toObjectId().getName());\n\t\t\n\t\tCommitInfoExtractor cie = new CommitInfoExtractor();\n\t\tcie.extractFeatureChanges(commitIds);\n\t\tList<EvolutionStep>steps = cie.getSteps();\n\t\t\n\t\ttry(Transaction tx = DBConnection.getService().beginTx())\n\t\t{\n\t\t\tfor(EvolutionStep step : steps)\n\t\t\t{\n\t\t\t\tFileChangeExtractor file_changes = new FileChangeExtractor(commit_parents_list,files);\n\t\t\t\tList<Node> file_nodes = file_changes.addFileChangesToCommit(step.files, commit_node);\n\t\t\t\t\n\t\t\t\tVMChangeExtractor vm_changes = new VMChangeExtractor(commit_parents_list,files);\n\t\t\t\tList<Node> vm_nodes = vm_changes.addVMChangesToCommit(step.fm_changes, commit_node);\n\t\t\t\t\n\t\t\t\tBuildChangeExtractor build_changes = new BuildChangeExtractor(commit_parents_list,files);\n\t\t\t\tList<Node> build_nodes = build_changes.addBuildChangesToCommit(step.build_changes, commit_node);\n\t\t\t\t\n\t\t\t\tCodeChangeExtractor code_changes = new CodeChangeExtractor(commit_parents_list,files);\n\t\t\t\tList<Node> code_nodes = code_changes.addCodeChangesToCommit(step.impl_changes, commit_node);\n\n//\t\t\t\tList<EvolutionStep> local = new ArrayList<EvolutionStep>(); local.add(step);\n//\t\t\t\tFeatureOrientedChangeExtractor dataextractor = new FeatureOrientedChangeExtractor(local);\n//\t\t\t\tdataextractor.buildFeatureChanges();\n//\t\t\t\t\n//\t\t\t\tList<FeatureOrientedChange> changes = dataextractor.getFeatureChanges();\n//\t\n//\t\t\t\tList<Node> focs = new ArrayList<Node>();\n//\t\t\t\tfor(FeatureOrientedChange c : changes)\n//\t\t\t\t{\n//\t\t\t\t\tNode foc_node = createFeatureOrientedChangeForCommit(c);\n//\t\t\t\t\tfocs.add(foc_node);\n//\t\t\t\t\tlink_file_and_vm_changes(c,foc_node,file_nodes, vm_nodes,build_nodes,code_nodes); \n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t\tMap<String,Node> known_focs = buildFOCMap(focs);\n//\t\t\t\tlink_mapping_artefacts(known_focs,build_nodes);\n//\t\t\t\tlink_code_artefacts(known_focs,code_nodes);\n\t\t\t}\n\t\t\ttx.success();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tthrow new Exception(\"Failed to create Neo4j nodes - \", e);\n\t\t}\n\t}",
"private Cursor initilizeData(){\n\t String[] dataToAccess = new String[]{\n\t\t \tMediaStore.Images.Media._ID,\t\t\t// This is image file ID\n\t\t MediaStore.Images.Media.DISPLAY_NAME, // filename\n\t\t MediaStore.Images.Media.DATE_TAKEN\t\t// creation date\n\t\t };\n\t String limitSize = MediaStore.Images.Media.DATE_TAKEN + \" desc limit 25\"; // desc: says descending order (in reverse newest first), limit 5: 5, e.g., can also do: \"%s limit 5\"\n\t \n\t // Make the query.\n\t System.out.println(dataToAccess.toString());\n\t Context c = getActivity().getApplicationContext();\n\t mImageRef = c.getContentResolver().query(\n\t \t\tMediaStore.Images.Media.EXTERNAL_CONTENT_URI, // Get the base URI for all of the images\n\t dataToAccess, \t// Which columns to return\n\t \"\", \t// Which rows to return (all rows)\n\t null, \t// Selection arguments (none)\n\t limitSize // Ordering\n\t \t);\n\t \n\t\t// make sure there is something to move to! \n\t\t// \t(otherwise, this will crash if there are no photos) \n\t System.out.println(\"Count: \" + mImageRef.getCount());\n\t\tif (mImageRef.getCount() > 0)\n\t\t\tmImageRef.moveToFirst();\n\t\t\n\t\t\n\t\treturn mImageRef;\n\t}",
"FileSet selectByPrimaryKey(Integer id);",
"@Override\n\tpublic List<File> getAll() {\n\t\t return getSession().\n\t createQuery(\"from File f\", File.class).\n\t getResultList();\n\t}",
"List<File> list(String directory) throws FindException;",
"public void testGetWithCursor() throws Exception\n {\n Log.log(\"TEST\", \"[GetFileTypeListActionTest.testGetWithCursor] Enter \");\n\n// for (int i=0; i<LIST_COUNT; i++)\n// createTestData(_FILE_TYPE+i, _DESCRIPTION+i);\n\n Long[] uIDs = (Long[])findFileTypesKeys(_FILTER).toArray(new Long[_LIST_COUNT]);\n int numPages = (int)java.lang.Math.ceil((double)_LIST_COUNT / (double)_MAX_PAGE_ENTRIES);\n Log.debug(\"TEST\", \"Number of Pages: \"+numPages);\n\n _event = createTestEvent(_FILTER, _MAX_PAGE_ENTRIES, 0);\n\n for (int j=0; j<numPages; j++)\n {\n try\n {\n _response = performEvent(_event);\n }\n catch (Exception ex)\n {\n Log.err(\"TEST\", \"[GetFileTypeListActionTest.testGetWithCursor] Error Exit \", ex);\n assertTrue(\"Event Exception\", false);\n }\n\n //check response\n assertNotNull(\"response is null\", _response);\n assertTrue(\"event is not successful\", _response.isEventSuccessful());\n assertEquals(\"Msg code incorrect\", IErrorCode.NO_ERROR, _response.getMessageCode());\n\n Object returnData = _response.getReturnData();\n assertNotNull(\"responsedata is null\", returnData);\n assertTrue(\"response data type incorrect\", returnData instanceof EntityListResponseData);\n\n EntityListResponseData listData = (EntityListResponseData)returnData;\n\n boolean lastPage = (j+1 == numPages);\n int startRow = (_MAX_PAGE_ENTRIES*j);\n\n assertEquals(\"Rows remaining is incorrect\",\n lastPage? 0 : _LIST_COUNT-startRow-_MAX_PAGE_ENTRIES, listData.getRowsRemaining());\n assertEquals(\"start row is incorrect\", startRow, listData.getStartRow());\n assertNotNull(\"List ID is null\", listData.getListID());\n\n Collection entityList = listData.getEntityList();\n assertNotNull(\"Entity list is null\", entityList);\n assertEquals(\"Entity list count is incorrect\",\n _LIST_COUNT-startRow<_MAX_PAGE_ENTRIES?_LIST_COUNT-startRow:_MAX_PAGE_ENTRIES, entityList.size());\n\n Object[] entityObjs = entityList.toArray();\n for (int i=0; i<entityObjs.length; i++ )\n {\n assertNotNull(\"Entity is null\", entityObjs[i]);\n assertTrue(\"Entity is not Map\", entityObjs[i] instanceof Map);\n\n Map fileTypeMap = (Map)entityObjs[i];\n\n assertEquals(\"UID is incorrect\", uIDs[i+startRow], fileTypeMap.get(IFileType.UID));\n assertEquals(\"FileType incorrect\", _FILE_TYPE+(i+startRow), fileTypeMap.get(IFileType.FILE_TYPE));\n assertEquals(\"Description incorrect\", _DESCRIPTION+(i+startRow), fileTypeMap.get(IFileType.DESCRIPTION));\n assertEquals(\"ProgramName is incorrect\", _PROGRAM_NAME+(i+startRow), fileTypeMap.get(IFileType.PROGRAM_NAME));\n assertEquals(\"ProgramPath is incorrect\", _PROGRAM_PATH+(i+startRow), fileTypeMap.get(IFileType.PROGRAM_PATH));\n assertEquals(\"Parameters is incorrect\", _PARAMETERS+(i+startRow), fileTypeMap.get(IFileType.PARAMETERS));\n assertEquals(\"WorkingDirectory is incorrect\", _WORKING_DIR+(i+startRow), fileTypeMap.get(IFileType.WORKING_DIR));\n }\n\n _event = createTestEvent(listData.getListID(), _MAX_PAGE_ENTRIES, startRow+_MAX_PAGE_ENTRIES);\n }\n Log.log(\"TEST\", \"[GetFileTypeListActionTest.testGetWithCursor] Exit \");\n }",
"public List<DbComment> loadAllDeepFromCursor(Cursor cursor) {\n int count = cursor.getCount();\n List<DbComment> list = new ArrayList<DbComment>(count);\n \n if (cursor.moveToFirst()) {\n if (identityScope != null) {\n identityScope.lock();\n identityScope.reserveRoom(count);\n }\n try {\n do {\n list.add(loadCurrentDeep(cursor, false));\n } while (cursor.moveToNext());\n } finally {\n if (identityScope != null) {\n identityScope.unlock();\n }\n }\n }\n return list;\n }",
"private static void updateFiles(Gitlet currCommit) {\n HashMap<String, String> currHeadFiles = currCommit.tree.getHeadCommit()\n .getFileLoc();\n currCommit.tree.setMap(currHeadFiles);\n for (String fileName : currHeadFiles.keySet()) {\n FileManip temp = new FileManip(currHeadFiles.get(fileName));\n temp.copyFile(fileName);\n }\n\n }",
"public List<FireStoreDirectoryEntry> enumerateFileRefEntries(\n TableServiceClient tableServiceClient, String collectionId, int offset, int limit) {\n TableClient tableClient = tableServiceClient.getTableClient(collectionId);\n ListEntitiesOptions options = new ListEntitiesOptions().setFilter(\"isFileRef eq true\");\n PagedIterable<TableEntity> entities = tableClient.listEntities(options, null, null);\n if (!entities.iterator().hasNext()) {\n return List.of();\n }\n return entities.stream()\n .skip(offset)\n .limit(limit)\n .map(FireStoreDirectoryEntry::fromTableEntity)\n .toList();\n }",
"private Cursor read(){\n ProjectDbHelper mDbHelper = new ProjectDbHelper(this);\n\n\n // Create and/or open a database to read from it\n SQLiteDatabase db = mDbHelper.getReadableDatabase();\n\n // retrieve data using cursor\n String[] projection = {\n ProjectContract.ProjectEntry._ID,\n ProjectContract.ProjectEntry.COLUMN_PROJECT_NAME,\n ProjectContract.ProjectEntry.COLUMN_PROJECT_TYPE,\n ProjectContract.ProjectEntry.COLUMN_PROJECT_CLIENT,\n ProjectContract.ProjectEntry.COLUMN_PROJECT_PRICE\n };\n\n Cursor cursor = db.query(\n ProjectContract.ProjectEntry.TABLE_NAME,\n projection,\n null,\n null,\n null,\n null,\n null);\n\n return cursor;\n }",
"public List getAll() throws FileNotFoundException, IOException;",
"public static interface Cursor {\n\t\tpublic void open() throws RelationException;\n\n\t\t//the hasNext() method actually loads the object, so don't skip it\n\t\tpublic boolean hasNext() throws RelationException;\n\n\t\t//this retrieves the next object. use in confunction with hasNext();\n\t\tpublic Tuple next() throws RelationException;\n\n\t\tpublic void close() throws RelationException;\n\t}",
"public SearchContext startSearch(SrvSession sess, TreeConnection tree, String searchPath, int attrib)\n throws FileNotFoundException {\n\n // Access the JDBC context\n\n DBDeviceContext dbCtx = (DBDeviceContext) tree.getContext();\n\n // Check if the database is online\n \n if ( dbCtx.getDBInterface().isOnline() == false)\n throw new FileNotFoundException( \"Database is offline\");\n \n // Prepend a leading slash to the path if not on the search path\n \n if ( searchPath.startsWith(\"\\\\\") == false)\n searchPath = \"\\\\\" + searchPath;\n \n // Get the directory id for the last directory in the path\n \n int dirId = findParentDirectoryId(dbCtx,searchPath,true);\n if ( dirId == -1)\n throw new FileNotFoundException(\"Invalid path\");\n\n // Start the search\n \n SearchContext search = null;\n \n try {\n \n // Check if the search path is a none wildcard search, the file information may be in the\n // state cache\n \n if ( WildCard.containsWildcards( searchPath) == false) {\n \n // Check if there is a file state for the search path\n \n FileState searchState = getFileState( searchPath, dbCtx, false);\n if ( searchState != null && searchState.fileExists() == true) {\n \n // Check if the file state has the file information attached\n \n DBFileInfo finfo = (DBFileInfo) searchState.findAttribute(FileState.FileInformation);\n \n if ( finfo != null) {\n \n // Create a single file search context using the cached file information\n \n search = new CachedSearchContext( finfo);\n \n // DEBUG\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"DB StartSearch using cached file information, path=\" + searchPath + \", info=\" + finfo);\n }\n }\n }\n \n // Start the search via the database interface, if the search is not valid\n \n if ( search == null) {\n \n // Start the search\n\n DBSearchContext dbSearch = dbCtx.getDBInterface().startSearch(dirId, searchPath, attrib, DBInterface.FileAll, -1);\n \n // Check if files should be marked as offline\n \n dbSearch.setMarkAsOffline( dbCtx.hasOfflineFiles());\n dbSearch.setOfflineFileSize( dbCtx.getOfflineFileSize());\n \n search = dbSearch; \n }\n }\n catch ( DBException ex) {\n throw new FileNotFoundException();\n }\n\n // Return the search context\n\n return search;\n }",
"public Map<String, NewData> getSnapshotFiles (final List<String> files){\n \t\tMap<String,NewData> w = new HashMap<String,NewData>();\n \t\tList<String> l = new LinkedList<String>();\n \t\tString s=\"\";\n \t\t\n \t\tfor (String str : files){\n \t\t\tw.put(str, new NewData(str));\n \t\t\tl=this.readFile(this.getSnapshot().getRoot() + File.separatorChar +str);\n \t\t\t\n \t\t\tfor (String str2 : l)\n \t\t\t\ts=s+str2+\"\\n\";\n \t\t\t\n \t\t\tw.get(str).setFileContent(s);\n \t\t\tw.get(str).getLclock().putAll(this.getFilelist().get(str));\n \t\t}\n \t\t\t\t\n \t\treturn w;\n \t}",
"List<NewsFile> selectAll();",
"entities.Torrent.FileInfo getFiles(int index);",
"public List<GridFSDBFile> find(String filename) {\n\treturn find(filename, null);\n }",
"@Override\n public ChildrenTransferObject listByUriPrefix(CallingContext context, String uri, String marker, int depth, Long maximum, Long timeToLive) {\n\n ChildrenTransferObject cto = new ChildrenTransferObject();\n cto.setRemainder(new Long(0));\n Long count = 0L;\n Map<String, RaptureFolderInfo> children;\n\n Map<String, RaptureFolderInfo> pending = new HashMap<>();\n Map<String, RaptureFolderInfo> written = new HashMap<>();\n Map<String, RaptureFolderInfo> deleted = new HashMap<>();\n \n String locMarker = marker;\n Long locMax = maximum;\n Long locTTL = (timeToLive > 0) ? timeToLive : this.timeToLive;\n Boolean refresh = (marker == null); // if marker is null we have to\n\n /**\n * If there are more results than the defined maximum then store the remainder in the cache for quick access next time\n */\n \n // Do we already have a partial read? Ensure that the marker is still valid\n if (marker != null) {\n TypeReference<LinkedHashMap<String, RaptureFolderInfo>> typeRef = new TypeReference<LinkedHashMap<String, RaptureFolderInfo>>() {\n };\n String pendingContent = ephemeralRepo.getDocument(marker+PENDING);\n if (pendingContent != null)\n System.out.println(\"Found pending content for \"+marker+PENDING);\n String writtenContent = ephemeralRepo.getDocument(marker+WRITTEN);\n\n if ((pendingContent != null) && (writtenContent != null)) {\n pending = JacksonUtil.objectFromJson(pendingContent, typeRef);\n written = JacksonUtil.objectFromJson(writtenContent, typeRef);\n }\n \n ephemeralRepo.removeDocument(marker+WRITTEN, ContextFactory.getKernelUser().getUser(), \"Expired\");\n ephemeralRepo.removeDocument(marker+PENDING, ContextFactory.getKernelUser().getUser(), \"Expired\");\n synchronized(caches) {\n caches.remove(locMarker+PENDING);\n caches.remove(locMarker+WRITTEN);\n }\n }\n \n if (pending.size() == 0) refresh = true;\n\n // If the refresh flag is set then rescan the children\n if (refresh) {\n locMarker = IDGenerator.getUUID(20) + SEPARATOR + (System.currentTimeMillis() + locTTL);\n children = findByUri(context, uri, depth);\n if (!written.isEmpty()) {\n for (String child : ImmutableSet.copyOf(written.keySet())) {\n if (!children.containsKey(child)) deleted.put(child, written.remove(child));\n else children.remove(child);\n }\n }\n } else {\n children = pending;\n pending = new HashMap<>();\n }\n\n // We may have too many. Only want the first N results\n for (String s : ImmutableSet.copyOf(children.keySet())) {\n if (locMax-- > 0) written.put(s, children.get(s));\n else {\n pending.put(s, children.remove(s));\n count++;\n }\n }\n\n if ((marker != null) || (count > 0)) {\n ephemeralRepo.addDocument(locMarker+PENDING, JacksonUtil.jsonFromObject(pending), ContextFactory.getKernelUser().getUser(), \"Unread Data\", false);\n ephemeralRepo.addDocument(locMarker+WRITTEN, JacksonUtil.jsonFromObject(written), ContextFactory.getKernelUser().getUser(), \"Sent Data\", false);\n \n synchronized(caches) {\n caches.add(locMarker+PENDING);\n caches.add(locMarker+WRITTEN);\n }\n } else {\n locMarker = null;\n }\n \n cto.setRemainder(count);\n cto.setParentURI(uri);\n cto.setChildren(children);\n cto.setDeleted(deleted);\n cto.setIndexMark(locMarker);\n return cto;\n }",
"private MyClassInfo findClass(List<MyClassInfo> cl, long cursor) {\n\t\tfor (MyClassInfo c : cl) {\n\t\t\tif (cursor > c.getStartPosition() && cursor < c.getEndPosition()) {\n\t\t\t\tList<MyClassInfo> nodes = c.getClassNodes();\n\t\t\t\tMyClassInfo c2 = findClass(nodes, cursor);\n\t\t\t\tif (c2 != null) {\n\t\t\t\t\treturn c2;\n\t\t\t\t} else {\n\t\t\t\t\treturn c;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public int \r\nomStudent_dLastAuditDateTime( View mStudent,\r\n String InternalEntityStructure,\r\n String InternalAttribStructure,\r\n Integer GetOrSetFlag )\r\n{\r\n String szDate = null;\r\n //:VIEW mStudenC BASED ON LOD mStudenC \r\n zVIEW mStudenC = new zVIEW( );\r\n int RESULT = 0;\r\n int lTempInteger_0 = 0;\r\n int lTempInteger_1 = 0;\r\n int lTempInteger_2 = 0;\r\n\r\n\r\n //:CASE GetOrSetFlag\r\n switch( GetOrSetFlag )\r\n { \r\n //:OF zDERIVED_GET:\r\n case zDERIVED_GET :\r\n\r\n //:GET VIEW mStudenC NAMED \"mStudenC\"\r\n RESULT = GetViewByName( mStudenC, \"mStudenC\", mStudent, zLEVEL_TASK );\r\n //:IF RESULT >= 0\r\n if ( RESULT >= 0 )\r\n { \r\n\r\n //:SET CURSOR FIRST mStudenC.SavedDegreeAudit WITHIN mStudenC.Student\r\n RESULT = mStudenC.cursor( \"SavedDegreeAudit\" ).setFirst( \"Student\" ).toInt();\r\n\r\n //:// KJS 01/13/10 - There is an error when running degree audits (which will soon\r\n //:// be fixed where when the degree audit is run as an \"Auto Group\" the degree track is\r\n //:// not being created for the saveddegreeaudit. To get around this, we will first check\r\n //:// if the most recent run degree audit has no degree track. If not then use the\r\n //:// CreatedDateTime for this latest audit. If not then use the latest saved audit that\r\n //:// has the correct degree track.\r\n //:IF mStudenC.DegreeTrack EXISTS \r\n lTempInteger_0 = CheckExistenceOfEntity( mStudenC, \"DegreeTrack\" );\r\n if ( lTempInteger_0 == 0 )\r\n { \r\n //:SET CURSOR FIRST mStudenC.DegreeTrack WITHIN mStudenC.Student\r\n //: WHERE mStudenC.DegreeTrack.ID = mStudent.MajorDegreeTrack.ID\r\n {MutableInt mi_lTempInteger_1 = new MutableInt( lTempInteger_1 );\r\n GetIntegerFromAttribute( mi_lTempInteger_1, mStudent, \"MajorDegreeTrack\", \"ID\" );\r\n lTempInteger_1 = mi_lTempInteger_1.intValue( );}\r\n RESULT = mStudenC.cursor( \"DegreeTrack\" ).setFirst( \"ID\", lTempInteger_1, \"Student\" ).toInt();\r\n } \r\n\r\n //:END \r\n //: \r\n //: \r\n //:IF RESULT >= zCURSOR_SET\r\n if ( RESULT >= zCURSOR_SET )\r\n { \r\n //:szDate = mStudenC.SavedDegreeAudit.CreatedDateTime\r\n {MutableInt mi_lTempInteger_2 = new MutableInt( lTempInteger_2 );\r\n StringBuilder sb_szDate;\r\n if ( szDate == null )\r\n sb_szDate = new StringBuilder( 32 );\r\n else\r\n sb_szDate = new StringBuilder( szDate );\r\n GetVariableFromAttribute( sb_szDate, mi_lTempInteger_2, 'S', 101, mStudenC, \"SavedDegreeAudit\", \"CreatedDateTime\", \"\", 0 );\r\n //GetVariableFromAttribute( sb_szDate, mi_lTempInteger_2, 'S', 101, mStudenC, \"SavedDegreeAudit\", \"CreatedDateTime\", \"YYYYMMDDHHMMSSS\", 0 );\r\n lTempInteger_2 = mi_lTempInteger_2.intValue( );\r\n szDate = sb_szDate.toString( );}\r\n } \r\n TraceLineS( \"*** !!!dLastAuditDateTime *** \", szDate );\r\n\r\n //:END\r\n //:StoreStringInRecord ( mStudent,\r\n //: InternalEntityStructure, InternalAttribStructure, szDate )\r\n StoreStringInRecord( mStudent, InternalEntityStructure, InternalAttribStructure, szDate );\r\n } \r\n\r\n //:END\r\n break ;\r\n //: \r\n //: /* end zDERIVED_GET */\r\n //:OF zDERIVED_SET:\r\n case zDERIVED_SET :\r\n break ;\r\n } \r\n\r\n\r\n //: /* end zDERIVED_SET */\r\n //:END /* case */\r\n return( 0 );\r\n// END\r\n}",
"private File callNext() {\r\n \r\n while(fileIterator.hasNext()) {\r\n File temp = ((File) fileIterator.next());\r\n if(temp.getName().contains(searchPattern)) {\r\n \r\n return temp;\r\n }\r\n }\r\n return null;\r\n \r\n }",
"@Override\n public Date getLastModificationDate(String guid) {\n FileDescription fileDescription = getFileDescription(guid);\n return fileDescription.getLastModificationDate();\n }",
"entities.Torrent.FileInfo getFileInfo();",
"entities.Torrent.FileInfo getFileInfo();",
"@Override\n public void run() {\n DriveId parentId = getFolderID(file, googleAPI);\n\n // This returns the id of the file itself. We don't found to do that.\n// if (parentId != null)\n// parentId = getID(parentId, fileName, fileType, googleAPI);\n\n // Let the Callback handle a 'not found' file.\n// if (parentId == null) {\n// return;\n// }\n\n Filter filter = Filters.and(\n Filters.in(SearchableField.PARENTS, parentId)\n , Filters.eq(SearchableField.TRASHED, false)\n , Filters.eq(SearchableField.TITLE, fileName));\n\n // Create a query for a specific filename in Drive.\n final Query query = new Query.Builder()\n .addFilter(filter)\n .build();\n\n Drive.DriveApi.query(googleAPI, query)\n .setResultCallback(resultOfQuery);\n }",
"public ArrayList<Excursion> fetchEntries() {\n ArrayList<Excursion> entries = new ArrayList<Excursion>();\n\n Cursor cursor = db.query(ExcursionSQLiteHelper.TABLE_EXCURSIONS,\n allColumns,\n null,\n null,\n null,\n null,\n null);\n\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n Excursion mIL = cursorToExcursion(cursor);\n Log.d(TAG, \"get IL = \" + cursorToExcursion(cursor).toString());\n entries.add(mIL);\n cursor.moveToNext();\n }\n // Make sure to close the cursor\n cursor.close();\n return entries;\n }",
"void visitFile(StorageUnit unit, long off, long lim);",
"Object getClob(ResultSet rs, int pos)\r\n throws Exception;",
"public java.lang.String getCursor() {\n return cursor_;\n }",
"public Date getLastModified ()\n throws ContentObjectException \n {\n try\n {\n final String METHOD_NAME = \"getLastModified\";\n this.logDebug(METHOD_NAME + \": 1/2: Started\");\n this.ensureDbHelper();\n ResultSet resultSet =\n this.dbHelper.queryDatum(this.type, this.id, DbColumn.LAST_MODIFIED);\n if ( ! resultSet.next() )\n throw new SQLException\n (this.getIdentification() + \": \" + METHOD_NAME + \": Empty ResultSet\");\n Date lastModified = resultSet.getTimestamp(DbColumn.LAST_MODIFIED);\n this.logDebug(METHOD_NAME + \": 2/2: Done. lastModified = \" + lastModified);\n return lastModified;\n }\n catch (Exception exception)\n {\n throw new ContentObjectException(exception);\n }\n }",
"ds.hdfs.generated.FileMetadata getFiles(int index);"
]
| [
"0.5991246",
"0.5794781",
"0.5593675",
"0.5554237",
"0.5521201",
"0.5362047",
"0.52883637",
"0.5154795",
"0.5136413",
"0.5124804",
"0.49856737",
"0.49538445",
"0.49151725",
"0.4908675",
"0.48771912",
"0.48769677",
"0.4861241",
"0.48146483",
"0.4805397",
"0.48002845",
"0.47837466",
"0.47746715",
"0.47680926",
"0.4744036",
"0.4740233",
"0.47178164",
"0.47175688",
"0.4716027",
"0.4714679",
"0.47036427",
"0.4698359",
"0.4697393",
"0.46882573",
"0.4669309",
"0.466621",
"0.46506575",
"0.46476296",
"0.46448877",
"0.46350044",
"0.46264082",
"0.46188948",
"0.46166253",
"0.4609732",
"0.46093968",
"0.45518187",
"0.4549739",
"0.45497265",
"0.45439628",
"0.45435584",
"0.454284",
"0.4534953",
"0.45269692",
"0.4507524",
"0.45027724",
"0.44848818",
"0.44834813",
"0.44828278",
"0.44750336",
"0.44714838",
"0.44656277",
"0.44634688",
"0.4460651",
"0.44552088",
"0.44452724",
"0.44441316",
"0.44396257",
"0.44330958",
"0.442998",
"0.44274557",
"0.4424896",
"0.44198334",
"0.44183496",
"0.44030592",
"0.4398691",
"0.43910682",
"0.4371218",
"0.43676624",
"0.43661258",
"0.43613407",
"0.43565908",
"0.4354006",
"0.43531743",
"0.43513447",
"0.43479684",
"0.4347815",
"0.43467292",
"0.43354422",
"0.43353817",
"0.4332798",
"0.43322915",
"0.4330399",
"0.4328586",
"0.4328586",
"0.43255824",
"0.4324469",
"0.43220046",
"0.43216884",
"0.43158418",
"0.43004087",
"0.4300395"
]
| 0.6906055 | 0 |
baseService Created by Kaven Date: 2018/4/8 Desc: | public interface BaseService<T> extends IService<T> {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ServiceCompte() {\n\t\tsuper();\n\t}",
"@Override\n\t\tpublic String buildBasicService() {\n\t\t\treturn bulidService();\n\t\t}",
"Service(){\r\n\t\tserviceName =\"x\";\r\n\t\tserviceID = 0;\r\n\t\tserviceFee = 0.0;\r\n\t\tserviceDescrp = \"zztop\";\r\n\t}",
"public void service_INIT(){\n }",
"public interface ISystemUpdateHistoryService extends IBaseService<SystemUpdateHistory> {\n\n}",
"public void service() {\n\t}",
"public interface ProcesoVENService extends Service {\n\n\t/**\n\t * Ejecuta procedimiento generico\n\t * @param nombreExecute\n\t * @param criteria\n\t */\n\tpublic void executeGenerico(String nombreExecute, Map criteria) ;\n\t\n\t/**Actualiza calensarios\n\t * @param calendario\n\t * @param usuario\n\t */\n\tpublic void updateCalendario(Calendario calendario, Usuario usuario);\n\t\n\t/**devuelve lista de calendarios\n\t * @param criteria\n\t * @return\n\t */\n\tpublic List getCalendarios(Map criteria);\n\t\n\t/**\n\t * devuelve el calendario\n\t * @param criteria\n\t * @return\n\t */\n\tpublic Calendario getCalendario(Map criteria);\n\t\n /**\n * devuelve los feriados d euna zona\n * @param criteria\n * @return\n */\n public List getFeriadoZona(Map criteria);\n\t\n\t/**\n\t * Actualiza feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void updateFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * Inserta los feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void insertFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * elimina los feriados d euna zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void deleteFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\n\t/**\n\t * Metodo que trae las zonas de una region\n\t * @param feriadoRegion\n\t * @return\n\t */\n\tpublic List getZonasRegion(String feriadoRegion);\n\n\t/**\n\t * Retorna el indicador de habilitacion RUV\n\t * @param criteria\n\t * @return\n\t */\n\tpublic String getIndicadorHabilitacionRuv(Map criteria);\n\n\t/**\n\t * Genera la informacion para el reporte RUV\n\t * @param map\n\t */\n\tpublic void executeGeneracionReporteRUV(Map map);\n\t\n\t/**\n\t * Genera los archivos de libro de ventas - detalles SII\n\t * @param map\n\t */\n\tpublic void executeGenerarArchivosLibroVentasDetalleSII(Map map);\n\t\n}",
"public InitService() {\n super(\"InitService\");\n }",
"private void initService() {\r\n\t}",
"public mService() {\n super(\"fetchImageService\");\n }",
"public Service(){\n\t\t\n\t}",
"public abstract String getServiceName();",
"Fog_Services createFog_Services();",
"private FournisseurArboTraficService() {\r\n\t\tsuper();\r\n\t}",
"public RecordService() {\n super(\"RecordService\");\n }",
"public interface SysLogService extends CurdService<SysLog> {\n\n}",
"Service newService();",
"private static interface Service {}",
"public ServiceFactoryImpl() {\n\t\tsuper();\n\t}",
"public static String _service_create() throws Exception{\nreturn \"\";\n}",
"go.micro.runtime.RuntimeOuterClass.Service getService();",
"go.micro.runtime.RuntimeOuterClass.Service getService();",
"go.micro.runtime.RuntimeOuterClass.Service getService();",
"public interface SysTaskService extends BaseService<Sys_task> {\n\n}",
"public UpdateService() {\n super(\"UpdateService\");\n }",
"java.lang.String getService();",
"java.lang.String getService();",
"java.lang.String getService();",
"@Override\n\tpublic void onCreate() {\n\t\tLog.i(TAG, \"service on create\");\n\t\tsuper.onCreate();\n\t}",
"public CallService() {\n super(\"My\");\n }",
"public interface AlarmDataEnvService extends Service<AlarmDataEnv> {\n\n}",
"@Override\n public ServiceID getServiceID() {\n\treturn servID;\n }",
"public ServiceClient() {\n\t\tsuper();\n\t}",
"public interface BusDistributorService extends Services<BusDistributor,Long> {\r\n}",
"@Override\r\n\t\t\tpublic String doService(String param) {\n\t\t\t\treturn null;\r\n\t\t\t}",
"@Override\n\tprotected BaseService getService() {\n\t\treturn null;\n\t}",
"public interface TearcherInfoService extends Service<TearcherInfo> {\n\n}",
"public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }",
"public StartedService() {\n super(\"StartedService\");\n }",
"Service_Resource createService_Resource();",
"SourceBuilder createService();",
"public interface OfficialWebsiteHistoryService extends Service<OfficialWebsiteHistory> {\n\n}",
"public interface IFoodServiceInfoService extends IBaseService<ZlnfFoodServiceInfo, ZlnfFoodServiceInfoExample, Integer>{\n\n}",
"CdapService createCdapService();",
"public BrightTimeService() {\n super(\"BrightTimeService\");\n }",
"public interface SmartCultureFarmService extends Service<SmartCultureFarm> {\n\n}",
"public interface OpLogService extends BaseService<OpLog> {\n}",
"public interface IWxNotifyInfoService extends IBaseService<WxNotifyInfoModel> {\n\n}",
"protected abstract String getATiempoServiceName();",
"protected abstract String getAtiempoServiceNameEnReversa();",
"private Service() {}",
"public interface Service1 extends Service {\n}",
"public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }",
"@Override\r\n public void onCreate() {\r\n Log.d(TAG, \"on service create\");\r\n }",
"@Override\n\tpublic void loadService() {\n\t\t\n\t}",
"public AddFavouriteService() {\n super(\"AddFavouriteService\");\n }",
"public interface KioskLogService extends GenericService<KioskLog, Long> {\n\t\n}",
"@Override\n protected void reconfigureService() {\n }",
"public interface Service {\n // Service-specific methods go here\n }",
"private RecipleazBackendService() {\n }",
"public String getServiceName(){\n return serviceName;\n }",
"public InitService(String name) {\n super(\"InitService\");\n }",
"public java.lang.String getServiceName(){\n return localServiceName;\n }",
"@Override\n\t\tpublic void getService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"get service invoke on \" + system_id);\n\t\t}",
"public SunshineService(String name) {\n super(\"SunshineService\");\n\n }",
"@Override\n public void doService(AdaptrisMessage msg) throws ServiceException {\n String serviceKey = createServiceKey(msg);\n String nextServiceId = valueMatcher.getNextServiceId(serviceKey, getMetadataToServiceIdMappings());\n\n if (nextServiceId == null) {\n if (isEmpty(getDefaultServiceId())) {\n throw new ServiceException(\"no ServiceId configured against key [\" + serviceKey + \"] and no default ServiceId configured\");\n }\n nextServiceId = getDefaultServiceId();\n log.debug(\"Using default ServiceId : {}\", getDefaultServiceId());\n }\n msg.setNextServiceId(nextServiceId);\n // logging is in BranchingServiceCollection\n }",
"@Override\n\t\tpublic Service getService() {\n\t\t\treturn new Implementation1();\n\t\t}",
"CdapStartServiceStep createCdapStartServiceStep();",
"go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder getServiceOrBuilder();",
"go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder getServiceOrBuilder();",
"go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder getServiceOrBuilder();",
"public interface SloganService extends BaseService<Slogan> {\n}",
"public abstract String getServiceId() throws RcsServiceException;",
"@Override\n\tprotected void service(HttpServletRequest arg0, HttpServletResponse arg1)\n\t\t\tthrows ServletException, IOException {\n\t\tBaseServlet exeAc = bac.createAC(); \n\t\texeAc.ucache = bac.ucache;\n\t\texeAc.init(this.getServletConfig()); \n\t\t//扫描服务\n\t\t//KernelActivitor.fetchService2(exeAc); \n\t\tif(null == exeAc.gservice)\n\t\t\texeAc.gservice = UBaseService.getInstance();\n\t\texeAc.service(arg0, arg1);\n\t\t//c.setTime(new Date());\n\t\t//long endTime = c.getTimeInMillis();\n\t\t//log.debug(\"--处理总时长为:\"+(endTime-startTime)+\"毫秒\");\n\t}",
"public ServiceInfo() {\n }",
"private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"HISWebService\" +\r\n getUniqueSuffix());\r\n addAnonymousOperations();\r\n\r\n //creating the operations\r\n org.apache.axis2.description.AxisOperation __operation;\r\n\r\n _operations = new org.apache.axis2.description.AxisOperation[40];\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_XXBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[0] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"createCardPatInfo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[1] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getGhlb\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[2] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_XDTBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[3] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"updateZYYJJ\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[4] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"appNoList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[5] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getItemData\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[6] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"dOCHBList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[7] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"sapInterface\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[8] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_ZQGSZSYBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[9] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"msgInterface\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[10] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_YDBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[11] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getPeopleFeeStatus\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[12] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getDoctorDe\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[13] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getsfzy\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[14] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getDoctorList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[15] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getAdmByCardNo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[16] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"bankAddDeposit\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[17] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"accSearch\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[18] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getChargetariff\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[19] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_DTXYJCBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[20] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getBillDetailByAd\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[21] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_CTBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[22] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"iDCardCheck\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[23] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"dOCKSList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[24] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"patChargeList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[25] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"mainMethod\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[26] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"testDBStatus\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[27] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getBaseCardPrice\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[28] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"netTest\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[29] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_DTXDTBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[30] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"addDeposit\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[31] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"oPRegist\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[32] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"editInfo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[33] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"yPrint\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[34] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getAppNo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[35] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getItemDataPrint\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[36] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getXFList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[37] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getBillInfo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[38] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"autoOPBillCharge\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[39] = __operation;\r\n }",
"public String getService(){\n\t\t return service;\n\t}",
"public interface WarehousesHistoryService extends BaseService<WarehousesHistory, Integer> {\n}",
"public interface SeService extends PubService {\n\t/**\n\t * 查询项目日志列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeDayNote(Map<String,String> m , Page p);\n\tpublic DataTableBean querySeDayNote(DataTableBean dtb);\n\t/**\n\t * 保存项目日志\n\t * @param obj 项目日志对象\n\t */\n\tpublic void saveSeDayNote(SeDayNote obj) ;\n\t/**\n\t * 更新项目日志\n\t * @param obj 项目日志对象\n\t */\n\tpublic void updateSeDayNote(SeDayNote obj);\n\t/**\n\t * 根据主键查询项目日志对象\n\t * @param pk 主键\n\t */\n\tpublic SeDayNote querySeDayNoteById(java.lang.String pk);\n\t/**\n\t * 删除项目日志对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeDayNoteById(java.lang.String pk);\n\t/**\n\t * 批量删除项目日志对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeDayNoteByIds(String ids);\n\t\n\t/**\n\t * 查询矩阵属性列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeTraceKey(Map<String,String> m , Page p);\n\t/**\n\t * 用于ajax查找某个矩阵树功能\n\t * Method Description : ########\n\t * @param m\n\t * @param p\n\t * @return\n\t */\n\tpublic List traceFileter(String key);\n\t/**\n\t * 保存矩阵属性\n\t * @param obj 矩阵属性对象\n\t */\n\tpublic void saveSeTraceKey(SeTraceKey obj) ;\n\t/**\n\t * 更新矩阵属性\n\t * @param obj 矩阵属性对象\n\t */\n\tpublic void updateSeTraceKey(SeTraceKey obj);\n\t/**\n\t * 根据主键查询矩阵属性对象\n\t * @param pk 主键\n\t */\n\tpublic SeTraceKey querySeTraceKeyById(java.lang.String pk);\n\t/**\n\t * 删除矩阵属性对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeTraceKeyById(java.lang.String pk);\n\t/**\n\t * 批量删除矩阵属性对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeTraceKeyByIds(String ids);\n\t/**\n\t * 查询某矩阵下的属性集合\n\t * @param traceId 矩阵ID \n\t * @param proType 属性类型 CLOB:大文本 STRING:非大文本字段 ALL:全部\n\t * @return 矩阵属性集合\n\t */\n\tpublic List queryTracePros(String traceId,String proType);\n\t/**\n\t * 保存矩阵属性\n\t * @param traceId 矩阵ID\n\t * @param params 矩阵属性集合\n\t */\n\tpublic void saveTracePros(String traceId,List<Map<String,String>> params);\n\t/**\n\t * 根据矩阵ID与属性名称查询 矩阵属性对象\n\t * @param traceId 矩阵ID\n\t * @param key 属性名称\n\t * @return 矩阵属性对象\n\t */\n\tpublic SeTraceKey queryTraceKeyByTraceIdAndKey(String traceId,String key);\n\t/**\n\t * 根据矩阵ID与属性名称查询 矩阵属性值\n\t * @param traceId 矩阵ID\n\t * @param key 属性名称\n\t * @return 某矩阵的某属性值\n\t */\n\tpublic String queryTraceValueByTraceIdAndKey(String traceId,String key);\n\t/**\n\t * 根据矩阵ID与属性名称查询 矩阵属性值对象\n\t * @param traceId 矩阵ID\n\t * @param key 属性名称\n\t * @return 某矩阵的某属性值对象 \n\t */\n\tpublic Object queryTraceValueObjByTraceIdAndKey(String traceId,String key);\n\t/**\n\t * 拷贝矩阵属性\n\t * @param sourceTraceId 源矩阵ID\n\t * @param targetTraceId 目标矩阵ID\n\t */\n\tpublic void copyTracePro(String sourceTraceId,String targetTraceId);\n\t\n\t/**\n\t * 属性继承\n\t * @param traceId 矩阵ID\n\t * @param direction 继承方向 U:继承父节点 D:覆盖子孙节点\n\t */\n\tpublic void traceProExtend(String traceId,String direction);\n\t\n\t/**\n\t * 根据矩阵ID查询矩阵对象\n\t * @param nodeId 矩阵ID\n\t * @return 矩阵对象\n\t */\n\tpublic SeRequirementTrace queryNodeById(String nodeId);\n\t\n\t/**\n\t * 查询矩阵记事列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeTraceNote(Map<String,String> m , Page p);\n\t\n\t/**\n\t * 我的矩阵遗留备忘\n\t * Method Description : ########\n\t * @param dtb\n\t * @return\n\t */\n\tpublic DataTableBean queryMySeTraceNote(DataTableBean dtb);\n\t/**\n\t * 查询遗留备忘具体内容\n\t * Method Description : ########\n\t * @param noteId 遗留备忘ID\n\t * @return\n\t */\n\tpublic String queryContentOfTraceNote(String noteId);\n\t/**\n\t * 保存矩阵记事\n\t * @param obj 矩阵记事对象\n\t */\n\tpublic void saveSeTraceNote(SeTraceNote obj) ;\n\t/**\n\t * 保存(或落实保存) 遗留备忘\n\t * Method Description : ########\n\t * @param id 遗留备忘ID\n\t * @param content 描述\n\t * @param status 1:保存并落实 0:仅保存\n\t */\n\tpublic void saveSeTraceNoteContent(String id,String content,String status,String modifier) ;\n\t/**\n\t * 更新矩阵记事\n\t * @param obj 矩阵记事对象\n\t */\n\tpublic void updateSeTraceNote(SeTraceNote obj);\n\t/**\n\t * 根据主键查询矩阵记事对象\n\t * @param pk 主键\n\t */\n\tpublic SeTraceNote querySeTraceNoteById(java.lang.String pk);\n\t/**\n\t * 删除矩阵记事对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeTraceNoteById(java.lang.String pk);\n\t/**\n\t * 批量删除矩阵记事对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeTraceNoteByIds(String ids);\n\t/**\n\t * 查询项目风险列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeRisk(Map<String,String> m , Page p);\n\t/**\n\t * 保存项目风险\n\t * @param obj 项目风险对象\n\t */\n\tpublic void saveSeRisk(SeRisk obj) ;\n\t/**\n\t * 更新项目风险\n\t * @param obj 项目风险对象\n\t */\n\tpublic void updateSeRisk(SeRisk obj);\n\t/**\n\t * 根据主键查询项目风险对象\n\t * @param pk 主键\n\t */\n\tpublic SeRisk querySeRiskById(java.lang.String pk);\n\t/**\n\t * 删除项目风险对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeRiskById(java.lang.String pk);\n\t/**\n\t * 批量删除项目风险对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeRiskByIds(String ids);\n\t/**\n\t * 查询项目风险列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeUser(Map<String,String> m , Page p);\n\t/**\n\t * 查询系统用户(在岗)\n\t * @param projectId 系统ID\n\t * @return\n\t */\n\tpublic List queryProjectUser(String projectId);\n\t/**\n\t * 查询系统用户(全部)\n\t * @param projectId 系统ID\n\t * @return\n\t */\n\tpublic List queryProjectUserForAll(String projectId);\n\t/**\n\t * 保存项目风险\n\t * @param obj 项目风险对象\n\t */\n\tpublic void saveSeUser(SeUser obj) ;\n\t/**\n\t * 更新项目风险\n\t * @param obj 项目风险对象\n\t */\n\tpublic void updateSeUser(SeUser obj);\n\t/**\n\t * 验证用户名密码\n\t * @param userName 用户名\n\t * @param password 密码\n\t * @return 成功返回success 否则返回错误代码\n\t */\n\tpublic String validateUserAndPassword(String userName,String password);\n\t/**\n\t * 根据主键查询项目风险对象\n\t * @param pk 主键\n\t */\n\tpublic SeUser querySeUserById(java.lang.String pk);\n\t/**\n\t * 根据用户账号查询用户对象\n\t * @param pk 主键\n\t */\n\tpublic SeUser querySeUserByAccount(String account);\n\t/**\n\t * 删除项目风险对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeUserById(java.lang.String pk);\n\t/**\n\t * 批量删除项目风险对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeUserByIds(String ids);\n\t/**\n\t * 查询项目信息列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeProjectInfo(Map<String,String> m , Page p);\n\t\n\t/**\n\t * 获取项目信息选项\n\t * @return\n\t */\n\tpublic List querySeProjectOptions();\n\t/**\n\t * 保存项目信息\n\t * @param obj 项目信息对象\n\t */\n\tpublic void saveSeProjectInfo(SeProjectInfo obj) ;\n\t/**\n\t * 更新项目信息\n\t * @param obj 项目信息对象\n\t */\n\tpublic void updateSeProjectInfo(SeProjectInfo obj);\n\t/**\n\t * 根据主键查询项目信息对象\n\t * @param pk 主键\n\t */\n\tpublic SeProjectInfo querySeProjectInfoById(java.lang.String pk);\n\t/**\n\t * 删除项目信息对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeProjectInfoById(java.lang.String pk);\n\t/**\n\t * 批量删除项目信息对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeProjectInfoByIds(String ids);\n\t\n\t/**\n\t * 查询项目人员信息列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeMapProjectUser(Map<String,String> m , Page p);\n\t/**\n\t * 保存项目人员信息\n\t * @param obj 项目人员信息对象\n\t */\n\tpublic void saveSeMapProjectUser(SeMapProjectUser obj) ;\n\t/**\n\t * 更新项目人员信息\n\t * @param obj 项目人员信息对象\n\t */\n\tpublic void updateSeMapProjectUser(SeMapProjectUser obj);\n\t/**\n\t * 根据主键查询项目人员信息对象\n\t * @param pk 主键\n\t */\n\tpublic SeMapProjectUser querySeMapProjectUserById(java.lang.String pk);\n\t/**\n\t * 删除项目人员信息对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeMapProjectUserById(java.lang.String pk);\n\t/**\n\t * 批量删除项目人员信息对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeMapProjectUserByIds(String ids);\n\t\n\t/**\n\t * 查询项目日志\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List queryUserLogForEdit(Map<String,String> m,Page p );\n\t/**\n\t * 查询项目日志\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic DataGrid queryUserLog(Map<String,String> m,Page p );\n\t/**\n\t * 更新日志\n\t * @param log\n\t */\n\tpublic void updateUserLog(SePersonLog log);\n\t/**\n\t * 创建空白日志\n\t */\n\tpublic SePersonLog createBlankUserLog();\n\t/**\n\t * 删除用户日志对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSePersonLogById(java.lang.String pk);\n\t/**\n\t * 批量删除用户日志对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSePersonLogByIds(String ids);\n\t\n\t/**\n\t * 工作日志关联任务\n\t * @param logIds 日志ID 多个ID用\",\"隔开\n\t * @param taskId 任务ID\n\t * @return 成功返回SUCCESS 失败返回原因\n\t */\n\tpublic String linkTaskForLog(String logIds,String taskId);\n\t/**\n\t * 查询公共组件列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySePubModule(Map<String,String> m , Page p);\n\t/**\n\t * 保存公共组件\n\t * @param obj 公共组件对象\n\t */\n\tpublic void saveSePubModule(SePubModule obj) ;\n\t/**\n\t * 更新公共组件\n\t * @param obj 公共组件对象\n\t */\n\tpublic void updateSePubModule(SePubModule obj);\n\t/**\n\t * 根据主键查询公共组件对象\n\t * @param pk 主键\n\t */\n\tpublic SePubModule querySePubModuleById(java.lang.String pk);\n\t/**\n\t * 删除公共组件对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSePubModuleById(java.lang.String pk);\n\t/**\n\t * 批量删除公共组件对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSePubModuleByIds(String ids);\n\t/**\n\t * 查询待办任务列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeTraceTask(Map<String,String> m , Page p);\n\t\n\t/**\n\t * 保存待办任务\n\t * @param obj 待办任务对象\n\t */\n\tpublic void saveSeTraceTask(SeTraceTask obj) ;\n\t/**\n\t * 更新待办任务\n\t * @param obj 待办任务对象\n\t */\n\tpublic void updateSeTraceTask(SeTraceTask obj);\n\t/**\n\t * 用于ajax更新矩阵任务\n\t * Method Description : ########\n\t * @param id 任务ID\n\t * @param obj 更新的对象\n\t * @param nullProperties 置空的属性\n\t * @return 成功返回SUCCESS 否则返回错误原因\n\t */\n\tpublic String updateSeTraceTaskForAjax(String id,SeTraceTask obj, Object[] nullProperties);\n\t/**\n\t * 更新任务进度\n\t * Method Description : ########\n\t * @param taskId 任务ID\n\t * @param process 进度\n\t */\n\tpublic void updateProcessOfTraceTask(String taskId,Integer process);\n\t/**\n\t * 根据主键查询待办任务对象\n\t * @param pk 主键\n\t */\n\tpublic SeTraceTask querySeTraceTaskById(java.lang.String pk);\n\t/**\n\t * 删除待办任务对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeTraceTaskById(java.lang.String pk);\n\t/**\n\t * 批量删除待办任务对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeTraceTaskByIds(String ids);\n\t\n\t/**\n\t * 个人任务转日志\n\t * @param userIds 人员ID,多个人员用\",\"隔开\n\t * @param taskId 任务ID\n\t * @param date 日期\n\t * @param workLoad 时长(小时)\n\t */\n\tpublic void transformATaskToLog(String userIds,String taskId,String date,Float workLoad);\n\t\n\t/**\n\t * 查询人员奖惩记录列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeUserRewardAmerce(Map<String,String> m , Page p);\n\t/**\n\t * 保存人员奖惩记录\n\t * @param obj 人员奖惩记录对象\n\t */\n\tpublic void saveSeUserRewardAmerce(SeUserRewardAmerce obj) ;\n\t/**\n\t * 更新人员奖惩记录\n\t * @param obj 人员奖惩记录对象\n\t */\n\tpublic void updateSeUserRewardAmerce(SeUserRewardAmerce obj);\n\t/**\n\t * 根据主键查询人员奖惩记录对象\n\t * @param pk 主键\n\t */\n\tpublic SeUserRewardAmerce querySeUserRewardAmerceById(java.lang.String pk);\n\t/**\n\t * 删除人员奖惩记录对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeUserRewardAmerceById(java.lang.String pk);\n\t/**\n\t * 批量删除人员奖惩记录对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeUserRewardAmerceByIds(String ids);\n\t\n\t/**\n\t * 用户视图获取任务信息\n\t * @param m\n\t * @param p\n\t * @return\n\t */\n\tpublic List queryTaskListForUserView(Map<String,String> m , Page p);\n\t/**\n\t * 用户视图获取备忘信息\n\t * @param m\n\t * @param p\n\t * @return\n\t */\n\tpublic List queryNoteListForUserView(Map<String,String> m , Page p);\n\tpublic List queryLogListForUserView(Map<String,String> m , Page p);\n\t\n\t/**\n\t * 获取所有节点信息 用于ztree simple data\n\t * @param rootId 根节点ID\n\t * @return 所有节点列表\n\t */\n\tpublic List queryAllSeTrace(String rootId);\n\t\n\t\n\tpublic List seCountWorkLoadGetData(Map<String,String> m );\n\tpublic List seCountTaskGetData(Map<String,String> m );\n\tpublic List seCountTraceGetData(Map<String,String> m );\n\t\n\tpublic List seCountWorkLoadOfDay(Map<String,String> m);\n\t\n\tpublic DataTableBean seCountWorkLoadGetDataForBootstrap(DataTableBean dtb );\n\tpublic DataTableBean seCountTaskGetDataForBootstrap(DataTableBean dtb );\n\t\n\t\n\t\n\t\n\t/**\n\t * 查询矩阵缺陷列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeTraceDefect(Map<String,String> m , Page p);\n\t\n\tpublic DataTableBean queryMySeTraceDefect(DataTableBean dtb);\n\t/**\n\t * 保存矩阵缺陷\n\t * @param obj 矩阵缺陷对象\n\t */\n\tpublic void saveSeTraceDefect(SeTraceDefect obj) ;\n\t/**\n\t * 更新矩阵缺陷\n\t * @param obj 矩阵缺陷对象\n\t */\n\tpublic void updateSeTraceDefect(SeTraceDefect obj);\n\t/**\n\t * 根据主键查询矩阵缺陷对象\n\t * @param pk 主键\n\t */\n\tpublic SeTraceDefect querySeTraceDefectById(java.lang.String pk);\n\t/**\n\t * 删除矩阵缺陷对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeTraceDefectById(java.lang.String pk);\n\t/**\n\t * 批量删除矩阵缺陷对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeTraceDefectByIds(String ids);\n\t\n\t/**\n\t * 查询某缺陷的图片信息\n\t * Method Description : ########\n\t * @param defectId 缺陷ID\n\t * @return\n\t */\n\tpublic String queryContentOfTraceDefect(String defectId);\n\t/**\n\t * 更新缺陷状态\n\t * Method Description : ########\n\t * @param defectId 缺陷ID\n\t * @param status 状态\n\t * @param userId 操作用户\n\t * @param desc 描述\n\t */\n\tpublic void updateTraceDefectStatus(String defectId,String status,String userId,String desc);\n\t/**\n\t * 查询问题修改状态历史列表\n\t * Method Description : ########\n\t * @param defectId 缺陷ID\n\t * @return\n\t */\n\tpublic List queryTraceDefectStatusList(String defectId);\n\t\n\t/**\n\t * 查询矩阵缺陷列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeTraceDefectRepair(Map<String,String> m , Page p);\n\t/**\n\t * 保存矩阵缺陷\n\t * @param obj 矩阵缺陷对象\n\t */\n\tpublic void saveSeTraceDefectRepair(SeTraceDefectRepair obj) ;\n\t/**\n\t * 更新矩阵缺陷\n\t * @param obj 矩阵缺陷对象\n\t */\n\tpublic void updateSeTraceDefectRepair(SeTraceDefectRepair obj);\n\t/**\n\t * 根据主键查询矩阵缺陷对象\n\t * @param pk 主键\n\t */\n\tpublic SeTraceDefectRepair querySeTraceDefectRepairById(java.lang.String pk);\n\t/**\n\t * 删除矩阵缺陷对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeTraceDefectRepairById(java.lang.String pk);\n\t/**\n\t * 批量删除矩阵缺陷对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeTraceDefectRepairByIds(String ids);\n\t\n\t/**\n\t * 查询我的项目\n\t * @param userId 用户ID\n\t * @return\n\t */\n\tpublic List queryMyProject(String userId);\n\t/**\n\t * 给某个矩阵任务派工\n\t * @param traceTaskId 矩阵任务ID\n\t * @param userIds 人员ID 多个人员用\",\"隔开\n\t * @return\n\t */\n\tpublic String assignOperator(String traceTaskId,String userIds);\n\t/**\n\t * 查询系统角色列表(jsp管理界面使用)\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeRoleForList(Map<String,String> m , Page p);\n\t/**\n\t * 查询系统角色列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeRole(Map<String,String> m , Page p);\n\t/**\n\t * 保存系统角色\n\t * @param obj 系统角色对象\n\t */\n\tpublic void saveSeRole(SeRole obj) ;\n\t/**\n\t * 更新系统角色\n\t * @param obj 系统角色对象\n\t */\n\tpublic void updateSeRole(SeRole obj);\n\t/**\n\t * 根据主键查询系统角色对象\n\t * @param pk 主键\n\t */\n\tpublic SeRole querySeRoleById(java.lang.String pk);\n\t/**\n\t * 删除系统角色对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeRoleById(java.lang.String pk);\n\t/**\n\t * 批量删除系统角色对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeRoleByIds(String ids);\n\t\n\t/**\n\t * 查询用户系统/项目 角色\n\t * Method Description : ########\n\t * @param projectId 如果是null或空字符串则查询系统角色 否则查询项目角色\n\t * @param userId 用户ID\n\t * @return\n\t */\n\tpublic List queryUserRole(String projectId,String userId);\n\t/**\n\t * 保存用户角色\n\t * Method Description : ########\n\t * @param projectId 项目ID(有则是保存项目角色否则为系统角色)\n\t * @param userId 用户ID\n\t * @param roleCodes 角色CODE\n\t * @return 成功返回SUCCESS\n\t */\n\tpublic String saveUserRole(String projectId,String userId,String roleCodes);\n\t/**\n\t * \t获取登录用户信息\n\t * Method Description : ########\n\t * @param userAccount 用户账号\n\t * @return\n\t */\n\tpublic LoginUserInfo createLoginUserInfo(String userAccount);\n\t\n\t/**\n\t * 查询系统菜单列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeMenu(Map<String,String> m , Page p);\n\t/**\n\t * 保存系统菜单\n\t * @param obj 系统菜单对象\n\t * @param parentId 父节点ID,如果增加根节点请设置为空\n\t */\n\tpublic void saveSeMenu(SeMenu obj,String parentId) ;\n\t/**\n\t * 更新系统菜单\n\t * @param obj 系统菜单对象\n\t */\n\tpublic void updateSeMenu(SeMenu obj);\n\t/**\n\t * 根据主键查询系统菜单对象\n\t * @param pk 主键\n\t */\n\tpublic SeMenu querySeMenuById(java.lang.String pk);\n\t/**\n\t * 查询菜单列表-treegrid\n\t * Method Description : ########\n\t * @param m 查询条件\n\t * @param id 父节点ID(查询子节点用)\n\t * @param p 分页信息(只有第一级节点才使用) 当id参数有值的时候该参数无效\n\t * @return\n\t */\n\tpublic List querySeMenuForDataGrid(String id, Page p);\n\t/**\n\t * 查询菜单列表-ztree\n\t * Method Description : ########\n\t * @return\n\t */\n\tpublic List querySeMenuForZtree();\n\t/**\n\t * 根据MenuID查询树形代码\n\t * @param menuId 菜单ID\n\t * @return\n\t */\n\tpublic String queryTreeCodeById(String menuId);\n\t/**\n\t * 根据树形代码查询菜单\n\t * @param treeCode 树形代码\n\t * @return\n\t */\n\tpublic SeMenu querySeMenuByTreeCode(String treeCode);\n\t/**\n\t * 查询某节点的父节点\n\t * Method Description : ########\n\t * @param id 子节点ID\n\t * @return\n\t */\n\tpublic SeMenu querySeMenuOfParent(String id);\n\t/**\n\t * 删除系统菜单对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeMenuById(java.lang.String pk);\n\t/**\n\t * 批量删除系统菜单对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeMenuByIds(String ids);\n\t/**\n\t * 查询权限字典列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeAuth(Map<String,String> m , Page p);\n\t/**\n\t * 保存权限字典\n\t * @param obj 权限字典对象\n\t */\n\tpublic void saveSeAuth(SeAuth obj) ;\n\t/**\n\t * 更新权限字典\n\t * @param obj 权限字典对象\n\t */\n\tpublic void updateSeAuth(SeAuth obj);\n\t/**\n\t * 根据主键查询权限字典对象\n\t * @param pk 主键\n\t */\n\tpublic SeAuth querySeAuthById(java.lang.String pk);\n\t/**\n\t * 删除权限字典对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeAuthById(java.lang.String pk);\n\t/**\n\t * 批量删除权限字典对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeAuthByIds(String ids);\n\t/**\n\t * 查询某角色的权限\n\t * Method Description : ########\n\t * @param roleCode 角色Code\n\t * @return\n\t */\n\tpublic List queryAuthOfRole(String roleCode);\n\t/**\n\t * 查询某角色的菜单\n\t * Method Description : ########\n\t * @param roleCode 角色Code\n\t * @return\n\t */\n\tpublic List queryMenuOfRole(String roleCode);\n\t/**\n\t * 保存角色与权限关系\n\t * Method Description : ########\n\t * @param roleCode 角色CODE\n\t * @param authCodes 权限CODE 多个用\",\"隔开\n\t * @return\n\t */\n\tpublic String saveAuthOfRole(String roleCode,String authCodes);\n\t/**\n\t * 保存角色与菜单关系\n\t * Method Description : ########\n\t * @param roleCode 角色CODE\n\t * @param menuIds 菜单ID 多个用\",\"隔开\n\t * @return\n\t */\n\tpublic String saveMenuOfRole(String roleCode,String menuIds);\n\t/**\n\t * 某人在某项目中是否有某权限\n\t * Method Description : ########\n\t * @param userId 人员ID\n\t * @param projectId 项目ID\n\t * @param authCode 权限CODE\n\t * @return 有权限返回YES 无权限返回NO\n\t */\n\tpublic String hasAuth(String userId,String projectId,String authCode);\n\t/**\n\t * 某人在某项目中的权限\n\t * Method Description : ########\n\t * @param userId 人员ID\n\t * @param projectId 项目ID\n\t * @return Map<authCode,YES>\n\t */\n\tpublic Map<String,String> queryAuth(String userId,String projectId);\n\t/**\n\t * 查询某人的菜单\n\t * Method Description : ########\n\t * @param userId 用户\n\t * @param parentCode 父节点CODE,例如查询第一级目录则为root\n\t * @param level 菜单等级 如果是查询全部子菜单则为null即可\n\t * @param onlyLeaf 是否只查询叶子节点 1:是 其他值:否\n\t * @return\n\t */\n\tpublic List<MenuBean> queryMenuOfUser(String userId,String parentCode , Integer level,String onlyLeaf);\n\t/**\n\t * 查询用户权限\n\t * Method Description : ########\n\t * @param userId 用户ID\n\t * @return\n\t */\n\tpublic List queryAuthOfUser(String userId);\n\t/**\n\t * 查询用户菜单\n\t * Method Description : ########\n\t * @param userId 用户ID\n\t * @return\n\t */\n\tpublic List queryMenuOfUser(String userId);\n\t/**\n\t * 查询会议列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeMeeting(Map<String,String> m , Page p);\n\t/**\n\t * 查询会议列表\n\t * @param dtb DataTableBean 查询条件及分页信息及返回数据\n\t * @return\n\t */\n\tpublic DataTableBean querySeMeetingForBootstrap(DataTableBean dtb);\n\t\n\t/**\n\t * 查询风险列表\n\t * @param dtb DataTableBean 查询条件及分页信息及返回数据\n\t * @return\n\t */\n\tpublic DataTableBean querySeRiskForBootstrap(DataTableBean dtb);\n\t\n\t/**\n\t * 查询公共模块列表\n\t * @param dtb DataTableBean 查询条件及分页信息及返回数据\n\t * @return\n\t */\n\tpublic DataTableBean querySePubModuleForBootstrap(DataTableBean dtb);\n\t\n\t/**\n\t * 保存会议\n\t * @param obj 会议对象\n\t */\n\tpublic void saveSeMeeting(SeMeeting obj) ;\n\t/**\n\t * 更新会议\n\t * @param obj 会议对象\n\t */\n\tpublic void updateSeMeeting(SeMeeting obj);\n\t/**\n\t * 根据主键查询会议对象\n\t * @param pk 主键\n\t */\n\tpublic SeMeeting querySeMeetingById(java.lang.String pk);\n\t/**\n\t * 删除会议对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeMeetingById(java.lang.String pk);\n\t/**\n\t * 批量删除会议对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeMeetingByIds(String ids);\n\t\n\t/**\n\t * 查询会议记录列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeMeetingRecord(Map<String,String> m , Page p);\n\t/**\n\t * 保存会议记录\n\t * @param obj 会议记录对象\n\t */\n\tpublic void saveSeMeetingRecord(SeMeetingRecord obj) ;\n\t/**\n\t * 更新会议记录\n\t * @param obj 会议记录对象\n\t */\n\tpublic void updateSeMeetingRecord(SeMeetingRecord obj);\n\t/**\n\t * 根据主键查询会议记录对象\n\t * @param pk 主键\n\t */\n\tpublic SeMeetingRecord querySeMeetingRecordById(java.lang.String pk);\n\t/**\n\t * 删除会议记录对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeMeetingRecordById(java.lang.String pk);\n\t/**\n\t * 批量删除会议记录对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeMeetingRecordByIds(String ids);\n\t/**\n\t * 查询会议要点\n\t * Method Description : ########\n\t * @param meetingCode 会议CODE\n\t * @param classify 条目分类\n\t * @return\n\t */\n\tpublic DataTableBean querySeMeetingRecordForMetting(String meetingCode,String classify);\n\t/**\n\t * 查询项目文档列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeProjectDoc(Map<String,String> m , Page p);\n\t/**\n\t * 保存项目文档\n\t * @param obj 项目文档对象\n\t */\n\tpublic void saveSeProjectDoc(SeProjectDoc obj) ;\n\t/**\n\t * 更新项目文档\n\t * @param obj 项目文档对象\n\t */\n\tpublic void updateSeProjectDoc(SeProjectDoc obj);\n\t/**\n\t * 根据主键查询项目文档对象\n\t * @param pk 主键\n\t */\n\tpublic SeProjectDoc querySeProjectDocById(java.lang.String pk);\n\t/**\n\t * 删除项目文档对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeProjectDocById(java.lang.String pk);\n\t/**\n\t * 根据附件Id删除文档\n\t * Method Description : ########\n\t * @param attachId 附件ID\n\t */\n\tpublic void deleteSeProjectDocByAttachId(java.lang.String attachId);\n\t/**\n\t * 批量删除项目文档对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeProjectDocByIds(String ids);\n\t\n\t/** 查询个人天计划列表\n\t * @param m 查询条件\n\t * @param p 分页信息\n\t * @return\n\t */\n\tpublic List querySeDayPlan(Map<String,String> m , Page p);\n\t/**\n\t * 保存个人天计划\n\t * @param obj 个人天计划对象\n\t */\n\tpublic void saveSeDayPlan(SeDayPlan obj) ;\n\t/**\n\t * 更新个人天计划\n\t * @param obj 个人天计划对象\n\t */\n\tpublic void updateSeDayPlan(SeDayPlan obj);\n\t/**\n\t * 根据主键查询个人天计划对象\n\t * @param pk 主键\n\t */\n\tpublic SeDayPlan querySeDayPlanById(java.lang.String pk);\n\t/**\n\t * 删除个人天计划对象\n\t * @param pk 主键\n\t */\n\tpublic void deleteSeDayPlanById(java.lang.String pk);\n\t/**\n\t * 批量删除个人天计划对象\n\t * @param ids 主键,多个主键用\",\"隔开\n\t */\n\tpublic void deleteSeDayPlanByIds(String ids);\n\t/**\n\t * 查询天计划-portal\n\t * @param dtb \n\t */\n\tpublic DataTableBean queryDayPlanForIndexPlugin(DataTableBean dtb);\n\t/**\n\t * 快速保存天计划条目\n\t * Method Description : ########\n\t * @param planContent 计划内容\n\t * @param userId 用户ID\n\t * @return 条目ID\n\t */\n\tpublic String saveSimpleSeDayPlan(String dayPlanId,String planContent,String userId);\n\t\n}",
"@Override\n public void modifiedService(ServiceReference<ManagedService> reference, ManagedService service) {\n }",
"private ServiceGenerator() {\n }",
"public BudgetAccountServiceImpl() {\r\n\t}",
"public interface BaseService {\n\n\n //网络测试\n @Headers({DOMAIN_NAME_HEADER + JAVA_DOMAIN_TEST})\n @GET(Api.BASE_URL)\n Observable<JavaResponse> testNetSetting(@QueryMap Map<String, Object> params);\n\n //登录\n @Headers({DOMAIN_NAME_HEADER + JAVA_DOMAIN_TEST})\n @GET(Api.BASE_URL)\n Observable<JavaResponse<UserBean>> login(@QueryMap Map<String, Object> params);\n\n //产品表基础数据下载\n @Headers({DOMAIN_NAME_HEADER + JAVA_DOMAIN_TEST})\n @GET(Api.BASE_URL)\n Observable<JavaResponse<List<ProductEntity>>> downProduct(@QueryMap Map<String, Object> params);\n\n //库房表基础数据下载\n @Headers({DOMAIN_NAME_HEADER + JAVA_DOMAIN_TEST})\n @GET(Api.BASE_URL)\n Observable<JavaResponse<List<StorageRoomEntity>>> downStorageRoom(@QueryMap Map<String, Object> params);\n\n //经销商表基础数据下载\n @Headers({DOMAIN_NAME_HEADER + JAVA_DOMAIN_TEST})\n @GET(Api.BASE_URL)\n Observable<JavaResponse<List<DistributorEntity>>> downDistributor(@QueryMap Map<String, Object> params);\n\n //单据转换表基础数据下载\n @Headers({DOMAIN_NAME_HEADER + JAVA_DOMAIN_TEST})\n @GET(Api.BASE_URL)\n Observable<JavaResponse<List<BillRuleEntity>>> downBillRule(@QueryMap Map<String, Object> params);\n\n //单据转换表基础数据下载\n @Headers({DOMAIN_NAME_HEADER + JAVA_DOMAIN_TEST})\n @GET(Api.BASE_URL)\n Observable<JavaResponse<List<AffairEntity>>> downAffair(@QueryMap Map<String, Object> params);\n}",
"public void setServiceName(String serviceName){\n this.serviceName = serviceName;\n }",
"@Override\n\tpublic Service upstreamServiceInit() {\n\t\treturn null;\n\t}",
"private GeneralServicesImpl() {\r\n\t}",
"public interface ControllcurveService extends Service<Controllcurve> {\n\n}",
"public interface PaTaskItemPointViewService extends Service<PaTaskItemPointView> {\n\n}",
"private RepositorioOrdemServicoHBM() {\n\n\t}",
"public interface SuperviseMatterService extends Serializable, Tools {\n\n /**\n * 同意督办回复\n *\n * @param token\n * @param superviseMatterId\n * @return\n */\n Object approvalSuperviseMatter(String token, String superviseMatterId);\n\n /**\n * 回复督办事项\n *\n * @param token\n * @param variables\n * @return\n */\n Object replySuperviseMatter(String token, Map variables);\n\n /**\n * 选择反馈方式\n *\n * @param feedbackMode\n * @param token\n * @return\n */\n Object choiceFeedbackMode(String superviseMatterId, Integer feedbackMode, String token);\n\n /**\n * 确认督办\n *\n * @param token\n * @param variables\n * @return\n */\n Object confirm(String token, Map variables);\n\n /**\n * 获取督办事项详情\n *\n * @param token\n * @param superviseMatterId\n * @return\n */\n Object getSuperviseMatter(String token, String superviseMatterId);\n\n /**\n * 督办事项列表\n *\n * @param token\n * @param page\n * @param number\n * @return\n */\n Object listSuperviseMatter(String token, String action, Boolean value, int page, int number);\n\n /**\n * 获取督办事件 表单\n *\n * @param token\n * @return\n */\n Object getSuperviseMatterFromData(String token);\n\n /**\n * 上报督办事件\n *\n * @param token\n * @param taskForm\n * @return\n */\n Object saveSuperviseMatter(String token, Map taskForm);\n\n /**\n * 读取文件信息\n *\n * @param file\n * @return\n */\n default StringBuffer getFormData(File file) {\n BufferedReader bufferedReader = null;\n StringBuffer stringBuffer = new StringBuffer();\n try {\n bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(file), \"utf-8\"));\n String line = null;\n while (null != (line = bufferedReader.readLine())) {\n stringBuffer.append(line);\n }\n } catch (Exception exception) {\n exception.printStackTrace();\n } finally {\n if (null != bufferedReader) {\n try {\n bufferedReader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return stringBuffer;\n }\n }\n}",
"public XCRI_CAPRestService() {\n }",
"@Override\n\tpublic void start() throws ServiceException\n\t{\n\t\t\n\t}",
"public interface SysPluginService extends BaseService<Sys_plugin> {\n}",
"public interface BranchService extends Service<Branch, Long> {\n}",
"protected abstract ServiceRegistry getNewServiceRegistry();",
"public InfoTransferService(String name) {\n super(name);\n }",
"CdapServiceInstance createCdapServiceInstance();",
"protected abstract ServiceObjectType getServiceObjectType();",
"public interface PanSequenceService extends BaseService<PanSequence> {\n}",
"private WebServicesFabrica(){}",
"@Override\n public String getName() {\n return \"LibVirt Service Factory\";\n }"
]
| [
"0.7065707",
"0.70271564",
"0.6938156",
"0.67664325",
"0.669646",
"0.6696009",
"0.65916246",
"0.65631884",
"0.6523322",
"0.65119475",
"0.65093714",
"0.6501267",
"0.6488179",
"0.64590496",
"0.6457741",
"0.64560765",
"0.6455531",
"0.6442479",
"0.64398724",
"0.6407424",
"0.6394646",
"0.6394646",
"0.6394646",
"0.6376139",
"0.63724035",
"0.6370847",
"0.6370847",
"0.6370847",
"0.6369504",
"0.6347629",
"0.63181794",
"0.6308498",
"0.6299006",
"0.6286313",
"0.6286184",
"0.6278315",
"0.627172",
"0.6266364",
"0.62620825",
"0.62595445",
"0.625588",
"0.6243921",
"0.6235887",
"0.62302744",
"0.6228581",
"0.62151265",
"0.6211033",
"0.6204769",
"0.61942375",
"0.61814374",
"0.61787575",
"0.6178444",
"0.6178294",
"0.6176926",
"0.6176821",
"0.6168164",
"0.61616415",
"0.6159995",
"0.6148317",
"0.6146239",
"0.6133622",
"0.6133234",
"0.61150545",
"0.6109863",
"0.6098216",
"0.60740113",
"0.6067169",
"0.6062338",
"0.6060075",
"0.6060075",
"0.6060075",
"0.60547024",
"0.6049728",
"0.6049455",
"0.60453945",
"0.60410994",
"0.603431",
"0.6032082",
"0.6021778",
"0.6016609",
"0.6016146",
"0.6015277",
"0.6015204",
"0.6007876",
"0.6004403",
"0.6004355",
"0.600184",
"0.5998895",
"0.59972835",
"0.5996903",
"0.5984867",
"0.59839755",
"0.5977808",
"0.59778076",
"0.59770596",
"0.59691435",
"0.5966443",
"0.59645665",
"0.59612364",
"0.5960507",
"0.59543496"
]
| 0.0 | -1 |
Read file from disk | private void sendFile(String fileName) throws IOException {
// Read file from disk
//
fileReader = new MyFileReader();
byte[] data = fileReader.readFile(fileName);
//
// Send binary data over the TCP/IP socket connection
//
for (byte i : data) {
this.socket.getOutputStream().write(i);
}
System.out.println("\r\nSent " + data.length + " bytes to server.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void fileRead(String path)\n\t{\n\t\ttry\n\t\t{\n\t\t\t// create file\n\t\t\tFile file = new File(path);\n\t\t\tFileInputStream fileStream = new FileInputStream(file);\n\t\t\t\n\t\t\t// data read\n\t\t\tthis.dataContent = new byte[(int)file.length()];\n\t\t\tint ret = fileStream.read(this.dataContent, 0, (int)file.length());\n\t\t}\n\t\tcatch(FileNotFoundException e)\n\t\t{\n\t\t\tSystem.out.println(\"File Not Found : \" + e.getMessage());\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tSystem.out.println(\"Failed File Read : \" + e.getMessage());\n\t\t}\n\t\t\n\t}",
"@Override\n public Ini read(Path path) throws IOException {\n try (Reader reader = Files.newBufferedReader(path)) {\n return read(reader);\n }\n }",
"public void fileRead(String filename) throws IOException;",
"public FilesInputStreamLoad readFile() throws ArcException {\r\n\tFile dir = new File(this.archiveChargement + \".dir\");\r\n\tString fileName = ManipString.substringAfterFirst(this.idSource, \"_\");\r\n\tFile toRead = new File(dir + File.separator + ManipString.redoEntryName(fileName));\r\n\tFilesInputStreamLoad filesInputStreamLoadReturned = null;\r\n\ttry {\r\n\t\tfilesInputStreamLoadReturned = new FilesInputStreamLoad (toRead);\r\n\t} catch (IOException ioReadException) {\r\n\t\tthrow new ArcException(ioReadException, ArcExceptionMessage.FILE_READ_FAILED, toRead);\r\n\t}\r\n\treturn filesInputStreamLoadReturned;\r\n }",
"public void readFromFile() {\n\n\t}",
"public String readFromFile() throws IOException {\n return br.readLine();\n }",
"protected abstract InputStream getFile(final String path);",
"String readText(FsPath path);",
"public String ReadFile() throws IOException {\n File file = context.getFilesDir();\n File textfile = new File(file + \"/\" + this.fileName);\n\n FileInputStream input = context.openFileInput(this.fileName);\n byte[] buffer = new byte[(int)textfile.length()];\n\n input.read(buffer);\n\n return new String(buffer);\n }",
"private static String readFile(String path) throws IOException {\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(new File(path)))) {\n\t\t\tStringBuilder input = new StringBuilder();\n\t\t\tString tmp; while ((tmp = br.readLine()) != null) input.append(tmp+\"\\n\");\n\t\t\treturn input.toString();\n\t\t}\n\t}",
"public InputStream readFile( String fileName, FileType type );",
"public String read(String filePath) throws IOException {\r\n\t\t//read file into stream\r\n\t\t\treturn new String(Files.readAllBytes(Paths.get(filePath)));\r\n\t}",
"public void readFile();",
"private Object getFile(String path) throws Exception {\t\t\t\n\t\t \n\t\t FileInputStream fileIn = new FileInputStream(path);\n ObjectInputStream objectIn = new ObjectInputStream(fileIn);\n\n Object obj = objectIn.readObject();\n objectIn.close();\n \n return obj;\t\t\n\t}",
"@Nullable\n public String readFile(String fileName) throws IOException {\n ObjectId objectId = findFile(fileName);\n if (objectId == null) {\n return null;\n }\n\n ObjectLoader obj = reader.open(objectId, Constants.OBJ_BLOB);\n byte[] raw = obj.getCachedBytes(Integer.MAX_VALUE);\n\n if (raw.length == 0) {\n return null;\n }\n return RawParseUtils.decode(raw);\n }",
"FileObject getFile();",
"FileObject getFile();",
"List readFile(String pathToFile);",
"public static String readFile() {\n\t\tFileReader file;\n\t\tString textFile = \"\";\n\n\t\ttry {\n\t\t\tfile = new FileReader(path);\n\n\t\t\t// Output string.\n\t\t\ttextFile = new String();\n\n\t\t\tBufferedReader bfr = new BufferedReader(file);\n\n\t\t\ttextFile= bfr.readLine();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error reading the file\");\n\t\t}\n\t\treturn textFile;\n\n\t}",
"public static String randomAccessRead() {\n String s = \"\";\n try {\n RandomAccessFile f = new RandomAccessFile(FILES_TEST_PATH, \"r\");\n f.skipBytes(14);\n s = f.readLine();\n f.close();\n } catch(Exception e) {\n e.printStackTrace();\n }\n return s;\n }",
"static String readFile(String path) throws IOException{\n\t\tFileInputStream fs = new FileInputStream(path);\n\t\tStringBuffer sb = new StringBuffer();\n\t\t// read a file\n\t\tint singleByte = fs.read(); // read singleByte\n\t\twhile(singleByte!=-1){\n\t\t\tsb.append((char)singleByte);\n\t\t\t///System.out.print((char)singleByte);\n\t\t\tsingleByte = fs.read();\n\t\t}\n\t\tfs.close(); // close the file\n\t\treturn sb.toString();\n\t}",
"@Override\n public InputStream readFileInternal(String _fileName) throws IOException\n { // Reads a file from the devices internal storage. Takes a filename as a parameter and throws an IOException if failed.\n return context.openFileInput(_fileName);\n }",
"protected abstract void readFile();",
"public String readFromFile(String path) {\n BufferedReader br = null;\n String returnString =\"\";\n try {\n String sCurrentLine;\n br = new BufferedReader(new FileReader(path));\n while ((sCurrentLine = br.readLine()) != null) {\n returnString+=sCurrentLine;\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (br != null)br.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n return returnString;\n }",
"protected abstract Object readFile(BufferedReader buf) throws IOException, FileParseException;",
"protected String openReadFile(Path filePath) throws IOException{\n\t\tString line;\n\t\tStringBuilder sb = new StringBuilder();\n\t\t// Read the document\n\t\tBufferedReader reader = Files.newBufferedReader(filePath, ENCODING);\n\t\t// Append each line in the document to our string\n\t\twhile ((line = reader.readLine()) != null) {\n\t\t\tsb.append(line);\n\t\t\tsb.append(\"\\n\"); // readLine discards new-row characters, re-append them.\n\t\t}\n\t\tif(sb.length() != 0){\n\t\t\tsb.deleteCharAt(sb.length()-1); // However last line doesn't contain one, remove it.\n\t\t}\n\t\treader.close();\n\t\treturn new String(sb.toString());\n\t}",
"public static String readFile(String path) throws IOException {\n BufferedReader reader = new BufferedReader(new FileReader(path));\n\n String line;\n StringBuilder builder = new StringBuilder();\n\n while ((line = reader.readLine()) != null) {\n builder.append(line);\n }\n\n return builder.toString();\n }",
"private static BufferedReader getFileContents(String path) throws FileNotFoundException{\n\t\tFile file = new File(path);\n\t\treturn new BufferedReader(new FileReader(file));\t\n\t}",
"public static void reading(String fileName)\n {\n\n }",
"@Override\n public Ini read(File file) throws IOException {\n try ( Reader reader = new FileReader(file)) {\n return read(reader);\n }\n }",
"public String readFile(){\r\n StringBuffer str = new StringBuffer(); //StringBuffer is a mutable string\r\n Charset charset = Charset.forName(\"UTF-8\"); //UTF-8 character encoding\r\n Path file = Paths.get(filename + \".txt\");\r\n try (BufferedReader reader = Files.newBufferedReader(file, charset)) { // Buffer: a memory area that buffered streams read\r\n String line = null;\r\n while ((line = reader.readLine()) != null) { //Readers and writers are on top of streams and converts bytes to characters and back, using a character encoding\r\n str.append(line + \"\\n\");\r\n }\r\n }\r\n catch (IOException x) {\r\n System.err.format(\"IOException: %s%n\", x);\r\n }\r\n return str.toString();\r\n }",
"public void read() throws IOException {\n\t\tString path = \"/Users/amit/Documents/songs/A.mp3\";\n\t\tFile file = new File(path);\n\t\tfinal int EOF = -1;\n\t\t\n\t\tif(file.exists()) {\n\t\t\tSystem.out.println(\"Exist...\");\n\t\tFileInputStream fs = new FileInputStream(path);\n\t\tBufferedInputStream bs = new BufferedInputStream(fs);\n\t\tlong startTime = System.currentTimeMillis();\n\t\tint singleByte = bs.read(); // read single byte\n\t\twhile(singleByte!=EOF) {\n\t\t\t//System.out.print((char)singleByte);\n\t\t\t singleByte = bs.read();\n\t\t}\n\t\tlong endTime = System.currentTimeMillis();\n\t\tSystem.out.println(\"Total Time Taken \"+(endTime-startTime)+\"ms\");\n\t\tbs.close();\n\t\tfs.close();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"File Not Exist\");\n\t\t}\n\t\t\n\t}",
"public abstract void readFromFile( ) throws Exception;",
"InputStream getInputStream() throws FileSystemException;",
"public String readFile(){\n\t\tString res = \"\";\n\t\t\n\t\tFile log = new File(filePath);\n\t\tBufferedReader bf = null;\n\t\t\n\t\ttry{\n\t\t\tbf = new BufferedReader(new FileReader(log));\n\t\t\tString line = bf.readLine();\n\t\t\n\t\t\n\t\t\twhile (line != null){\n\t\t\t\tres += line+\"\\n\";\n\t\t\t\tline = bf.readLine();\n\t\t\t}\n\t\t\n\t\t\treturn res;\n\t\t}\n\t\tcatch(Exception oops){\n\t\t\tSystem.err.println(\"There was an error reading the file \"+oops.getStackTrace());\n\t\t\treturn \"\";\n\t\t}\n\t\tfinally{\n\t\t\ttry {\n\t\t\t\tbf.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"There was an error closing the read Buffer \"+e.getStackTrace());\n\t\t\t}\n\t\t}\n\t}",
"private String[] readFile(String path) throws StorageException {\r\n try {\r\n return readFile(new BufferedReader(new FileReader(new File(path))));\r\n } catch (Exception exception) {\r\n throw new StorageException(\"Cannot read file \" + path + \":\" + exception.getMessage());\r\n }\r\n }",
"private void read() {\n\n\t\t\t\tString road=getActivity().getFilesDir().getAbsolutePath()+\"product\"+\".txt\";\n\n\t\t\t\ttry {\n\t\t\t\t\tFile file = new File(road); \n\t\t\t\t\tFileInputStream fis = new FileInputStream(file); \n\t\t\t\t\tint length = fis.available(); \n\t\t\t\t\tbyte [] buffer = new byte[length]; \n\t\t\t\t\tfis.read(buffer); \n\t\t\t\t\tString res1 = EncodingUtils.getString(buffer, \"UTF-8\"); \n\t\t\t\t\tfis.close(); \n\t\t\t\t\tjson(res1.toString());\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}",
"public static void readMyFile() throws IOException {\n\n List<String> allLines = Files.readAllLines(Paths.get(\"src/ErfansInputFile\"));\n System.out.println(\"allLines = \" + allLines);\n System.out.println(\"Reading the file in my computer. \");\n\n throw new FileNotFoundException(\"Kaboom, file is not found!!!\");\n }",
"public void read_file(String filename)\n {\n out.println(\"READ\");\n out.println(filename);\n try\n {\n String content = null;\n content = in.readLine();\n System.out.println(\"READ content : \"+content);\n }\n catch (IOException e) \n {\n \tSystem.out.println(\"Read failed\");\n \tSystem.exit(-1);\n }\n }",
"public byte[] readfile(int pos) throws IOException\n {\n byte[] bytes = new byte[1024];\n f.seek(1024*pos);\n f.read(bytes);\n return bytes;\n }",
"static String readFile(String path, Charset encoding) throws IOException {\n\t\tbyte[] encoded = Files.readAllBytes(Paths.get(path));\n\t\treturn encoding.decode(ByteBuffer.wrap(encoded)).toString();\n\t}",
"File getFile();",
"File getFile();",
"public Vector<String> read(String path) throws FileNotFoundException, IOException {\n file = new File(path);\n fread = new FileReader(file);\n buf = new BufferedReader(fread);\n\n String temp;\n Vector<String> working = new Vector<String>();\n\n while (true) {\n temp = buf.readLine();\n\n if (temp == null) {\n break;\n } else {\n working.add(temp);\n }\n }\n\n return working;\n }",
"abstract public InputStream retrieveContent( String path )\r\n throws Exception;",
"private static ByteBuffer internalReadFileAsByteArray(String path) throws IOException {\n ByteBuffer byteBuffer = null;\n Path filePath = FileSystems.getDefault().getPath(path);\n try (\n FileChannel fileChannel = FileChannel.open(filePath, StandardOpenOption.READ);) {\n Long size = fileChannel.size();\n if (size > Integer.MAX_VALUE) {\n throw new IOException(MessageFormat.format(\n \"File {0} is too large. Its size is {1,number,integer} bytes which is larger \" +\n \"then this method could handle ( {2,number,integer})\", path, size, Integer.MAX_VALUE));\n }\n byteBuffer = ByteBuffer.allocate(size.intValue());\n int readBytes = 0;\n int totalReadBytes = 0;\n int failureCounter = 0;\n while ((readBytes = fileChannel.read(byteBuffer)) >= 0 && totalReadBytes < size.intValue()) {\n if (readBytes > 0) {\n totalReadBytes += readBytes;\n if (failureCounter > 0) {\n failureCounter = 0;\n }\n } else {\n if (++failureCounter >= MAX_READ_FAILURES) {\n throw new IOException(MessageFormat.format(\"File {0} could not be read for unknown reason\", path));\n }\n }\n }\n }\n return (ByteBuffer) byteBuffer.flip();\n }",
"private void openAndReadFile() throws IOException {\n\t\tFileReader fr = new FileReader(path);\n\t\tBufferedReader textreader = new BufferedReader(fr);\n\t\tString line;\n\t\tString[] parsedLine;\n\t\twhile ((line = textreader.readLine()) != null) {\n\t\t\tparsedLine = pattern.split(line);\n\t\t\tif (parsedLine.length == 2) {\n\t\t\t\tfileData.put(parsedLine[0], parsedLine[1]);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Couldn't read line \" + line + \" in \" + path);\n\t\t\t}\n\t\t}\n\t\ttextreader.close();\n\t\tfr.close();\n\t}",
"public String fileReadBlock(String path) throws IOException, FileNotFoundException{\n FileInputStream in = new FileInputStream(new File(path));\n int size = in.available();\n byte[] buffer = new byte[size];\n in.read(buffer);\n in.close();\n String block = new String(buffer);\n return block;\n }",
"protected abstract E readFile() throws Exception;",
"private static InputStream readFile(String path)\n\t{\n\t\tInputStream input = NativeLibraryLoader.class.getResourceAsStream(\"/\" + path);\n\t\tif (input == null)\n\t\t{\n\t\t\tthrow new RuntimeException(\"Unable to find file: \" + path);\n\t\t}\n\t\treturn input;\n\t}",
"private String readFile(String path, Charset encoding) throws IOException \r\n\t{\r\n\t\tbyte[] encoded = Files.readAllBytes(Paths.get(path));\r\n\t\treturn new String(encoded, encoding);\r\n\t}",
"public byte[] readFile(RAFFileEntry fileEntry) throws IOException {\n\t\tarchiveFile.setPosition(fileEntry.getDataOffset());\n\t\tif (fileEntry.getDataSize() > 0xFFFFFFFFL) throw new IOException(\"File too big.\");\n\t\tbyte[] data = archiveFile.readBytes((int) fileEntry.getDataSize());\n\t\treturn data;\n\t}",
"private void loadFromDisk(String filename) throws IOException {\n Reader r = new FileReader(filename);\r\n load(r);\r\n }",
"@RequestMapping(value=\"/read\", method = RequestMethod.GET)\n @ResponseBody\n public String readFile(@RequestParam String f) throws IOException,InvalidValueException,FilePathAccessDeniedException {\n\n String username = CSQLUserContext.getCurrentUser().getUsername();\n\n if(validator.isValidAndUserHasAccess(username,f)){\n return fileSystemService.readFile(f);\n }\n\n return null;\n }",
"public String read() {\n\t\tStringBuffer text = new StringBuffer((int)file.length());\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader b = new BufferedReader(fr);\n\t\t\tboolean eof = false;\n\t\t\tString line;\n\t\t\tString ret = \"\\n\";\n\t\t\twhile (!eof) {\n\t\t\t\tline = b.readLine();\n\t\t\t\tif (line == null) {\n\t\t\t\t\teof = true;\n\t\t\t\t} else {\n\t\t\t\t\ttext.append(line);\n\t\t\t\t\ttext.append(ret);\n\t\t\t\t}\n\t\t\t}\n\t\t\tb.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalArgumentException(\"File \" + file.getName() +\n\t\t\t\t\" is unreadable : \" + e.toString());\n\t\t}\n\t\treturn text.toString();\n\t}",
"public static String readFile(String filePath) throws IOException {\n\t\tString readString = \"\";\n\t\tRandomAccessFile file = new RandomAccessFile(filePath, \"r\");\n\t\tFileChannel channel = file.getChannel();\n\t\tByteBuffer buffer = ByteBuffer.allocate(1024);\n\t\twhile (channel.read(buffer) > 0) {\n\t\t\tbuffer.flip();\n\t\t\tfor (int i = 0; i < buffer.limit(); i++)\n\t\t\t\treadString += (char) buffer.get();\n\t\t\tbuffer.clear();\n\t\t}\n\t\tchannel.close();\n\t\tfile.close();\n\t\treturn readString;\n\t}",
"public void readFile(String name) {\n\t\tString filename = this.path + name;\n\t\tFile file = new File(filename);\n\t\t\n\t\t\n\t\ttry {\t\t \n\t\t\tScanner reader = new Scanner(file);\n\t\t\t\n\t\t\twhile (reader.hasNextLine()) {\n\t\t\t\tString data = reader.nextLine();\n\t\t System.out.println(data);\n\t\t\t}\n\t\t reader.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t System.out.println(\"File not found!\");\n\t\t} \n\t}",
"private static void read(Client client,String user,String filename) throws SystemException, TException {\n\t\t\n\t\tString keyString = user + \":\" + filename;\n\t\tString key = sha_256(keyString);\n\t\t\n\t\t\n\t\tNodeID succNode = client.findSucc(key);\n\t\tString predIP = succNode.ip;\n\t\t// predIP = \"127.0.0.1\";\n\t\tint predPort = succNode.port;\n\t\ttry {\n\t\t\tTSocket transport = new TSocket(predIP, predPort);\n\t\t\ttransport.open();\n\t\t\tTBinaryProtocol protocol = new TBinaryProtocol(transport);\n\t\t\tchord_auto_generated.FileStore.Client client1 = new chord_auto_generated.FileStore.Client(protocol);\n\t\t\tSystem.out.println(\"Reading file location : \" + predPort + \" File :\"+filename+\"Owner : \"+user);\n\t\t\tRFile rFile = new RFile();\n\t\t\trFile = client1.readFile(filename, user);\n\t\t\tSystem.out.println(rFile.getContent());\n\t\t\tSystem.out.println(rFile.getMeta().getVersion());\n\t\t\tSystem.out.println(rFile.getMeta().getContentHash());\n\t\t\tSystem.out.println(\"Reading file Done----------\");\n\t\t\ttransport.close();\n\t\t} catch (TTransportException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"public static String readFile(Path path) {\n\t\tif (path != null) {\n\t\t\tbyte[] bytes = toByteArray(path);\n\t\t\tif (bytes != null) {\n\t\t\t\treturn new String(bytes, StandardCharsets.UTF_8);\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}",
"private String[] readFile(InputStream stream) throws StorageException {\r\n try {\r\n return readFile(new BufferedReader(new InputStreamReader(stream)));\r\n } catch (Exception exception) {\r\n throw new StorageException(\"Cannot read file \");\r\n }\r\n }",
"public void ReadFrom(String pathWithFileName) throws Exception\n {\n \tPath path = Paths.get(pathWithFileName);\n content = Files.readAllBytes(path);\n fileName = path.getFileName().toString(); \n contentType = null;\n }",
"private static String readLine(String filename) throws IOException {\n\t\ttry (BufferedReader reader = new BufferedReader(\n\t\t\t\tnew FileReader(filename), 256)) {\n\t\t\treturn reader.readLine();\n\t\t}\n\t}",
"private static String ReadFile(String filePath) {\n StringBuilder sb = new StringBuilder();\n try {\n BufferedReader r = new BufferedReader(new FileReader(filePath));\n String line;\n while ((line = r.readLine()) != null) {\n sb.append(line);\n }\n } catch (Exception e) {\n System.out.println(e.getStackTrace());\n }\n return sb.toString();\n\n }",
"static byte[] readContents(File file) {\n if (!file.isFile()) {\n throw new IllegalArgumentException(\"must be a normal file\");\n }\n try {\n return Files.readAllBytes(file.toPath());\n } catch (IOException excp) {\n throw new IllegalArgumentException(excp.getMessage());\n }\n }",
"public File getFile();",
"public File getFile();",
"private static void readFileOnClient(FileStore.Client client) throws SystemException, TException {\n String fileName = \"sample.txt\";\n NodeID nodeId = client.findSucc(getSHA(fileName));\n TTransport transport = new TSocket(nodeId.getIp(), nodeId.getPort());\n transport.open();\n\n TProtocol protocol = new TBinaryProtocol(transport);\n FileStore.Client readFileClient = new FileStore.Client(protocol);\n\n RFile rFile = readFileClient.readFile(fileName);\n System.out.println(\"Filename - \" + rFile.getMeta().getFilename());\n System.out.println(\"Version Number - \" + rFile.getMeta().getVersion());\n System.out.println(\"Content - \" + rFile.getContent());\n transport.close();\n }",
"private static String readFile(String fileName) throws IOException {\n\t\tReader reader = new FileReader(fileName);\n\n\t\ttry {\n\t\t\t// Create a StringBuilder instance\n\t\t\tStringBuilder sb = new StringBuilder();\n\n\t\t\t// Buffer for reading\n\t\t\tchar[] buffer = new char[1024];\n\n\t\t\t// Number of read chars\n\t\t\tint k = 0;\n\n\t\t\t// Read characters and append to string builder\n\t\t\twhile ((k = reader.read(buffer)) != -1) {\n\t\t\t\tsb.append(buffer, 0, k);\n\t\t\t}\n\n\t\t\t// Return read content\n\t\t\treturn sb.toString();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\treader.close();\n\t\t\t} catch (IOException ioe) {\n\t\t\t\t// Ignore\n\t\t\t}\n\t\t}\n\t}",
"protected Spec readSpecFromFile(Path path) throws IOException {\n Spec spec;\n\n try (FSDataInputStream fis = fs.open(path)) {\n spec = this.specSerDe.deserialize(ByteStreams.toByteArray(fis));\n }\n\n return spec;\n }",
"public static byte[] ReadFileSync(String filePath)\n {\n byte[] bytes = new byte[0];\n try\n {\n //Instantiate the file object\n File file = new File(filePath);\n //Instantiate the input stread\n InputStream insputStream = new FileInputStream(file);\n long length = file.length();\n bytes = new byte[(int) length];\n \n insputStream.read(bytes);\n insputStream.close();\n\n }\n catch(Exception e)\n {\n Log.e(\"IO\", \"Failed to load file async: \"+filePath+e.toString());\n }\n return bytes;\n }",
"public static BufferedReader Reader(String path) throws IOException\n\t{\n\t\treturn new BufferedReader(new InputStreamReader(new FileInputStream(path),\"UTF-8\"));\n\t}",
"private static String loadFile(String path){\n try {\n\n BufferedReader reader = new BufferedReader(new FileReader(path));\n StringBuilder sb = new StringBuilder();\n\n String line;\n while((line = reader.readLine()) != null){\n sb.append(line);\n sb.append('\\n');\n }\n\n reader.close();\n return sb.toString();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return null;\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }",
"String getFile();",
"String getFile();",
"String getFile();",
"private String fileReadOneLine(String fname) {\n BufferedReader br;\n String line = null;\n\n try {\n br = new BufferedReader(new FileReader(fname), 512);\n try {\n line = br.readLine();\n } finally {\n br.close();\n }\n } catch (Exception e) {\n Log.e(TAG, \"Exception when reading /sys/* file\", e);\n }\n return line;\n }",
"public void readTextFile(String path) throws IOException {\n FileReader fileReader=new FileReader(path);\n BufferedReader bufferedReader=new BufferedReader(fileReader);\n String value=null;\n while((value=bufferedReader.readLine())!=null){\n System.out.println(value);\n }\n }",
"public Object readObject(String path) throws Exception{\n FileInputStream fis = new FileInputStream(path);\n ObjectInputStream ois = new ObjectInputStream(fis);\n\n return ois.readObject();\n }",
"public String readLine() throws IOException\r\n\t{\r\n\t\treturn file.readLine();\r\n\t}",
"public String readFileIntoString(String filepath) throws IOException;",
"public static String readFile(String path) {\n String contents = \"\";\n try {\n BufferedReader br = new BufferedReader(new FileReader(path));\n\n StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n while (line != null) {\n sb.append(line);\n sb.append(System.lineSeparator());\n line = br.readLine();\n }\n contents = sb.toString();\n br.close();\n } catch (Exception e) {\n System.out.println(e.toString());\n System.exit(1);\n }\n return contents;\n }",
"public String readFromFile(String filePath){\n String fileData = \"\";\n try{\n File myFile = new File(filePath);\n Scanner myReader = new Scanner(myFile);\n while (myReader.hasNextLine()){\n String data = myReader.nextLine();\n fileData += data+\"\\n\";\n }\n myReader.close();\n } catch(FileNotFoundException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n return fileData;\n }",
"public boolean readDataFile();",
"private List<String> readFile(String path) throws IOException {\n return Files.readAllLines (Paths.get (path), StandardCharsets.UTF_8);\n }",
"public Object readObject(File file, int format) throws IOException, FileNotFoundException;",
"public static String readFile(final String name) {\n FileReader fileReader = null;\n final StringBuilder contents = new StringBuilder();\n try {\n final File file = new File(name);\n if (!file.exists()) {\n throw new IllegalArgumentException(\"File \" + name + \" does not exist\");\n }\n fileReader = new FileReader(file);\n final BufferedReader reader = new BufferedReader(fileReader);\n String inputLine = reader.readLine();\n while (inputLine != null) {\n contents.append(inputLine).append(\"\\n\");\n inputLine = reader.readLine();\n }\n reader.close();\n } catch (final IOException i1) {\n LOG.severe(\"Can't open file:\" + name);\n }\n return contents.toString();\n }",
"private void ReadTextFile(String FilePath) {\n\t\t\n\t\t\n\t}",
"private static void readFile() throws IOException\r\n\t{\r\n\t\tString s1;\r\n\t\tFileReader fr = new FileReader(filename);\r\n\t\tBufferedReader br = new BufferedReader(fr);\r\n\t\t\r\n\t\tSystem.out.println(\"\\ndbs3.txt File\");\r\n\t\twhile ((s1 = br.readLine())!=null)\r\n\t\t{\r\n\t\t\tSystem.out.println(s1);\r\n\t\t}//end while loop to read files\r\n\t\t\r\n\t\tbr.close();//close the buffered reader\r\n\t}",
"public String getFile(String path){\n return target.path( path ).queryParam( \"view\", \"read\" ).request().get( String.class );\n }",
"private static JSONObject fileReader(String path) throws Exception{\r\n return (JSONObject) jsonParser.parse(new String(Files.readAllBytes(Paths.get(path))));\r\n }",
"private static Trajectory readFile(String name) {\n\t\ttry {\n\t\t\tFile file = new File(cacheDirectory + name);\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\tTrajectory t = (Trajectory) ois.readObject();\n\t\t\tois.close();\n\t\t\tfis.close();\n\t\t\treturn t;\n\t\t}\n\t\tcatch (Exception e) { return null; }\n\t}",
"static String readFile(String path, Charset encoding)\n throws IOException\n {\n byte[] encoded = Files.readAllBytes(Paths.get(path));\n return new String(encoded, encoding);\n }",
"public static String read(String path) {\r\n\t\t\r\n\t\t// open the file\r\n\t\tFile file = new File(path);\r\n\t\t\r\n\t\t\r\n\t\t// if the file does not exist return null\r\n\t\tif (!file.exists())\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString content = \"\";\r\n\t\t\r\n\t\t// write to the file\r\n\t\ttry {\r\n\t\t\t// open stream\r\n\t\t\tFileReader fReader = new FileReader(file);\r\n\t\t\tBufferedReader bufferedReader = new BufferedReader(fReader);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// read all the content of the file\r\n\t\t\tString current = bufferedReader.readLine();\r\n\t\t\twhile (current != null) {\r\n\t\t\t\tcontent = content.concat(current + \"\\n\");\r\n\t\t\t\tcurrent = bufferedReader.readLine();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// close anything was opened\r\n\t\t\tbufferedReader.close();\r\n\t\t\tfReader.close();\r\n\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t\t\r\n\t\treturn content;\r\n\t}",
"@Override\n\tpublic String readBlob() throws PersistBlobException {\n\t\tlog.debug(\"readString: \");\n\t\ttry {\n\t\t\tString contents = FileUtils.readFileToString(new File(full_file_name), \"UTF-8\");\n\t\t\tlog.debug(\"returned string: \"+contents);\n\t\t\treturn contents;\n\t\t} catch (IOException e) {\n\t\t\tthrow new PersistBlobException(\"can not read string\",e);\n\t\t}\n\n\t}",
"public List<String> readFileContents(String filePath) throws APIException;",
"private Object readObject(String path)\n throws IOException, ClassNotFoundException {\n InputStream file = new FileInputStream(path);\n InputStream buffer = new BufferedInputStream(file);\n ObjectInput input = new ObjectInputStream(buffer);\n Object inputObj = input.readObject();\n input.close();\n return inputObj;\n }",
"@Override\n public InputStream readFileExternal(String _fileName) throws IOException \n { // Reads a file saved to external storage. Takes the filename as a parameter and throws an IOException if failed.\n return new FileInputStream(externalStoragePath + _fileName);\n }",
"@SuppressWarnings(\"ResultOfMethodCallIgnored\")\r\n public static void readFromFile() throws IOException {\r\n File file = new File(filePath);\r\n if (file.exists()) {\r\n readFromFile(file.getPath());\r\n } else {\r\n file.createNewFile();\r\n }\r\n }",
"public String read() throws Exception {\r\n\t\tBufferedReader reader = null;\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tif (input==null) input = new FileInputStream(file);\r\n\t\t\treader = new BufferedReader(new InputStreamReader(input,charset));\r\n\t\t\tchar[] c= null;\r\n\t\t\twhile (reader.read(c=new char[8192])!=-1) {\r\n\t\t\t\tsb.append(c);\r\n\t\t\t}\r\n\t\t\tc=null;\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow e;\r\n\t\t} finally {\r\n\t\t\treader.close();\r\n\t\t}\r\n\t\treturn sb.toString().trim();\r\n\t}",
"public String readFileContents(String filename) {\n return null;\n\n }",
"private static String loadFile(File file) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\treturn br.readLine();\n\t}"
]
| [
"0.7357184",
"0.7223615",
"0.70080876",
"0.68734014",
"0.68200046",
"0.6767003",
"0.6746653",
"0.668473",
"0.6682133",
"0.6624877",
"0.6602188",
"0.6593068",
"0.65699357",
"0.6544122",
"0.6512398",
"0.6506322",
"0.6506322",
"0.6489248",
"0.64884394",
"0.6470192",
"0.64198506",
"0.6418452",
"0.64122427",
"0.63730764",
"0.6368052",
"0.63578004",
"0.63562083",
"0.63512456",
"0.6347876",
"0.630213",
"0.62782264",
"0.6275214",
"0.626261",
"0.6260506",
"0.62319744",
"0.6197079",
"0.61969095",
"0.6193556",
"0.6181757",
"0.6149089",
"0.61450195",
"0.61423755",
"0.61423755",
"0.6139853",
"0.6135945",
"0.61319757",
"0.6124114",
"0.6102827",
"0.6096149",
"0.60939014",
"0.609212",
"0.6086087",
"0.60825115",
"0.6081823",
"0.60788435",
"0.6077159",
"0.6045513",
"0.6045462",
"0.6043263",
"0.60362667",
"0.6033303",
"0.6011124",
"0.5996169",
"0.59923446",
"0.5977819",
"0.5977819",
"0.5975319",
"0.59721833",
"0.5965804",
"0.5963301",
"0.59629333",
"0.5960543",
"0.59594697",
"0.59594697",
"0.59594697",
"0.59580886",
"0.59550035",
"0.59512097",
"0.5944195",
"0.59334165",
"0.59272265",
"0.59271926",
"0.59223354",
"0.5921396",
"0.5904242",
"0.59030724",
"0.59003544",
"0.5898006",
"0.5892524",
"0.58903235",
"0.587895",
"0.5874454",
"0.5872306",
"0.58583236",
"0.58573127",
"0.5849337",
"0.584697",
"0.584023",
"0.58361953",
"0.58337134",
"0.58131903"
]
| 0.0 | -1 |
Requires 3 arguments: 1: TCP/IP server host name or IP address 2: TCP/IP server port number 3: Absolute path and file name of file to send | public static void main(String[] args) throws Exception {
MyClientSocketBinary client = new MyClientSocketBinary(
InetAddress.getByName(args[0]),
Integer.parseInt(args[1]));
System.out.println("\r\nConnected to Server: " + client.socket.getInetAddress());
//client.sendFile(args[2]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void sendFile(String fileName, String hostName, int port) throws IOException;",
"void receiveFile(String fileName, int port) throws IOException;",
"private void sendFile(String fileName) throws IOException {\n // Read file from disk\n //\n fileReader = new MyFileReader();\n byte[] data = fileReader.readFile(fileName);\n //\n // Send binary data over the TCP/IP socket connection\n //\n for (byte i : data) {\n this.socket.getOutputStream().write(i);\n }\n\n System.out.println(\"\\r\\nSent \" + data.length + \" bytes to server.\");\n }",
"public Server() throws IOException {\n FileInputStream fistream = null;\n BufferedInputStream bistream = null;\n OutputStream ostream = null;\n ServerSocket ss = null;\n Socket socket = null;\n\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Input file path\");\n filepath = sc.nextLine();\n\n try {\n ss = new ServerSocket(PORT);\n while (true) {\n System.out.println(\"Waiting...\");\n\n try {\n socket = ss.accept();\n System.out.println(\"Accepted connection : \" + socket);\n\n // send file\n File myFile = new File (filepath);\n byte [] mybytearray = new byte [(int)myFile.length()];\n\n fistream = new FileInputStream(myFile);\n bistream = new BufferedInputStream(fistream);\n bistream.read(mybytearray,0,mybytearray.length);\n ostream = socket.getOutputStream();\n\n System.out.println(\"Sending \" + filepath + \"(\" + mybytearray.length + \" bytes)\");\n\n ostream.write(mybytearray,0,mybytearray.length);\n ostream.flush();\n\n System.out.println(\"Done.\");\n }\n finally {\n if (bistream != null) bistream.close();\n if (ostream != null) ostream.close();\n if (socket!=null) socket.close();\n }\n }\n }\n finally {\n if (ss != null) ss.close();\n }\n }",
"public FileTransfer(int myPort){ //Receiver\n socket = new MySocket(ProtocolStack.getLocalhost().getLogicalID(),myPort);\n socket.bindServer();\n socket.accept();\n step = STEP_WAITING_TO_RECEIVE;\n }",
"public void sendRequest(){\n fileServer.sendMessage(this.packet,new FileNode(ip,port));\n }",
"public void sendFile(File file)\n {\n byte [] mybytearray = new byte [(int)file.length()];\n FileInputStream fis;\n try {\n \n fis = new FileInputStream(file);\n BufferedInputStream bis = new BufferedInputStream(fis);\n bis.read(mybytearray,0,mybytearray.length);\n OutputStream os = sock.getOutputStream();\n os.write(mybytearray,0,mybytearray.length);\n os.flush();\n \n } catch (Exception ex) {\n \n }\n\n }",
"public void transferFile() {\n\t\t// create file event and set client and server path\n\t\tfileEvent = new FileEvent();\n\t\tfileEvent.setClientPath(clientPath);\n\t\tfileEvent.setServerPath(serverPath);\n\t\t\n\t\t// get client name and set filename\n\t\tFile file = new File(clientPath);\n\t\tString name = clientPath.substring(clientPath.lastIndexOf(\"/\") + 1, \n\t\t\t\t\t\tclientPath.length());\n\t\tfileEvent.setFilename(name);\n\t\t\n\t\t// checks if the file exists in the path mentioned or sets valid to No\n\t\tif (file.isFile()) {\n\t\t\t//creates input stream setup the data in byte arrays\n\t\t\tDataInputStream inStream = null;\n\t\t\ttry {\n\t\t\t\tinStream = new DataInputStream(new FileInputStream(file));\n\t\t\t\tlong length = (int) file.length();\n\t\t\t\tbyte[] byteArray = new byte[(int) length];\n\t\t\t\tint start = 0;\n\t\t\t\tint last = 0;\n\t\t\t\tint rest = inStream.read(byteArray, start, \n\t\t\t\t\t\t\t\t\t\t\tbyteArray.length - start);\n\t\t\t\twhile (start < byteArray.length && (last = rest) >= 0) {\n\t\t\t\t\tstart = start + last;\n\t\t\t\t}\n\t\t\t\tfileEvent.setFileSize(length);\n\t\t\t\tfileEvent.setFileData(byteArray);\n\t\t\t\tfileEvent.setValid(\"Yes\");\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tfileEvent.setValid(\"No\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Path does not exist.\");\n\t\t\tfileEvent.setValid(\"No\");\n\t\t}\n\t\t// Start sending the data byte array\n\t\ttry {\n\t\t\toutStream.writeObject(fileEvent);\n\t\t\tSystem.out.println(\"Done...\");\n\t\t\tThread.sleep(5000);\n\t\t\tSystem.exit(0);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public static void main(String[] args) throws IOException {\n ServerFile severFile = new ServerFile();\n severFile.createChannel(\"127.0.0.1\",9091);\n// SocketChannel socketChannel = severFile.createChannel(\"127.0.0.1\",9090);\n// severFile.sendFile(socketChannel);\n }",
"public static String sendFile(File file, String hostName) {\r\n\t\tbyte[] buffer = new byte[BUFFER_SIZE];\r\n\t\tSocket socket = null;\r\n\t\tSystem.out.println(\"start\");\r\n\r\n\t\tInputStream inputStream = null;\r\n\t\tOutputStream outputStream = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tsocket = new Socket(hostName, PORT_NUMBER);\r\n\t\t\tsocket.setSoTimeout(Timeout);\r\n\t\t\tinputStream = new FileInputStream(file);\r\n\t\t\toutputStream = socket.getOutputStream();\r\n\r\n\t\t\tint fileLength = 0;\r\n\t\t\twhile ((fileLength = inputStream.read(buffer)) > 0) {\r\n\t\t\t\toutputStream.write(buffer, 0, fileLength);\r\n\t\t\t}\r\n\t\t\toutputStream.flush();\r\n\t\t\toutputStream.close();\r\n\t\t\tinputStream.close();\r\n\t\t\tsocket.close();\r\n\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\treturn ERROR_STATUS;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tThread.sleep(NetworkConstants.WaitTime);\r\n\t\t} catch (InterruptedException e) {\r\n\r\n\t\t}\r\n\t\treturn SUCCESS_STATUS;\r\n\t}",
"private static void sendFileToServer(int portNumber, String serverAddress, String fileName)\n\t\t\tthrows IOException {\n\t\tif (portNumber != 0) {\n\t\t\tDatagramSocket clientSocket = new DatagramSocket();\n\n\t\t\tInetAddress IPAddress = InetAddress.getByName(serverAddress);\n\n\t\t\tFile f = new File(fileName);\n\t\t\tInputStream fileInputStream = new FileInputStream(f);\n\t\t\t\n\t\t\t// Create a byte array of the entire file\n\t\t\tbyte[] file = new byte[fileInputStream.available()];\n\t\t\tfileInputStream.read(file);\n\t\t\tfileInputStream.close();\n\n\t\t\tList<byte[]> messages = new ArrayList<byte[]>();\n\t\t\tList<byte[]> acks = new ArrayList<byte[]>();\n\n\t\t\t// Break the file down into byte arrays\n\t\t\tint currentIndex = 0;\n\t\t\tint k = 0;\n\t\t\tfor (int j = 0; j < file.length; j++) {\n\t\t\t\tif (messages.isEmpty() || k == MAX_BUFFER_SIZE) {\n\t\t\t\t\tif ((file.length - j) < MAX_BUFFER_SIZE) {\n\t\t\t\t\t\tmessages.add(new byte[file.length - j + 1]);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmessages.add(new byte[MAX_BUFFER_SIZE]);\n\t\t\t\t\t}\n\t\t\t\t\tif (k == MAX_BUFFER_SIZE)\n\t\t\t\t\t\tcurrentIndex++;\n\t\t\t\t\tk = 0;\n\t\t\t\t}\n\t\t\t\tmessages.get(currentIndex)[k] = file[j];\n\t\t\t\tk++;\n\t\t\t}\n\t\t\t\n\t\t\tif (messages.get(messages.size() - 1).length != MAX_BUFFER_SIZE) {\n\t\t\t\tmessages.get(messages.size() - 1)[messages.get(messages.size() - 1).length - 1] = Byte.MIN_VALUE;\n\t\t\t}\n\t\t\t\n\n\t\t\t// Send each packet and wait for the reply before sending the next packet\n\t\t\tint currentAckIndex = 0;\n\t\t\tfor (int messageId = 0; messageId < messages.size(); messageId++) {\n\t\t\t\t// Send packet to Server\n\t\t\t\tDatagramPacket sendPacket = new DatagramPacket(\n\t\t\t\t\t\tmessages.get(messageId),\n\t\t\t\t\t\tmessages.get(messageId).length, IPAddress, portNumber);\n\n\t\t\t\tclientSocket.send(sendPacket);\n\t\t\t\tacks.add(new byte[messages.get(messageId).length]);\n\t\t\t\t\n\t\t\t\t// Wait for ACK from Server\n\t\t\t\tDatagramPacket receivePacket = new DatagramPacket(\n\t\t\t\t\t\tacks.get(currentAckIndex),\n\t\t\t\t\t\tacks.get(currentAckIndex).length);\n\t\t\t\tclientSocket.receive(receivePacket);\n\t\t\t\t\n\t\t\t\tString sentence = new String(acks.get(currentAckIndex));\n\t\t\t\tSystem.out.println(sentence);\n\t\t\t\tcurrentAckIndex++;\n\t\t\t}\n\n\t\t\t// Send the end packet to terminate transmission\n\t\t\tbyte[] endPacketData = new byte[MAX_BUFFER_SIZE];\n\t\t\tfor(int ePacketIndex = 0; ePacketIndex < MAX_BUFFER_SIZE; ePacketIndex++) {\n\t\t\t\tendPacketData[ePacketIndex] = Byte.MIN_VALUE;\n\t\t\t}\n\t\t\t\n\t\t\tDatagramPacket endPacket = new DatagramPacket(\n\t\t\t\t\tendPacketData,\n\t\t\t\t\tendPacketData.length, IPAddress, portNumber);\n\t\t\tclientSocket.send(endPacket);\n\n\t\t\tclientSocket.close();\n\t\t}\n\t}",
"public void fileTransferReq(Packet packet) {\r\n\t\tjava.util.Date date = new java.util.Date();\r\n\t\tSystem.out.println(date + \" \" + packet.packetSenderID + \" is requesting file \" + packet.fileName);\r\n\t\tSystem.out.println(peerNode.fileDir);\r\n\t\tFile reqFile = new File(\"./\"+peerNode.fileDir, packet.fileName);\r\n\t\tbyte[] buf = new byte [(int)reqFile.length()]; \r\n\t\t\r\n\t\ttry {\r\n\t\t\tjava.util.Date fileSendDate = new java.util.Date();\r\n\t\t\tSystem.out.println(fileSendDate + \": Sending the file \" + packet.fileName + \" to Peer Node \" + packet.packetSenderID);\r\n\t\t\tfileInStream = new FileInputStream(reqFile);\r\n\t\t\tbufInStream = new BufferedInputStream(fileInStream);\r\n\t\t\tbufInStream.read(buf, 0, buf.length);\r\n\r\n\t\t\tPacket fileTransPckt = new Packet();\r\n\t\t\tfor(int i = 0; i < buf.length; i++ ) {\r\n\t\t\t\tfileTransPckt.buf[i] = buf[i];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfileTransPckt.eventCode = 6;\r\n\t\t\tfileTransPckt.packetSenderID = peerNode.peerClientID;\r\n\t\t\tfileTransPckt.packetRecipientID = packet.packetSenderID;\r\n\t\t\tfileTransPckt.totalFileSize = buf.length;\r\n\t\t\tfileTransPckt.fileName = packet.fileName;\r\n\t\t\tpeerNode.peer2Peer = new Socket(packet.peerClientIP, packet.peerClientListenPort);\r\n\t\t\tpeerNode.peer2PeerOutStream = new ObjectOutputStream(peerNode.peer2Peer.getOutputStream());\r\n\t\t\tpeerNode.peer2PeerInStream = new ObjectInputStream(peerNode.peer2Peer.getInputStream());\r\n\t\t\t\r\n\t\t\tpeerNode.peer2PeerOutStream.writeObject(fileTransPckt);\r\n\t\t\tpeerNode.peer2PeerOutStream.flush();\r\n\t\t\t\r\n\t\t\t// Close socket/connection\r\n\t\t\tfileInStream.close();\r\n\t\t\tbufInStream.close();\r\n\t\t\tcloseConnection();\r\n\t\t} \r\n\t\tcatch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch blo\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private static void SendFileToServer(String user, Object filename,Socket soc) {\r\n \r\n\t\tFile From = new File(\"C:/Users/harsh/Desktop/\"+user+\"/\"+filename); //path of client directory\r\n\t\tFile To = new File(\"C:/Users/harsh/Desktop/Server/\"+filename); //path of server directory\r\n\t\t\r\n\t\ttry {\r\n\r\n\t\t\tFileUtils.copyFile(From, To); //Apache File Utils library function to copy file from one location to another location\r\n\t\t\tSystem.out.println(\"File:\" +filename+ \" uploaded on server sucessfully !!\"); //let user know file has been uploaded to server\r\n\t\t\tSystem.out.println(\"------------------------------------------------------------------\");\r\n\t\t\t\r\n\t\t\tDataOutputStream dos=new DataOutputStream(soc.getOutputStream());\r\n\t\t\tdos.writeUTF(\"File: \"+filename+\" uploaded by user: \"+user);\r\n\t\t\tdos.writeUTF(user);\r\n \t\r\n\t\t\tWatchDirectory(user, soc); // function call to continue watching User directory\r\n\t\t} \r\n\t\tcatch (IOException e) {\r\n\t\t\t//print error (if any)\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}",
"static void startServer(String tracker_file, int port, String file_location) throws IOException {\n\t\tTrackerInfo ctracker = new TrackerInfo(tracker_file);\n\t\tPeer peer = new Peer(InetAddress.getByName(\"127.0.0.1\"), port, ctracker, file_location);\n\t\tpeer.waitingForClient();\n\t\twhile(true) {\n\t\t\tif(peer.out_buf.size() > 0) {\n\t\t\t\tif(!peer.send()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!peer.recieve()) {\n\t\t\t\tif(peer.out_buf.size() == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tpeer.recieveHandle();\n\t\t\t}\n\t\t}\n\t\tpeer.closeTCP();\n\t}",
"public void sendResponse(int dest, String file) throws UnknownHostException, SocketException, IOException {\n InetAddress IPAddress = InetAddress.getByName(\"127.0.0.1\");\n\n // Canal de comunicação não orientado à conexão\n //DatagramSocket serverSocket = new DatagramSocket();\n\n // Passa o caminho do arquivo\n final byte[] sendData = (this.home + file).getBytes();\n\n // Criando pacote com base no endereco do cliente\n DatagramPacket sendPacket\n = new DatagramPacket(sendData, sendData.length,\n IPAddress, dest);\n\n this.getServerSocket().send(sendPacket);\n }",
"static void startClient(String tracker_file, int port) throws UnknownHostException {\n\t\tTrackerInfo ctracker = new TrackerInfo(tracker_file);\n\t\tTransferManager.initial(getPiecesFromTrackerInfo(ctracker), ctracker);\n\t\tPeer peer = new Peer(InetAddress.getByName(\"127.0.0.1\"), port, ctracker);\n\t\tpeer.initialTCP();\n\t\tpeer.handShake();\n\t\twhile(!TransferManager.fileDonwloaded()) {\n\t\t\tif(peer.out_buf.size() > 0) {\n\t\t\t\tif(!peer.send()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!peer.recieve()) {\n\t\t\t\tif(peer.out_buf.size() == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tpeer.recieveHandle();\n\t\t\t}\n\t\t}\n\t\tif(TransferManager.fileDonwloaded()) {\n\t\t\tTransferManager.writeToFile();\n\t\t\tSystem.out.println(\"Success Recieve The File: \" + ctracker.file_name);\n\t\t}else {\n\t\t\tSystem.out.println(\"Unable To Recieve The File: \" + ctracker.file_name);\n\t\t}\n\t\tpeer.closeTCP();\n\t}",
"public boolean sendFile(String[] arg)\n\t{\n\t\tif(arg.length!=2){\n\t\t System.err.println(\"usage: java ScpTo file1 user@remotehost:file2\");\n\t\t}\n\n\t FileInputStream fis=null;\n\t boolean returnValue = true;\n\n\t System.out.println(\"arg[0][\" + arg[0] + \"]\");\n\t System.out.println(\"arg[1][\" + arg[1] + \"]\");\n\t \n\t\ttry{\n\t\t\tString lfile=arg[0];\n\t\t\targ[1]=arg[1].substring(arg[1].indexOf('@')+1);\n\t\t\tString host=arg[1].substring(0, arg[1].indexOf(':'));\n\t\t\tString rfile=arg[1].substring(arg[1].indexOf(':')+1);\n\n\t\t JSch jsch=new JSch();\n\t\t Session session=jsch.getSession(bigxcontext.getiXerciseAccountName(), host, BiGXConnectionToBackend.ScpServerPort);\n\t\t session.setUserInfo(new UserInfo() {\n\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void showMessage(String arg0) {\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean promptYesNo(String arg0) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean promptPassword(String arg0) {\n\t\t\t\t\t\tif(bigxcontext.getiXercisePassword() != \"\")\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean promptPassphrase(String arg0) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic String getPassword() {\n\t\t\t\t\t\treturn bigxcontext.getiXercisePassword();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic String getPassphrase() {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t });\n\t\t session.setPassword(bigxcontext.getiXercisePassword());\n\t\t session.connect();\n\n\t\t boolean ptimestamp = false;\n\n\t\t // exec 'scp -t rfile' remotely\n\t\t String command=\"scp \" + (ptimestamp ? \"-p \" :\"\") +\"-t \"+rfile;\n\t\t Channel channel=session.openChannel(\"exec\");\n\t\t ((ChannelExec)channel).setCommand(command);\n\n\t\t // get I/O streams for remote scp\n\t\t OutputStream out=channel.getOutputStream();\n\t\t InputStream in=channel.getInputStream();\n\n\t\t channel.connect();\n\n\t\t if(checkAck(in)!=0){\n\t\t \t System.err.println(\"checkAck(in)[\" + checkAck(in) + \"]: line[\" + new Exception().getStackTrace()[0].getLineNumber() + \"]\");\n\t\t \t return false;\n\t\t }\n\n\t\t File _lfile = new File(lfile);\n\n\t\t if(ptimestamp){\n\t\t command=\"T \"+(_lfile.lastModified()/1000)+\" 0\";\n\t\t // The access time should be sent here,\n\t\t // but it is not accessible with JavaAPI ;-<\n\t\t command+=(\" \"+(_lfile.lastModified()/1000)+\" 0\\n\"); \n\t\t out.write(command.getBytes()); out.flush();\n\t\t if(checkAck(in)!=0){\n\t\t\t \t System.err.println(\"checkAck(in)[\" + checkAck(in) + \"]: line[\" + new Exception().getStackTrace()[0].getLineNumber() + \"]\");\n\t\t\t \t return false;\n\t\t }\n\t\t }\n\n\t\t // send \"C0644 filesize filename\", where filename should not include '/'\n\t\t long filesize=_lfile.length();\n\t\t command=\"C0644 \"+filesize+\" \";\n\t\t if(lfile.lastIndexOf('/')>0){\n\t\t command+=lfile.substring(lfile.lastIndexOf('/')+1);\n\t\t }\n\t\t else{\n\t\t command+=lfile;\n\t\t }\n\t\t command+=\"\\n\";\n\t\t out.write(command.getBytes()); out.flush();\n\t\t if(checkAck(in)!=0){\n\t\t \t System.err.println(\"checkAck(in)[\" + checkAck(in) + \"]: line[\" + new Exception().getStackTrace()[0].getLineNumber() + \"]\");\n\t\t \t return false;\n\t\t }\n\n\t\t // send a content of lfile\n\t\t fis=new FileInputStream(lfile);\n\t\t byte[] buf=new byte[1024];\n\t\t while(true){\n\t\t int len=fis.read(buf, 0, buf.length);\n\t\t\tif(len<=0) break;\n\t\t out.write(buf, 0, len); //out.flush();\n\t\t }\n\t\t fis.close();\n\t\t fis=null;\n\t\t // send '\\0'\n\t\t buf[0]=0; out.write(buf, 0, 1); out.flush();\n\t\t if(checkAck(in)!=0){\n\t\t \t System.err.println(\"checkAck(in)[\" + checkAck(in) + \"]: line[\" + new Exception().getStackTrace()[0].getLineNumber() + \"]\");\n\t\t \t return false;\n\t\t }\n\t\t out.close();\n\n\t\t channel.disconnect();\n\t\t session.disconnect();\n\t\t }\n\t\t catch(Exception e){\n\t\t \te.printStackTrace();\n\t\t \treturnValue = false;\n\t\t try{if(fis!=null)fis.close();}\n\t\t catch(Exception ee){\n\t\t \t return false;\n\t\t \t }\n\t\t }\n\t\treturn returnValue;\n\t}",
"public boolean sendFile(String inKey, File inFile) throws NuxeoException;",
"private void sendFileContents() {\n\t\t// mostramos un log\n\t\tthis.getLogger().debug(\"Sending file (\" + this.getFile().getName() + \": \" + this.getFile().length() + \" bytes)..\");\n\t\t// iniciamos una bandera\n\t\tint bytesRead = 0;\n\t\ttry {\n\t\t\t// abrimos el fichero\n\t\t\tfinal FileInputStream inFile = new FileInputStream(this.getFile());\n\t\t\t// creamos un buffer para el envio\n\t\t\tfinal byte[] buff = new byte[this.getConnection().getSendBufferSize()];\n\t\t\t// leemos el fichero\n\t\t\twhile ((bytesRead = inFile.read(buff)) > 0) {\n\t\t\t\t// enviamos el buffer por el socket\n\t\t\t\tthis.getConnection().getOutputStream().write(buff, 0, bytesRead);\n\t\t\t\t// vaciamos el buffer\n\t\t\t\tthis.getConnection().getOutputStream().flush();\n\t\t\t}\n\t\t\t// cerramos el fichero\n\t\t\tinFile.close();\n\t\t\t// vaciamos el fichero enviado\n\t\t\tthis.file = null;\n\t\t\t// mostramos un log\n\t\t\tthis.getLogger().info(\"File sent\");\n\t\t} catch (final SocketException e) {\n\t\t\t// mostramos el trace de la excepcion\n\t\t\tthis.getLogger().error(e);\n\t\t} catch (final FileNotFoundException e) {\n\t\t\ttry {\n\t\t\t\t// enviamos -1 para finalizar\n\t\t\t\tthis.getConnection().getOutputStream().write(-1);\n\t\t\t} catch (final IOException ignored) {}\n\t\t} catch (final IOException e) {\n\t\t\t// mostramos el trace de la excepcion\n\t\t\tthis.getLogger().error(e);\n\t\t}\n\t}",
"public static void main(String args[]) throws Exception\n {\n\n ServerSocket server = new ServerSocket(2000,10);\n\n System.out.println(\"Web Server Started. Listening on port number 2000\");\n String filespec;\n int ch;\n \n while (true)\n {\n // get connection from client \n Socket client = server.accept();\n\n BufferedReader br = new BufferedReader( new InputStreamReader(client.getInputStream()));\n\n OutputStream clientout = client.getOutputStream();\n\n // read filespec from client\n while ( (filespec = br.readLine()) == null);\n\n System.out.println(\"Processing request for file : \" + filespec);\n \n // open the file and send content back to client\n\n FileReader fr = new FileReader( filespec);\n\n while ( ( ch = fr.read()) != -1 )\n clientout.write(ch);\n\n clientout.write(-1); // write EOF\n clientout.close();\n \n fr.close();\n\n System.out.println(\"Process Completed Successfully\");\n\n } // end of while\n\n }",
"public void forwardResponse(int dest, String file) throws UnknownHostException, SocketException, IOException {\n InetAddress IPAddress = InetAddress.getByName(\"127.0.0.1\");\n\n // Canal de comunicação não orientado à conexão\n //DatagramSocket serverSocket = new DatagramSocket();\n\n // Montando a mensagem a ser enviada\n String msg = file + \"#\" + this.getClient() + \"#\" + this.getTtl();\n\n // Preenche o buffer de envio\n final byte[] sendData = msg.getBytes();\n\n // Montando o pacote com o offset do tamanho do nome do arquivo.\n DatagramPacket sendPacket \n = new DatagramPacket(sendData, sendData.length,\n IPAddress, dest);\n\n this.getServerSocket().send(sendPacket);\n\n // Reseta o ttl para o Peer em questao\n //this.setTtl(Peer.TTLREFERENCE);\n }",
"public static void sendFileOnce(File file, String servIpAddr)\n\t\t\tthrows UnknownHostException, IOException, InterruptedException {\n\t\t// Initialize string transfer module and send the string\n\t\tSendString clientStringTrans = new SendString(file.getName(), servIpAddr);\n\t\tclientStringTrans.sendString();\n\n\t\t// Allow enough time for the invocation to happen on the server\n\t\tThread.sleep(3000);\n\n\t\t// Initialize file transfer module and transfer the file\n\t\tSendFile clientFileTrans = new SendFile(file.getPath(), servIpAddr);\n\t\tclientFileTrans.sendFile();\n\t}",
"public static void main (String [] args ) throws IOException {\n ServerSocket servsock = new ServerSocket(13267);\n while (true) {\n Socket sock = servsock.accept();\n System.out.println(\"Conexão aceita: \" + sock);\n // envia o arquivo (transforma em byte array)\n File myFile = new File (\"c:/users/gabri/desktop/img.png\");\n byte [] mybytearray = new byte [(int)myFile.length()];\n FileInputStream fis = new FileInputStream(myFile);\n BufferedInputStream bis = new BufferedInputStream(fis);\n bis.read(mybytearray,0,mybytearray.length);\n OutputStream os = sock.getOutputStream();\n System.out.println(\"Enviando...\");\n os.write(mybytearray,0,mybytearray.length);\n os.flush();\n sock.close();\n }\n }",
"private void handleRetr(String file) {\n File f = new File(currDirectory + fileSeparator + file);\n\n if (!f.exists()) {\n sendMsgToClient(\"550 File does not exist\");\n }\n\n else {\n\n // Binary mode\n if (transferMode == transferType.BINARY) {\n BufferedOutputStream fout = null;\n BufferedInputStream fin = null;\n\n sendMsgToClient(\"150 Opening binary mode data connection for requested file \" + f.getName());\n\n try {\n // create streams\n fout = new BufferedOutputStream(dataConnection.getOutputStream());\n fin = new BufferedInputStream(new FileInputStream(f));\n } catch (Exception e) {\n debugOutput(\"Could not create file streams\");\n }\n\n debugOutput(\"Starting file transmission of \" + f.getName());\n\n // write file with buffer\n byte[] buf = new byte[1024];\n int l = 0;\n try {\n while ((l = fin.read(buf, 0, 1024)) != -1) {\n fout.write(buf, 0, l);\n }\n } catch (IOException e) {\n debugOutput(\"Could not read from or write to file streams\");\n e.printStackTrace();\n }\n\n // close streams\n try {\n fin.close();\n fout.close();\n } catch (IOException e) {\n debugOutput(\"Could not close file streams\");\n e.printStackTrace();\n }\n\n debugOutput(\"Completed file transmission of \" + f.getName());\n\n sendMsgToClient(\"226 File transfer successful. Closing data connection.\");\n\n }\n\n // ASCII mode\n else {\n sendMsgToClient(\"150 Opening ASCII mode data connection for requested file \" + f.getName());\n\n BufferedReader rin = null;\n PrintWriter rout = null;\n\n try {\n rin = new BufferedReader(new FileReader(f));\n rout = new PrintWriter(dataConnection.getOutputStream(), true);\n\n } catch (IOException e) {\n debugOutput(\"Could not create file streams\");\n }\n\n String s;\n\n try {\n while ((s = rin.readLine()) != null) {\n rout.println(s);\n }\n } catch (IOException e) {\n debugOutput(\"Could not read from or write to file streams\");\n e.printStackTrace();\n }\n\n try {\n rout.close();\n rin.close();\n } catch (IOException e) {\n debugOutput(\"Could not close file streams\");\n e.printStackTrace();\n }\n sendMsgToClient(\"226 File transfer successful. Closing data connection.\");\n }\n\n }\n closeDataConnection();\n\n }",
"public void PUT(String address){\r\n\r\n try {\r\n /**\r\n * sends passive command to establish a new port in which the server will be listening on \r\n */\r\n out.println(\"PASV\");\r\n out.flush();\r\n String portnum = in.readLine();\r\n int index = portnum.indexOf(\"(\") + 1;\r\n int indexLast = portnum.indexOf(\")\");\r\n String newStr = portnum.substring(index, indexLast);\r\n portData = newStr.split(\",\");\r\n \r\n int port1, port2;\r\n port1 = Integer.parseInt(portData[4]);\r\n port2 = Integer.parseInt(portData[5]);\r\n int newPort = (port1 * 256) + port2;\r\n \r\n String hostNumberIP = portData[0] + \".\" + portData[1] + \".\" +portData[2] + \".\" + portData[3];\r\n \r\n sock2 = new Socket(hostNumberIP, newPort);\r\n //in2 = new BufferedReader(new InputStreamReader(sock2.getInputStream()));\r\n out.println(\"STOR \" + address);\r\n out.flush();\r\n String line = in.readLine();\r\n System.out.println(in.readLine());\r\n\r\n /**\r\n * uses file streams and input/buffered readers to send and receive byes for file transfer\r\n */\r\n File file = new File(address);\r\n FileInputStream fis = new FileInputStream(file);\r\n BufferedInputStream bis = new BufferedInputStream(fis);\r\n BufferedOutputStream out = new BufferedOutputStream(sock2.getOutputStream());\r\n byte[] buffer = new byte[8192];\r\n int count;\r\n while ((count = bis.read(buffer)) > 0) {\r\n out.write(buffer, 0, count);\r\n\r\n }\r\n out.close();\r\n fis.close();\r\n bis.close();\r\n \r\n\r\n } catch (Exception e) {\r\n System.out.println(e);\r\n }\r\n\r\n }",
"public static void main(String[] args) throws Exception {\n\t\t\n\t\t// Check for correct number of args\n\t\tif (args.length != 3) {\n\t\t\tSystem.out.println(\"Program takes 3 arguments - hostname, port, file\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\t// File to read data from\n\t\tBufferedInputStream inputStream = new BufferedInputStream(new FileInputStream(args[2]));\n\t\t\n\t\t// Network components\n\t\tDatagramSocket socket = new DatagramSocket();\n\t\tInetAddress address = InetAddress.getByName(args[0]);\n\t\tbyte[] data;\n\t\t\n\t\t// Tracking sequence number and EOF\n\t\tint sequenceNumber = 1;\n\t\tint eof = 0;\n\t\t\n\t\t// While data is still left\n\t\tint numberLeft = inputStream.available();\n\t\twhile (numberLeft > 0) {\n\t\t\t\n\t\t\t// If last packet\n\t\t\tif (numberLeft <= 1021) {\n\t\t\t\teof = 1;\n\t\t\t}\n\t\t\t\n\t\t\t// If full packet\n\t\t\tif (numberLeft >= 1021) {\n\t\t\t\tdata = new byte[1024];\n\t\t\t\tinputStream.read(data, 3, 1021);\n\t\t\t\n\t\t\t//If non full packet\n\t\t\t} else {\n\t\t\t\tdata = new byte[numberLeft + 3];\n\t\t\t\tinputStream.read(data, 3, numberLeft);\n\t\t\t}\n\t\t\t\n\t\t\t// Put headers in packet\n\t\t\tdata = addHeader(data, sequenceNumber, eof);\n\t\t\t\t\t\t\n\t\t\t//Send packet\n\t\t\tDatagramPacket packet = new DatagramPacket(data, data.length, address, Integer.valueOf(args[1])); \n\t\t\tsocket.send(packet);\n\t\t\t\n\t\t\t// Update data\n\t\t\tsequenceNumber++;\n\t\t\tnumberLeft = inputStream.available();\n\t\t}\n\t\t\n\t\t// Clean up\n\t\tinputStream.close();\n\t\tsocket.close();\n\t\tSystem.out.println(\"Finished\");\n\t}",
"public static void main(String[] args) throws Exception {\n\t\tServerSocket serverSocket = new ServerSocket(777);\r\n\t\tSystem.out.println(\"Utworzono Socket\");\r\n\t\tSocket connectionSocket = serverSocket.accept();\r\n\t\tSystem.out.println(\"Mam klienta, jego IP: \" + connectionSocket.getRemoteSocketAddress()+\" moj address\"+connectionSocket.getLocalSocketAddress());\r\n\t\tBufferedReader inFromClient = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));\r\n\t\tDataOutputStream outToClient = new DataOutputStream(connectionSocket.getOutputStream());\r\n\t\t//outToClient.writeBytes(\"Polaczyles sie!\"+ '\\n');\r\n\t\twhile (true){\r\n\t\t\tString komenda;\r\n\t\t\tkomenda = inFromClient.readLine();\r\n\t\t\tSystem.out.println(\"Received: \" + komenda);\r\n\t\t\tif(komenda.matches(\"dir\")){\r\n\t\t\t\tFile folder = new File(\"C:/Users/minek/Documents/pliki\");\r\n\t\t\t\tFile[] listOfFiles = folder.listFiles();\r\n\t\t\t\tfor (int i = 0; i < listOfFiles.length; i++) {\r\n\t\t\t\t\toutToClient.writeBytes(\"\"+listOfFiles[i].getName()+ '\\n');\r\n\t\t\t\t\t//System.out.println(\"Wyslano: \" + komenda);\r\n\t\t\t\t}\r\n\t\t\t}else\r\n\t\t\tif(komenda.startsWith(\"get\")){\r\n\t\t\t\tboolean znaleziono = false;\r\n\t\t\t\tFile folder = new File(\"C:/Users/minek/Documents/pliki\");\r\n\t\t\t\tFile[] listOfFiles = folder.listFiles();\r\n\t\t\t\tfor (int i = 0; i < listOfFiles.length; i++) {\r\n\t\t\t\t\tif(komenda.endsWith(listOfFiles[i].getName())){\r\n\t\t\t\t\t\tznaleziono = true;\r\n\t\t\t\t\t\tSystem.out.println(\"wysylam \"+listOfFiles[i].getName());\r\n\t\t\t\t\t\tint port = (int) (Math.random()*1000+6000);\r\n\t\t\t\t\t\tSystem.out.println(\"wysylam prosbe otwarcia portu \"+port+\" aby wyslac pliki\");\r\n\t\t\t\t\t\toutToClient.writeBytes(\"\"+port+'\\n');\r\n\t\t\t\t\t\tServerSocket wysylacz = new ServerSocket(port);\r\n\t\t\t\t\t\tSystem.out.println(\"Utworzono socket do wysylania pliku na porcie \"+port);\r\n\t\t\t\t\t\tSocket w = wysylacz.accept();\r\n\t\t\t\t\t\tSystem.out.println(\"Mam go, jego IP: \" + w.getRemoteSocketAddress()+\" moj address \"+w.getLocalSocketAddress());\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tOutputStream fileToClient = w.getOutputStream();\r\n\t\t\t\t\t\tfileToClient.write(listOfFiles[i].getName().getBytes(), 0, listOfFiles[i].getName().getBytes().length);\r\n\t\t\t\t\t\tFileInputStream s = new FileInputStream(listOfFiles[i]);\r\n\t\t\t\t\t\tbyte[] fileBytes = new byte[1400];\r\n\t\t\t\t\t\twhile (true){\r\n\t\t\t\t\t\t\tint ileBytes=s.read(fileBytes);\r\n\t\t\t\t\t\t\tfileToClient.write(fileBytes, 0, ileBytes);\r\n\t\t\t\t\t\t\tfileToClient.flush();\r\n\t\t\t\t\t\t\tSystem.out.println(\"wyslano bajty: \"+ ileBytes);\r\n\t\t\t\t\t\t\tif(ileBytes<1400){\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\twysylacz.close();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(!znaleziono){\r\n\t\t\t\t\toutToClient.writeBytes(\"nie ma takiego pliku\"+ '\\n');\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\toutToClient.writeBytes(\"zla komenda\"+ '\\n');\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\t * File file = new File(\"ala.txt\"); Scanner in = new Scanner(file);\r\n\t\t * String zdanie = in.nextLine(); System.out.println(zdanie);\r\n\t\t */\r\n\t}",
"public OutputFileTransfer(Socket socket, File file) {\n this.socket = socket;\n this.file = file;\n }",
"public ImageSendingClient(File imageFolder, String serverAddress, int serverPort)\n\t{\n\t\tthis.imageFolder = imageFolder;\n\t\tthis.serverAddress = serverAddress;\n\t\tthis.serverPort = serverPort;\n\t}",
"public int receive_data(String filename) {\r\n\tif (_socket == null) {\r\n\t\tSystem.out.println(\"no socket\");\r\n\t\treturn 2;\r\n\t}\r\n\t\r\n\tDataInputStream inputStream = null;\r\n\t\r\n\ttry {\r\n\t\t// retreve the stream\r\n\t\tinputStream = _socket.getInputStream();\r\n\t\t\r\n\t} catch (Exception e) {\r\n\t\tSystem.out.println(\"getInputStream() failed\");\r\n\t\treturn 2;\r\n\t}\r\n\t\r\n\ttry {\r\n\t\tString msg_received;\r\n\t\t// send verification information\r\n\t\t_socket.send_msg(\"i love ex machina\");\r\n\t\t\r\n\t\t// get hands shaked\r\n\t\tmsg_received = _socket.receive_msg();\r\n\t\tif (msg_received.equals(\"machina\")) {\r\n\t\t\tSystem.out.println(\"get machina. cool!\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"hand shake failed.\");\r\n\t\t\t_socket.disconnect();\r\n\t\t\treturn 2;\r\n\t\t}\r\n\t\t\r\n\t\t// send ur real need\r\n\t\t_socket.send_msg(\"need a file\");\r\n//\t\t_socket.send_msg(\"list all files\");\r\n\t\tmsg_received = _socket.receive_msg();\r\n\t\t\r\n\t\t// send required filename\r\n\t\t_socket.send_msg(filename);\r\n\t\t\r\n\t // 接收part1, which is filename\r\n\t String fullname = _socket.receive_msg();\r\n _socket.send_msg(\"ok\");\r\n\t if (!fullname.equals(filename))\r\n\t {\r\n\t\t System.out.println(fullname);\r\n\t\t System.out.println(\"file does not exist in the server.\\n\");\r\n\t\t\t _socket.disconnect();\r\n\t\t\t return 3;\r\n\t }\r\n\t \r\n\t System.out.println(fullname + \" is good.\");\r\n\t fullname = _savedir + fullname; \r\n\r\n\t // receive part2, which is file size. \r\n\t long filesize = Integer.parseInt(_socket.receive_msg());\r\n\t _socket.send_msg(\"ok\");\r\n\t System.out.println(\"file length: \" + filesize + \"\\n\");\r\n\r\n\t // 用于接收二进制文件流的stream, get ready for receiving the third part, which is the binary content\r\n\t DataOutputStream fileStream = null;\r\n\t try {\r\n\t\t FileOutputStream fileoutputStream = new FileOutputStream(fullname);\r\n\t\t BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(fileoutputStream);\r\n\t\t fileStream = new DataOutputStream(bufferedOutputStream);\r\n \t } catch (Exception e1) {\r\n\t\t\ttry {\r\n\t\t\t\tinputStream.close();\r\n\t\t\t} catch (IOException e2) {\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"file IO errer: \" + fullname);\r\n\t\t\treturn 1;\r\n \t }\r\n\t \r\n\t System.out.println(\"receiving file...\");\r\n\t \r\n\t // make some room for showing the progress percentage\r\n\t System.out.print(\"transfering: \");\r\n\t _lastpercentage_len = 0;\r\n\t String percent_show = \"what?\";\r\n\t \r\n\t int receive_total = 0;\r\n\t int bufferSize = 16384;\r\n\t byte[] receive_buff = new byte[bufferSize];\r\n\t // start to receive\r\n\t while (true) {\r\n\t \t int receive_current = 0;\r\n\t \t if (inputStream != null) {\r\n\t \t\t // beware that buffsize. only receive that amount of data each time\r\n\t \t\t receive_current = inputStream.read(receive_buff);\r\n\t \t }\r\n\t \t \r\n\t \t if (receive_current != -1){\r\n\t \t\t receive_total += receive_current;\r\n\t \t } else {\r\n\t \t\t break;\r\n\t \t }\r\n\r\n\t \t // just save those binary to file\r\n\t \t try {\r\n\t \t\t fileStream.write(receive_buff, 0, receive_current);\r\n\t \t } catch (Exception e1) {\r\n \t\t\ttry {\r\n \t\t\t\tinputStream.close();\r\n \t\t\t} catch (IOException e2) {\r\n \t\t\t\te1.printStackTrace();\r\n \t\t\t}\r\n \t\t\tSystem.out.println(\"file IO errer: \" + fullname);\r\n \t\t\treturn 1;\r\n\t \t }\r\n\t \t \r\n\t \t percent_show = 100.0 * receive_total / filesize + \"%\";\r\n\t \t for (int i=0; i<_lastpercentage_len; i++) {\r\n\t \t\t System.out.print('\\b');\r\n\t \t }\r\n\t \t System.out.print(percent_show);\r\n\t \t for (int i=percent_show.length(); i<_lastpercentage_len; i++) {\r\n\t \t\t System.out.print(' ');\r\n\t \t }\r\n\t \t for (int i=percent_show.length(); i<_lastpercentage_len; i++) {\r\n\t \t\t System.out.print('\\b');\r\n\t \t }\r\n\t \t _lastpercentage_len = percent_show.length();\r\n\t }\r\n\t \r\n\t fileStream.close();\r\n \t for (int i=0; i<_lastpercentage_len; i++) {\r\n \t\t System.out.print('\\b');\r\n \t }\r\n\t \r\n\t if (receive_total == filesize) {\r\n\t \t System.out.print(\"100%\u0003\u0003\u0003\u0003\u0003\u0003\u0003\u0003\u0003\u0003\u0003\u0003\\n\");\r\n\t \t System.out.println(\"\\nfile received: \" + fullname + \"\\n\");\r\n\t } else {\r\n\t \t System.out.println(\"\\nonly partial file was received!!! \" + \"file saved to \" + fullname + \"\\n\");\r\n\t }\r\n\t} catch (Exception e) {\r\n\t\ttry {\r\n\t\t\tinputStream.close();\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tSystem.out.println(\"oh boy, don't know where to start it.\" + \"\\n\");\r\n\t\treturn 2;\r\n\t}\r\n\r\n\ttry {\r\n\t\tinputStream.close();\r\n\t} catch (IOException e1) {\r\n\t\te1.printStackTrace();\r\n\t}\r\n\r\n\treturn 0;\r\n}",
"public static void main(String[] args) {\n\t\t\n\t\tif(args.length != 4){\n\t\t\tSystem.out.println(\"Program takes 4 arguments. Usage: java HttpClient localhost <port number> <Request Type(GET/PUT)> <filepath>\");\n\t\t}else{\n\t\t\tif (!isNumeric(args[1]))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Please enter valid Port no\");\n\t\t\t\treturn;\n\t\t\t}\n String hostName = args[0];\n\t\t\tint portNo = Integer.parseInt(args[1]);\n\t\t\tString requestType = args[2];\n\t\t\tString filePath = args[3];\n\t\t\tObjectOutputStream outs;\n\t\t\tObjectInputStream ins;\n\t\t\t\n\t\ttry {\n \n\t\t\tSocket socket = new Socket(hostName, portNo);\n\t\t\tSystem.out.println(\"\\n\" + \"Connected to Server on port \" + portNo);\n\t\t\t\n\t\t\touts = new ObjectOutputStream(socket.getOutputStream()); \n\t\t\tins = new ObjectInputStream(socket.getInputStream());\n\t\t\t\n\t\t\tif(requestType.equals(GET)){\n\t\t\t\tSystem.out.println(requestType + \" \" + filePath + \" HTTP/1.1\");\n\t\t\t\tSystem.out.println(\"Host:\" + hostName);\n\t\t\t\touts.writeObject(requestType + \" \" + filePath + \" HTTP/1.1\");\n\t\t\t\touts.writeObject(\"Host:\" + hostName);\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\tString response = (String) ins.readObject();\n\n\t\t\t\t\tSystem.out.println(\"Status: \" + response + \"\\n\");\n\t\t\t\t\tif ( response.equals(RESPONSE_OK)) \n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Requested file contains : \\n\");\n\t\t\t\t\t\tSystem.out.println(\"-------------------------------------------------\");\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString line = (String) ins.readObject();\n\t\t\t\t\t\t\twhile (line != null) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t\t\t\t\tline = (String) ins.readObject();\n\t\t\t\t\t\t\t}\n \n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tcatch(EOFException e)\n\t\t\t\t\t\t{\n System.out.println(\"-------------------------------------------------\");\n\t\t\t\t\t\t\tSystem.out.println(\"\\nFile is received\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(response);\n\t\t\t\t\t\t}\n\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse if ( requestType.equals(PUT)) \n\t\t\t{\n\t\t\t\tFile file = new File(filePath); \n\t\t\t\tif (!(file.isDirectory()) && (file.exists()))\n\t\t\t\t{\n System.out.println(\"Sending the file: \" + file.getName() + \" to server....\\n\"); \n\t\t\t\t\touts.writeObject(requestType + \" \" + filePath + \" HTTP/1.1\");\n\t\t\t\t\t\n\t\t\t\t\tInputStream fis = new FileInputStream(file); \n\t\t\t\t\tbyte [] buffer = new byte[(int)file.length()];\n\n\t\t\t\t\tint noOfBytes = fis.read(buffer);\n\t\t\t\t\ttry{\n\t\t\t\t\t\tif(noOfBytes > 0)\n\t\t\t\t\t\t{ \n\t\t\t\t\t\t\touts.write(buffer, 0, noOfBytes);\n\t\t\t\t\t\t\touts.flush();\n\t\t\t\t\t\t\tSystem.out.println(\"File: \" + file.getName() + \" Sent\\n\\n\");\n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfis.close();\n\t\t\t\t\tSystem.out.println(\"Status Code from server: \" + ins.readObject() + \"\\n\");\n\t\t\t\t\tSystem.out.println(\"Status Message from server: \" + ins.readObject() + \"\\n\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"File doesn't exist\\n\");\n\t\t\t\t\touts.writeObject(\"Invalid File\");\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Invalid Request type. Use only GET/PUT \\n\");\n\t\t\t\touts.writeObject(\"Invalid Request type\");\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Closing the Socket\");\n\t\t\t\n\t\t\touts.close();\n\t\t\tins.close();\t\t\t\n\t\t\tsocket.close();\n\t\t}\n\t\tcatch( Exception e )\n\t\t{\n\t\t\te.printStackTrace();\n\t\t} \n\t\t}\n\n\t}",
"private void handleStor(String file) {\n if (file == null) {\n sendMsgToClient(\"501 No filename given\");\n } else {\n File f = new File(currDirectory + fileSeparator + file);\n\n if (f.exists()) {\n sendMsgToClient(\"550 File already exists\");\n }\n\n else {\n\n // Binary mode\n if (transferMode == transferType.BINARY) {\n BufferedOutputStream fout = null;\n BufferedInputStream fin = null;\n\n sendMsgToClient(\"150 Opening binary mode data connection for requested file \" + f.getName());\n\n try {\n // create streams\n fout = new BufferedOutputStream(new FileOutputStream(f));\n fin = new BufferedInputStream(dataConnection.getInputStream());\n } catch (Exception e) {\n debugOutput(\"Could not create file streams\");\n }\n\n debugOutput(\"Start receiving file \" + f.getName());\n\n // write file with buffer\n byte[] buf = new byte[1024];\n int l = 0;\n try {\n while ((l = fin.read(buf, 0, 1024)) != -1) {\n fout.write(buf, 0, l);\n }\n } catch (IOException e) {\n debugOutput(\"Could not read from or write to file streams\");\n e.printStackTrace();\n }\n\n // close streams\n try {\n fin.close();\n fout.close();\n } catch (IOException e) {\n debugOutput(\"Could not close file streams\");\n e.printStackTrace();\n }\n\n debugOutput(\"Completed receiving file \" + f.getName());\n\n sendMsgToClient(\"226 File transfer successful. Closing data connection.\");\n\n }\n\n // ASCII mode\n else {\n sendMsgToClient(\"150 Opening ASCII mode data connection for requested file \" + f.getName());\n\n BufferedReader rin = null;\n PrintWriter rout = null;\n\n try {\n rin = new BufferedReader(new InputStreamReader(dataConnection.getInputStream()));\n rout = new PrintWriter(new FileOutputStream(f), true);\n\n } catch (IOException e) {\n debugOutput(\"Could not create file streams\");\n }\n\n String s;\n\n try {\n while ((s = rin.readLine()) != null) {\n rout.println(s);\n }\n } catch (IOException e) {\n debugOutput(\"Could not read from or write to file streams\");\n e.printStackTrace();\n }\n\n try {\n rout.close();\n rin.close();\n } catch (IOException e) {\n debugOutput(\"Could not close file streams\");\n e.printStackTrace();\n }\n sendMsgToClient(\"226 File transfer successful. Closing data connection.\");\n }\n\n }\n closeDataConnection();\n }\n\n }",
"public static void main(String[] args) {\n if(args.length == 12 && args[0].equals(\"-p\") && args[2].equals(\"-s\") &&\n args[4].equals(\"-a\") && args[6].equals(\"-f\") && args[8].equals(\"-m\")\n && args[10].equals(\"-c\")) {\n \n int port = Integer.parseInt(args[1]);\n InetAddress remoteAddress = null;\n try {\n remoteAddress = InetAddress.getByName(args[3]);\n } catch (UnknownHostException e) {\n e.printStackTrace();\n }\n int remotePort = Integer.parseInt(args[5]);\n String file = args[7];\n int mtu = Integer.parseInt(args[9]);\n int sws = Integer.parseInt(args[11]);\n sender(port, remoteAddress, remotePort, file, mtu, sws);\n }\n // -p <port> -m <mtu> -c <sws> -f <file name>\n else if(args.length == 8 && args[0].equals(\"-p\") && args[2].equals(\"-m\") &&\n args[4].equals(\"-c\") && args[6].equals(\"-f\")) {\n int port = Integer.parseInt(args[1]);\n int mtu = Integer.parseInt(args[3]);\n int sws = Integer.parseInt(args[5]);\n String file = args[7];\n receiver(port, mtu, sws, file);\n }\n // error\n else {\n System.out.println(\"usage:\\n\"\n + \"java TCPend -p <port> -s <remote IP> -a <remote port> -f <file name> -m <mtu> -c <sws>\\n\"\n + \"java TCPend -p <port> -m <mtu> -c <sws> -f <file name>\");\n System.exit(1);\n }\n }",
"public UDPServidor(String filename, int port) {\n this.filename = filename;\n this.port = port;\n }",
"public void run() {\n try {\n //first send the file name to the receiver\n out.flush();\n out.writeUTF(fileName);\n out.flush();\n //sends the destination folder name\n out.writeUTF(destFolder);\n out.flush(); //flushes the buffer\n //array of bytes that holds the file bytes\n byte[] file = readFile(srcFilePath +\"/\"+fileName);\n System.out.println(\"Sending file: \"+fileName+\" to folder: \"+destFolder);\n //sends the file\n out.write(file,0,file.length);\n out.flush();\n if(notifDownloader) {\n NodeInterface nodeStub = (NodeInterface) Naming.lookup(\"/\"+clientSocket.getInetAddress().toString()+\"/Node\");\n nodeStub.fileDownloaded(fileName);\n }\n } catch (IOException e) {\n System.out.println(\"readline: \" + e.getMessage());\n } catch (NotBoundException e) {\n //e.printStackTrace();\n System.err.println(\"There was an error notifying the downloader \"+e.getMessage());\n } finally{\n try{\n //closes the socket\n clientSocket.close();\n }catch(IOException e){\n System.out.println(\"problem closing the socket: \"+e.getMessage());\n }\n }\n }",
"public void onFTP(\r\n final String senderIP, \r\n final String senderName, \r\n final String fileName,\r\n final String fullpath,\r\n final int socketNo,\r\n final long fileLength) {\n // Process this ftp request with a thread so that\r\n // further messages can be processed without waiting for\r\n // finishing of this ftp.\r\n //\r\n Thread ftpThread = new Thread() {\r\n public void run() {\r\n\t\t\t\tFile \tselectedFile\t= null;\r\n\r\n\t\t\t\tsynchronized (FTPListenerImpl.this) {\r\n\t\t\t\t\tif (fFileChooser == null) {\r\n\t\t\t\t\t\tfFileChooser = new JFileChooser(\".\");\r\n\t\t\t\t\t\tfFileChooser.setDialogTitle(\"MessagingTool: \" + StringDefs.SAVE_FILE_AS);\r\n\t\t\t\t\t}\r\n\t\t\t\t \tselectedFile = new File(fFileChooser.getCurrentDirectory(), fileName);\r\n\t\t\t\t\tComponentUtil.overlapComponents(fFileChooser, fParentFrame, 32, false);\r\n\t\t\t\t\twhile (true) {\r\n\t\t\t\t\t\tfFileChooser.setSelectedFile(selectedFile);\r\n\t\t\t\t\t\tint status = fFileChooser.showSaveDialog(fParentFrame);\r\n\t\t\t\t\t\tif (status != JFileChooser.APPROVE_OPTION)\r\n \t\t\t\t \t\treturn;\r\n\r\n\t\t\t\t \t\tselectedFile = fFileChooser.getSelectedFile();\r\n\t\t\t\t\t\tif (!selectedFile.exists()) \r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tObject[] options = { StringDefs.YES, StringDefs.NO };\r\n\r\n\t\t\t\t\t\t\tfParentFrame.getToolkit().beep();\r\n\t\t\t\t\t\t\tint choice = JOptionPane.showOptionDialog(fParentFrame,\r\n\t\t\t\t\t\t\t\tselectedFile + StringDefs.FILE_EXISTS,\r\n\t\t\t\t\t\t\t\t\"\",\r\n\t\t\t\t\t\t\t\tJOptionPane.YES_NO_OPTION,\r\n\t\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE,\r\n\t\t\t\t\t\t\t\tnull, options, options[0]);\r\n\t\t\t\t\t \t\tif (choice == JOptionPane.YES_OPTION)\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t \t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n \r\n FileOutputStream outStream = null;\r\n\r\n try {\r\n outStream = new FileOutputStream(selectedFile);\r\n if (FTP.getInstance().retrieve(senderIP, fullpath, fileName, outStream, socketNo, fileLength))\r\n outStream.close();\r\n else {\r\n outStream.close();\r\n selectedFile.delete();\r\n }\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n selectedFile.delete();\r\n return;\r\n }\r\n }\r\n };\r\n\r\n ftpThread.setDaemon(true);\r\n ftpThread.start();\r\n }",
"public static void main(String[] args) throws Throwable {\n String address = JOptionPane.showInputDialog(\"Connect to?\");\n\n InetAddress inetAddress = InetAddress.getByName(address);\n Socket socket = new Socket(inetAddress, 1234);\n InputStream input = socket.getInputStream();\n FileOutputStream out = new FileOutputStream(\"output.txt\");\n System.out.println(\"Receiving to file output.txt\" );\n\n // simple variant\n int r = 0;\n while( (r=input.read())!=-1) {\n out.write(r);\n }\n\n // // buffered variant\n // int numRead = 0;\n // byte[] buffer = new byte[3*512];\n // while((numRead = input.read(buffer))>= 0) {\n // out.write(buffer, 0, numRead);\n // }\n out.flush(); out.close();\n input.close(); socket.close();\n System.out.println(\"Finished, please open file:\" );\n System.out.println(new File(\"output.txt\").getAbsoluteFile());\n }",
"boolean insertFile(String fileName) throws SocketException, UnknownHostException {\n boolean fileSent = false;\n\n StringBuilder sb = new StringBuilder();\n sb.append(\"name \"); sb.append(fileName);\n sb.append(\" operation \"); sb.append(\"insert\");\n sb.append(\" client IP \"); sb.append(InetAddress.getLocalHost());\n byte[] sendBuffer = sb.toString().getBytes();\n int hashVal = findHash(fileName, 0, 0);\n InetAddress address = systemMap.get(hashVal);\n System.out.println(\"\\nPacket sent to: \" + address.toString());\n DatagramPacket sendPacket = new DatagramPacket(sendBuffer, sendBuffer.length, address, recPort);\n try {\n socket.send(sendPacket);\n fileSent = true;\n }\n catch (IOException e){\n\n System.out.println(\"\\nIssue in sending packet\");\n }\n return fileSent;\n }",
"public void File2()throws IOException{\r\n\t//String SERVER = \"127.0.0.1\";\r\n\t//String SERVER = \"192.168.173.148\";\r\n\t//int SOCKET_PORT1 = 13267;\r\n\tint SOCKET_PORT2 = 3333;\r\n\t// you may change this\r\n\t\t//public final static String FILE_TO_SEND = \"E:/Musics/Videos/लॉलीपॉप लागेलू - Pawan Singh - Lollypop Lagelu - Bhojpuri Hot Songs HD_HD.mp4\"; // you may change this\r\n\t\r\n\t\t// FileInputStream fis = null;\r\n\t\t// BufferedInputStream bis = null;\r\n\t\t// OutputStream os = null;\r\n\t\t DataOutputStream dout=null;\r\n\t\t// Socket sock1 = null;\r\n\t\t Socket sock2 = null;\r\n\t\t // int j=0;\r\n\t\t// Scanner sc = null;\r\n\t\t // while(true){\r\n\t\t for(String filename:Main.getFILE_TO_RECEIVE_LIST()){ \t \r\n\t\t try {\r\n\t\t \t\r\n\t\t // sock = servsock.accept();\r\n\t\t // \tsock1 = new Socket(SERVER, SOCKET_PORT1);\r\n\t\t \tsock2 = new Socket(Main.getConnectIp(), SOCKET_PORT2);\r\n\t\t\t // System.out.println(\"Connecting...\");\r\n\r\n\t\t // System.out.println(\"Accepted connection : \" + sock);\r\n\t\t // send file:\r\n\t\t\t \r\n\t\t\t \t// for(String selectedFN:FILE_TO_RECEIVE_LIST){\r\n\t\t\t // \t String selectedFN=selectedFP.substring(selectedFP.lastIndexOf(\"\"\\\"\")+1);\"\r\n\t //setFILE_TO_RECEIVED(filename);\r\n\t\t \t\t// File myFile = new File (selectedFP); \r\n\t\t // File myFile = new File (selectedFP);\r\n\t\t // byte [] mybytearray = new byte [1024];\r\n\t\t // fis = new FileInputStream(myFile);\r\n\t\t // sc = new Scanner(fis, \"UTF-8\");\r\n\t\t // bis = new BufferedInputStream(fis);\r\n\t\t \r\n\t\t // bis.read(mybytearray,0,mybytearray.length);\r\n\t\t // sc.read\r\n\t\t // sc.\r\n\t\t // os = sock1.getOutputStream();\r\n\t\t // System.out.println(\"Sending \" + selectedFN + \"(\" + mybytearray.length + \" bytes)\");\r\n\t\t\t \r\n\t\t dout=new DataOutputStream(sock2.getOutputStream()); \r\n\t \t\t dout.writeUTF(filename); \r\n\t\t // os.write(mybytearray,0,mybytearray.length);\r\n\t\t \r\n\t\t // os.flush();\r\n\t\t // dout.flush(); \r\n\t\t // j++;\r\n\t\t // dout.close(); \r\n\t\t // System.out.println(\"Done.\");\r\n\t\t \r\n\t\t\t \t// }\r\n\t\t\t \t \r\n\t\t\t // }\r\n\t\t \t \r\n\t\t \r\n\t\t\t // System.out.println(\"all send file name\"); \r\n\t\t \r\n\t\t \t } finally {\r\n\t\t // if (bis != null) bis.close();\r\n\t\t \r\n\t\t // if (os != null) os.close();\r\n\t\t \t if (dout != null) dout.close();\r\n\t\t // if (sock1!=null) sock1.close();\r\n\t\t if (sock2!=null) sock2.close();\r\n\t\t \r\n\t\t }\r\n\t\t // System.out.println(\"all name send\");\r\n\t\t \r\n\t\t }\r\n\t\t \r\n\t\t\r\n}",
"public void sendFileMessage(String msg) throws IOException {\n\t\t\n\t\tif (!connectionActive()) {\n\t\t\tthrow new IllegalOperationException(\"Cannot send a message if you are not connected to a server!\\n\");\n\t\t}\n\t\t\n\t\tString[] tokens = msg.split(\"\\\\.(?=[^\\\\.]+$)\");\n\t\tMessage fileMessage = null;\n\t\ttry {\n\t\t\tfileMessage = Message.makeFileMessage(getUserName(), fileToByte(msg), tokens[1]);\n\t\t\t\n\t\t\t\n\t\t} catch (IOException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\tsocketConnection.print(fileToByte(msg),getUserName(),msg);\n\t\t\n\t}",
"@Override\n public void run()\n {\n try\n {\n InputStream fis = new FileInputStream(transferFile);\n OutputStream sos = socket.getOutputStream();\n\n logWriter.println(\"Sending the file...\");\n\n byte [] buffer = new byte[1024];\n int readBytes;\n while((readBytes = fis.read(buffer)) > -1) {\n sos.write(buffer, 0, readBytes);\n sos.flush();\n }\n\n fis.close();\n sos.close();\n socket.close();\n\n logWriter.println(\"File: \" + transferFile.getName());\n logWriter.println(transferFile.length() + \" bytes sent.\");\n logWriter.println(\"Data Connection Closed.\");\n\n } catch (IOException e)\n {\n e.printStackTrace(logWriter);\n }\n }",
"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}",
"public void sendFile(Socket sock, String path, ObjectOutputStream oos, ObjectInputStream ois) {\n\t\ttry {\n\t\t\tSystem.out.println(\"In send file\");\n\n\t\t\tString file_name = path;\n\t\t\tSystem.out.println(\"Inpyt path= \" + path);\n\t\t\tFile file = new File(file_name);\n\n\t\t\tSystem.out.println(\"Going to create output stream\");\n\n\t\t\tSystem.out.println(\"output Stream Created\");\n\t\t\toos.writeObject(file.getName()); // reads the name of file\n\t\t\tSystem.out.println(\"Writing object by oos\");\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\t\t\tbyte[] buffer = new byte[BUFFER_SIZE];\n\t\t\tInteger bytesRead = 0;\n\t\t\tSystem.out.println(\"Sending file\");\n\t\t\twhile ((bytesRead = fis.read(buffer)) > 0) {\n\t\t\t\tSystem.out.println(\"BytesRead = \" + bytesRead);\n\t\t\t\toos.writeObject(bytesRead);\n\t\t\t\toos.writeObject(Arrays.copyOf(buffer, buffer.length));\n\t\t\t}\n\n\t\t\toos.flush();\n\t\t\tSystem.out.println(\"File sent\");\n\n\t\t} \n\t\tcatch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t}",
"private void Download(ByteBuffer packet) throws IOException {\n\t\t// NO HEADER\n\t\t\n\t\t// allow only 1 download at a time, clear old threads\n\t\tfor (ServerFwding f : peer_threads){\n\t\t\tif (f.isAlive())\n\t\t\t\tf.interrupt();\n\t\t}\n\t\tpeer_threads.clear();\n\t\t\n\t\t//parse the req\n\t\tif (packet.capacity() < 4)\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"download request invalid\");\n\t\t\n\t\tint buf_id = packet.getInt(0);\n\t\t\n\t\tMap<ClientObj, Integer> clients_with_file = new HashMap<ClientObj, Integer>();\n\t\tfor (ClientObj c : clients){\n\t\t\tif (c.hasFile(buf_id) && c.getId() != client.getId())\n\t\t\t\tclients_with_file.put(c, 0);\n\t\t}\n\t\t\n\t\t// ask each client to prepare a port\n\t\tfor (ClientObj c : clients_with_file.keySet()) {\n\t\t\t//open connection with clients listener\n\t\t\tSocket peerConnection = c.getListenerSocket();\n\t\t\tOutputStream out_c = new BufferedOutputStream(peerConnection.getOutputStream());\n\t\t\t\n\t\t\t//construct packet\n\t\t\t//(for connect to a peer conn s->c) [header | file_id (4) | peer id (4) | port num]\n\t\t\tint peer_server_port = Utility.getValidPort();\n\t\t\tbuf = Utility.addHeader(Constants.PREPARE, 12, c.getId());\n\t\t\tbuf.putInt(Constants.HEADER_LEN, buf_id);\n\t\t\tbuf.putInt(Constants.HEADER_LEN + 4, client.getId());\n\t\t\tbuf.putInt(Constants.HEADER_LEN + 8, peer_server_port);\n\t\t\tbyte[] sendData = buf.array();\n\t\t\t\n\t\t\t// send response\n\t\t\tout_c.write(sendData);\n\t\t\tout_c.flush();\n\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\": sent peer client data (with server port \" +peer_server_port+\").\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tint client_server_port = Utility.getValidPort();\n\t\t\t\tServerFwding peer_thread = new ServerFwding(\n\t\t\t\t\t\tclient_server_port, c.getId(), peer_server_port, buf_id);\n\t\t\t\tpeer_thread.start();\n\t\t\t\t\n\t\t\t\t// send peer info to client, await connection on thread\n\t\t\t\tbuf = Utility.addHeader(Constants.DOWNLOAD_REQ, 8, client.getId());\n\t\t\t\tbuf.putInt(Constants.HEADER_LEN, client_server_port);\n\t\t\t\tbuf.putInt(Constants.HEADER_LEN + 4, c.getId());\n\t\t\t\tsendData = buf.array();\n\t\t\t\tout.write(sendData);\n\t\t\t\tout.flush();\n\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\": sent client peer data (with server port \" +client_server_port+\").\");\n\t\t\t\tpeer_threads.add(peer_thread);\n\t\t\t} catch (IOException e){\n\t\t\t\t// couldn't connect to peer, skip it\n\t\t\t\tSystem.err.println(client.getAddress()+ \n\t\t\t\t\t\t\": Failed to set up P2p connection \" + e.getMessage());\n\t\t\t} catch (RuntimeException e){\n\t\t\t\t// couldn't connect to peer, skip it\n\t\t\t\tSystem.err.println(client.getAddress()+ \n\t\t\t\t\t\t\": Failed to set uo P2p connection \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\t\n\t\t// send last to client\n\t\tbuf = Utility.addHeader(Constants.DOWNLOAD_REQ, 8, client.getId());\n\t\tbuf.putInt(Constants.HEADER_LEN, 0);\n\t\tbuf.putInt(Constants.HEADER_LEN + 4, 0);\n\t\tout.write(buf.array());\n\t\tout.flush();\n\t\t\n\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\": Correctly processed download req for \" + buf_id);\n\t}",
"private static void sendRequestUserTextUpload(Socket s, PrintWriter pw, String method, Boolean requestFileFlag, Boolean bodyFlag) throws IOException {\n pw.print(method + \" /\");\n if (requestFileFlag) {\n pw.print(\"UserTextUpload/\");\n }\n pw.print(\" HTTP/1.1\\r\\n\");\n //request headers formation.\n pw.print(\"Host: localhost\\r\\n\");\n pw.print(\"Content-Type: text/html\\r\\n\");\n\n //This is to add a new header with the size of the sent file.\n pw.print(\"Content-Size: \" + Files.size(Path.of(FILE_PATH)) + \"\\r\\n\");\n pw.print(\"\\r\\n\");\n pw.flush();\n\n //request body formation.\n if (bodyFlag) {\n //Change to your own txt file\n Files.copy(Path.of(FILE_PATH), s.getOutputStream());\n }\n pw.flush();\n }",
"public String getFileTransferServer();",
"private void openSocket(String host, int port) throws IOException {\n \t\t// Debug - attempting connection\n \n \t\tclientSocket = new Socket(InetAddress.getByName(host), port);\n \n \t\toutput = new BufferedWriter(new OutputStreamWriter(\n \t\t\t\tclientSocket.getOutputStream()));\n \t\toutput.flush();\n \n \t\tfileOutput = new BufferedOutputStream(clientSocket.getOutputStream());\n \n \t\tinput = new BufferedReader(new InputStreamReader(\n \t\t\t\tclientSocket.getInputStream()));\n \n \t\t// Debug - done\n \t}",
"public void sendPhotoToService(File photo) {\r\n try {\r\n InetAddress serverAddr = InetAddress.getByName(\"10.0.2.2\");\r\n Socket socket = new Socket(serverAddr, 8001);\r\n try {\r\n OutputStream output = socket.getOutputStream();\r\n InputStream input = socket.getInputStream();\r\n output.write(\"Begin\".getBytes());\r\n boolean ackResult = waitForAcknowledgement(input);\r\n if (ackResult) {\r\n //Send the photo's name to the service\r\n output.write(getFileNameBytes(photo));\r\n }\r\n ackResult = waitForAcknowledgement(input);\r\n if (ackResult) {\r\n //Send the photo to the service\r\n output.write(convertPhotoFileTOBytes(photo));\r\n }\r\n ackResult = waitForAcknowledgement(input);\r\n if (ackResult) {\r\n output.write(\"End\".getBytes());\r\n }\r\n waitForAcknowledgement(input);\r\n output.flush();\r\n } catch (Exception e) {\r\n Log.e(\"TCP\", \"S: Error\", e);\r\n } finally {\r\n socket.close();\r\n }\r\n } catch (Exception e) {\r\n Log.e(\"TCP\", \"C: Error\", e);\r\n }\r\n }",
"public void run(){\n try{\n String line = null;\n String [] line_seg; \n\t\t int num ;\n while((line = br.readLine())!=null) {\n\t\t\t line_seg = line.split(\",\");\n\t\t num = line_seg.length;\n\t\t\tif (num == 4) {\n\t\t\t\tif (line_seg[0].equals(\"FPUT\")) {\n\t\t\t\t\tfile_name = line_seg[1];\n\t\t\t\t\tport_num_ = Integer.parseInt(line_seg[3]);\n\t\t\t\t\tnew Thread(){\n\t\t\t\t\t\tpublic void run(){\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tReceiverThread.fileServer();\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}.start();\n\t\t\t\t} else if (line_seg[0].equals(\"FGET\")) {\n\t\t\t\t\t\tSocket sk = null;\n\t\t\t\t\t\ttry { \n\t\t\t\t\t\t\tsk = new Socket(line_seg[2], Integer.parseInt(line_seg[3]));\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tSystem.out.println(e);\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tFile output = new File(line_seg[1]);\n\t\t\t\t\t\tFileOutputStream fos = new FileOutputStream(output);\n\t\t\t\t\t\tBufferedInputStream bis =new BufferedInputStream(sk.getInputStream());\n\t\t\t\t\t\tBufferedOutputStream bos = new BufferedOutputStream(fos);\n\t\t\t\t\t\tbyte buffer[] = new byte[1024];\n\t\t\t\t\t\tint read;\n\t\t\t\t\t\twhile((read = bis.read(buffer))!=-1) {\n\t\t\t\t\t\t\tbos.write(buffer, 0, read);\n\t\t\t\t\t\t\tbos.flush();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfos.close();\n\t\t\t\t\t\t sk.close();\n\t\t\t\t\t\tSystem.out.println(\"File downloaded\");\n\t\t\t\t }\n\t\t } // end of if (num == 4) \n\t\t else { \n\t\t\t System.out.println(line);\n\t\t }\n } // end of while\t\n } catch(Exception e) {\n \t//e.printStackTrace();\n\t } finally {\n\t\t try{\n\t\t\t if(br!=null) {\n\t\t\t\t br.close();\n\t\t\t }\n\t\t }catch(Exception ex) {}\n\t\t try {\n\t\t\t if(sock!=null){\n\t\t\t\t sock.close();\n\t\t\t }\n\t\t }catch(Exception ex){}\n }\n }",
"protected final void sendFile(final File file) {\n\t\t// almacenamos el fichero a enviar\n\t\tthis.file = file;\n\t\t// cambiamos al modo transferencia\n\t\tthis.setLocalStage(Stage.FILE);\n\t\t// soliticamos el envio del fichero\n\t\tthis.send(Commands.FILE);\n\t}",
"public void getFile(byte[] data, String name,String server) throws RemoteException;",
"public void blockingSendSenderSide() throws OOBException {\n \t\tFileInputStream fis = null;\n \t\ttry {\n \t\t\tlog.debug(\"enter send scpmanager session is \" + session);\n \t\t\t// exec 'scp -t rfile' remotely\n \t\t\tString command = \"scp -p -t \" + rfile;\n \t\t\tChannel channel = session.openChannel(\"exec\");\n \t\t\t((ChannelExec) channel).setCommand(command);\n \t\t\t// get I/O streams for remote scp\n \t\t\tOutputStream out = channel.getOutputStream();\n \t\t\tInputStream in = channel.getInputStream();\n \t\t\tchannel.connect();\n \t\t\tif (checkAck(in) != 0) {\n \t\t\t\tSystem.exit(0);\n \t\t\t}\n \t\t\t// send \"C0644 filesize filename\", where filename should not include\n \t\t\t// '/'\n \t\t\tlog.debug(\"lfile value \" + lfile);\n \t\t\tlong filesize = (new File(lfile)).length();\n \t\t\tcommand = \"C0644 \" + filesize + \" \";\n \t\t\tif (lfile.lastIndexOf('/') > 0) {\n \t\t\t\tcommand += lfile.substring(lfile.lastIndexOf('/') + 1);\n \t\t\t} else {\n \t\t\t\tcommand += lfile;\n \t\t\t}\n \t\t\tcommand += \"\\n\";\n \t\t\tout.write(command.getBytes());\n \t\t\tout.flush();\n \t\t\tif (checkAck(in) != 0) {\n \t\t\t\tSystem.exit(0);\n \t\t\t}\n \n \t\t\t// send a content of lfile\n \t\t\tfis = new FileInputStream(lfile);\n \t\t\tbyte[] buf = new byte[1024];\n \t\t\twhile (true) {\n \t\t\t\tint len = fis.read(buf, 0, buf.length);\n \t\t\t\tif (len <= 0)\n \t\t\t\t\tbreak;\n \t\t\t\tout.write(buf, 0, len); // out.flush();\n \t\t\t}\n \t\t\tfis.close();\n \t\t\tfis = null;\n \t\t\t// send '\\0'\n \t\t\tbuf[0] = 0;\n \t\t\tout.write(buf, 0, 1);\n \t\t\tout.flush();\n \t\t\tif (checkAck(in) != 0) {\n \t\t\t\tSystem.exit(0);\n \t\t\t}\n \t\t\tout.close();\n \t\t\tchannel.disconnect();\n \t\t} catch (Exception e) {\n \t\t\te.printStackTrace();\n \t\t\ttry {\n \t\t\t\tif (fis != null)\n \t\t\t\t\tfis.close();\n \t\t\t} catch (Exception ee) {\n \t\t\t}\n \t\t}\n \t\tlog.debug(\"out send scpmanager\");\n \t}",
"public static void main(String[] args)throws Exception {//start of main method\n\t\t\n\t\tSocket Sock=new Socket(\"10.234.140.27\",10444);//Creating a socket to access the server\n\t\t\n\t\t/*Server Authentication*/\n\t\tPrintStream PS=new PrintStream(Sock.getOutputStream());\n\t\t\n\t\tInputStreamReader IR=new InputStreamReader(Sock.getInputStream());\n\t\tBufferedReader br=new BufferedReader(IR);\n\t\tString serverMessageCred=br.readLine();\n\t\tSystem.out.println(serverMessageCred);//Display server's message for Authentication\n\t\t\n\t\tBufferedReader br1=new BufferedReader(new InputStreamReader(System.in));\n\t\tString serverCredentials=br1.readLine();\n\t\tPS.println(serverCredentials);//Sending Client's Credentials\n\t\t\n\t\t/*Reading response from server*/\n\t\tString serverMessage=br.readLine();\n\t\tSystem.out.println(serverMessage);\n\t\tString serverMessageVer=\"Autentication Approved!\";\n\t\t\n\t\t/*After client is approved for further activities*/\n\t\tif(serverMessage.equalsIgnoreCase(serverMessageVer)){//Authentication approved if open\n\t\t\t\n\t\t\t/*Client sends request for file transfer*/\n\t\t\tPS.println(\"Request for file\");//sends message to server\n\t\t\tString serverMessage1=br.readLine();//reads message from server\n\t\t\tSystem.out.println(serverMessage1);//Shows message from server onto standard console of client\n\t\t\t\n\t\t\tString filenamepath=br1.readLine();//Takes file name as input from user\n\t\t\tPS.println(filenamepath);//Sends file name to server\n\t\t\tString serverMessage3=br.readLine();\n\t\t\tSystem.out.println(serverMessage3);\n\t\t\tString serverFilever=\"File is present Be Ready to receive it!\";\n\t\t\tif(serverMessage3.equalsIgnoreCase(serverFilever)){//if file present loop open\n\t\t\t\tboolean clientflag=true;//setting boolean flag for client to control while loop\n\t\t\t\twhile(clientflag==true){//start while loop for client\n\t\t\t\t\n\t\t\t\t\tbyte[] b = new byte[1024];//specifying byte array of 1024 fixed size to receive message contents\n\t\t\t\t \n\t\t\t\t String f=\"F1Copy.txt\";//change transferred filename here\n\t\t\t\t FileOutputStream inFile = new FileOutputStream(f);//Creates a new file instance\n\t\t\t\t InputStream is = Sock.getInputStream();//takes the input stream from the socket\n\t\t\t\t BufferedInputStream in2 = new BufferedInputStream(is, 1024);\n\t\t\t\t in2.read(b, 0, 1024);//reads into the byte array b from the input stream \n\t\t\t\t \n\t\t\t\t /*Receives the checksum from the server*/\n\t\t\t\t InputStreamReader IR1=new InputStreamReader(Sock.getInputStream());\n\t\t\t\t BufferedReader br2=new BufferedReader(IR1);\n\t\t\t\t String longver=br2.readLine();\n\t\t \n\t\t\t\t /*Receives the key value from the server*/\n\t\t int key=Integer.parseInt(br2.readLine());\n\t\t\t\t\n\t\t Long yverify=Long.parseLong(longver);//convert checksum to long its original format\n\t\t\t\t \n\t\t /*Decryption by client*/\n\t\t for(int i=0;i<b.length;i++){\n\t\t\t\t \tif(b[i]==0){//skip all zero values in byte array\n\t\t\t\t \t\tbreak;\n\t\t\t\t \t}\n\t\t\t\t \t b[i]=(byte) (b[i]-key);//subtract the key\n\t\t\t\t }\n\t\t\t\t \n\t\t /*Write each element of byte array into file at client side*/\n\t\t for(int i=0;i<b.length;i++){\n\t\t\t\t \tif(b[i]==0){\n\t\t\t\t \t\tbreak;\n\t\t\t\t \t}\n\t\t\t\t \tinFile.write(b[i]);\n\t\t\t\t }\n\t\t\t\t inFile.close();\n\t\t\t\t \n\t\t\t\t /*Create instance of file at client side to read its contents*/\n\t\t\t\t File f1=new File(f);\n\t\t\t\t FileInputStream fin=new FileInputStream(f1);\n\t\t\t\t\tbyte[] buf=new byte[1024];\n\t\t\t\t\tfin.read(buf, 0, 1024);//read file into byte array called buf.\n\t\t\t\t\t\n\t\t\t\t\t/*calculate CRC32 of the file contents*/\n\t\t\t\t\tjava.util.zip.CRC32 x=new java.util.zip.CRC32();\n\t\t\t x.update(buf);\n\t\t\t long y=x.getValue();\n y=0;\n\t\t\t \n\t\t\t /*if checksum is equal send message of success*/\n\t\t\t if(y==yverify){\n\t\t\t PS.println(\"Success\");\n\t\t\t InputStream is1 = Sock.getInputStream(); \n\t\t\t InputStreamReader IR2=new InputStreamReader(is1);\n\t\t\t\t\t BufferedReader br3=new BufferedReader(IR2);\n\t\t\t\t\t String retryver=br3.readLine();\n\t\t\t\t\t System.out.println(\"File transfer is successful!\");\n\t\t\t clientflag=false;//setting client flag to false\n\t\t\t }\n\t\t\t else{\n\t\t\t \tPS.println(\"Resend\");\n\t\t\t\t InputStream is1 = Sock.getInputStream(); \n\t\t\t\t InputStreamReader IR2=new InputStreamReader(is1);\n\t\t\t\t\t\t BufferedReader br3=new BufferedReader(IR2);\n\t\t\t\t\t\t String retryver=br3.readLine();\n\t\t\t\t\t\t System.out.println(\"Retry server msg \"+retryver);\n\t\t\t\t\t\t if(retryver.contains(\"Closing\")){//if server message contains closing\n\t\t\t\t\t\t \tclientflag=false;//setting client flag to false\n\t\t\t\t\t\t }\n\t\t\t }\n\t\t\t\t }//end while loop for client\n\t\t\t } //if file present loop closed \n\t\t\t}//if authentication approved loop closed\n\t\t\n\t\t\n\t}",
"public void run() {\n String fileName;\n DataInputStream in;\n byte[] arr = new byte[5000];\n try {\n //getting the file name from client\n in = new DataInputStream(clientSocket.getInputStream());\n fileName = in.readUTF();\n // calling the function to send the file back to the client\n sendDataToClient(s3, fileName);\n //read file from disk\n FileInputStream fis = new FileInputStream(\"/home/ubuntu/\" + fileName);\n BufferedInputStream bis = new BufferedInputStream(fis);\n //output stream for socket\n BufferedOutputStream out = new BufferedOutputStream(clientSocket.getOutputStream());\n // if the file is for getting RTT\n if ( !fileName.equals(\"RTTFile.txt\") )\n System.out.println(\"\\n Serving file: \" + fileName + \"\\n\");\n // writing to streams\n int count;\n while ((count = bis.read(arr)) > 0) {\n out.write(arr, 0, count);\n }\n // flushing and closing all the open streams\n out.flush();\n out.close();\n fis.close();\n bis.close();\n clientSocket.close();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void sendRequest(SimpleChannelHandler handler){\n fileServer.sendMessage(this.packet,new FileNode(ip,port),handler);\n }",
"public void sendFile(SocketChannel socketChannel) throws IOException {\n int index = -1;\n RandomAccessFile aFile = null;\n try {\n File file = new File(\"C:\\\\Users\\\\ASUS\\\\Downloads\\\\Music\\\\Marshmello-One-Thing-Right-(Ft-Kane-Brown).mp3\");\n aFile = new RandomAccessFile(file, \"r\");\n FileChannel inChannel = aFile.getChannel();\n ByteBuffer buffer = ByteBuffer.allocate(1024);\n while (inChannel.read(buffer) > 0) {\n buffer.flip();\n socketChannel.write(buffer);\n buffer.clear();\n }\n Thread.sleep(1000);\n System.out.println(\"End of file reached..\");\n socketChannel.close();\n aFile.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n }",
"public void sendFile(File theFile) throws TFTPException {\r\n\t\t\n\t\ttry {\r\n\t\t\tfileReader = new FileInputStream(theFile);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new TFTPException(e.getMessage(), PacketUtil.ERR_FILE_NOT_FOUND);\r\n\t\t}\t\t\n\t\t\r\n\t\tint blockNum = 1;\n\t\tbyte[] sendBuf = new byte[512]; // need to make this exactly our block size so we only read that much\r\n\t\tDatagramPacket sendPacket = null;\r\n\t\t\r\n\t\tboolean done = false;\r\n\t\tdo\t\t\r\n\t\t{\r\n\t\t\t// zero the send buffer so no lingering data is sent\r\n\t\t\tArrays.fill(sendBuf, (byte)0);\r\n\t\t\t\r\n\t\t\t// if last ACK packet was a duplicate we don't read from file\r\n\t\t\tif (!duplicatePacket){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tbytesRead = fileReader.read(sendBuf);\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tthrow new TFTPException(\"Error reading data from file: \"+e.getMessage(), PacketUtil.ERR_UNDEFINED);\r\n\t\t\t\t}\r\n\t\t\t\tif (bytesRead == -1) {\r\n\t\t\t\t\tbytesRead = 0;\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tif (bytesRead < 512) {\r\n\t\t\t\t\tdone = true;\r\n\t\t\t\t}\r\n\t\t\t\t// send DATA\r\n\t\t\t\tsendPacket = packetUtil.formDataPacket(sendBuf, bytesRead, blockNum);\r\n\t\t\t\tPacketUtil.sendPacketToProcess(threadLabel, socket, sendPacket, receiverProcess, \"DATA\");\n\t\t\t}\r\n\t\t\t\r\n\t\t\tDatagramPacket reply = null;\r\n\t \r\n\t\t\tboolean packetReceived = false;\r\n\t int retransmission = 0;\n\t \r\n\t // expect ACK\t \r\n\t while (!packetReceived && retransmission <= PacketUtil.DEFAULT_RETRY_TRANSMISSION){\n\t \ttry {\r\n\t \t\treply = PacketUtil.receivePacketOrTimeout(threadLabel, socket, receiverProcess, \"ACK\");\r\n\t \t\tpacketReceived = true;\r\n\t \t\t\r\n\t \t} catch (SocketTimeoutException ex){\r\n\t \t\t//no response for last Data packet, Data packet maybe lost, resending...\r\n\t \t\tprintToConsole(\"Error: Timed out while waiting for ACK Packet\");\t \t\t\r\n\t \t\t\t\r\n \t\t\t\tif (retransmission == PacketUtil.DEFAULT_RETRY_TRANSMISSION){\r\n \t\t\t\t\t\r\n \t\t\t\t\tthrow new TFTPException(String.format(\"No response received after %d retries, aborting request\", \r\n \t\t\t\t\t\tretransmission), PacketUtil.ERR_UNDEFINED); \r\n \t\t\t\t} \t\t\t\t\r\n \t\t\t\t\r\n \t\t\t\tprintToConsole(\"possible DATA packet loss, resending...\");\r\n \t\t\t\tPacketUtil.sendPacketToProcess(threadLabel, socket, sendPacket, receiverProcess, \"DATA\");\r\n\t\t\t\t\tretransmission++;\r\n\t \t}\r\n\t }\r\n\t \r\n\t // parse ACK to ensure it is correct before continuing\r\n\t try {\n\t \tduplicatePacket = parser.parseAckPacket(reply, blockNum);\n\t } catch (ErrorReceivedException e) {\r\n\t \t// the other side sent an error packet, don't send a response\t\t\t\t\r\n\t \t// rethrow so the owner of this Sender knows whats up\r\n\t \tthrow e;\r\n\n\t } catch (TFTPException e) {\r\n\r\n\t \t// send error packet\r\n\t \tDatagramPacket errPacket = packetUtil.formErrorPacket(e.getErrorCode(), e.getMessage(),\r\n\t \t\t\treply.getAddress(), reply.getPort());\t\t\t\t\r\n\t \tPacketUtil.sendPacketToProcess(threadLabel, socket, errPacket, receiverProcess, \"ERROR\");\r\n\r\n\t \tif (e.getErrorCode() == PacketUtil.ERR_UNKNOWN_TID) {\r\n\t \t\tprintToConsole(\"received packet with unknown TID\");\r\n\t \t\t// consider unknown TID a duplicate packet so we still wait for the right ACK\r\n\t \t\tduplicatePacket = true;\r\n\t \t} else {\r\n\t \t\t// rethrow so the owner of this Sender knows whats up\r\n\t \t\tthrow e;\r\n\t \t}\r\n\t }\r\n\r\n\r\n\t\t\tif (!duplicatePacket) { blockNum++; }\r\n\n\t\t} while (!done);\r\n\t\t\n\t}",
"public FileSenderThread(Socket socket, File transferFile, PrintWriter logWriter)\n {\n this.socket = socket;\n this.transferFile = transferFile;\n this.logWriter = logWriter;\n }",
"public void broadcastfile(int size, String file_name, byte[] file){\r\n Server.getUsers().forEach((user) -> {\r\n if(!user.getName().equals(this.name)){\r\n user.sendfile(size, file_name, file);\r\n }\r\n \r\n });\r\n \r\n }",
"public static void main(String [] args) throws IOException //added this line\n {\n if (args.length != ARG_CNT) {\n System.out.print(\"Usage: cmd ServerAddress ServerPort\\n\");\n return;\n }\n\n String hostName = args[0];\n String subHostname;\n int portNumber = Integer.parseInt(args[1]);\n int subPortNumber;\n\n try {\n Socket kkSocket = new Socket(hostName, portNumber);\n kkSocket.setSoTimeout(TIMEOUT); //sets Socket Timeout for FFFC in milliseconds\n\n // from client to server\n PrintWriter out1 = new PrintWriter(kkSocket.getOutputStream(), true);\n BufferedWriter out=new BufferedWriter(out1);\n //from server to client\n BufferedReader in = new BufferedReader(new InputStreamReader(kkSocket.getInputStream()));\n //from user\n BufferedReader stdIn =new BufferedReader(new InputStreamReader(System.in));\n\n String fromUserString;\n fromServer = in.readLine();\n while (fromServer != null) {\n String[] fromUser = new String[2];\n System.out.print(\"csftp> \");\n String command = \"\";\n\n try {\n fromUserString = stdIn.readLine();\n fromUser = fromUserString.split(\" \");\n command = fromUser[0].toLowerCase().trim();\n\n }catch(IOException e){\n printErrorMsg(\"FFFE\", null, null);\n System.exit(1);\n }\n\n switch (command) {\n case \"user\":\n if (fromUser.length!=2){\n printErrorMsg(\"002\", \"\", \"\");\n break;\n }\n out.write(\"USER \" + fromUser[1]+\"\\n\");\n out.flush();\n System.out.println(\"--> USER \" + fromUser[1]);\n readMultiLine(in);\n break;\n case \"pw\":\n if (fromUser.length!=2){\n printErrorMsg(\"002\", \"\", \"\");\n break;\n }\n out.write(\"PASS \" + fromUser[1]+\"\\n\");\n out.flush();\n System.out.println(\"--> PASS \" + fromUser[1]); //print out what we send\n readMultiLine(in);\n break;\n case \"cd\":\n if (fromUser.length!=2){\n printErrorMsg(\"002\", \"\", \"\");\n break;\n }\n out.write(\"CWD \"+fromUser[1]+\"\\n\");\n out.flush();\n System.out.println(\"--> CWD \" + fromUser[1]);\n readMultiLine(in);\n break;\n case \"quit\":\n if (fromUser.length!=1){\n printErrorMsg(\"002\", \"\", \"\");\n break;\n }\n out.write(\"QUIT\\n\");\n out.flush();\n System.out.println(\"--> QUIT\");\n System.out.println(in.readLine());\n System.exit(1);\n break;\n case \"features\":\n if (fromUser.length!=1){\n printErrorMsg(\"002\", \"\", \"\");\n break;\n }\n out.write(\"FEAT\\n\");\n out.flush();\n System.out.println(\"--> FEAT\");\n readMultiLine(in);\n break;\n case \"dir\":\n if (fromUser.length!=1){\n printErrorMsg(\"002\", \"\", \"\");\n break;\n }\n out.write(\"PASV\"+\"\\n\");\n out.flush();\n System.out.println(\"--> PASV\");\n String response = in.readLine();\n Pattern pattern = Pattern.compile(\"\\\\((.*)\\\\)\");\n Matcher matcher = pattern.matcher(response);\n\n try {\n if (matcher.find()) {\n String[] IpAdd = matcher.group(1).split(\",\");\n subHostname = IpAdd[0] + \".\" + IpAdd[1] + \".\" + IpAdd[2] + \".\" + IpAdd[3];\n subPortNumber = Integer.parseInt(IpAdd[4]) * 256 + Integer.parseInt(IpAdd[5]);\n\n try {\n Socket subSocket = new Socket(subHostname, subPortNumber);\n BufferedReader inSub = new BufferedReader(\n new InputStreamReader(subSocket.getInputStream()));\n subSocket.setSoTimeout(IO_TIMEOUT);\n out.write(\"LIST\\n\");\n out.flush();\n System.out.println(\"--> LIST\");\n\n String currentLine;\n while (true) {\n if ((currentLine = inSub.readLine()) != null) {\n System.out.println(\"<-- \" + currentLine);\n } else {\n break;\n }\n }\n inSub.close();\n subSocket.close();\n } catch (SocketTimeoutException e) {\n printErrorMsg(\"3A2\", subHostname, Integer.toString(subPortNumber));\n continue;\n }\n }\n } catch(IOException e){\n printErrorMsg(\"3A7\", \"\", \"\");\n continue;\n }\n readMultiLine(in);\n readMultiLine(in);\n break;\n case \"get\":\n if (fromUser.length!=2){\n printErrorMsg(\"002\", \"\", \"\");\n break;\n }\n out.write(\"PASV\"+\"\\n\");\n out.flush();\n System.out.println(\"--> PASV\");\n response = in.readLine();\n\n out.write(\"TYPE I\"+\"\\n\");\n out.flush();\n readMultiLine(in);\n\n pattern = Pattern.compile(\"\\\\((.*)\\\\)\");\n matcher = pattern.matcher(response);\n try {\n if (matcher.find()) {\n\n System.out.println(\"<--\" + matcher.group(1));\n String[] IpAdd = matcher.group(1).split(\",\");\n subHostname = IpAdd[0] + \".\" + IpAdd[1] + \".\" + IpAdd[2] + \".\" + IpAdd[3];\n subPortNumber = Integer.parseInt(IpAdd[4]) * 256 + Integer.parseInt(IpAdd[5]);\n try {\n Socket subSocket = new Socket(subHostname, subPortNumber);\n subSocket.setSoTimeout(IO_TIMEOUT); //sets socket timeout for 0x3A2\n FileOutputStream tempFile = new FileOutputStream(fromUser[1]);\n\n out.write(\"RETR \" + fromUser[1] + \"\\n\");\n out.flush();\n System.out.println(\"--> RETR\");\n String reply = in.readLine();\n\n //Data transfer connection fail to open\n if (reply.startsWith(\"425\")) {\n printErrorMsg(\"3A2\", subHostname, Integer.toString(subPortNumber));\n break;\n }\n\n //fail to access file\n if (reply.startsWith(\"550\")) {\n printErrorMsg(\"38E\", fromUser[1], \"\");\n break;\n }\n\n //save remote file to local machine\n int line;\n byte[] buf=new byte[4096];\n InputStream inSub = subSocket.getInputStream();\n while ((line = inSub.read(buf)) > 0) {\n tempFile.write(buf,0 ,line);\n }\n\n tempFile.close();\n tempFile.flush();\n inSub.close();\n subSocket.close();\n readMultiLine(in);\n\n } catch(SocketTimeoutException e) {\n printErrorMsg(\"3A2\", subHostname, Integer.toString(subPortNumber));\n continue;\n }\n }\n } catch(IOException e){\n printErrorMsg(\"3A7\", \"\", \"\");\n continue;\n }\n break;\n //if not one of these cases, invalid command error\n default: printErrorMsg(\"001\",\"\",\"\");\n }\n\n }\n } catch (UnknownHostException e) {\n printErrorMsg(\"FFFC\", hostName, Integer.toString(portNumber));\n System.exit(1);\n } catch (SocketTimeoutException e) {\n printErrorMsg(\"FFFC\", hostName, Integer.toString(portNumber));\n System.exit(1);\n } catch (IOException e) {\n printErrorMsg(\"FFFD\", null, null);\n System.exit(1);\n } catch (Exception e) {\n printErrorMsg(\"FFFF\", null, e.getMessage());\n System.exit(1);\n }\n }",
"public void run() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tSocket sock = ss.accept(); // 接受连接请求\n\t\t\t\tDataInputStream din = new DataInputStream(sock.getInputStream());\n\t\t\t\tbyte buffer[] = new byte[1024]; // 缓冲区\n\t\t\t\tint len = din.read(buffer);\n\t\t\t\tString filename = new String(buffer, 0, len); // 提取出想要获取的文件名\n\t\t\t\tSystem.out.println(\"Client01: received a file request from\" + sock.getInetAddress()+\":\"+sock.getPort()+\",filename:\"+ filename);\n\t\t\t\tDataOutputStream dout = new DataOutputStream(sock.getOutputStream());\n\t\t\t\tFileInputStream fis = new FileInputStream(new File(\"D:/networkExperiment/experiment04/host01/\" + filename));\n\t\t\t\tbyte b[] = new byte[1024];\n\t\t\t\tfis.read(b); // 从文件中将数据写入缓冲区\n\t\t\t\tdout.write(b); // 将缓冲区中的数据返回\n\t\t\t\tSystem.out.println(\"Client01: return file successfully!\");\n\t\t\t\tdout.close();\n\t\t\t\tsock.close();\n\t\t\t} catch (IOException e) {\n\t\t\t}\n\t\t}\n\t}",
"private static void sendBytes(FileInputStream fis, OutputStream op) throws Exception {\n\t\tbyte[] buffer = new byte[1024];\n\t\tint bytes = 0;\n\n\t\t// Copy requested file into the socket’s output stream.\n\t\twhile ((bytes = fis.read(buffer)) != -1) {\n\t\t\top.write(buffer, 0, bytes);\n\t\t}\n\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tString masterIP = args[0];\n\n\t\ttry {\n\t\t\tsock = new DatagramSocket(Machine.FILE_OPERATIONS_PORT);\n\t\t} catch (SocketException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tmyName = InetAddress.getLocalHost().getHostName();\n\t\t} catch (UnknownHostException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tScanner s = new Scanner(System.in);\n\t\tString cmd = null;\n\n\t\tserver = new FileTransferServer();\n\t\tserver.start();\n\n\t\twhile ((cmd = s.nextLine()) != null) {\n\n\t\t\tWriteLog.writelog(myName, cmd);\n\n\t\t\tif (\"exit\".equals(cmd)) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\telse if(cmd.startsWith(\"put \")){\n\t\t\t\tScanner lineScanner = new Scanner(cmd);\n\t\t\t\tString command, localFileName, sdfsFileName;\n\n\t\t\t\tcommand = lineScanner.next();\n\t\t\t\tlocalFileName = lineScanner.next();\n\t\t\t\tsdfsFileName = lineScanner.next();\n\n\t\t\t\tVector<String> putMsg = new Vector<String>();\n\n\t\t\t\tputMsg.add(\"P\");\n\t\t\t\tputMsg.add(localFileName);\n\t\t\t\tputMsg.add(sdfsFileName);\n\t\t\t\tputMsg.add(myName);\n\n\t\t\t\tWriteLog.writelog(myName, \"sendPutMsg:\" + putMsg.elementAt(1)+putMsg.elementAt(2));\n\t\t\t\tsendMsgToMaster(putMsg, masterIP);\n\n\t\t\t}\n\t\t\telse if(cmd.startsWith(\"get \")){\n\t\t\t\tVector<String> getMsg = new Vector<String>();\n\t\t\t\tScanner lineScanner = new Scanner(cmd);\n\t\t\t\tString command, localFileName, sdfsFileName;\n\n\t\t\t\tcommand = lineScanner.next();\n\t\t\t\tsdfsFileName = lineScanner.next();\n\t\t\t\tlocalFileName = lineScanner.next();\n\n\t\t\t\tgetMsg.add(\"G\");\n\t\t\t\tgetMsg.add(sdfsFileName);\n\t\t\t\tgetMsg.add(myName);\n\n\t\t\t\tWriteLog.writelog(myName, \"sendPutMsg:\"+getMsg.elementAt(1));\n\t\t\t\tsendMsgToMaster(getMsg, masterIP);\n\t\t\t\tVector<String> serverIP = recvListMsg();\n\t\t\t\t//String copyFN = cmd.substring(cmd.lastIndexOf(' ')+1);\n\n\t\t\t\t//Runnable runnable = new FileTransferClient(copyFN, cmd.substring(4, cmd.indexOf(' ', 4)),serverIP.elementAt(0));\n\t\t\t\tRunnable runnable = new FileTransferClient(localFileName, sdfsFileName,serverIP.elementAt(0));\n\n\t\t\t\tThread thread = new Thread(runnable);\n\t\t\t\tthread.start();\n\t\t\t}\n\t\t\telse if(cmd.startsWith(\"delete \")){\n\t\t\t\tVector<String> delMsg = new Vector<String>();\n\n\t\t\t\tScanner lineScanner = new Scanner(cmd);\n\t\t\t\tString command, localFileName, sdfsFileName;\n\n\t\t\t\tcommand = lineScanner.next();\n\t\t\t\tsdfsFileName = lineScanner.next();\n\n\t\t\t\tdelMsg.add(\"D\");\n\t\t\t\tdelMsg.add(sdfsFileName);\n\n\t\t\t\tWriteLog.writelog(myName, \"sendPutMsg: \" + delMsg.elementAt(1));\n\t\t\t\tsendMsgToMaster(delMsg, masterIP);\n\t\t\t}\n\t\t\telse if(cmd.startsWith(\"updateMaster \")){\n\t\t\t\tmasterIP = cmd.substring(cmd.lastIndexOf(' ')+1);\n\t\t\t\tSystem.out.println(\"New master - \"+masterIP);\n\t\t\t}\n\t\t\telse if(cmd.startsWith(\"maple \")) {\n\n\t\t\t\tVector<String> mapleMsg = new Vector<String>();\n\t\t\t\tVector<String> putMsg = new Vector<String>();\n\t\t\t\tScanner lineScanner = new Scanner(cmd);\n\t\t\t\tString command, jarName, sdfsFilePrefix, dirPath;\n\t\t\t\tFile[] listFiles = null;\n\n\t\t\t\tcommand = lineScanner.next();\n\t\t\t\tjarName = lineScanner.next();\n\t\t\t\tsdfsFilePrefix = lineScanner.next();\n\t\t\t\tdirPath = lineScanner.next();\n\n\t\t\t\tputMsg.add(\"P\");\n\t\t\t\tputMsg.add(jarName);\n\t\t\t\tputMsg.add(jarName);\n\t\t\t\tputMsg.add(myName);\n\t\t\t\t\n\t\t\t\tsendMsgToMaster(putMsg, masterIP);\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1 * 300);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tFile directory = new File(dirPath);\n\t\t\t\tlistFiles = directory.listFiles();\n\t\t\t\tfor(File tfile: listFiles){\n\t\t\t\t\tif (tfile.isFile()) \n\t\t\t\t\t{\n\t\t\t\t\t\tString filename = tfile.getName();\n\t\t\t\t\t\tString dirname = directory.getName();\n\t\t\t\t\t\tSystem.out.println(filename);\n\t\t\t\t\t\tputMsg = new Vector<String>();\n\t\t\t\t\t\t\n\t\t\t\t\t\tputMsg.add(\"P\");\n\t\t\t\t\t\tputMsg.add(dirPath+filename);\n\t\t\t\t\t\tputMsg.add(\"mj_\"+filename);\n\t\t\t\t\t\tputMsg.add(myName);\n\t\t\t\t\t\tSystem.out.println(\"client sending \"+putMsg+\" to master\");\n\t\t\t\t\t\tsendMsgToMaster(putMsg, masterIP);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(1 * 300);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tmapleMsg.add(\"maple\");\n\t\t\t\tmapleMsg.add(jarName);\n\t\t\t\tmapleMsg.add(sdfsFilePrefix);\n\n\t\t\t\t/*for(String sdfsFile : sdfsFiles) {\n\t\t\t\t\tmapleMsg.add(sdfsFile);\n\t\t\t\t}*/\n\t\t\t\tfor(File tfile: listFiles){\n\t\t\t\t\tString filename = tfile.getName();\n\t\t\t\t\tmapleMsg.add(\"mj_\"+filename);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"client sending \"+mapleMsg+\" to master\");\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1 * 500);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsendMsgToMaster(mapleMsg, masterIP);\n\n\t\t\t}else if(cmd.startsWith(\"juice \")) {\n\t\t\t\tVector<String> juiceMsg = new Vector<String>();\n\t\t\t\tVector<String> putMsg = new Vector<String>();\n\t\t\t\tScanner lineScanner = new Scanner(cmd);\n\t\t\t\tString command, jarName, sdfsFilePrefix, juiceFileName;\n\t\t\t\tInteger numJuices;\n\n\t\t\t\tcommand = lineScanner.next();\n\t\t\t\tjarName = lineScanner.next();\n\t\t\t\tnumJuices = lineScanner.nextInt();\n\t\t\t\tsdfsFilePrefix = lineScanner.next();\n\t\t\t\tjuiceFileName = lineScanner.next();\n\n\t\t\t\tputMsg.add(\"P\");\n\t\t\t\tputMsg.add(jarName);\n\t\t\t\tputMsg.add(jarName);\n\t\t\t\tputMsg.add(myName);\n\t\t\t\t\n\t\t\t\tsendMsgToMaster(putMsg, masterIP);\n\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1 * 1000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t\tjuiceMsg.add(\"juice\");\n\t\t\t\tjuiceMsg.add(jarName);\n\t\t\t\tjuiceMsg.add(numJuices.toString());\n\t\t\t\tjuiceMsg.add(sdfsFilePrefix);\n\t\t\t\tjuiceMsg.add(juiceFileName);\n\n\t\t\t\tWriteLog.writelog(myName, \"sendJuiceMsg: \" + juiceMsg.elementAt(1));\n\n\t\t\t\tsendMsgToMaster(juiceMsg, masterIP);\n\t\t\t}\n\n\t\t}\n\n\t}",
"@Override\n\tpublic void run( ) {\n\t\tConnect();\n\t\tSendFile( filePath );\n\t\tDisconnect();\n\t}",
"void sendFile() {\r\n\t\t// 특정 클라이언트에게 파일을 보냄\r\n\t}",
"public ZwischenServer() throws IOException{\n\t\tFile paramfile = new File(\"/home/tobi/uniworks/netzwerke/UE2/Parameter.txt\");\n\t\tif(paramfile.canRead()){\n\t\t\tInputStream paramIs = new FileInputStream(paramfile);\n\t\t\tInputStreamReader paramIsr = new InputStreamReader(paramIs);\n\t\t\tBufferedReader paramBr = new BufferedReader(paramIsr);\n\t\t\tth = paramBr.readLine();\n\t\t\tcontent = th.substring(th.indexOf(' ', 0), th.length());\n\t\t\tth = th.substring(0, th.indexOf(' ', 0));\n\t\t\texchangeContent = content.substring(content.indexOf(';'), content.indexOf(')')-1);\n\t\t\tcontent = content.substring(content.indexOf('('), content.indexOf(';'));\n\t\t\tsocket8082 = new Socket(\"127.0.0.1\",8082);\n\t\t\tsocket80 = new Socket(th,80);\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"Error file not found\");\n\t}",
"private void sendSocket()\n {\n InputStreamReader reader = null;\n BufferedReader bufferreader = null;\n Socket socket = null;\n try{\n socket = new Socket(address, port);\n OutputStream outputstream = socket.getOutputStream();\n DataOutputStream dataOutputStream = new DataOutputStream(outputstream);\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(dataOutputStream);\n String tem_msg = \"\";\n if(SEND_FILE==0)\n {\n tem_msg = original_name;\n }\n tem_msg = tem_msg+msg;\n// outputstream.write(msg.getBytes());\n// outputstream.flush();\n //dataOutputStream.writeUTF(msg);\n //dataOutputStream.flush();\n outputStreamWriter.write(tem_msg);\n outputStreamWriter.flush();\n //DataInputStream dataInputStream = new DataInputStream(socket.getInputStream());\n //InputStreamReader inputStreamReader = new InputStreamReader(dataInputStream);\n //dataOutputStream.close();\n socket.shutdownOutput();\n\n InputStream inputstream = socket.getInputStream();\n reader = new InputStreamReader(inputstream);\n bufferreader = new BufferedReader(reader);\n String tem = null;\n final StringBuffer stringb = new StringBuffer();\n while((tem=bufferreader.readLine())!=null){\n stringb.append(tem);\n }\n sendMsg(msg_what, stringb.toString());\n dataOutputStream.flush();\n dataOutputStream.close();\n socket.close();\n inputstream.close();\n }catch(UnknownHostException e){\n e.printStackTrace();\n }catch(IOException e){\n e.printStackTrace();\n }finally {\n try{\n if(bufferreader!=null)\n bufferreader.close();\n }catch(IOException ex){\n ex.printStackTrace();\n }\n }\n }",
"public void enviarArchivo() {\r\n \t try {\r\n \t\t\t// TODO Auto-generated method stub\r\n \t \t File archivo = new File( nombre );\r\n \t \r\n \t // Obtenemos el tamaño del archivo\r\n \t int tamañoArchivo = ( int )archivo.length();\r\n \t \r\n \t // Creamos el flujo de salida, este tipo de flujo nos permite \r\n \t // hacer la escritura de diferentes tipos de datos tales como\r\n \t // Strings, boolean, caracteres y la familia de enteros, etc.\r\n \t //dos = new DataOutputStream( socket.getOutputStream() );\r\n \t \r\n \t System.out.println( \"Enviando Archivo: \"+archivo.getName() );\r\n \t \r\n \t // Enviamos el nombre del archivo \r\n \t dos.writeUTF( archivo.getName() );\r\n \t \r\n \t // Enviamos el tamaño del archivo\r\n \t dos.writeInt( tamañoArchivo );\r\n \t \r\n \t // Creamos flujo de entrada para realizar la lectura del archivo en bytes\r\n \t fis = new FileInputStream( nombre );\r\n \t bis = new BufferedInputStream( fis );\r\n \t \r\n \t // Creamos el flujo de salida para enviar los datos del archivo en bytes\r\n \t bos = new BufferedOutputStream( socket.getOutputStream() );\r\n \t \r\n \t // Creamos un array de tipo byte con el tamaño del archivo \r\n \t byte[] buffer = new byte[ tamañoArchivo ];\r\n \t \r\n \t // Leemos el archivo y lo introducimos en el array de bytes \r\n \t bis.read( buffer ); \r\n \t \r\n \t // Realizamos el envio de los bytes que conforman el archivo\r\n \t for( int i = 0; i < buffer.length; i++ )\r\n \t {\r\n \t bos.write( buffer[ i ] ); \r\n \t } \r\n \t \r\n \t System.out.println( \"Archivo Enviado: \"+archivo.getName() );\r\n \t // Cerramos socket y flujos\r\n \t bis.close();\r\n \t bos.close();\r\n \t socket.close(); \r\n \t }\r\n \t catch( Exception e )\r\n \t {\r\n \t System.out.println( e.toString() );\r\n \t }\r\n\t \t\r\n }",
"public cliente(String host, int portNumber, String dirDownload){\r\n \r\n if (dirDownload != null){\r\n this.dirDownload = dirDownload; \r\n \r\n }\r\n this.IP = host;\r\n try {\r\n InetAddress inet = InetAddress.getByName(host);\r\n socket = new Socket(inet, portNumber);\r\n System.out.println(\"Puerto del cliente: \" + socket);\r\n \r\n this.clientIn= new BufferedReader(new InputStreamReader(socket.getInputStream())); \r\n this.clientOut = new PrintWriter(socket.getOutputStream(), true);\r\n }\r\n catch (IOException e) {\r\n System.out.println(\"Excepcion de E/S : \" + e);\r\n }\r\n \r\n}",
"public SendFiles(String desIp) {\n this.init(desIp);\n }",
"public static void main(String args[]){\r\n\t\t// hostname String used to declare the hostname\r\n\t\tString hostname=\"localhost\";\r\n\t\t//Socket Connection to Server\r\n\t\ttry {\r\n\t\t\tSocket cs = new Socket(hostname,2000);\r\n\t\t\t//input/ output from the server\r\n\t\t\toutputStream = new ObjectOutputStream(cs.getOutputStream());\r\n\t\t\tinputStream = new ObjectInputStream(cs.getInputStream());\r\n\t\t BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t // userInput \r\n\t\t\tString userInput;\r\n\t\t\t//Creating thread for receiving data from Server\r\n\t\t\t\r\n\t\t\tThread c = new ClientFile();\r\n\t\t\tc.start();\r\n \r\n\t\t\twhile ((userInput = stdIn.readLine()) != null) {\r\n \tif(userInput.equalsIgnoreCase(\"file\")) {\r\n\t\t\t\t\tSystem.out.println(\"**************** Enter Full Path of txt File: *************************** \");\r\n\t\t\t\t\t//input String to store file directory path\r\n\t\t\t\t\tString input = stdIn.readLine();\r\n\t\t\t\t try{\r\n\t\t\t\t \tin = new FileInputStream(input);\r\n\t\t\t\t } catch (IOException e) {\r\n\t\t\t\t System.out.print(\"Please Input Proper File Name, Type File to again to input file\");\r\n\t\t\t\t continue;\r\n\t\t\t\t }\t\r\n\t\t\t\t //cc Integer value to read file\r\n\t\t\t\t int cc;\r\n\t\t\t\t outputStream.writeObject(\"*File Incoming*\");\r\n\t\t\t\t //loop that sends data to the Server\r\n\t\t\t while ((cc = in.read()) != -1) {\r\n\t\t\t \t outputStream.writeObject(cc);\r\n\t\t\t outputStream.flush();\r\n\t\t\t }\r\n\t\t\t outputStream.writeObject(\"*Done File*\");\r\n \t} else {\r\n\t \toutputStream.writeObject(userInput);\r\n\t \toutputStream.flush();\r\n \t}\r\n }\r\n\t\t}\r\n\t\tcatch ( Exception e ) {\r\n\t\t\tSystem.out.println( e );\r\n\t\t}\r\n\t}",
"@Override\n public void run() {\n FILEPREFIX = \".//files\"+serverID + \"//\";\n ClientMessage = (Message) socketRead();\n ServerMessage = getReturnMessage(ClientMessage);\n //System.out.println(\"client\"+ClientMessage.getFrom()+\"message : \"+ClientMessage.getContent());\n File file = new File(FILEPREFIX + ClientMessage.getFileName());\n switch (ClientMessage.getType()){\n case \"enquiry\"://return the list of file\n ServerMessage.setContent(ListAllFile());\n break;\n case \"read\"://read the last line\n System.out.println(ClientMessage.getFrom() + \": Reading...\");\n ServerMessage.setContent(\"Reading: \"+ReadLastLine(file));\n System.out.println(\"Reading \"+ClientMessage.getContent());\n break;\n case \"write\"://write to the end of file\n System.out.println(ClientMessage.getFrom() + \": writing...\");\n try{\n WriteLastLine(file,ClientMessage.getContent());\n }catch (IOException e) {\n System.out.println(\"write error\");\n }\n\n ServerMessage.setContent(\"writing: \"+ReadLastLine(file));\n System.out.println(\"Writing \"+ClientMessage.getContent());\n break;\n default://unknown command\n System.out.println(ClientMessage.getType());\n ServerMessage.setContent(\"Error\");\n System.out.println(ClientMessage.getFrom() + \": Wrong type\");\n break;\n }\n socketWrite(ServerMessage);\n\n try {//close the socket connection\n client.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) throws UnknownHostException, IOException {\n\t\tSocket client=new Socket(\"localhost\",8888);\n\t\tInputStream is=new BufferedInputStream(new FileInputStream(\"src/ndl.png\"));\n\t\tOutputStream os=new BufferedOutputStream(client.getOutputStream());\n\t\tbyte[] flush=new byte[1024];\n\t\tint len=-1;\n\t\twhile((len=is.read(flush))!=-1) {\n\t\t\tos.write(flush, 0, len);\n\t\t}\n\t\tos.flush();\n\t\tos.close();\n\t\tis.close();\n\t\tclient.close();\n\t}",
"public void run() {\n\n ServerSocket ss = null;\n try {\n\n ss = new ServerSocket(port); // accept connection from other peers and send out blocks of images to others\n\n } catch (Exception e) {\n\n // e.printStackTrace();\n\n }\n\n while (true) {\n\n Socket s;\n\n try {\n\n s = ss.accept();\n\n new Thread(new uploader(s)).start(); // create an uploader thread for each incoming client\n\n } catch (Exception e){\n\n // e.printStackTrace();\n\n }\n\n }\n\n }",
"public void sendFile(ByteString bs, String filename, int numOfChunks, int chunkId) {\n\t\tHeader.Builder hb = Header.newBuilder();\n\t\thb.setNodeId(999);\n\t\thb.setTime(System.currentTimeMillis());\n\t\thb.setDestination(-1);\n\t\t\n\t\tTask.Builder tb = Task.newBuilder();\n\t\ttb.setNoOfChunks(numOfChunks); //Num of chunks\n\t\ttb.setChunkNo(chunkId); //chunk id\n\t\ttb.setTaskType(Task.TaskType.WRITE);\n\t\ttry {\n\t\t\ttb.setSender(InetAddress.getLocalHost().getHostAddress());\n\t\t} catch (UnknownHostException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttb.setFilename(filename);\n\t\ttb.setChunk(bs);\n\t\t\n\t\tCommandMessage.Builder rb = CommandMessage.newBuilder();\n\t\trb.setHeader(hb);\n\t\trb.setTask(tb);\n\t\trb.setMessage(filename);\n\t\t\n\t\ttry {\n\t\t\t// direct no queue\n\t\t\t// CommConnection.getInstance().write(rb.build());\n\n\t\t\t// using queue\n\t\t\tCommConnection.getInstance().enqueue(rb.build());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void envio_paquetes (Socket sock, ServerSocket sersock) throws IOException {\r\n\t\t\r\n\t\tFileInputStream fis = null;\r\n\t\tBufferedInputStream bis = null;\r\n\t\tOutputStream os = null;\r\n\t\tServerSocket servsock = null;\r\n\t\tint particiones;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tFile myFile = new File (Archivo_de_registro);\r\n\t\t\tbyte [] mybytearray = new byte [(int)myFile.length()];\r\n\t\t\tbyte [] buffertemp = new byte [Max_buffer];\r\n\t\t\tfis = new FileInputStream(myFile);\r\n\t\t\tbis = new BufferedInputStream(fis);\r\n\t\t\tparticiones = (int)Math.ceil((float)mybytearray.length / (float)Max_buffer ) ;\r\n\t\t\t// mandamos metadata\r\n\t\t\tSystem.out.println(\"Enviando metadata...\");\r\n\t\t\tSystem.out.println(\"Particiones = \"+particiones);\r\n\t\t\tSystem.out.println(\"Largo archivo = \"+mybytearray.length);\r\n\t\t\tPrintStream ios = new PrintStream(sock.getOutputStream());\r\n\t\t\t//primero servidor manda cantidad de paquetes\r\n\t\t\tios.println(particiones);\r\n \t\t//luego servidor manda tamanio paquete\r\n\t\t\tios.println(Max_buffer);\r\n\r\n\t\t\tsock.close();\r\n\t\t\tsock = sersock.accept();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// luego mandamos paquetes\r\n\t\t\tfor (int i= 0; i < particiones ;i++){\r\n\t\t\t\tif((i+1)*Max_buffer <mybytearray.length){\r\n\t\t\t\t\tbis.read(mybytearray,i*Max_buffer ,Max_buffer);\r\n\r\n\t\t\t\t\tos = sock.getOutputStream();\r\n\t\t\t\t\tSystem.out.println(\"Sending \" + Archivo_de_registro + \"(\" + mybytearray.length + \" bytes)\");\r\n\t\t\t\t\tos.write(mybytearray,i*Max_buffer ,Max_buffer);\r\n\t\t\t\t\tos.flush();\r\n\t\t\t\t}else{\r\n\t\t\t\t\tbis.read(mybytearray,i*Max_buffer ,mybytearray.length-i*Max_buffer);\r\n\r\n\t\t\t\t\tos = sock.getOutputStream();\r\n\t\t\t\t\tSystem.out.println(\"Sending \" + Archivo_de_registro + \"(\" + mybytearray.length + \" bytes)\");\r\n\t\t\t\t\tos.write(mybytearray,i*Max_buffer ,mybytearray.length-i*Max_buffer);\r\n\t\t\t\t\tos.flush();\r\n\t\t\t\t}\tSystem.out.println(\"Enviada parte \"+(i+1) + \" de \" + particiones+\"\\n\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Enviado todo\");\r\n\r\n\r\n\t\t} catch (IllegalBlockingModeException e){\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\t\r\n\t\t\tif (bis != null) bis.close();\r\n\t\t\tif (os != null) os.close();\r\n\t\t}\r\n\t}",
"public interface ClientInterface extends Remote {\n\tpublic static final int NUMBEROFSERVER=7;\n\t\n\t/*public static final String[] SERVERS = { \"glados.cs.rit.edu\", \"glados.cs.rit.edu\", \"glados.cs.rit.edu\", \"glados.cs.rit.edu\",\n\t\t\"glados.cs.rit.edu\", \"glados.cs.rit.edu\", \"glados.cs.rit.edu\", \"glados.cs.rit.edu\", \"glados.cs.rit.edu\",\n\t\t\"glados.cs.rit.edu\", \"glados.cs.rit.edu\", \"glados.cs.rit.edu\" };*/\n\tpublic static final String[] SERVERS = { \"glados.cs.rit.edu\", \"kansas.cs.rit.edu\", \"doors.cs.rit.edu\", \"gorgon.cs.rit.edu\",\n\t\t\"newyork.cs.rit.edu\", \"yes.cs.rit.edu\", \"kinks.cs.rit.edu\", \"medusa.cs.rit.edu\", \"joplin.cs.rit.edu\",\n\t\t\"delaware.cs.rit.edu\", \"buddy.cs.rit.edu\", \"arizona.cs.rit.edu\" };\n\t//public static final String ClientIP=\"129.21.88.98\";\n\t/**\n\t * This remote method will be called by server for copying file at Client using remote object.\n\t * @param data Byte array containing File data\n\t * @param name Name of the File\n\t * @param Server Name of the server\n\t * @throws RemoteException\n\t */\n\tpublic void getFile(byte[] data, String name,String server) throws RemoteException;\n\t/**\n\t * Servers will update request trail by invoking this remote method\n\t * @param request Name of the Server which is serving the file request.\n\t * @throws RemoteException\n\t */\n\tpublic void updateRequestTrail(String request) throws RemoteException;\n\t/**\n\t * Severs invoke this method for passing message to client Ex File does not exist \n\t * @param error Message contains\n\t * @throws RemoteException \n\t */\n\tpublic void Error(String error) throws RemoteException; \n\t\t\n\t\n}",
"public void sendFile(Type type, String file_name) {\n try {\n // Use this for reading the data.\n byte[] buffer = new byte[1000];\n\n FileInputStream inputStream = new FileInputStream(file_name);\n\n // read fills buffer with data and returns\n // the number of bytes read (which of course\n // may be less than the buffer size, but\n // it will never be more).\n int total = 0;\n int nRead = 0;\n while((nRead = inputStream.read(buffer)) != -1) {\n // Convert to String so we can display it.\n // Of course you wouldn't want to do this with\n // a 'real' binary file.\n System.out.println(new String(buffer));\n out.writeByte(nRead);\n total += nRead;\n }\n\n\n // Always close files.\n inputStream.close();\n\n System.out.println(\"Read \" + total + \" bytes\");\n }\n catch(FileNotFoundException ex) {\n System.out.println(\n \"Unable to open file '\" + file_name + \"'\");\n }\n catch(IOException ex) {\n System.out.println(\n \"Error reading file '\" + file_name + \"'\");\n // Or we could just do this:\n // ex.printStackTrace();\n }\n }",
"public static void receiveFile(DataInputStream in) throws NumberFormatException, IOException{\n\t\t// Obtains the file's name and size from the other client\n\t\tString fileName = in.readUTF();\n\t\tSystem.out.print(\"file name: \");\n\t\tSystem.out.println(fileName);\n\t\tlong size = Long.parseLong(in.readUTF());\n\t\tSystem.out.println(size + \" size1\\n\");\n\t\t\n\t\t// Byte array to store file's content as bytes\n\t\tbyte[] bytes = new byte[1024];\n\t\t\n\t\t// File output stream to write the bytes to the specified file\n\t\tFileOutputStream fos = new FileOutputStream(fileName);\n\t\tint n;\n\t\t\n\t\t// While there is still content to write to the file, write data to the file\n\t\twhile (size > 0 && (n = in.read(bytes, 0, (int)Math.min(bytes.length, size))) != -1)\n\t\t{\n\t\t\tfos.write(bytes, 0, n);\n\t\t\tsize -= n;\n\t\t}\n\t\tfos.close();\n\t}",
"public static void main(String argv[]) throws Exception{\n Client theClient = new Client();\n \n //get server RTSP port and IP address from the command line\n //------------------\n int RTSP_server_port = Integer.parseInt(argv[1]);\n String ServerHost = argv[0];\n InetAddress ServerIPAddr = InetAddress.getByName(ServerHost);\n \n //get video filename to request:\n VideoFileName = argv[2];\n \n //Establish a TCP connection with the server to exchange RTSP messages\n //------------------\n theClient.RTSPsocket = new Socket(ServerIPAddr, RTSP_server_port);\n \n //Set input and output stream filters:\n RTSPBufferedReader = new BufferedReader(new InputStreamReader(theClient.RTSPsocket.getInputStream()) );\n RTSPBufferedWriter = new BufferedWriter(new OutputStreamWriter(theClient.RTSPsocket.getOutputStream()) );\n \n //init RTSP state:\n state = INIT;\n }",
"public void sendFile() throws Exception {\n\t\tthis.logger.info(\"Sender: sending file\");\n\t\tlong senderStartTime = System.nanoTime();\n\t\tboolean done = false;\n\t\tDatagramPacket dp;\n\t\twhile (!done) {\n\t\t\twhile (!this.pw.windowFull() && (dp = this.readyPacket()) != null) {\n\t\t\t\tthis.pw.appendPacket(this.packetNumber, dp); // add the packet to the window\n\t\t\t\tthis.logger.debug(\"Adding packet: \" + this.packetNumber);\n\t\t\t\tthis.packetNumber = (this.packetNumber + 1) % 128;\n\t\t\t}\n\t\t\tthis.pw.transmitWindow(this.socket);\n\t\t\tthis.lastSent = System.nanoTime();\n\t\t\tthis.receivePacket();\n\t\t\tdone = this.pw.doneYet(); // all packages have been acknowledged\n\t\t\tthis.logger.debug(\"Done yet: \" + done + \" \" + this.doneReading);\n\t\t\tif (done && !this.doneReading) {\n\t\t\t\tdone = this.doneReading; // still need to read some packets\n\t\t\t}\n\t\t}\n\t\tthis.signalFinished(); // signal done sending file\n\t\tlong senderEndTime = System.nanoTime();\n\t\tdouble seconds = (senderEndTime - senderStartTime) / NS_TO_S;\n\t\tthis.logger.info(\"Sender: file sending complete\");\n\t\tthis.logger.info(String.format(\"Total time to send file: %.3f seconds\", seconds));\n\t\tthis.logger.info(\"Total file size: \"+ this.totalBytesRead +\" bytes\");\n\t}",
"private void saveFile(Socket socket) throws Exception {\n File file = new File(\"fileupload.txt\");\n file.createNewFile();\n PrintWriter fw = new PrintWriter(file);\n\n BufferedReader lnr = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n String line = null;\n while ((line = lnr.readLine()) != null) {\n System.out.println(\"line:\" + line);\n fw.println(line);\n }\n fw.close();\n\n // response result to client\n PrintWriter pw = new PrintWriter(socket.getOutputStream(), true);\n pw.println(\"上传成功\");\n\n // release resource\n System.out.println(\"server close socket: \" + socket.hashCode());\n socket.close();\n }",
"public void replyToClientBody(File file) {\r\n FileInputStream fis = null;\r\n try {\r\n /**\r\n * @see <a href=\"https://stackoverflow.com/questions/14169661/read-c\r\n * omplete-file-without-using-loop-in-java\">https://stackoverflow.co\r\n * m/questions/14169661/read-complete-file-without-using-loop-in-j\r\n * ava</a>\r\n */\r\n fis = new FileInputStream(file);\r\n byte[] data = new byte[(int) file.length()];\r\n fis.read(data);\r\n fis.close();\r\n outputBody.write(data);\r\n outputBody.flush();\r\n } catch (Exception ex) {\r\n Logger.getLogger(Server.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"public void downloadFile(FileDetails fileDetails) {\n DataOutputStream fileOut = null;\n try {\n DataOutputStream dataOutputStream =new DataOutputStream(this.clientSocket.getOutputStream());\n// sc = new Socket(hostIp, hostPort);\n System.out.println(\"Successfully connected(client) for file retrieval\");\n\n //Sending message to determining Upload/Download(0/1) request\n dataOutputStream.writeInt(1);\n// dataOutputStream.flush();\n //Sending Index of the file\n dataOutputStream.writeInt(fileDetails.getId());\n// dataOutputStream.flush();\n// this.clientSocket.shutdownOutput();\n\n\n DataInputStream dataInputStream = new DataInputStream(this.clientSocket.getInputStream());\n int hasFile = 1;\n // hasFile = dataInputStream.readInt();\n System.out.println(\"Does have file? : \" + hasFile);\n if (hasFile == 0) {\n System.out.println(\"Couldn't find the file\");\n } else {\n System.out.println(\"File started downloading in client-side...\");\n// int bufferSize = 8192;\n// byte[] buf = new byte[bufferSize];\n long passedlen = 0;\n long len = 0;\n\n\n// len = dataInputStream.readInt();\n len = fileDetails.getFileSize();\n System.out.println(\"The Length : \" + len);\n System.out.println(\"Staring receiving...\");\n\n int lengthInt = (int)len;\n byte[] fileByte = new byte[lengthInt];\n\n\n// ObjectInputStream objectInputStream = new ObjectInputStream(inputStreamObj);\n// String fileName =(String) objectInputStream.readObject();\n String fileName =(String) fileDetails.getFileName();\n\n// String fileName = (String) obj;\n String fileDir = downFileDir + fileName;\n System.out.println(\"Filepath : \" + fileDir);\n System.out.println(\"Filename receiving : \" + fileName);\n\n// File fileToDownload = new File(fileDir);\n// FileOutputStream fileOutputStream = new FileOutputStream(fileToDownload);\n DataOutputStream fileOutNew = new DataOutputStream(new FileOutputStream(fileDir));\n dataInputStream.readFully(fileByte,0,fileByte.length);\n fileOutNew.write(fileByte);\n// fileOutNew.close();\n\n// fileOutputStream.close();\n// fileOut = new DataOutputStream(new FileOutputStream(fileDir));\n// fileOut.write(fileByte);\n// fileOut.flush();\n// fileOut.close();\n// dataInputStream.close();\n// while (true) {\n// int read = 0;\n// if (dataInputStream != null) {\n// read = dataInputStream.read(buf);\n// }\n// passedlen += read;\n// if (read == -1) {\n// break;\n// }\n// fileOut.write(buf, 0, read);\n// }\n System.out.println(\"Receiving completed\");\n fetchFileListFromServer();\n// fileOut.close();\n }\n\n// dataOutputStream.close();\n// dataInputStream.close();\n// clientSocket.close();\n// new Client(\"127.0.0.1\",9908);\n// clientSocket.close();\n } catch (Exception e) {\n System.out.println(\"An Error has occurred in file retrieval(client)!\");\n e.printStackTrace();\n }\n }",
"public void downloadFileFromPeer(String ip, int port, String fileHash, String fileName, int fileSizeBytes)\n\t{\n\t\tThread downloadThread = new Thread(new DownloadCmd(ip, port, fileHash, fileName, fileSizeBytes));\n\t\t//peerDownloadThreads.put(ip + Integer.toString(port), downloadThread);\n\t\tdownloadThread.start();\n\t\t\n\t\tSystem.out.println(\"starting Download thread on: \" + ip + \":\" + port);\n\t}",
"@Override\n\tpublic void transferFile() throws Exception {\n\t\tnew Thread(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\"开始上传\");\n\t\t\t\t\tsocket=new Socket(ip,port);\n\t\t\t\t\tInputStream in=socket.getInputStream();\n\t\t\t\t\tOutputStream out=socket.getOutputStream();\n\t\t\t\t\tBufferedInputStream input=new BufferedInputStream(in);\n\t\t\t\t\twhile(true)\n\t\t\t\t\t{\n\t\t\t\t\t\tFileInputStream fis=new FileInputStream(file);\n\t\t\t\t\t\tDataInputStream dis=new DataInputStream(new BufferedInputStream(fis));\n\t\t\t\t\t\tbyte[] buf=new byte[8192];\n\t\t\t\t\t\tDataOutputStream ps=new DataOutputStream(out);\n\t\t\t\t\t\twhile(true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\t\tint read=0;\n\t\t\t\t\t\t\tif(dis!=null){\n\t\t\t\t\t\t\t\tread=fis.read(buf);\n\t\t\t\t\t\t\t\tdownLoadFileSize+=read;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(read==-1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttimer.cancel();\n\t\t\t\t\t\t\t\tMessage msg=new Message();\n\t\t\t\t\t\t\t\tBundle bundle=new Bundle();\n\t\t\t\t\t\t\t\tbundle.putInt(\"percent\",100 );\n\t\t\t\t\t\t\t\tmsg.setData(bundle);\n\t\t\t\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tps.write(buf,0,read);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tps.flush();\n\t\t\t\t\t\tout.flush();\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t\tdis.close();\n\t\t\t\t\t\tsocket.close();\n\t\t\t\t\t\tSystem.out.println(\"上传完成\");\n\t\t\t\t\t\t \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}).start();\n\t}",
"public NanoHTTPDSingleFile(String hostname, int port) {\n\t\tthis.hostname = hostname;\n\t\tthis.myPort = port;\n\t\tsetTempFileManagerFactory(new DefaultTempFileManagerFactory());\n\t\tsetAsyncRunner(new DefaultAsyncRunner());\n\t}",
"public boolean uploadSingleFile(File fileToUpload) {\n\t\tboolean success = false;\n\t\t\n\t\tthis.showNamedMessage(\"WARNING: overwriting existing files on server!\"); \n\t\ttry {\n\t\t\t// create uploadHandler\n\t\t\tDatagramSocket uploadSocket = TransportLayer.openNewDatagramSocket();\n\n\t\t\tint fileSizeToUpload = (int) fileToUpload.length(); // TODO casting long to int!\n\n\t\t\tUploadHelper uploadHelper = new UploadHelper(this, uploadSocket,\n\t\t\t\t\tthis.serverAddress, -2, fileSizeToUpload, fileToUpload); \n\t\t\t// Note: downloaderPort still unset\n\n\t\t\tthis.uploads.add(uploadHelper);\n\n\t\t\t// request file, provide uploaderHelper port\n\t\t\tString singleFileAnnouncement = FileTransferProtocol.UPLOAD + \n\t\t\t\t\tFileTransferProtocol.DELIMITER + \n\t\t\t\t\tuploadSocket.getLocalPort() + \n\t\t\t\t\tFileTransferProtocol.DELIMITER + \n\t\t\t\t\tfileSizeToUpload +\n\t\t\t\t\tFileTransferProtocol.DELIMITER + \n\t\t\t\t\tuploadHelper.getStartId(); \n\t\t\t\n\t\t\tbyte[] fileToUploadBytes = util.Bytes.serialiseObjectToByteArray(fileToUpload); \n\t\t\t\n\t\t\tPacket responsePacket = this.requestServer(singleFileAnnouncement, fileToUploadBytes);\n\t\t\tString[] responseSplit = this.getArguments(responsePacket.getPayloadString());\n\t\t\t\n\t\t\tif (responseSplit[0].contentEquals(FileTransferProtocol.DOWNLOAD)) {\n\t\t\t\tuploadHelper.setDownloaderPort(Integer.parseInt(responseSplit[1])); \n\t\t\t\tthis.showNamedMessage(\"Downloader is on server port = \" \n\t\t\t\t\t\t+ Integer.parseInt(responseSplit[1])); \n\n\t\t\t\t// now everything is known: start download helper\n\t\t\t\tnew Thread(uploadHelper).start();\n\t\t\t\tsuccess = true;\n\t\t\t} else {\n\t\t\t\tthis.showNamedError(\"Invalid response to upload announcement\");\n\t\t\t\tsuccess = false;\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tthis.showNamedError(\"Something went wrong: \" + e.getLocalizedMessage());\n\t\t} catch (EmptyResponseException e) {\n\t\t\tthis.showNamedError(\"Response from server was empty: \" + e.getLocalizedMessage());\n\t\t} catch (ServerFailureException e) {\n\t\t\tthis.showNamedError(\"SERVER FAILURE> \" + e.getLocalizedMessage());\n\t\t}\n\n\t\treturn success;\n\t}",
"public void processPutRequest(String request) throws IOException {\n\t\tString[] tokens = request.split(\"\\\\s+\");\n\t\tif (tokens.length != 3) {\n\t\t\tSystem.out.println(\"Incorrect Request\");\n\t\t\tclose();\n\t\t} else {\n\t\t\tString fileName = tokens[1];\n\t\t\tString version = tokens[2];\n\t\t\tif (version.equals(\"HTTP/1.0\") || version.equals(\"HTTP/1.1\")) {\n\t\t\t\tString filePath = \"C:\\\\Users\\\\admin\\\\Desktop\\\\socket\" + fileName.replaceAll(\"/\", \"\\\\\\\\\");\n\t\t\t\t// The path of file that client put\n\t\t\t\tFile file = new File(filePath);\n\t\t\t\tif (file.exists()) {\n\t\t\t\t\t// Send the response\n\t\t\t\t\tStringBuilder putMessage = new StringBuilder();\n\t\t\t\t\tputMessage.append(request);\n\t\t\t\t\tputMessage.append(CRLF);\n\t\t\t\t\tputMessage.append(\"User-Agent: MyClient-1.0\" + CRLF);\n\t\t\t\t\tputMessage.append(\"Accept-Encoding: ISO-8859-1\" + CRLF);\n\t\t\t\t\tputMessage.append(\n\t\t\t\t\t\t\t\"Content-Type: \" + URLConnection.getFileNameMap().getContentTypeFor(fileName) + CRLF);\n\t\t\t\t\tputMessage.append(\"Content-Length: \" + file.length() + CRLF);\n\t\t\t\t\tputMessage.append(\"Connection: close\" + CRLF);\n\t\t\t\t\tputMessage.append(CRLF);\n\t\t\t\t\t// Send to server\n\t\t\t\t\tString message = putMessage + \"\";\n\t\t\t\t\tbyte[] buffer = message.getBytes(ENCODING);\n\t\t\t\t\tostream.write(buffer, 0, message.length());\n\t\t\t\t\tostream.flush();\n\t\t\t\t\tSystem.out.println(message);\n\t\t\t\t\t// Read file and send it to server\n\t\t\t\t\tbyte[] sendData = Files.readAllBytes(file.toPath());\n\t\t\t\t\tostream.write(sendData);\n\t\t\t\t\tostream.flush();\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"File does not exist\");\n\t\t\t\t\tclose();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Bad Request\");\n\t\t\t\tclose();\n\t\t\t}\n\t\t}\n\t\tprocessResponse(\"PUT\");\n\t}",
"public void read(InetAddress addr, String filePath, String mode) {\r\n\t\ttry {\r\n\r\n\t\t\t// Form request and send to server\r\n\t\t\tRequest r = new Request(Request.Type.READ,filePath,mode);\r\n\t\t\tif (verbose) System.out.println(\"Sending a READ request to server for file \\\"\" + r.getFileName() + \"\\\".\\n\");\r\n\t\t\tDatagramPacket requestPacket = TFTP.formRQPacket(addr, sendPort, r);\r\n\t\t\tDatagramPacket dataPacket;\r\n\t\t\t// Send the request\r\n\t\t\tsendReceiveSocket.send(requestPacket);\r\n\r\n\t\t\tboolean transferComplete = false;\r\n\r\n\t\t\tboolean firstIteration = true;\r\n\r\n\t\t\tboolean packetInOrder;\r\n\r\n\t\t\t//To hold most recently sent packet for possible re-sending if needed.\r\n\t\t\t//DatagramPacket previousPacket = requestPacket;\r\n\r\n\t\t\tint currentBlockNumber = 1;\r\n\t\t\tbyte[] fileBytes = new byte[0];\r\n\t\t\tdo {\r\n\t\t\t\t// Make packet to receive DATA\r\n\t\t\t\tdataPacket = TFTP.formPacket();\r\n\r\n\t\t\t\t// Wait for DATA from server. If no response within set timeout limit, re-send packet (up to maximum re-send limit)\r\n\t\t\t\tif (verbose) System.out.println(\"Waiting for DATA from server...\");\r\n\r\n\t\t\t\tfor(int i = 0; i<RESEND_LIMIT; i = i+1) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t//System.out.println(\"Waiting... \" + i);\r\n\t\t\t\t\t\tsendReceiveSocket.receive(dataPacket);\r\n\t\t\t\t\t\ti = RESEND_LIMIT+1;\t\t//If packet successfully received, leave loop\r\n\t\t\t\t\t} catch(SocketTimeoutException e) {\r\n\t\t\t\t\t\t//if re-send attempt limit reached, 'give up' and cancel transfer\r\n\t\t\t\t\t\tif(i == RESEND_LIMIT-1)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.println(\"No response from server after \" + RESEND_LIMIT + \" attempts. Try again later.\");\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//don't re-send ACK packets, but do re-send request\r\n\t\t\t\t\t\tif(firstIteration)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(verbose) System.out.println(\"\\nServer timed out. RRQ resent.\\n\");\r\n\t\t\t\t\t\t\tsendReceiveSocket.send(requestPacket);\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\tTFTP.shrinkData(dataPacket);\r\n\r\n\t\t\t\t// If this is the first DATA packet received, record the address and port\r\n\t\t\t\tif (firstIteration) {\r\n\t\t\t\t\tthis.replyAddr = dataPacket.getAddress();\r\n\t\t\t\t\tthis.TID = dataPacket.getPort();\r\n\t\t\t\t\tfirstIteration = false;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tInetAddress packetAddress = dataPacket.getAddress();\r\n\t\t\t\t\tint packetPort = dataPacket.getPort();\r\n\t\t\t\t\tif (!(packetAddress.equals(replyAddr) && (packetPort == TID))) {\r\n\t\t\t\t\t\t// Creates an \"unknown TID\" error packet\r\n\t\t\t\t\t\tDatagramPacket errorPacket = TFTP.formERRORPacket(\r\n\t\t\t\t\t\t\t\tpacketAddress,\r\n\t\t\t\t\t\t\t\tpacketPort,\r\n\t\t\t\t\t\t\t\tTFTP.ERROR_CODE_UNKNOWN_TID,\r\n\t\t\t\t\t\t\t\t\"The address and port of the packet does not match the TID of the ongoing transfer.\");\r\n\r\n\t\t\t\t\t\t// Sends error packet\r\n\t\t\t\t\t\tsendReceiveSocket.send(errorPacket);\r\n\r\n\t\t\t\t\t\t// Echo error message\r\n\t\t\t\t\t\tif (verbose) System.out.println(\"Sent ERROR packet with ERROR code \" + TFTP.getErrorCode(errorPacket) + \": Received packet from an unknown host. Discarding packet and continuing transfer...\\n\");\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// This block is entered if the packet received is not a valid DATA packet\r\n\t\t\t\tString[] errorMessage = new String[1];\r\n\t\t\t\tif (!TFTP.verifyDataPacket(dataPacket, currentBlockNumber, errorMessage)) {\r\n\t\t\t\t\tString[] errorMessage2 = new String[1];\r\n\t\t\t\t\t// If an ERROR packet is received instead of the expected DATA packet, delete the file\r\n\t\t\t\t\t// and abort the transfer\r\n\t\t\t\t\tif (TFTP.verifyErrorPacket(dataPacket, errorMessage2)) {\r\n\t\t\t\t\t\tif (verbose) System.out.println(\"Received ERROR packet with ERROR code \" + TFTP.getErrorCode(dataPacket) + \": \" + TFTP.getErrorMessage(dataPacket) + \". Aborting transfer...\\n\");\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// If the received packet is not a DATA or an ERROR packet, then send an illegal TFTP\r\n\t\t\t\t\t// operation ERROR packet and abort the transfer\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t// Creates an \"illegal TFTP operation\" error packet\r\n\t\t\t\t\t\tDatagramPacket errorPacket = TFTP.formERRORPacket(\r\n\t\t\t\t\t\t\t\treplyAddr,\r\n\t\t\t\t\t\t\t\tTID,\r\n\t\t\t\t\t\t\t\tTFTP.ERROR_CODE_ILLEGAL_TFTP_OPERATION,\r\n\t\t\t\t\t\t\t\tr.getFileName() + \" could not be transferred because of the following error: \" + errorMessage[0] + \" (client expected a DATA packet with block#: \" + currentBlockNumber + \")\");\r\n\r\n\t\t\t\t\t\t// Sends error packet\r\n\t\t\t\t\t\t//TFTP.printPacket(errorPacket);\r\n\t\t\t\t\t\tsendReceiveSocket.send(errorPacket);\r\n\r\n\t\t\t\t\t\t// Echo error message\r\n\t\t\t\t\t\tif (verbose) System.out.println(\"Send ERROR packet with ERROR code \" + TFTP.getErrorCode(errorPacket) + \": Illegal TFTP Operation. Aborting transfer...\\n\");\r\n\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (verbose) System.out.println(\"DATA \" + TFTP.getBlockNumber(dataPacket) + \" received.\");\r\n\t\t\t\t//if (verbose) System.out.println(\"The size of the data was \" + TFTP.getData(dataPacket).length + \".\");\r\n\r\n\t\t\t\t// Transfer is complete if data block is less than MAX_PACKET_SIZE\r\n\t\t\t\tif (dataPacket.getLength() < TFTP.MAX_PACKET_SIZE) {\r\n\t\t\t\t\ttransferComplete = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tpacketInOrder = TFTP.checkPacketInOrder(dataPacket, currentBlockNumber);\r\n\r\n\t\t\t\t//If the packet was the expected sequential block number in the transfer (not duplicated or delayed), write the data to the file\r\n\t\t\t\tif(packetInOrder){\r\n\t\t\t\t\t// Write data to file\r\n\t\t\t\t\t//if (verbose) System.out.println(\"Appending current block to filebytes.\");\r\n\t\t\t\t\tfileBytes = TFTP.appendData(dataPacket, fileBytes);\r\n\t\t\t\t\tif ((fileBytes.length*TFTP.MAX_DATA_SIZE) > TFTP.getFreeSpaceOnFileSystem(directory)) {\r\n\t\t\t\t\t\t// Creates a \"disk full\" error packet\r\n\t\t\t\t\t\tDatagramPacket errorPacket = TFTP.formERRORPacket(\r\n\t\t\t\t\t\t\t\treplyAddr,\r\n\t\t\t\t\t\t\t\tTID,\r\n\t\t\t\t\t\t\t\tTFTP.ERROR_CODE_DISK_FULL,\r\n\t\t\t\t\t\t\t\t\"\\\"\" + r.getFileName() + \"\\\" could not be transferred because disk is full.\");\r\n\r\n\t\t\t\t\t\t// Sends error packet\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tsendReceiveSocket.send(errorPacket);\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t// Do nothing\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// Echo error message\r\n\t\t\t\t\t\tif (verbose) System.out.println(\"Sent ERROR packet with ERROR code \" + TFTP.ERROR_CODE_DISK_FULL + \": Disk full. Aborting transfer...\\n\");\r\n\r\n\t\t\t\t\t\t// Closes socket and aborts thread\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Form an ACK packet to respond with and send\r\n\t\t\t\tDatagramPacket ackPacket = TFTP.formACKPacket(replyAddr, TID, TFTP.getBlockNumber(dataPacket));\r\n\t\t\t\tif (verbose) System.out.println(\"ACK \" + TFTP.getBlockNumber(ackPacket) + \" sent.\");\r\n\t\t\t\tsendReceiveSocket.send(ackPacket);\r\n\r\n\r\n\t\t\t\t//Update the current block number only if the packet was not a duplicate/delayed\r\n\t\t\t\tif(packetInOrder){\r\n\t\t\t\t\tcurrentBlockNumber = (currentBlockNumber + 1) % 65536;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Newline\r\n\t\t\t\tif (verbose) System.out.println();\r\n\t\t\t} while (!transferComplete);\r\n\t\t\t//} while (TFTP.getData(dataPacket).length == TFTP.MAX_DATA_SIZE);\r\n\t\t\tif (verbose) System.out.println(\"Writing bytes to file...\");\r\n\t\t\tTFTP.writeBytesToFile(filePath, fileBytes);\r\n\t\t\tSystem.out.println(\"Read complete.\\n\");\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) throws NumberFormatException,\n IOException\n {\n int port = 0;\n String address = \"127.0.0.1\";\n String path = \"\";\n\n if (args.length % 2 == 0) {\n for (int i = 0; i < args.length; i++) {\n if (args[i].equals(\"-a\")) {\n address = args[i + 1];\n }\n if (args[i].equals(\"-d\")) {\n path = args[i + 1];\n }\n if (args[i].equals(\"-p\")) {\n port = Integer.parseInt(args[i + 1]);\n }\n }\n }\n\n if (port != 0 && !path.equals(\"\")) {\n new FileServer().launch(port, path, address);\n } else {\n System.out\n .println(\"> arguments must be : -p [port] -d [path of the file system] -a (optionnal) [address]\");\n }\n }",
"public int send2FtpServer()\n\t{\n\t\tCoFile file = null;\n\t\tCoFile to = null;\n\t\tString filename = \"\";\n\t\tString dest_filename = \"\";\n\t\tString sum_line = \"\";\n\t\tboolean loadResult = false;\n\t\tboolean renameFileResult = false;\n\t\tfor (int i = 0; i < vFiles.size(); i++)\n\t\t{\n\t\t\tfilename = ((File) (vFiles.elementAt(i))).getName();\n\t\t\t/* source FtpFile remote file */\n\t\t\tfile = new LocalFile(FtpData.LOCAL_FOLDER, filename);\n\t\t\t// System.out.println(\"From: \" + file.toString());\n\t\t\t/* destination LocalFile home dir */\n\t\t\t// ---------------------count ftp file\n\t\t\t// site--------------------------------\n\t\t\tFile f = new File(FtpData.LOCAL_FOLDER + \"/\" + filename);\n\t\t\tString fileLength = String.valueOf(f.length());\n\t\t\t// System.out.println(\"file size: \" + fileLength);\n\t\t\t// ---------------------count ftp file\n\t\t\t// site--------------------------------\n\n\t\t\tto = new FtpFile(\"tmp_\" + filename, this.ftp);\n\n\t\t\t// System.out.println(\"To: \" + to.toString());\n\t\t\t/* download file */\n\t\t\tloadResult = CoLoad.copy(to, file);\n\t\t\tLogger.info(\"FTP-SIZE: \" + loadResult);\n\t\t\t// System.out.println(\"Load: \" + loadResult);\n\t\t\t// rename file sau khi ftp sang\n\t\t\t// System.out.print(\"Start rename file cdr: \" + \"tmp_\" + filename +\n\t\t\t// \"-->\" + filename);\n\t\t\trenameFileResult = this.ftp.mv( \"tmp_\" + filename, \"\" + filename);\n\t\t\t// System.out.println(\"Rename: \" + renameFileResult);\n\t\t\tLogger.info(\"FTP-RENAME: \" + renameFileResult);\n\t\t\tif (loadResult && renameFileResult)\n\t\t\t{ // ok -->delete file.\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tString sDateFolder = DateProc.Timestamp2YYYYMMDD(DateProc.createTimestamp(), \"\");\n\n\t\t\t\t\t// File dest_dir = new File(FtpData.SENT_FOLDER + \"\\\\\" +\n\t\t\t\t\t// sDateFolder);\n\t\t\t\t\tFile dest_dir = new File(FtpData.SENT_FOLDER_VMS + \"/\" + sDateFolder);\n\n\t\t\t\t\tboolean exists = dest_dir.exists();\n\t\t\t\t\tif (!exists)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Directory does not exist --> create it\n\t\t\t\t\t\tboolean success = dest_dir.mkdirs();\n\t\t\t\t\t}\n\t\t\t\t\t// fileTool.copy(FtpData.LOCAL_FOLDER + \"\\\\\" +\n\t\t\t\t\t// file.getName(),\n\t\t\t\t\t// FtpData.SENT_FOLDER + \"\\\\\" + sDateFolder + \"\\\\\" +\n\t\t\t\t\t// file.getName());\n\t\t\t\t\tfileTool.copy(FtpData.LOCAL_FOLDER + \"/\" + file.getName(), FtpData.SENT_FOLDER_VMS + \"/\" + sDateFolder + \"/\" + file.getName());\n\t\t\t\t\t\n\t\t\t\t\tLogger.info(\"backup file: from: \" + FtpData.LOCAL_FOLDER + \"/\" + file.getName() + \" to: \" + FtpData.SENT_FOLDER_VMS + \"/\" + sDateFolder\n\t\t\t\t\t\t\t+ \"/\" + file.getName());\n\t\t\t\t\tfile.delete();\n\t\t\t\t\tCdrFilename4vms.setNewFilenameVMS(filename);\n\t\t\t\t\tLogger.info(\"FTP : file name: \" + filename + \"# filesize: \" + fileLength + \" bytes\");\n\t\t\t\t}\n\t\t\t\tcatch (IOException ex)\n\t\t\t\t{\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t\tLogger.info(\"FTP\", ex.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tif ((loadResult = false) && (renameFileResult = true))\n\t\t\t\t\t{\n\t\t\t\t\t\t// DBTools.log_alert(Preference.sourceAddressList.toString(),\n\t\t\t\t\t\t// \"CDR->FTP\",\n\t\t\t\t\t\t// \"<-\" + Preference.mobileOperator +\n\t\t\t\t\t\t// \"-> ERROR: Khong ftp duoc file cuoc sang telcos!\",\n\t\t\t\t\t\t// 1, Preference.alert_person,\n\t\t\t\t\t\t// Preference.alert_mobile);\n\t\t\t\t\t\tDBTools.log_alert(\"Billing system\", \"-> ERROR: Khong ftp duoc file cuoc sang telcos! \", 1, 0, \"serious\", Preference.alert_person);\n\t\t\t\t\t}\n\t\t\t\t\telse if ((loadResult = true) && (renameFileResult = false))\n\t\t\t\t\t{\n\t\t\t\t\t\t// DBTools.log_alert(Preference.sourceAddressList.toString(),\n\t\t\t\t\t\t// \"CDR->FTP\",\n\t\t\t\t\t\t// \"<-\" + Preference.mobileOperator +\n\t\t\t\t\t\t// \"-> ERROR: Khong rename duoc file cuoc sau khi ftp sang telcos!\",\n\t\t\t\t\t\t// 1, Preference.alert_person,\n\t\t\t\t\t\t// Preference.alert_mobile);\n\t\t\t\t\t\tDBTools.log_alert(\"Billing system\", \"-> ERROR: Khong rename duoc file cuoc sau khi ftp ! \", 1, 0, \"serious\", Preference.alert_person);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// DBTools.log_alert(Preference.sourceAddressList.toString(),\n\t\t\t\t\t\t// \"CDR->FTP\",\n\t\t\t\t\t\t// \"<-\" + Preference.mobileOperator +\n\t\t\t\t\t\t// \"-> ERROR: Loi ftp file cuoc\",\n\t\t\t\t\t\t// 1, Preference.alert_person, Preference.alert_mobile);\n\t\t\t\t\t\tDBTools.log_alert(\"Billing system\", \"-> ERROR: Loi ftp file cuoc ! \", 1, 0, \"serious\", Preference.alert_person);\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tcatch (Exception e)\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn this.vFiles.size();\n\t}",
"private void Upload(ByteBuffer packet) throws RuntimeException, IOException{\n\t\t// given packet w/no header!\n\t\t// (for uploading request c->s) [header | filesize(8) | filename(?)]\n\t\t// (for upload acknowledgement s->c) [header | already exists (1) | file id (4)]\n\t\t\n\t\t// parse the req\n\t\tif (packet.capacity() < 4)\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"filename not correctly uploaded\");\n\t\tlong buf_size = packet.getLong(0);\n\t\tString buf_name = \"\";\n\t\tfor (int i = 0; i < buf.capacity(); i++){\n\t\t\tif (buf.get(8 +i) == '\\0')\n\t\t\t\tbreak;\n\t\t\tbuf_name += (char)buf.get(8 + i);\n\t\t}\n\t\tif (buf_name.length() == 0)\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"filename not correctly uploaded\");\n\t\t\n\t\tint id = buf_name.hashCode() + (int)buf_size;\n\t\tboolean add = true;\n\t\tfor (ClientObj c : clients)\n\t\t\tif (c.hasFile(id)) // Check for duplicate id's, which would be problematic\n\t\t\t\tadd = false;\n\t\tbyte exists = 0;\n\t\tif (add)\n\t\t\tclient.addUpload(new ServerFile(buf_name, buf_size, id));\n\t\telse {\n\t\t\tfor (ServerFile f : totalFiles().keySet())\n\t\t\t\tif (f.id() == id)\n\t\t\t\t\tclient.addUpload(f);\n\t\t\texists = 1;\n\t\t}\n\t\tSystem.out.println(client.getAddress() + \": Correctly processed upload req for \" + buf_name \n\t\t\t\t+ \" with size \" + buf_size + \" bytes and id \" + id);\n\t\t\n\t\t//construct/send response\n\t\tbuf = Utility.addHeader(3, 5, client.getId());\n\t\tbuf.put(Constants.HEADER_LEN, exists);\n\t\tbuf.putInt(Constants.HEADER_LEN + 1, id);\n\t\tbyte[] sendData = buf.array();\n\t\t\n\t\t// send response\n\t\tout.write(sendData);\n\t\tout.flush();\n\t}",
"public void replyToClientHeader(int type, File file) {\r\n \t\r\n if (type == NOT_IMPLEMENTED) {\r\n pw.print(\"HTTP/1.1 501 Not Implemented\\r\\n\");\r\n out.print(\". Response to client: HTTP/1.1 501 Not Implemented\\r\\n\");\r\n out.flush();\r\n }\r\n else if (type == OK) {\r\n pw.print(\"HTTP/1.1 200 OK\\r\\n\");\r\n out.print(\". Response to client: HTTP/1.1 200 OK\\r\\n\");\r\n out.flush();\r\n }\r\n else {\r\n pw.print(\"HTTP/1.1 404 Not Found\\r\\n\");\r\n out.print(\". Response to client: HTTP/1.1 404 Not Found\\r\\n\");\r\n out.flush();\r\n }\r\n pw.print(\"Server: Simple Java Http Server\\r\\n\");\r\n try {\r\n /**\r\n * @see <a href=\"https://docs.oracle.com/javase/7/docs/api/java/nio/\r\n * file/Files.html#probeContentType%28java.nio.file.Path%29\">https:/\r\n * /docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#probe\r\n * ContentType%28java.nio.file.Path%29</a>\r\n */\r\n pw.print(\"Content-Type: \" + Files.probeContentType(file.toPath()) + \"\\r\\n\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(Server.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n pw.print(\"Content-Length: \" + countChars(file) + \"\\r\\n\\r\\n\");\r\n pw.flush();\r\n }",
"public void setFileTransferServer(String serverUrl);",
"public void uploadFile( String selectedFilePath) {\n\n\n int serverResponseCode = 0;\n HttpURLConnection connection;\n DataOutputStream dataOutputStream;\n String lineEnd = \"\\r\\n\";\n String twoHyphens = \"--\";\n String boundary = \"*****\";\n\n\n int bytesRead, bytesAvailable, bufferSize;\n byte[] buffer;\n int maxBufferSize = 1 * 1024 * 1024;\n File selectedFile = new File(selectedFilePath);\n\n\n String[] parts = selectedFilePath.split(\"/\");\n final String fileName = parts[parts.length - 1];\n\n if (!selectedFile.isFile()) {\n //dialog.dismiss();\n //Log.v(TAG,\"gloabal\"+selectedFilePath);\n //showToast(selectedFilePath);\n //showToast(\"file issue\");\n return;\n } else {\n try {\n\n //Log.v(TAG, \"im in try\");\n\n\n FileInputStream fileInputStream = new FileInputStream(selectedFile);\n URL url = new URL(SERVER_URL);\n connection = (HttpURLConnection) url.openConnection();\n connection.setDoInput(true);//Allow Inputs\n connection.setDoOutput(true);//Allow Outputs\n connection.setUseCaches(false);//Don't use a cached Copy\n connection.setRequestMethod(\"POST\");\n connection.setRequestProperty(\"Connection\", \"Keep-Alive\");\n connection.setRequestProperty(\"ENCTYPE\", \"multipart/form-data\");\n connection.setRequestProperty(\"Content-Type\", \"multipart/form-data;boundary=\" + boundary);\n connection.setRequestProperty(\"uploaded_file\", selectedFilePath);\n //showToast(selectedFilePath);\n //creating new dataoutputstream\n\n dataOutputStream = new DataOutputStream(connection.getOutputStream());\n //showToast(\"im after path\");\n //writing bytes to data outputstream\n dataOutputStream.writeBytes(twoHyphens + boundary + lineEnd);\n\n dataOutputStream.writeBytes(\"Content-Disposition: form-data; name=\\\"uploaded_file\\\";filename=\\\"\"\n + selectedFilePath + \"\\\"\" + lineEnd);\n\n dataOutputStream.writeBytes(lineEnd);\n\n\n //returns no. of bytes present in fileInputStream\n bytesAvailable = fileInputStream.available();\n //selecting the buffer size as minimum of available bytes or 1 MB\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n //setting the buffer as byte array of size of bufferSize\n buffer = new byte[bufferSize];\n\n //reads bytes from FileInputStream(from 0th index of buffer to buffersize)\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n\n //Log.v(TAG, \"before while\");\n\n\n //loop repeats till bytesRead = -1, i.e., no bytes are left to read\n while (bytesRead > 0) {\n //write the bytes read from inputstream\n dataOutputStream.write(buffer, 0, bufferSize);\n bytesAvailable = fileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n }\n //Log.v(TAG, \"after while\");\n\n dataOutputStream.writeBytes(lineEnd);\n dataOutputStream.writeBytes(twoHyphens + boundary + twoHyphens + lineEnd);\n\n serverResponseCode = connection.getResponseCode();\n String serverResponseMessage = connection.getResponseMessage();\n\n Log.i(TAG, \"Server Response is: \" + serverResponseMessage + \": \" + serverResponseCode);\n\n //response code of 200 indicates the server status OK\n if (serverResponseCode == 200) {\n Log.v(TAG, \"file upload complete\");\n }\n\n Log.v(TAG, \"now close\");\n\n //closing the input and output streams\n fileInputStream.close();\n dataOutputStream.flush();\n dataOutputStream.close();\n\n Log.v(TAG, \"CLosed \");\n\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n //showToast(\"FIle not found\");\n }\n });\n } catch (MalformedURLException e) {\n e.printStackTrace();\n //showToast(\"URL error\");\n\n } catch (IOException e) {\n e.printStackTrace();\n //showToast(\"Cannot read/Write file\");\n }\n dialog.dismiss();\n //postData(\"langitudes----\",\"longitues----\");\n\n //return serverResponseCode;\n }\n\n }",
"static public void startSending(String add,int port,byte[] data,int mode){\n }",
"public void start() throws Exception {\n ServerSocket ssk = new ServerSocket(sskPort);\n \n while( !new File(\"halt\").exists() ) {\n Socket sk = null;\n try { \n _(\"accepting\");\n sk = ssk.accept();\n _(\"accepted\");\n \n BufferedReader reader = new BufferedReader( new InputStreamReader( sk.getInputStream() ) );\n PrintStream ps = new PrintStream( sk.getOutputStream() ); \n \n ps.println(\"Hello You\");\n String cmd = null;\n while( (cmd = reader.readLine() ) != null) {\n ps.println(\"You said : '\"+ cmd +\"'\"); \n _(\"> '\"+ cmd +\"'\");\n if ( cmd.trim().equals(\"exit\") || cmd.trim().equals(\"quit\") ) {\n ps.println(\"Bye !\"); \n _(\"> Bye!\");\n break;\n } else if ( cmd.trim().equals(\"test\") ) {\n //ps.print(\"1234\"); \n //String line = \"0x81 0x9B 0x94 0x63 0x15 0xF8 0xF8 0x10 0x35 0xD7 0xE7 0x07 0x76 0x99 0xE6 0x07 0x38 0x9D 0xEC 0x17 0x3A 0x8E 0xF9 0x3C 0x78 0x96 0xE0 0x4C 0x62 0x8F 0xE3 0x6E 0x1F \";\n String line = \"0x81 0xFE 0x57 0x62 0xC9 0xD6 0x4C 0x39 0xF8 0xED 0x64 0x56 0xA4 0x89 0x34 0x03 0xA7 0xA0 0x36 0x11 0xD2 0x8D 0x67 0x0F 0xE9 0xF6 0x77 0x42 0xE9 0xF6 0x77 0x42 0xE9 0xCD 0x0C 0x53 0xF2 0xE5 0x63 0x0F 0xAA 0xA5 0x24 0x79 0x92 0xE6 0x3A 0x42 0xE9 0xF6 0x77 0x42 0xE9 0xF6 0x77 0x42 0xE9 0xF6 0x77 0x42 0xD2 0x8D 0x66 0x59 0xFA 0xE4 0x3A 0x05 0xAC 0xA2 0x1E 0x32 0xE7 0xA5 0x3D 0x11 0xD2 0x8D 0x67 0x0F 0xE9 0xF6 0x77 0x42 0xE9 0xF6 0x77 0x79 0x92 0xE7 0x6C 0x51 0xFD 0xBB 0x3B 0x0B 0xBF 0xB3 0x21 0x0B 0xAC 0xA1 0x4C 0x39 0xF9 0xBB 0x77 0x42 0xE9 0xF6 0x77 0x42 0xE9 0xF6 0x4C 0x39 0xF8 0xED 0x64 0x50 0xA4 0xA5 0x32 0x16 0x80 0x86 0x79 0x11 0xA3 0xA5 0x4C 0x39 \";\n int[] trame = decodeFrame(line);\n for(int i=0; i < trame.length; i++) {\n ps.write(trame[i]);\n System.out.print(trame[i]+\" \");\n }\n System.out.println();\n ps.flush();\n }\n } \n _(\"quit\");\n \n } catch(Exception ex) {\n ex.printStackTrace();\n } finally {\n try { sk.close(); } catch(Exception ex) {}\n }\n }\n try { ssk.close(); } catch(Exception ex) {}\n _(\"Halting\");\n }",
"public abstract void stream(int port);",
"public void ChatNetworking(String _host, boolean pickTCP, boolean pickUDP){\r\n \r\n host = _host; \r\n //I'm not sure if I understand Chat Networking method's requirement on our document because it isn't that clear as I thought\r\n try{\r\n \r\n cs = new Socket(\"hostname\", 16789); \r\n input = new BufferedReader(new InputStreamReader(cs.getInputStream())); \r\n output = new PrintWriter(new OutputStreamWriter(cs.getOutputStream())); \r\n //I'm not sure how to use TCP DataOutputSTream to create a socket. That means DataOutputStream replace PrintWriter?\r\n DataOutputStream out = new DataOutputStream(cs.getOutputStream()); \r\n \r\n System.out.println(\"getLocalHost: \"+InetAddress.getLocalHost() );\r\n \r\n \r\n }\r\n catch (UnknownHostException uhe){\r\n jtaMsgReceived.setText(\"Unable to connect the host\"); \r\n return;\r\n }\r\n catch (IOException ioe){\r\n jtaMsgReceived.setText(\"Communication lost\"); \r\n return; \r\n }\r\n \r\n }"
]
| [
"0.8607076",
"0.7408851",
"0.7039256",
"0.69442755",
"0.6844009",
"0.6842311",
"0.68077654",
"0.6806221",
"0.6791842",
"0.6622448",
"0.6528182",
"0.6454231",
"0.64149606",
"0.63932884",
"0.63881224",
"0.6313902",
"0.6276623",
"0.6261669",
"0.62283766",
"0.6210177",
"0.6147958",
"0.6094448",
"0.60892504",
"0.607077",
"0.6069386",
"0.6033198",
"0.6029858",
"0.6020196",
"0.601949",
"0.5991549",
"0.5978872",
"0.59481865",
"0.59452015",
"0.59260994",
"0.5891289",
"0.58904946",
"0.5885295",
"0.5871536",
"0.5868072",
"0.5864158",
"0.58102787",
"0.5809473",
"0.58077306",
"0.58043206",
"0.57986224",
"0.57956123",
"0.57921356",
"0.5783099",
"0.57816786",
"0.57769144",
"0.5776364",
"0.57722807",
"0.57653505",
"0.5757473",
"0.57543176",
"0.5751095",
"0.57243246",
"0.57239604",
"0.5719061",
"0.5683339",
"0.56564236",
"0.56562316",
"0.5634629",
"0.5628681",
"0.5621452",
"0.5588264",
"0.55754036",
"0.55704594",
"0.5565615",
"0.5562903",
"0.5556675",
"0.55429655",
"0.5540416",
"0.5535966",
"0.55283594",
"0.55258644",
"0.55154896",
"0.5512067",
"0.54818875",
"0.5481407",
"0.5460781",
"0.54417515",
"0.5439439",
"0.5413474",
"0.54026383",
"0.5382009",
"0.53805786",
"0.5368553",
"0.53605413",
"0.53532565",
"0.5350461",
"0.5347619",
"0.53318006",
"0.5329085",
"0.53271675",
"0.53094125",
"0.5296553",
"0.5296019",
"0.52948517",
"0.5288885"
]
| 0.6398177 | 13 |
Create statistics model instance from build run with all necessary information. | private BuildDetailWithCounts createBuildDetailWithCounts(BuildRun build) {
final Map<String, ModuleBuildCounts> moduleBuildCountsMap = new HashMap<>();
computeCountsForBuild(build, moduleBuildCountsMap);
final List<ModuleBuildCounts> counts = new ArrayList<>(moduleBuildCountsMap.values());
counts.sort(Comparator.comparing(ModuleBuildCounts::getModuleName));
final BuildDetailWithCounts buildDetailWithCounts = new BuildDetailWithCounts();
buildDetailWithCounts.setBuildRunMetadata(buildRunMetadataConverter.convert(build.getMetadata()));
buildDetailWithCounts.setCounts(counts);
return buildDetailWithCounts;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buildModel() {\n }",
"public static void _generateStatistics() {\n\t\ttry {\n\t\t\t// Setup info\n\t\t\tPrintStream stats = new PrintStream(new File (_statLogFileName + \".txt\"));\n\n\t\t\tScanner scan = new Scanner(new File(_logFileName+\".txt\"));\n\t\t\twhile (scan.hasNext(SETUP.toString())) {\n\t\t\t\t// Append setup info\n\t\t\t\tstats.append(scan.nextLine()+\"\\n\");\n\t\t\t}\n\t\t\tstats.append(\"\\n\");\n\n\t\t\twhile (scan.hasNext(DETAILS.toString()) || scan.hasNext(RUN.toString())) {\n\t\t\t\t// Throw detailed info away\n\t\t\t\tscan.nextLine();\n\t\t\t}\n\n\t\t\twhile (scan.hasNext()) {\n\t\t\t\t// Append post-run info\n\t\t\t\tstats.append(scan.nextLine()+\"\\n\");\n\t\t\t}\n\t\t\tscan.close();\n\t\t\tstats.append(\"\\n\");\n\n\t\t\t// Perf4J info\n\t\t\tReader reader = new FileReader(_logFileName+\".txt\");\n\t\t\tLogParser parser = new LogParser(reader, stats, null, 10800000, true, new GroupedTimingStatisticsTextFormatter());\n\t\t\tparser.parseLog();\n\t\t\tstats.close();\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public HealthModel() {\n healthMetrics = new ArrayList<HealthMetric>();\n SimpleDateFormat dateFormatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\n this.fetchHealthMetrics();\n }",
"private void buildModel() {\n\t\trabbitSpace = new RabbitsGrassSimulationSpace(xSize, ySize);\n\n\t\trabbitSpace.spreadGrass(initGrass);\n\n\t\tfor (int i = 0; i < numRabbits && i < xSize * ySize; i++) {\n\t\t\taddNewRabbit();\n\t\t}\n\n\t\tfor (int i = 0; i < rabbitList.size(); i++) {\n\t\t\tRabbitsGrassSimulationAgent rabbit = rabbitList.get(i);\n\t\t\trabbit.report();\n\t\t}\n\t}",
"Build_Model() {\n\n }",
"MetricModel createMetricModel();",
"@Override\n public void construct() {\n Metric metric =\n new CPU_Utilization(1) {\n @Override\n public MetricFlowUnit gather(Queryable queryable) {\n return MetricFlowUnit.generic();\n }\n };\n Symptom earthSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n @Override\n public String name() {\n return EARTH_KEY;\n }\n };\n Symptom moonSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n public String name() {\n return MOON_KEY;\n }\n };\n\n Metric skyLabCpu =\n new CPU_Utilization(1) {\n @Override\n public MetricFlowUnit gather(Queryable queryable) {\n return MetricFlowUnit.generic();\n }\n };\n Symptom skyLabsSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n public String name() {\n return SKY_LABS_KEY;\n }\n };\n\n addLeaf(metric);\n addLeaf(skyLabCpu);\n earthSymptom.addAllUpstreams(Collections.singletonList(metric));\n moonSymptom.addAllUpstreams(Collections.singletonList(earthSymptom));\n skyLabsSymptom.addAllUpstreams(\n new ArrayList<Node<?>>() {\n {\n add(earthSymptom);\n add(moonSymptom);\n add(skyLabCpu);\n }\n });\n\n metric.addTag(LOCUS_KEY, EARTH_KEY);\n earthSymptom.addTag(LOCUS_KEY, EARTH_KEY);\n moonSymptom.addTag(LOCUS_KEY, MOON_KEY);\n skyLabCpu.addTag(LOCUS_KEY, SKY_LABS_KEY);\n skyLabsSymptom.addTag(LOCUS_KEY, SKY_LABS_KEY);\n }",
"public ISvnModel buildSvnModel() {\r\n VssModel vssModel = buildVssModel();\r\n if (incrementalWarning)\r\n LOG.warn(\"unsupported operations(delete,rename,share,branch) detected in project, incremental dump can be broken\");\r\n VssTransform tr = new VssTransform(this);\r\n SvnModel svnModel = tr.transform(vssModel);\r\n LOG.info(\"Svn model has been created\");\r\n LOG.info(\"total number of revisions in svn model: \" + svnModel.getRevisions().size());\r\n return svnModel;\r\n }",
"@Override\n public Object build() {\n StatsAggregationBuilder stats = AggregationBuilders.stats(this.getName());\n\n for (ParamComposite param : this.getChildren().stream()\n .filter(child -> ParamComposite.class.isAssignableFrom(child.getClass()))\n .map(child -> (ParamComposite) child).collect(Collectors.toList())) {\n switch (param.getName().toLowerCase()) {\n case \"field\":\n stats.field((String)param.getValue());\n }\n }\n\n return stats;\n }",
"private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotations());\n//\t\t\tg += instance.getGoldAnnotations().getAnnotations().size();\n\n\t\t\tfor (AbstractAnnotation instance2 : instance.getGoldAnnotations().getAnnotations()) {\n\n\t\t\t\tResult r = new Result(instance2);\n\n\t\t\t\t{\n////\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getTrend());\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getInvestigationMethod());\n////\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(\n////\t\t\t\t\t\t\tr.getDefinedExperimentalGroups().stream().map(a -> a.get()).collect(Collectors.toList()));\n//\n//\t\t\t\t\torgM.addAll(aa);\n//\t\t\t\t\tg += aa.size();\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * props of exp\n\t\t\t\t\t */\n\t\t\t\t\tfor (DefinedExperimentalGroup instance3 : r.getDefinedExperimentalGroups()) {\n\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getOrganismModel());\n//\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(instance3.getTreatments());\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> ab = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getDeliveryMethods().stream())\n\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n\t\t\t\t\t\taa.addAll(instance3.getTreatments().stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Treatment(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getDeliveryMethod()).filter(i -> i != null)\n\t\t\t\t\t\t\t\t.collect(Collectors.toList()));\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getAnaesthetics().stream())\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryDevice()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\t// List<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryLocation()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\torgM.addAll(aa);\n\t\t\t\t\t\tg += aa.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tavgIndPerDoc += orgM.size();\n\t\t\tavgTotalPerDoc += g;\n\n\t\t\torg += ((double) orgM.size()) / (g == 0 ? 1 : g);\n//\t\t\tSystem.out.println(((double) orgM.size()) / g);\n\n\t\t}\n\t\tSystem.out.println(\"avgTotalPerDoc = \" + avgTotalPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"avgIndPerDoc = \" + avgIndPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"org = \" + org);\n\t\tSystem.out.println(\"avg. org = \" + (org / instanceProvider.getInstances().size()));\n\t\tSystem.out.println(new DecimalFormat(\"0.00\").format(avgTotalPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(avgIndPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(org / instanceProvider.getInstances().size()));\n\t\tSystem.exit(1);\n\n\t\tStats.countVariables(0, instanceProvider.getInstances());\n\n\t\tint count = 0;\n\t\tfor (SlotType slotType : EntityType.get(\"Result\").getSlots()) {\n\n\t\t\tif (slotType.isExcluded())\n\t\t\t\tcontinue;\n\t\t\tcount++;\n\t\t\tSystem.out.println(slotType.name);\n\n\t\t}\n\t\tSystem.out.println(count);\n\t\tSystem.exit(1);\n\t}",
"public void buildModel() {\n space = new RabbitsGrassSimulationSpace(gridSize);\n space.setModel(this);\n space.spreadGrass(numInitGrass);\n\n for (int i = 0; i < numInitRabbits; i++) {\n addNewRandomRabbit();\n }\n }",
"public Statistics() {}",
"public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}",
"public ModelInfo generateInfo() { \n ModelInfo info = new ModelInfo();\n \n // Store basic info\n info.author = Author;\n info.citation = Citation;\n info.description = Description;\n info.property = Property;\n info.training = Model.TrainingStats.NumberTested + \" entries: \" + TrainingSet;\n info.notes = Notes;\n info.trainTime = new SimpleDateFormat(\"dMMMyy HH:mm z\").format(Model.getTrainTime());\n \n // Store units or class names\n if (Model instanceof AbstractClassifier) {\n info.classifier = true;\n info.units = \"\";\n AbstractClassifier clfr = (AbstractClassifier) Model;\n boolean started = false;\n for (String name : clfr.getClassNames()) {\n if (started) {\n info.units += \";\";\n }\n info.units += name;\n started = true;\n }\n } else {\n info.classifier = false;\n info.units = Units;\n }\n \n // Store names of models\n info.dataType = Dataset.printDescription(true);\n info.modelType = Model.printDescription(true);\n \n // Store validation performance data\n info.valMethod = Model.getValidationMethod();\n if (Model.isValidated()) {\n info.valScore = Model.ValidationStats.getStatistics();\n }\n \n return info;\n }",
"public void buildModel() {\n double loss_pre = Double.MAX_VALUE;\n for (int iter = 0; iter < maxIter; iter ++) {\n Long start = System.currentTimeMillis();\n if (showProgress)\n System.out.println(\"Iteration \"+(iter+1)+\" started\");\n // Update user latent vectors\n IntStream.range(0,userCount).parallel().peek(i->update_user(i)).forEach(j->{});\n /*\n for (int u = 0; u < userCount; u ++) {\n update_user(u);\n }\n */\n if (showProgress) {\n System.out.println(\"Users updated for \" + (System.currentTimeMillis() - start) + \"millis\");\n start = System.currentTimeMillis();\n }\n\n IntStream.range(0,itemCount).parallel().peek(i->update_item(i)).forEach(j->{});\n // Update item latent vectors\n /*\n for (int i = 0; i < itemCount; i ++) {\n update_item(i);\n }\n */\n if (showProgress) {\n System.out.println(\"Items updated for \" + (System.currentTimeMillis() - start) + \"millis\");\n start = System.currentTimeMillis();\n }\n\n // Show loss\n if (showLoss)\n loss_pre = showLoss(iter, start, loss_pre);\n\n\n } // end for iter\n\n }",
"public MetricBatch build() {\n Attributes attributes = commonAttributesBuilder.build();\n return new MetricBatch(metrics, attributes);\n }",
"public void buildModel(){\r\n\t\t\r\n\t\tsuper.buildModel();\r\n\t\t\r\n\t}",
"public SmallStatistic() {\n\n }",
"public void InitialiseScheduling(StatisticsModel model) {\n DependencyGraph dg = DependencyGraph.getGraph();\n\n dg.setFilePath(_argumentsParser.getFilePath());\n dg.parse();\n System.out.println(\"Calculating schedule, Please wait ...\");\n\n // initialise store and thread pool\n RecursionStore.constructRecursionStoreSingleton(model, _argumentsParser.getProcessorNo(), dg.remainingCosts(), dg.getNodes().size(), _argumentsParser.getMaxThreads());\n _pool = Executors.newFixedThreadPool(_argumentsParser.getMaxThreads());\n\n //start greedy search\n GreedyState greedyState = new GreedyState(dg, this);\n _pool.execute(greedyState);\n\n RecursionStore.setMaxThreads(_maxThreads);\n }",
"public Statistics() {\n }",
"public BaseStatistics() {\n\t\tsuper();\n\t}",
"public void build() {\n\t\tgenerate();\n\t\tstoreAns();\n\t\t// display();\n\t}",
"public void run() {\n\t // Create the ouput directories\n\t interfDir = new File(outDirName+\"/\"+modelName);\n\t interfDir.mkdirs();\n\t implDir = new File(outDirName+\"/\"+modelName);\n\t implDir.mkdirs();\n\t // Create the parseAll visitor interface\n\t createParseAllVisitorInterface(interfDir);\n\t // Create the parseAll visitor implementation\n\t createParseAllVisitorImplementation(implDir);\n\t // Create the evaluateAll visitor interface\n\t createEvaluateAllVisitorInterface(interfDir);\n\t // Create the evaluateAll visitor implementation\n\t createEvaluateAllVisitorImplementation(implDir);\n\t}",
"public Run() {\n setChildClass(AverageProfile.class);\n }",
"public void build() {\r\n // TODO\r\n }",
"public Model(){\r\n try{\r\n File file = new File(\"./config.ini\");\r\n boolean firstRun = file.createNewFile();\r\n\r\n //If this is the first run for the application\r\n if (firstRun){\r\n //Ask user the amount of hours he wants to work per day\r\n dailyWorkload = Integer.parseInt(JOptionPane.showInputDialog(\"Enter number of hours you want to work per day\"));\r\n numDayWorkWeek = Integer.parseInt(JOptionPane.showInputDialog(\"Enter number of days you want to work per week\"));\r\n\r\n //Allocate memory for data structures\r\n unfinished = new TreeSet<>();\r\n finished = new ArrayList<>();\r\n activities = new ArrayList<>();\r\n\r\n FileWriter fw = new FileWriter(file);\r\n PrintWriter pw = new PrintWriter(fw);\r\n\r\n pw.println(dailyWorkload);\r\n pw.println(numDayWorkWeek);\r\n pw.close();\r\n fw.close();\r\n\r\n weeklySchedule = new ArrayList<>(numDayWorkWeek);\r\n for (int i = 0; i < numDayWorkWeek; i++)\r\n weeklySchedule.add(new TreeSet<Task>());\r\n }\r\n //Else if this is not the first run of the application\r\n else{\r\n FileReader fr = new FileReader(file);\r\n BufferedReader br = new BufferedReader(fr);\r\n dailyWorkload = Integer.parseInt(br.readLine());\r\n numDayWorkWeek = Integer.parseInt(br.readLine());\r\n br.close();\r\n fr.close();\r\n\r\n weeklySchedule = new ArrayList<>(numDayWorkWeek);\r\n for (int i = 0; i < numDayWorkWeek; i++)\r\n weeklySchedule.add(new TreeSet<Task>());\r\n loadFromDatabase();\r\n }\r\n\r\n }\r\n catch (Exception e){\r\n System.out.println(\"Stress is constructor: \" + e.getMessage());\r\n }\r\n }",
"@Override\n public Object build() {\n ScriptedMetricAggregationBuilder scriptedMetric = AggregationBuilders.scriptedMetric(this.getName());\n Map<String, Object> params = new HashMap<>();\n\n for (ParamComposite param : this.getChildren().stream()\n .filter(child -> ParamComposite.class.isAssignableFrom(child.getClass()))\n .map(child -> (ParamComposite) child).collect(Collectors.toList())) {\n switch (param.getName().toLowerCase()) {\n /*case \"init_script\":\n scriptedMetric.initScript((String)param.getValue());\n break;\n\n case \"map_script\":\n scriptedMetric.mapScript((String)param.getValue());\n break;\n\n case \"combine_script\":\n scriptedMetric.combineScript((String)param.getValue());\n break;\n\n case \"reduce_script\":\n scriptedMetric.reduceScript((String)param.getValue());\n break;*/\n\n default:\n params.put(param.getName(), param.getValue());\n break;\n }\n }\n\n if (!params.isEmpty()) {\n scriptedMetric.params(params);\n }\n\n return scriptedMetric;\n }",
"public hu.blackbelt.epsilon.runtime.model.test1.data.DataModel build() {\n final hu.blackbelt.epsilon.runtime.model.test1.data.DataModel _newInstance = hu.blackbelt.epsilon.runtime.model.test1.data.DataFactory.eINSTANCE.createDataModel();\n if (m_featureNameSet) {\n _newInstance.setName(m_name);\n }\n if (m_featureEntitySet) {\n _newInstance.getEntity().addAll(m_entity);\n } else {\n if (!m_featureEntityBuilder.isEmpty()) {\n for (hu.blackbelt.epsilon.runtime.model.test1.data.util.builder.IDataBuilder<? extends hu.blackbelt.epsilon.runtime.model.test1.data.Entity> builder : m_featureEntityBuilder) {\n _newInstance.getEntity().add(builder.build());\n }\n }\n }\n return _newInstance;\n }",
"public static StatisticsResults statistics(Model model)\n\t{\n\t\tStatisticsResults results = new StatisticsResults();\n\t\t\n\t\t// Size of the model = Number of Statements contained in the model\n\t\tlong nrStatements = model.size();\n\t\tresults.setSize(nrStatements);\n\t\t\n\t\t// Number of Resources in model\n\t\tlong resources = findAllResources(model).size();\n\t\tresults.setResources(resources);\n\t\t\n\t\t// Number of different Resources that appear as Subject in the model\n\t\tlong nrSubjects = model.listSubjects().toList().size();\n\t\tresults.setSubjects(nrSubjects);\n\t\t\n\t\t// Number of different Objects (Resources and Literals)\n\t\tList<RDFNode> objects = model.listObjects().toList();\n\t\tresults.setObjects(objects.size());\n\n\t\t// The above number of Objects does not distinguish between Resources and Literals\n\t\t// Count these Resources and Literals individually\n\t\tint resourceCounter = 0;\t\t// Number of different Resources that appear as Objects\n\t\tint literalCounter = 0;\t\t\t// Number of different Literals that appear as Objects\n\t\tfor(RDFNode o : objects)\n\t\t{\n\t\t\tif(o.isResource())\n\t\t\t{\n\t\t\t\tresourceCounter++;\n\t\t\t}\n\t\t\telse if(o.isLiteral())\n\t\t\t{\n\t\t\t\tliteralCounter++;\n\t\t\t}\n\t\t}\n\t\tresults.setObjectResources(resourceCounter);\n\t\tresults.setLiterals(literalCounter);\n\t\t\n\t\t// Average number of outgoing Links\n\t\tresults.setAvgOutgoingLinks(((double) nrStatements)/nrSubjects);\n\t\t\n\t\t// Above looked at number of different Objects\n\t\t// Now count the total number of Resources as Objects\n\t\t// and total number of Literals as Objects\n\t\t// Count number of different predicates\n\t\tHashSet<Resource> predicates = new HashSet<Resource>();\n\t\tlong nrStatementsWithResourceObject = 0;\n\t\tlong nrStatementsWithLiteralObject = 0;\n//\t\tList<Statement> statements = model.listStatements().toList();\n//\t\tfor(Statement s : statements)\n\t\tStmtIterator statements = model.listStatements();\n\t\twhile(statements.hasNext())\n\t\t{\n\t\t\tStatement s = statements.nextStatement();\n\t\t\tif(s.getObject().isResource())\n\t\t\t{\n\t\t\t\tnrStatementsWithResourceObject++;\n\t\t\t}\n\t\t\telse if(s.getObject().isLiteral())\n\t\t\t{\n\t\t\t\tnrStatementsWithLiteralObject++;\n\t\t\t}\n\t\t\tif(!predicates.contains(s.getPredicate()))\n\t\t\t{\n\t\t\t\tpredicates.add(s.getPredicate());\n\t\t\t}\n\t\t}\n\t\tresults.setAvgIncomingLinks(((double) nrStatementsWithResourceObject)/resourceCounter);\n\t\tresults.setAvgLiterals(((double) nrStatementsWithLiteralObject)/nrSubjects);\n\t\tresults.setAvgObjectResources(((double) nrStatementsWithResourceObject)/nrSubjects);\n\t\tresults.setTotalObjectResources(nrStatementsWithResourceObject);\n\t\tresults.setTotalLiterals(nrStatementsWithLiteralObject);\n\t\tresults.setPredicates(predicates.size());\n\t\t\n\t\t\n\t\t// Calculate min, max, 25%, 50% and 75% quantile for averages\n\t\tLinkedList<Integer> subjectStatementCount = new LinkedList<Integer>();\n\t\tLinkedList<Integer> subjectResObjectCount = new LinkedList<Integer>();\n\t\tLinkedList<Integer> subjectLiteralCount = new LinkedList<Integer>();\n\t\tResIterator subjects = model.listSubjects();\n\t\twhile(subjects.hasNext())\n\t\t{\n\t\t\tResource subject = subjects.nextResource();\n\t\t\tStmtIterator statementsWithSubject = model.listStatements(subject, null, (RDFNode) null);\n\t\t\tint count = 0;\n\t\t\tint countObjectIsResource = 0;\n\t\t\tint countObjectIsLiteral = 0;\n\t\t\twhile(statementsWithSubject.hasNext())\n\t\t\t{\n\t\t\t\tStatement statement = statementsWithSubject.nextStatement();\n\t\t\t\tcount++;\n\t\t\t\tif(statement.getObject().isResource())\n\t\t\t\t{\n\t\t\t\t\tcountObjectIsResource++;\n\t\t\t\t}\n\t\t\t\tif(statement.getObject().isLiteral())\n\t\t\t\t{\n\t\t\t\t\tcountObjectIsLiteral++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsubjectStatementCount.add(count);\n\t\t\tsubjectResObjectCount.add(countObjectIsResource);\n\t\t\tsubjectLiteralCount.add(countObjectIsLiteral);\n\t\t}\n\t\t\n\t\tsubjectStatementCount = sortIntList(subjectStatementCount);\n\t\tsubjectResObjectCount = sortIntList(subjectResObjectCount);\n\t\tsubjectLiteralCount = sortIntList(subjectLiteralCount);\n\t\t\n\t\tresults.setMinOutgoingLinks(subjectStatementCount.getFirst());\n\t\tresults.setMaxOutgoingLinks(subjectStatementCount.getLast());\n\t\tDouble outLinks25Index = subjectStatementCount.size()*0.25;\n\t\tresults.setOutgoingLinks25(subjectStatementCount.get(outLinks25Index.intValue()));\n\t\tDouble outLinks50Index = subjectStatementCount.size()*0.5;\n\t\tresults.setOutgoingLinks50(subjectStatementCount.get(outLinks50Index.intValue()));\n\t\tDouble outLinks75Index = subjectStatementCount.size()*0.75;\n\t\tresults.setOutgoingLinks75(subjectStatementCount.get(outLinks75Index.intValue()));\n\t\t\n\t\tresults.setMinResObjects(subjectResObjectCount.getFirst());\n\t\tresults.setMaxResObjects(subjectResObjectCount.getLast());\n\t\tDouble resObject25Index = subjectResObjectCount.size()*0.25;\n\t\tresults.setResObjects25(subjectResObjectCount.get(resObject25Index.intValue()));\n\t\tDouble resObject50Index = subjectResObjectCount.size()*0.50;\n\t\tresults.setResObjects50(subjectResObjectCount.get(resObject50Index.intValue()));\n\t\tDouble resObject75Index = subjectResObjectCount.size()*0.75;\n\t\tresults.setResObjects75(subjectResObjectCount.get(resObject75Index.intValue()));\n\t\t\n\t\tresults.setMinLiterals(subjectLiteralCount.getFirst());\n\t\tresults.setMaxLiterals(subjectLiteralCount.getLast());\n\t\tDouble literal25Index = subjectLiteralCount.size()*0.25;\n\t\tresults.setLiterals25(subjectLiteralCount.get(literal25Index.intValue()));\n\t\tDouble literal50Index = subjectLiteralCount.size()*0.50;\n\t\tresults.setLiterals50(subjectLiteralCount.get(literal50Index.intValue()));\n\t\tDouble literal75Index = subjectLiteralCount.size()*0.75;\n\t\tresults.setLiterals75(subjectLiteralCount.get(literal75Index.intValue()));\n\t\t\n\t\tLinkedList<Integer> objectStatementCount = new LinkedList<Integer>();\n\t\tNodeIterator objectsIterator = model.listObjects();\n\t\twhile(objectsIterator.hasNext())\n\t\t{\n\t\t\tRDFNode object = objectsIterator.nextNode();\n\t\t\tif(object.isResource())\n\t\t\t{\n\t\t\t\tobjectStatementCount.add(model.listStatements(null, null, object).toList().size());\n\t\t\t}\n\t\t}\n\t\t\n\t\tobjectStatementCount = sortIntList(objectStatementCount);\n\t\t\n\t\tresults.setMinIncomingLinks(objectStatementCount.getFirst());\n\t\tresults.setMaxIncomingLinks(objectStatementCount.getLast());\n\t\tDouble inLinks25Index = objectStatementCount.size()*0.25;\n\t\tresults.setIncomingLinks25(objectStatementCount.get(inLinks25Index.intValue()));\n\t\tDouble inLinks50Index = objectStatementCount.size()*0.50;\n\t\tresults.setIncomingLinks50(objectStatementCount.get(inLinks50Index.intValue()));\n\t\tDouble inLinks75Index = objectStatementCount.size()*0.75;\n\t\tresults.setIncomingLinks75(objectStatementCount.get(inLinks75Index.intValue()));\n\t\t\n\t\treturn results;\n\t}",
"public Report build() {\n return new Report(this);\n }",
"public StStatutesub() {\n }",
"public Human build() {\n\t\t\tSystem.out.println(\"amount of Humans created is \"+humanCounter);\n\t\t\t/*\n\t\t\t * there is no LOCAL variable age\n\t\t\t * there is no instance variable of the HumanBuilder() class called age\n\t\t\t * it next looks in the outer class for a STATIC variable called age, there is\n\t\t\t * NO static variable in the outer Human class called age, there is only an \n\t\t\t * instance variable called age, which this static class has no access too\n\t\t\t */\n\t\t\t//System.out.println(age);\n\t\t\treturn myHuman;\n\t\t}",
"DataGenModel()\n {\n }",
"public JsonModelRunInformationBuilder populateBatchDateParameters(ModelRun lastCompletedModelRun,\n DiseaseOccurrenceStatistics statistics) {\n // The minimum and maximum batch dates are equal to the minimum and maximum occurrence date\n DateTime minimumDate = statistics.getMinimumOccurrenceDate();\n DateTime maximumDate = statistics.getMaximumOccurrenceDate();\n\n // The default value of \"batch start date\" is the minimum occurrence date if this is the first\n // batch, otherwise it is the day after the latest batch end date\n DateTime defaultStartDate = minimumDate;\n if (lastCompletedModelRun != null && lastCompletedModelRun.getBatchingCompletedDate() != null &&\n lastCompletedModelRun.getBatchEndDate() != null) {\n defaultStartDate = lastCompletedModelRun.getBatchEndDate().plusDays(1);\n }\n\n // The default value of \"batch end date\" is the last day of the default start date's year, limited to\n // the maximum occurrence date\n DateTime defaultEndDate = null;\n if (defaultStartDate != null && maximumDate != null) {\n defaultEndDate = defaultStartDate.plusYears(1).withDayOfYear(1).minusDays(1);\n if (defaultEndDate.isAfter(maximumDate)) {\n defaultEndDate = maximumDate;\n }\n if (defaultStartDate.isAfter(defaultEndDate)) {\n defaultStartDate = defaultEndDate;\n }\n }\n\n information.setBatchDateMinimum(getDateText(minimumDate));\n information.setBatchStartDateDefault(getDateText(defaultStartDate));\n information.setBatchEndDateDefault(getDateText(defaultEndDate));\n information.setBatchDateMaximum(getDateText(maximumDate));\n return this;\n }",
"@Override\n public void build() {\n\n // Create the missive\n this.createMissive();\n }",
"public DescriptiveStatistics generateStatistics() {\n\t\tdouble[] sentimentValues = new double[this.sentimentValues.size()];\n\t\t\n\t\t//Casts each value in the sentimentValues array list to a double for processing with StatUtils package.\n\t\tfor (int i = 0; i < sentimentValues.length; i++) {\n\t\t\tsentimentValues[i] = (double) this.sentimentValues.get(i);\n\t\t}\n\t\t\n\t\tthis.statistics = new DescriptiveStatistics(sentimentValues);\n\t\treturn this.statistics;\n\t}",
"@Override\n public Map<String, OEEReport> build() {\n return generators.entrySet().stream().collect(Collectors.toMap(\n entry -> entry.getKey(),\n entry -> entry.getValue().getReport()\n ));\n }",
"public final Statistic newInstance() {\n Statistic s = new Statistic();\n s.myNumMissing = myNumMissing;\n s.firstx = firstx;\n s.max = max;\n s.min = min;\n s.myConfidenceLevel = myConfidenceLevel;\n s.myJsum = myJsum;\n s.myValue = myValue;\n s.setName(getName());\n s.num = num;\n s.sumxx = sumxx;\n s.moments = Arrays.copyOf(moments, moments.length);\n if (getSaveOption()) {\n s.save(getSavedData());\n s.setSaveOption(true);\n }\n return (s);\n }",
"@Override\n public Object build() {\n TopHitsAggregationBuilder topHitsBuilder = AggregationBuilders.topHits(this.getName());\n\n for (ParamComposite param : this.getChildren().stream()\n .filter(child -> ParamComposite.class.isAssignableFrom(child.getClass()))\n .map(child -> (ParamComposite) child).collect(Collectors.toList())) {\n switch (param.getName().toLowerCase()) {\n case \"size\":\n topHitsBuilder.size((int)param.getValue());\n break;\n\n case \"fetch_source\":\n topHitsBuilder.fetchSource((boolean)param.getValue());\n break;\n }\n }\n\n return topHitsBuilder;\n }",
"public Builder clearStats() {\n copyOnWrite();\n instance.clearStats();\n return this;\n }",
"public AnalysisDef() {}",
"@Test\r\n public void testDataBuilder_Init(){\r\n \tdataBuild.initAllData();\r\n \tassertTrue(dataBuild.getCPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of CPUs: \" + dataBuild.getCPUList().size());\r\n \tassertTrue(dataBuild.getGPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of GPUs: \" + dataBuild.getGPUList().size());\r\n \tassertTrue(dataBuild.getMBList().size() > 0);\r\n \tSystem.out.println(\"Total # of Motherboards: \" + dataBuild.getMBList().size());\r\n \tassertTrue(dataBuild.getMEMList().size() > 0);\r\n \tSystem.out.println(\"Total # of Memory Units: \" + dataBuild.getMEMList().size());\r\n \tassertTrue(dataBuild.getPSUList().size() > 0);\r\n \tSystem.out.println(\"Total # of PSUs: \" + dataBuild.getPSUList().size());\r\n \tassertTrue(dataBuild.getDISKList().size() > 0);\r\n \tSystem.out.println(\"Total # of Disks: \" + dataBuild.getDISKList().size());\r\n }",
"public void build() throws ClusException, IOException {\n m_List = getRun().getDataSet(ClusRun.TRAINSET).getData(); // m_Data;\n }",
"@Override\n\t\tpublic Track build() {\n\t\t\treturn of(\n\t\t\t\t_name,\n\t\t\t\t_comment,\n\t\t\t\t_description,\n\t\t\t\t_source,\n\t\t\t\t_links,\n\t\t\t\t_number,\n\t\t\t\t_type,\n\t\t\t\t_extensions,\n\t\t\t\t_segments\n\t\t\t);\n\t\t}",
"private boolean getBuildAction(Run<?, ?> run, FilePath workspace) throws IOException, InterruptedException{\n GatlingReportArchiver archiver = new GatlingReportArchiver();\n List<BuildSimulation> simulations = archiver.saveFullReports(run, this.logger, workspace);\n if (simulations.size() == 0){\n return false;\n }\n\n\n List<SimulationReport> simulationReportList = new ArrayList<SimulationReport>();\n Map<String, NodeSimulationData> simulationData;\n\n for (BuildSimulation sim : simulations){\n\n List<SimulationConfig> simConfig = getGatlingSimData(workspace, sim.getSimulationName());\n for (SimulationConfig sc : simConfig){\n this.logger.println(\"[PuppetGatling] - Here are the Gatling Simulation Results for \" + sim.getSimulationName() + \": \" + sc.getSimulationName() + \", \"\n + sc.getNumberInstances() + \", \" + sc.getNumberRepetitions());\n }\n\n FilePath statsJs = new FilePath(sim.getSimulationDirectory(), \"js/stats.js\");\n\n this.logger.println(\"[PuppetGatling] - The stats javascript file is: \" + statsJs);\n\n // new hash with data ready to be calculated\n // This could be where I pass in the appropriate SimulationConfig data structure\n // so it can be added the Map simulationData\n simulationData = getGroupCalculations(statsJs);\n\n SimulationMetrics metrics = new SimulationMetrics(run, logger, workspace, sim.getSimulationName());\n\n SimulationReport simulationReport = generateSimulationReport(new SimulationReport(),\n simulationData, workspace, sim.getSimulationName(), simConfig,\n metrics);\n simulationReportList.add(simulationReport);\n }\n\n PuppetGatlingBuildAction customAction =\n new PuppetGatlingBuildAction(run, simulations, simulationReportList);\n run.addAction(customAction);\n return true;\n }",
"public RwjlTmTjmx build() {\n return this.obj;\n }",
"public Stats() {\n this(DSL.name(\"stats\"), null);\n }",
"public View runStartUp() {\r\n Controller contr = new Controller();\r\n contr.addObserver(InspectionStatsView.getObserver());\r\n Logger firstLogger = new FileLogger();\r\n return new View(contr, firstLogger);\r\n }",
"public Statistics() {\r\n\t\tcurrentGameTime = 0;\r\n\t\ttotalTime = 0;\r\n\t\tminTime = Integer.MAX_VALUE;\r\n\t\tmaxTime = 0;\r\n\t\tscores = new int[2];\r\n\t\twinnerId = 0;\r\n\t\tvictories = new int[2];\r\n\t\tgameCount = 0;\r\n\t}",
"InstanceModel build(String[] behavFiles) throws IOException, InvalidBehaviourException, IncQueryException, InvalidMissionException {\n\t\tfor (String behavFile : behavFiles) {\n\t\t\tFile f = new File(behavFile);\n\t\t\tif (f.exists()) {\n\t\t\t\tif (behavFile.endsWith(\".behaviour\")) {\n\t\t\t\t\tURI fileURI = URI.createFileURI(f.getAbsolutePath());\n\t\t\t\t\tresSet.getResource(fileURI, true);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new FileNotFoundException(\"The file at \" + behavFile + \" is not of type .behaviour\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new FileNotFoundException(\"The file at \" + behavFile + \" does not exist\");\n\t\t\t}\n\t\t}\n\n\t\t// Resolve proxies in all loaded behavior instances (creates Mission instance in the resource set)\n\t\tEcoreUtil.resolveAll(this.resSet);\n\t\t\n\t\t// Extract instances from the resource set and validate them\n\t\tboolean missionAlreadyLoaded = false;\n\t\tfor (Resource resource : resSet.getResources()) {\n\t\t\tif (resource.getContents().get(0) instanceof DroneBehaviour) {\n\t\t\t\tDroneBehaviour droneBehav = (DroneBehaviour) resource.getContents().get(0);\n\t\t\t\tIncQueryHelper.validateBehaviour(droneBehav, resSet);\n\t\t\t\tthis.behaviouralModels.add(droneBehav);\n\t\t\t} else if (resource.getContents().get(0) instanceof Mission) {\n\t\t\t\tif (!missionAlreadyLoaded) {\n\t\t\t\t\tMission mission = (Mission) resource.getContents().get(0);\n\t\t\t\t\tIncQueryHelper.validateMission(mission);\n\t\t\t\t\tthis.staticModel = mission;\n\t\t\t\t\tmissionAlreadyLoaded = true;\n\t\t\t\t} else {\n\t\t\t\t\tthrow new InvalidBehaviourException(\"Behaviour instances shouldn't reference multiple Mission instances\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tInstanceModel instance = new InstanceModel();\n\n\t\tinstance.setDronePrograms(this.behaviouralModels);\n\t\tinstance.setMission(this.staticModel);\n\n\t\treturn instance;\n\t}",
"public Statistic() {\n\t\tstats = new ArrayList<PlayerStatEntry>();\n\t\tteamScore = new HashMap<Integer, Integer>();\n\t}",
"public void Build() {\n\t\tSetupGibbsSampling();\n\t\tDoGibbsSampling();\n\t}",
"protected void postRun() {\r\n\t\tthis.calculateFlowBandwidthHops();\r\n\t\tdouble abt = this.ABT();\r\n\t\tdouble agt = this.AGT();\r\n\t\tthis.metrics.add(new ResultMetric(\"ABT\", abt));\r\n\t\tthis.metrics.add(new ResultMetric(\"AGT\", agt));\r\n\t\tthis.metrics.add(new ResultMetric(\"Hops\", this.Hops()));\r\n\t\tthis.metrics.add(new ResultMetric(\"AveHops\", this.Hops()\r\n\t\t\t\t/ this.flows.size()));\r\n\t\tthis.metrics.add(new ResultMetric(\"SuccCount\", this.successfulCount));\r\n\t\tthis.metrics.add(new ResultMetric(\"FailCount\", this.failedCount));\r\n\t\tthis.metrics.add(new ResultMetric(\"ServerNum\", this.dcn\r\n\t\t\t\t.getServerUUIDs().size()));\r\n\t\tthis.metrics.add(new ResultMetric(\"ThroughputPerLink\", abt\r\n\t\t\t\t/ this.dcn.linkCount()));\r\n\t}",
"public CommonStatistics() {\n totalSubmissions = 0;\n lateSubmissions = 0;\n normalSubmissions = 0;\n approvedItems = 0;\n rejectedItems = 0;\n totalPendingItems = 0;\n arrearsPendingItems = 0;\n thisMonthPendingItems = 0;\n deletedItems = 0;\n confirmationPrintedItems = 0;\n confirmationApprovalPendingItems = 0;\n confirmationApprovedItems = 0;\n }",
"Run createRun();",
"private void buildLanguageModel() {\n int total = 0;\n Map<Integer, Integer> wordCount = new HashMap<>();\n for (List<Integer> story : corpus.getStories()) {\n for (Integer word : story) {\n total++;\n if (wordCount.get(word) == null) wordCount.put(word, 0);\n wordCount.put(word, wordCount.get(word) + 1);\n }\n }\n wordValues = new HashMap<>();\n for (Map.Entry<Integer, Integer> entry : wordCount.entrySet()) {\n wordValues.put(entry.getKey(), total * 1.0 / entry.getValue());\n }\n }",
"public static void main(String[] args) throws FileNotFoundException, IOException, InterruptedException {\n ArrayList<Metric> metrics = new ArrayList<Metric>();\n metrics.add(new ELOC());\n metrics.add(new NOPA());\n metrics.add(new NMNOPARAM());\n MyClassifier c1 = new MyClassifier(\"Logistic Regression\");\n c1.setClassifier(new Logistic());\n String type = \"CodeSmellDetection\";\n String smell = \"Large Class\";\n Model model = new Model(\"antModel1\", \"ant\", \"https://github.com/apache/ant.git\", metrics, c1, \"\", type, smell);\n Process process = new Process();\n String periodLength = \"All\";\n String version = \"rel/1.8.3\";\n \n String projectName = model.getProjName();\n process.initGitRepositoryFromFile(scatteringFolderPath + \"/\" + projectName\n + \"/gitRepository.data\");\n try {\n DeveloperTreeManager.calculateDeveloperTrees(process.getGitRepository()\n .getCommits(), periodLength);\n DeveloperFITreeManager.calculateDeveloperTrees(process.getGitRepository()\n .getCommits(), periodLength);\n } catch (Exception ex) {\n Logger.getLogger(TestFile.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n List<Commit> commits = process.getGitRepository().getCommits();\n PeriodManager.calculatePeriods(commits, periodLength);\n List<Period> periods = PeriodManager.getList();\n \n String dirPath = Config.baseDir + projectName + \"/models/\" + model.getName();\n Files.createDirectories(Paths.get(dirPath));\n \n for (Period p : periods) {\n File periodData = new File(dirPath + \"/predictors.csv\");\n PrintWriter pw1 = new PrintWriter(periodData);\n \n String message1 = \"nome,\";\n for(Metric m : metrics) {\n message1 += m.getNome() + \",\";\n }\n message1 += \"isSmell\\n\";\n pw1.write(message1);\n \n //String baseSmellPatch = \"C:/ProgettoTirocinio/dataset/apache-ant-data/apache_1.8.3/Validated\";\n CalculateSmellFiles cs = new CalculateSmellFiles(model.getProjName(), \"Large Class\", \"1.8.1\");\n \n List<FileBean> smellClasses = cs.getSmellClasses();\n \n String projectPath = baseFolderPath + projectName;\n \n Git.gitReset(new File(projectPath));\n Git.clean(new File(projectPath));\n \n List<FileBean> repoFiles = Git.gitList(new File(projectPath), version);\n System.out.println(\"Repo size: \"+repoFiles.size());\n \n \n for (FileBean file : repoFiles) {\n \n if (file.getPath().contains(\".java\")) {\n File workTreeFile = new File(projectPath + \"/\" + file.getPath());\n\n ClassBean classBean = null;\n \n if (workTreeFile.exists()) {\n ArrayList<ClassBean> code = new ArrayList<>();\n ArrayList<ClassBean> classes = ReadSourceCode.readSourceCode(workTreeFile, code);\n \n String body = file.getPath() + \",\";\n if (classes.size() > 0) {\n classBean = classes.get(0);\n\n }\n for(Metric m : metrics) {\n try{\n body += m.getValue(classBean, classes, null, null, null, null) + \",\";\n } catch(NullPointerException e) {\n body += \"0.0,\";\n }\n }\n \n //isSmell\n boolean isSmell = false;\n for(FileBean sm : smellClasses) {\n if(file.getPath().contains(sm.getPath())) {\n System.out.println(\"ok\");\n isSmell = true;\n break;\n }\n }\n \n body = body + isSmell + \"\\n\";\n pw1.write(body); \n }\n }\n }\n Git.gitReset(new File(projectPath));\n pw1.flush();\n }\n \n WekaEvaluator we1 = new WekaEvaluator(baseFolderPath, projectName, new Logistic(), \"Logistic Regression\", model.getName());\n \n ArrayList<Model> models = new ArrayList<Model>();\n \n models.add(model);\n System.out.println(models);\n //create a project\n Project p1 = new Project(\"https://github.com/apache/ant.git\");\n p1.setModels(models);\n p1.setName(\"ant\");\n p1.setVersion(version);\n \n ArrayList<Project> projects;\n //projects.add(p1);\n \n //create a file\n// try {\n// File f = new File(Config.baseDir + \"projects.txt\");\n// FileOutputStream fileOut;\n// if(f.exists()){\n// projects = ProjectHandler.getAllProjects(); \n// Files.delete(Paths.get(Config.baseDir + \"projects.txt\"));\n// //fileOut = new FileOutputStream(f, true);\n// } else {\n// projects = new ArrayList<Project>();\n// Files.createFile(Paths.get(Config.baseDir + \"projects.txt\"));\n// }\n// fileOut = new FileOutputStream(f);\n// projects.add(p1);\n// ObjectOutputStream out = new ObjectOutputStream(fileOut);\n// out.writeObject(projects);\n// out.close();\n// fileOut.close();\n//\n// } catch (FileNotFoundException e) {\n// e.printStackTrace();\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n// ProjectHandler.setCurrentProject(p1);\n// Project curr = ProjectHandler.getCurrentProject();\n// System.out.println(curr.getGitURL()+\" --- \"+curr.getModels());\n// ArrayList<Project> projectest = ProjectHandler.getAllProjects();\n// for(Project testp : projectest){\n// System.out.println(testp.getModels());\n// }\n }",
"public SearchQuery build() {\n this._Web_search.set_maxDepth(_maxDepth);\n this._Web_search.set_maxResults(_maxResults);\n this._Web_search.set_threshold(_threshold);\n this._Web_search.set_beamWidth(_beamWidth);\n if (heuristicSearchType == null) {\n this._Web_search.setHeuristicSearchType(Enums.HeuristicSearchType.BEST_FIRST);\n } else {\n this._Web_search.setHeuristicSearchType(heuristicSearchType);\n }\n\n return new SearchQuery(this._query, this._Web_search);\n }",
"public BuildMethodSummary(ControlFlowGraph cfg) {\n this.rf = cfg.getRegisterFactory();\n this.method = cfg.getMethod();\n this.start_states = new State[cfg.getNumberOfBasicBlocks()];\n this.methodCalls = SortedArraySet.FACTORY.makeSet(HashCodeComparator.INSTANCE);\n this.callToRVN = new HashMap();\n this.callToTEN = new HashMap();\n this.passedAsParameter = NodeSet.FACTORY.makeSet();\n this.nodeCache = new HashMap();\n this.s = this.start_states[0] = new State(rf.size());\n if(TRACE_REGISTERS) System.out.println(\"Creating \" + rf.size() + \" registers for \" + method);\n jq_Type[] params = this.method.getParamTypes();\n this.param_nodes = new ParamNode[params.length];\n for (int i=0, j=0; i<params.length; ++i, ++j) {\n if (INCLUDE_PRIMITIVE_TYPES || params[i].isReferenceType()\n /*&& !params[i].isAddressType()*/\n ) {\n ParamNode paramNode = ParamNode.get(method, i, params[i]);\n param_nodes[i] = paramNode;\n setLocal(j, paramNode);\n } else if (params[i].getReferenceSize() == 8) {\n //++j;\n }\n }\n this.my_global = GlobalNode.get(this.method);\n this.sync_ops = new HashMap();\n this.castMap = new LinkedHashMap();\n this.castPredecessors = new LinkedHashSet();\n this.returned = NodeSet.FACTORY.makeSet(); this.thrown = NodeSet.FACTORY.makeSet();\n \n if (TRACE_INTRA) out.println(\"Building summary for \"+this.method);\n \n // iterate until convergence.\n List<BasicBlock> rpo_list = cfg.reversePostOrder(cfg.entry());\n for (;;) {\n Iterator<BasicBlock> rpo = rpo_list.iterator();\n this.change = false;\n while (rpo.hasNext()) {\n this.bb = rpo.next();\n this.s = start_states[bb.getID()];\n if (this.s == null) {\n continue;\n }\n this.s = this.s.copy();\n /*\n if (this.bb.isExceptionHandlerEntry()) {\n java.util.Iterator i = cfg.getExceptionHandlersMatchingEntry(this.bb);\n jq.Assert(i.hasNext());\n ExceptionHandler eh = (ExceptionHandler)i.next();\n CaughtExceptionNode n = new CaughtExceptionNode(eh);\n if (i.hasNext()) {\n Set set = NodeSet.FACTORY.makeSet(); set.add(n);\n while (i.hasNext()) {\n eh = (ExceptionHandler)i.next();\n n = new CaughtExceptionNode(eh);\n set.add(n);\n }\n s.merge(nLocals, set);\n } else {\n s.merge(nLocals, n);\n }\n }\n */\n if (TRACE_INTRA) {\n out.println(\"State at beginning of \"+this.bb+\":\" + this.bb.fullDump());\n this.s.dump(out);\n }\n this.bb.visitQuads(this);\n Iterator<BasicBlock> succs = this.bb.getSuccessors().iterator();\n while (succs.hasNext()) {\n BasicBlock succ = succs.next();\n if (this.bb.endsInRet()) {\n if (jsr_states != null) {\n State s2 = (State) jsr_states.get(succ);\n if (s2 != null) {\n JSRInfo info = cfg.getJSRInfo(this.bb);\n boolean[] changedLocals = info.changedLocals;\n mergeWithJSR(succ, s2, changedLocals);\n } else {\n if (TRACE_INTRA) out.println(\"jsr before \"+succ+\" not yet visited!\");\n }\n } else {\n if (TRACE_INTRA) out.println(\"no jsr's visited yet! was looking for jsr successor \"+succ);\n }\n } else {\n mergeWith(succ);\n }\n }\n }\n if (!this.change) break;\n }\n }",
"public Stat() {\n }",
"@Test\r\n public void testDataBuilder_ValidInit(){\r\n \tDataInitializer dataBuild = DataInitializer.getInstance();\r\n \tdataBuild.initValidComputerParts();\r\n \tassertTrue(dataBuild.getCPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of CPUs: \" + dataBuild.getCPUList().size());\r\n \tassertTrue(dataBuild.getGPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of GPUs: \" + dataBuild.getGPUList().size());\r\n \tassertTrue(dataBuild.getMBList().size() > 0);\r\n \tSystem.out.println(\"Total # of Motherboards: \" + dataBuild.getMBList().size());\r\n \tassertTrue(dataBuild.getMEMList().size() > 0);\r\n \tSystem.out.println(\"Total # of Memory Units: \" + dataBuild.getMEMList().size());\r\n \tassertTrue(dataBuild.getPSUList().size() > 0);\r\n \tSystem.out.println(\"Total # of PSUs: \" + dataBuild.getPSUList().size());\r\n \tassertTrue(dataBuild.getDISKList().size() > 0);\r\n \tSystem.out.println(\"Total # of Disks: \" + dataBuild.getDISKList().size());\r\n }",
"public AnalysisProfile(){\n\t\tsuper();\n\t\tthis.terms = new HashMap<String, Integer>();\n\t\tthis.sources = new ArrayList<String>();\n\t\tthis.stopWords = new HashSet<String>();\n\t\tthis.yearFrom = -1;\n\t\tthis.yearTo = -1;\n\t\tthis.contextSize = 5;\n\t\tthis.useCompounds = false;\n\t\tthis.useStopwords = true;\n\t\tthis.useOnlyContexts = true;\n\t\tthis.results = new StringBuilder();\n\t\tthis.corpus = new ArrayList<File>();\n\t}",
"public ModelStructure(){\n dcModelPurposeIndexMap = new HashMap<String,Integer>();\n dcModelIndexPurposeMap = new HashMap<Integer,String>();\n dcSoaUecIndexMap = new HashMap<String,Integer>();\n dcUecIndexMap = new HashMap<String,Integer>();\n tourModeChoiceUecIndexMap = new HashMap<String,Integer>();\n stopFreqUecIndexMap = new HashMap<String,Integer>();\n stopLocUecIndexMap = new HashMap<String,Integer>();\n tripModeChoiceUecIndexMap = new HashMap<String,Integer>();\n \n segmentedPurposeIndexMap = new HashMap<String,Integer>();\n segmentedIndexPurposeMap = new HashMap<Integer,String>();\n\n primaryPurposeIndexMap = new HashMap<String,Integer>();\n primaryIndexPurposeMap = new HashMap<Integer,String>();\n primaryPurposeIndexMap.put( \"Home\", -1 );\n primaryPurposeIndexMap.put( \"Work\", -2 );\n primaryPurposeIndexMap.put( WORK_PURPOSE_NAME, WORK_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( UNIVERSITY_PURPOSE_NAME, UNIVERSITY_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( SCHOOL_PURPOSE_NAME, SCHOOL_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( ESCORT_PURPOSE_NAME, ESCORT_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( SHOPPING_PURPOSE_NAME, SHOPPING_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( OTH_MAINT_PURPOSE_NAME, OTH_MAINT_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( EAT_OUT_PURPOSE_NAME, EAT_OUT_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( SOCIAL_PURPOSE_NAME, SOCIAL_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( OTH_DISCR_PURPOSE_NAME, OTH_DISCR_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( AT_WORK_PURPOSE_NAME, AT_WORK_PURPOSE_INDEX );\n primaryIndexPurposeMap.put( -1, \"Home\" );\n primaryIndexPurposeMap.put( -2, \"Work\" );\n primaryIndexPurposeMap.put( WORK_PURPOSE_INDEX, WORK_PURPOSE_NAME );\n primaryIndexPurposeMap.put( UNIVERSITY_PURPOSE_INDEX, UNIVERSITY_PURPOSE_NAME );\n primaryIndexPurposeMap.put( SCHOOL_PURPOSE_INDEX, SCHOOL_PURPOSE_NAME );\n primaryIndexPurposeMap.put( ESCORT_PURPOSE_INDEX, ESCORT_PURPOSE_NAME );\n primaryIndexPurposeMap.put( SHOPPING_PURPOSE_INDEX, SHOPPING_PURPOSE_NAME );\n primaryIndexPurposeMap.put( OTH_MAINT_PURPOSE_INDEX, OTH_MAINT_PURPOSE_NAME );\n primaryIndexPurposeMap.put( EAT_OUT_PURPOSE_INDEX, EAT_OUT_PURPOSE_NAME );\n primaryIndexPurposeMap.put( SOCIAL_PURPOSE_INDEX, SOCIAL_PURPOSE_NAME );\n primaryIndexPurposeMap.put( OTH_DISCR_PURPOSE_INDEX, OTH_DISCR_PURPOSE_NAME );\n primaryIndexPurposeMap.put( AT_WORK_PURPOSE_INDEX, AT_WORK_PURPOSE_NAME );\n }",
"protected final Map<String, Object> buildModel(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tMap<String, Object> model = new HashMap<String, Object>();\n\t\t\n\t\t// Default from date is one week ago from last midnight\n\t\tDate lastMidnight = StatsUtils.getPreviousMidnight(null);\n\t\tDate weekAgo = StatsUtils.addDaysToDate(lastMidnight, -7);\n\t\t\n\t\t// Get from and until request parameters\n\t\tfrom = StatsUtils.getDateParameter(request, \"from\", weekAgo);\n\t\tuntil = StatsUtils.getDateParameter(request, \"until\", lastMidnight);\n maxResults = ServletRequestUtils.getIntParameter(request, \"maxResults\", 5);\n usageFilter = StatsUtils.getActionCriteriaParameter(request, \"usageFilter\", ActionCriteria.ANY);\n\t\t\n\t\t// Calculate inclusive until date by adding a day\n\t\tuntilInclusive = StatsUtils.addDaysToDate(until, 1);\n\n\t\t\n\t\t// Get paging info\n\t\tint offset = ServletRequestUtils.getIntParameter(request, \"offset\", 0);\n\t\tpaging = new PagingInfo(offset, Constants.RESULTS_PAGE_SIZE);\n\t\t\n\t\tmodel.put(\"from\", from);\n\t\tmodel.put(\"until\", until);\n model.put(\"maxResults\", maxResults);\n\t\tmodel.put(\"untilInclusive\", untilInclusive);\n\t\tmodel.put(\"usageFilter\", usageFilter);\n\t\tmodel.put(\"paging\", paging);\n\t\t\n\t\treturn model;\n\t}",
"public TypeMetricsFrame(TypeSummary initType) {\r\n\t\ttype = initType;\r\n\t\tPackageMetrics temp = new PackageMetrics(\"-package-\");\r\n\t\tGatherData data = new GatherData(null);\r\n\t\tmetrics = (TypeMetrics) data.visit(type, temp);\r\n\r\n\t\t// Fill in the description array\r\n\t\tdescriptions = new String[]\r\n\t\t\t\t{\"Description\", \r\n\t\t\t\t\"Statement Total\", \"Statement Average\", \r\n\t\t\t\t\"Parameter Total\", \"Parameter Average\", \r\n\t\t\t\t\"Public Method Count\", \"Other Method Count\", \"Class Metric Count\", \r\n\t\t\t\t\"Instance Variable Count\", \"Class Variable Count\"};\r\n\r\n\t\t// Fill in the value array\r\n NumberFormat nf = NumberFormat.getInstance();\r\n nf.setMaximumFractionDigits(2);\r\n\r\n\t\tvalues = new String[10];\r\n\t\tvalues[0] = \"Value\";\r\n\t\tvalues[1] = nf.format(metrics.getStatementTotal());\r\n\t\tvalues[2] = nf.format(metrics.getStatementAverage());\r\n\t\tvalues[3] = nf.format(metrics.getParameterTotal());\r\n\t\tvalues[4] = nf.format(metrics.getParameterAverage());\r\n\t\tvalues[5] = nf.format(metrics.getPublicMethodCount());\r\n\t\tvalues[6] = nf.format(metrics.getOtherMethodCount());\r\n\t\tvalues[7] = nf.format(metrics.getClassMethodCount());\r\n\t\tvalues[8] = nf.format(metrics.getInstanceVariableCount());\r\n\t\tvalues[9] = nf.format(metrics.getClassVariableCount());\r\n\r\n\t\t// Create the frame\r\n\t\tcreateFrame();\r\n\t}",
"public Stat()\n {\n // empty constructor\n }",
"@Override\n public Result<TopNResultValue> build()\n {\n List<Map<String, Object>> values = new ArrayList<Map<String, Object>>(pQueue.size());\n while (!pQueue.isEmpty()) {\n values.add(pQueue.remove().getMetricValues());\n }\n\n return new Result<TopNResultValue>(\n timestamp,\n new TopNResultValue(values)\n );\n }",
"public static Builder buildFrom(PlanNodeStatsEstimate other)\n {\n return new Builder(other.getOutputRowCount(), NaN, other.isConfident(), other.variableStatistics);\n }",
"public QoSModel(String logName, String statLogName, String dataset, String taskSet, String taxonomySet) {\n\t\tif (dataset != null)\n\t\t\t_servFilename = dataset;\n\t\tif (taskSet != null)\n\t\t\t_taskFilename = taskSet;\n\t\tif (taxonomySet != null)\n\t\t\t_taxonomyFilename = taxonomySet;\n\n\t\t//String dateTime\n\t\tif (logName != null && statLogName != null) {\n\t\t\t_logFileName = logName;\n\t\t\t_statLogFileName = statLogName;\n\t\t}\n\t\t// Create your own names\n\t\telse {\n\t\t\tString timeDate = new SimpleDateFormat(\"_dd-MM-yyyy_HH-mm-ss\").format(Calendar.getInstance().getTime());\n\t\t\t_logFileName = \"gp\" + timeDate;\n\t\t\t_statLogFileName = \"gpStats\" + timeDate;\n\t\t}\n\t\tsetupLogging();\n\n\t\tparseWSCServiceFile(_servFilename);\n\t\tparseWSCTaskFile(_taskFilename);\n\t\tparseWSCTaxonomyFile(_taxonomyFilename);\n\t\tfindConceptsForInstances();\n\n \tinputNode = new ServiceNode(\"Input\", new Properties(new HashSet<String>(), availableInputs, new double[]{0,0,1,1}));\n \toutputNode = new ServiceNode(\"Output\", new Properties(requiredOutputs, new HashSet<String>(), new double[]{0,0,1,1}));\n\n \tpopulateOutputsInTree();\n\n // Set terminals and function nodes\n\t\tList<Node> syntax = new ArrayList<Node>();\n\n\t\t// Function nodes\n\t\tsyntax.add(new SequenceNode());\n\t\tsyntax.add(new ParallelNode());\n\n\t\trelevantServices = getRelevantServices(serviceMap, availableInputs, requiredOutputs);\n\t\trecalculateTotals = false;\n\n\t\t// Terminal nodes\n\t\tfor (ServiceNode s : relevantServices) {\n\t\t\tsyntax.add(s);\n\t\t}\n\n\n _logger.log(SETUP, \"Filename: \" + _servFilename);\n _logger.log(SETUP, \"NumServices: \" + numServices);\n _logger.log(SETUP, \"TaskInput: \" + Arrays.toString(INPUT));\n _logger.log(SETUP, \"TaskOutput: \" + Arrays.toString(OUTPUT));\n _logger.log(SETUP, \"NumRuns: \" + NUM_RUNS);\n _logger.log(SETUP, \"populationSize: \" + POPULATION);\n _logger.log(SETUP, \"MaxNumIterations: \" + MAX_NUM_ITERATIONS);\n _logger.log(SETUP, \"MaxInitialDepth: \" + MAX_INIT_DEPTH);\n _logger.log(SETUP, \"MaxDepth: \" + MAX_DEPTH);\n _logger.log(SETUP, \"CrossoverProb: \" + CROSSOVER_PROB);\n _logger.log(SETUP, \"MutationProb: \" + MUTATION_PROB);\n _logger.log(SETUP, \"NoElites: \" + NO_ELITES);\n _logger.log(SETUP, \"fitness_W1: \" + w1);\n _logger.log(SETUP, \"fitness_W2: \" + w2);\n _logger.log(SETUP, \"fitness_W3: \" + w3);\n _logger.log(SETUP, \"fitness_W4: \" + w4);\n\n\t\tsetSyntax(syntax);\n setCrossoverProbability(CROSSOVER_PROB);\n setMutationProbability(MUTATION_PROB);\n\n // Set parameters\n\t\tsetPopulationSize(POPULATION);\n\t\tsetNoGenerations(MAX_NUM_ITERATIONS);\n\t\tsetMaxInitialDepth(MAX_INIT_DEPTH);\n\t\tsetMaxDepth(MAX_DEPTH);\n\t\tsetCrossoverProbability(CROSSOVER_PROB);\n\t\tsetMutationProbability(MUTATION_PROB);\n\t\tsetNoElites(NO_ELITES);\n\n // Request statistics every generation\n Life.get().addGenerationListener(new GenerationAdapter(){\n @Override\n public void onGenerationEnd() {\n \tStats.get().print(StatField.GEN_NUMBER, StatField.GEN_FITNESS_MIN, StatField.GEN_FITTEST_PROGRAM);\n }\n });\n\n double bestOverallFitness = Double.POSITIVE_INFINITY;\n GPCandidateProgram bestOverallProgram = null;\n\n for (int i = 0; i < NUM_RUNS; i++) {\n\n\t\t\tlong seed = i * SEED_COEFFICIENT;\n \tsetRNG(new MyRand(seed));\n\n \t// Set operators and components\n \tsetInitialiser(new GreedyInitialiser(this, getRNG()));\n \tsetProgramSelector(new TournamentSelector(this, 7));\n \tsetCrossover(new ServiceCrossover(this, getRNG()));\n \tsetMutation(new GreedyMutation(this, getRNG()));\n\n\t\t\t_logger.log(RUN, \"Run: \" + i);\n\t\t\t_logger.log(RUN, \"Seed: \" + seed);\n\n\t\t\tStopWatch runWatch = new Log4JStopWatch(\"RunTime\",_logger, RUN);\n\t\t\trun();\n\t\t\trunWatch.stop();\n\n\t\t\tdouble fitness = (Double) Stats.get().getStat(StatField.GEN_FITNESS_MIN);\n\t\t\tGPCandidateProgram program = (GPCandidateProgram) Stats.get().getStat(StatField.GEN_FITTEST_PROGRAM);\n\n\t\t\tif (fitness < bestOverallFitness) {\n\t\t\t\tbestOverallFitness = fitness;\n\t\t\t\tbestOverallProgram = program;\n\t\t\t}\n\n\t\t\t_logger.log(RUN, \"BestFitness: \" + fitness);\n\t\t\t_logger.log(RUN, \"BestProgram: \" + program);\n\t\t\treset();\n }\n\t\t_logger.log(POSTRUN, \"BestOverallFitness: \" + bestOverallFitness);\n\t\t_logger.log(POSTRUN, \"BestOverallProgram: \" + bestOverallProgram);\n\t\t_generateStatistics();\n\t\t_logger.removeAppender(_appender);\n\t\t_appender.close();\n\t\tSystem.setOut(stdout);\n\t}",
"@Override\n public Object build() {\n String countFilterField = null;\n for (ParamComposite param : this.getChildren().stream()\n .filter(child -> ParamComposite.class.isAssignableFrom(child.getClass()))\n .map(child -> (ParamComposite) child).collect(Collectors.toList())) {\n switch (param.getName().toLowerCase()) {\n case \"field\":\n countFilterField = (String)param.getValue();\n break;\n case \"operator\":\n operator = (BiPredicate) param.getValue();\n break;\n case \"operands\":\n operands = (List<String>)param.getValue();\n break;\n\n }\n }\n\n if (countFilterField != null) {\n String fieldName = (this.getName()+ COUNT_FIELD).replace(\".\",\"_\");\n TermsAggregationBuilder aggregation = AggregationBuilders.terms(this.getName()).field(this.getName())\n .subAggregation(PipelineAggregatorBuilders.bucketSelector(countFilterField,\n Collections.singletonMap(fieldName,\"_count\"),\n BuildFilterScript.script(fieldName, operator,operands)));\n return aggregation;\n }\n\n return this;\n }",
"public abstract DankSubmissionRequest build();",
"public Statistics(Context context){\n this.context=context;\n dalDynamic=new DalDynamic(context);\n\n\n }",
"private void test() {\n\t\tlong startTime = System.currentTimeMillis();\n\t\tBpmnModelInstance modelInstance = Bpmn.readModelFromFile(loadedFile);\n\t\tJsonEncoder jsonEncoder = new JsonEncoder(loadedFile.getName());\n\t\tBpmnBasicMetricsExtractor basicExtractor = new BpmnBasicMetricsExtractor(modelInstance, jsonEncoder);\n\t\tBpmnAdvancedMetricsExtractor advExtractor = new BpmnAdvancedMetricsExtractor(basicExtractor, jsonEncoder);\n\t\tlong loadTime = System.currentTimeMillis() - startTime;\n//\t\tSystem.out.println(\"Tempo load del file: \" + loadTime + \"ms\");\n\t\tbasicExtractor.runMetrics();\n\t\tlong basicTime = System.currentTimeMillis() - loadTime - startTime;\n//\t\tSystem.out.println(\"Tempo calcolo metriche di base: \" + basicTime + \"ms\");\n\t\tadvExtractor.runMetrics();\n\t\tlong advTime = System.currentTimeMillis() - basicTime - startTime - loadTime;\n//\t\tSystem.out.println(\"Tempo calcolo metriche avanzate: \" + advTime + \"ms\");\n\t\tjsonEncoder.exportJson();\n\t\tMySqlInterface db = new MySqlInterface();\n\t\tdb.connect();\n//\t\tdb.createTables(jsonEncoder);\n//\t\tdb.createAndInsertMetricsInfosTable();\n//\t\tdb.saveMetrics(jsonEncoder);\n//\t\tdb.closeConnection();\n\t}",
"private UIActionStats(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public static CategoryDataset createDataSetForBuild(AbstractBuild<?,?> build) {\n\t\tList<Number> values = new ArrayList<Number>();\n\t\tList<String> rows = new ArrayList<String>();\n\t\tList<NumberOnlyBuildLabel> columns = new ArrayList<NumberOnlyBuildLabel>();\n\n\t\tfor (; build != null; build = build\n\t\t\t\t.getPreviousBuild()) {\n\t\t\tRobotBuildAction action = build.getAction(RobotBuildAction.class);\n\n\t\t\tNumber failed = 0, passed = 0;\n\t\t\tif (action != null && action.getResult() != null) {\n\t\t\t\tfailed = action.getResult().getOverallFailed();\n\t\t\t\tpassed = action.getResult().getOverallPassed();\n\t\t\t}\n\n\t\t\t// default 'zero value' must be set over zero to circumvent\n\t\t\t// JFreeChart stacked area rendering problem with zero values\n\t\t\tif (failed.intValue() < 1)\n\t\t\t\tfailed = 0.01f;\n\t\t\tif (passed.intValue() < 1)\n\t\t\t\tpassed = 0.01f;\n\n\t\t\tChartUtil.NumberOnlyBuildLabel label = new ChartUtil.NumberOnlyBuildLabel(\n\t\t\t\t\tbuild);\n\n\t\t\tvalues.add(passed);\n\t\t\trows.add(Messages.robot_trendgraph_passed());\n\t\t\tcolumns.add(label);\n\n\t\t\tvalues.add(failed);\n\t\t\trows.add(Messages.robot_trendgraph_failed());\n\t\t\tcolumns.add(label);\n\t\t}\n\n\t\treturn createSortedDataset(values, rows, columns);\n\t}",
"public Statistic() {\n this(null, null);\n }",
"public ExperimentInfo() { }",
"private void setRunStats(DocumentReference runReference) {\n runReference.get(getCacheSource())\n .addOnCompleteListener(task -> {\n try {\n DocumentSnapshot snapshot = task.getResult();\n Map<String, Object> data;\n if (snapshot != null && (data = snapshot.getData()) != null) {\n WeeklyStat weeklyStat = WeeklyStat.from(data);\n TextView distance = findViewById(R.id.runDistance);\n distance.setText(String.format(Locale.getDefault(), \"%,.01fkm\", weeklyStat.getDistance()));\n TextView time = findViewById(R.id.runTime);\n time.setText(Utils.durationToHoursMinutes(weeklyStat.getTime()));\n TextView elevation = findViewById(R.id.runElevation);\n elevation.setText(String.format(Locale.getDefault(), \"%dm\", weeklyStat.getElevation()));\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n });\n }",
"public PersonSummary() {}",
"public OperatorStats(OperatorStats original, boolean isClean) {\n this(original.operatorId, original.operatorType, original.inputCount, original.allocator);\n\n if ( !isClean ) {\n inProcessing = original.inProcessing;\n inSetup = original.inSetup;\n inWait = original.inWait;\n\n processingMark = original.processingMark;\n setupMark = original.setupMark;\n waitMark = original.waitMark;\n }\n }",
"public static void outputStatistics(StatisticsResults results)\n\t{\n\t\tLogger logger = Log.getLogger();\n\t\t\n\t\tlogger.info(\"Size/number of statements of model: \" + results.getSize() + \"\\n\"\n\t\t\t\t\t+ \"Number of different resources: \" + results.getResources() + \"\\n\"\n\t\t\t\t\t+ \"Number of different subjects: \" + results.getSubjects() + \"\\n\"\n\t\t\t\t\t+ \"Number of different predicates: \" + results.getPredicates() + \"\\n\"\n\t\t\t\t\t+ \"Number of different objects: \" + results.getObjects() + \"\\n\"\n\t\t\t\t\t+ \"Number of different object resources: \" + results.getObjectResources() + \"\\n\"\n\t\t\t\t\t+ \"Number of different literals: \" + results.getLiterals() + \"\\n\"\n\t\t\t\t\t+ \"Total number of object resources: \" + results.getTotalObjectResources() + \"\\n\"\n\t\t\t\t\t+ \"Total number of literals: \" + results.getTotalLiterals() + \"\\n\"\n\t\t\t\t\t+ \"Average number of outgoing links per subject: \" + results.getAvgOutgoingLinks() + \"\\n\"\n\t\t\t\t\t+ \"Minimum number of outgoing links per subject: \" + results.getMinOutgoingLinks() + \"\\n\"\n\t\t\t\t\t+ \"Maximum number of outgoing links per subject: \" + results.getMaxOutgoingLinks() + \"\\n\"\n\t\t\t\t\t+ \"25% quantile of outgoing links per subject: \" + results.getOutgoingLinks25() + \"\\n\"\n\t\t\t\t\t+ \"50% quantile of outgoing links per subject: \" + results.getOutgoingLinks50() + \"\\n\"\n\t\t\t\t\t+ \"75% quantile of outgoing links per subject: \" + results.getOutgoingLinks75() + \"\\n\"\n\t\t\t\t\t+ \"Average number of incoming links per object resource: \" + results.getAvgIncomingLinks() + \"\\n\"\n\t\t\t\t\t+ \"Minimum number of incoming links per object resource: \" + results.getMinIncomingLinks() + \"\\n\"\n\t\t\t\t\t+ \"Maximum number of incoming links per object resource: \" + results.getMaxIncomingLinks() + \"\\n\"\n\t\t\t\t\t+ \"25% quantile of incoming links per object resrouce: \" + results.getIncomingLinks25() + \"\\n\"\n\t\t\t\t\t+ \"50% quantile of incoming links per object resource: \" + results.getIncomingLinks50() + \"\\n\"\n\t\t\t\t\t+ \"75% quantile of incoming links per object resource: \" + results.getIncomingLinks75() + \"\\n\"\n\t\t\t\t\t+ \"Average number of literals per subject: \" + results.getAvgLiterals() + \"\\n\"\n\t\t\t\t\t+ \"Minimum number of literals per subject: \" + results.getMinLiterals() + \"\\n\"\n\t\t\t\t\t+ \"Maximum number of literals per subject: \" + results.getMaxLiterals() + \"\\n\"\n\t\t\t\t\t+ \"25% quantile of literals per subject: \" + results.getLiterals25() + \"\\n\"\n\t\t\t\t\t+ \"50% quantile of literals per subject: \" + results.getLiterals50() + \"\\n\"\n\t\t\t\t\t+ \"75% quantile of literals per subject: \" + results.getLiterals75() + \"\\n\"\n\t\t\t\t\t+ \"Average number of object resources per subject: \" + results.getAvgObjectResources() + \"\\n\"\n\t\t\t\t\t+ \"Minimum number of object resources per subject: \" + results.getMinResObjects() + \"\\n\"\n\t\t\t\t\t+ \"Maximum number of object resources per subject: \" + results.getMaxResObjects() + \"\\n\"\n\t\t\t\t\t+ \"25% quantile of object resources per subject: \" + results.getResObjects25() + \"\\n\"\n\t\t\t\t\t+ \"50% quantile of object resources per subject: \" + results.getResObjects50() + \"\\n\"\n\t\t\t\t\t+ \"75% quantile of object resources per subject: \" + results.getResObjects75() + \"\\n\");\n\t}",
"public XmlWorkerUserstats(){\r\n \t\tthis.statsDS = new UserstatsDS();\r\n \t\titemResolver = new hModItemResolver(new File(statsDS.getDataFolder(),\"items.txt\"));\r\n \t\tresolveCats = new String[]{\"blockdestroy\", \"blockcreate\", \"itemdrop\", \"itempickup\"};\r\n \t}",
"public DimensionType build() {\n return new DimensionType(fixedTime, hasSkylight, hasCeiling, ultraWarm, natural, coordinateScale, bedWorks,\n respawnAnchorWorks, minY, height, logicalHeight, infiniburn, effectsLocation, ambientLight,\n new DimensionType.MonsterSettings(piglinSafe, hasRaids, UniformInt.of(0, 7), 0));\n }",
"Object build();",
"public com.google.privacy.dlp.v2.StoredInfoTypeStats.Builder getStatsBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getStatsFieldBuilder().getBuilder();\n }",
"public double getBuild() {\r\n return build;\r\n }",
"public void summarizeData() {\n\t\t//take json object and populate a POJO\n\t\t\n//\t\tfor(javaObject : x) {\n\t\t\n\t\t\t//new JobSummaryObject\n\t\t\t//\n\t}",
"public StatVersionExample() {\r\n\t\toredCriteria = new ArrayList();\r\n\t}",
"public Entity build();",
"private Report(Builder builder) {\n this.inputFileDir = builder.inputFileDir();\n this.inputFileName = builder.inputFileName();\n\n this.outputFileDir = builder.outputFileDir();\n this.outputFileName = builder.outputFileName();\n\n this.moduleList = builder.moduleList();\n\n this.outputHandler = builder.outputHandler();\n }",
"GoalModel createGoalModel();",
"public BuildHistory(){\n buildHistory = new ArrayList<Build>();\n }",
"TestEntity buildEntity () {\n TestEntity testEntity = new TestEntity();\n testEntity.setName(\"Test name\");\n testEntity.setCheck(true);\n testEntity.setDateCreated(new Date(System.currentTimeMillis()));\n testEntity.setDescription(\"description\");\n\n Specialization specialization = new Specialization();\n specialization.setName(\"Frontend\");\n specialization.setLevel(\"Senior\");\n specialization.setYears(10);\n\n testEntity.setSpecialization(specialization);\n\n return testEntity;\n }",
"public TomcatWebConnectorStatsImpl() {\n requestTime = new TimeStatisticImpl(\"Request Time\", StatisticImpl.UNIT_TIME_MILLISECOND,\n \"The time to process all requests\");\n activeRequestCount = new CountStatisticImpl(\"Active Request Count\", StatisticImpl.UNIT_COUNT,\n \"currently active requests \", 0);\n errorCount = new CountStatisticImpl(\"Error Count\", StatisticImpl.UNIT_COUNT,\n \"The numbet of Errors during the observed period\", 0);\n bytesSentCount = new CountStatisticImpl(\"Bytes Sent\", StatisticImpl.UNIT_COUNT,\n \"The number of bytes sent during the observerd period\", 0);\n bytesReceivedCount = new CountStatisticImpl(\"Bytes Received\", StatisticImpl.UNIT_COUNT,\n \"The number of bytes received during the observerd period\", 0);\n openConnectionCount = new RangeStatisticImpl(\"\" + \"Open Connections\", StatisticImpl.UNIT_COUNT,\n \"Range for connections opened during the observed period\", 0); // all 0's\n busyThreads = new BoundedRangeStatisticImpl(\"Busy Threads\", StatisticImpl.UNIT_COUNT,\n \"BoundedRange for Threads currently busy serving requests\", 0, 0, 0);\n addStat(\"RequestTime\", requestTime); // better name\n addStat(\"activeRequestCount\", activeRequestCount);\n addStat(\"errorCount\", errorCount);\n addStat(\"bytesSent\", bytesSentCount);\n addStat(\"bytesReceived\", bytesReceivedCount);\n addStat(\"openConnectionCount\", openConnectionCount);\n addStat(\"busyThreads\", busyThreads);\n }",
"protected void build() {\n // Make sure we have a fresh build of everything needed to run a JAM session\n // - bootstrap, translator and agent suites\n builder(\"clean\");\n builder(\"\");\n buildBootstrap();\n }",
"public de.hub.clickwatch.model.Handler build() {\n final de.hub.clickwatch.model.Handler _newInstance = de.hub.clickwatch.model.ClickWatchModelFactory.eINSTANCE.createHandler();\n if (m_featureCanReadSet) {\n _newInstance.setCanRead(m_canRead);\n }\n if (m_featureCanWriteSet) {\n _newInstance.setCanWrite(m_canWrite);\n }\n if (m_featureChangedSet) {\n _newInstance.setChanged(m_changed);\n }\n if (m_featureNameSet) {\n _newInstance.setName(m_name);\n }\n if (m_featureTimestampSet) {\n _newInstance.setTimestamp(m_timestamp);\n }\n if (m_featureValueSet) {\n _newInstance.setValue(m_value);\n }\n if (m_featureAnySet) {\n _newInstance.getAny().addAll(m_any);\n }\n if (m_featureMixedSet) {\n _newInstance.getMixed().addAll(m_mixed);\n }\n return _newInstance;\n }",
"public TrackStat() {\r\n }",
"public OFMeterFeaturesStatsRequest buildMeterFeaturesStatsRequest() {\n\t\t\treturn factory.buildMeterFeaturesStatsRequest().build();\n\t\t}",
"public DriverForCreate build() {\r\n return driverForCreate;\r\n }",
"public AgendaProgress build()\n {\n return this.object;\n }"
]
| [
"0.57339364",
"0.56044495",
"0.55904055",
"0.5548144",
"0.5495323",
"0.545094",
"0.5449034",
"0.54428595",
"0.54262364",
"0.5337082",
"0.53321487",
"0.532598",
"0.53239894",
"0.5251657",
"0.52477807",
"0.5244941",
"0.51783204",
"0.51385355",
"0.5102334",
"0.5100698",
"0.5070371",
"0.5064159",
"0.5055105",
"0.5007335",
"0.50052136",
"0.49918348",
"0.497983",
"0.49704868",
"0.4968715",
"0.4966963",
"0.49461752",
"0.4943169",
"0.4928305",
"0.48954967",
"0.48921198",
"0.4871745",
"0.48226014",
"0.48201948",
"0.48103702",
"0.48079804",
"0.48050228",
"0.47958553",
"0.47918916",
"0.4789007",
"0.47739184",
"0.47623783",
"0.47537425",
"0.47471002",
"0.4745141",
"0.47438964",
"0.4726152",
"0.4724043",
"0.4719596",
"0.47188172",
"0.47149795",
"0.47113082",
"0.47104725",
"0.47010574",
"0.46842408",
"0.46807888",
"0.4667851",
"0.46643752",
"0.46615776",
"0.46525663",
"0.46525553",
"0.46474248",
"0.46452057",
"0.4643884",
"0.46353677",
"0.46322465",
"0.46300155",
"0.46295583",
"0.46254528",
"0.46169844",
"0.46113417",
"0.4607425",
"0.46031326",
"0.45989478",
"0.4596118",
"0.45915988",
"0.45891252",
"0.4588177",
"0.45783785",
"0.4557283",
"0.45544097",
"0.45540273",
"0.45536155",
"0.45526096",
"0.45518652",
"0.45515582",
"0.45512152",
"0.45470226",
"0.45396125",
"0.45386252",
"0.45373175",
"0.45371056",
"0.453698",
"0.45363334",
"0.45341578",
"0.45340213"
]
| 0.6064732 | 0 |
TODO Autogenerated method stub | @Override
public NewsVO findByPrimaryKey(String news_id) {
NewsVO newsVO = null;
Connection con = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
try {
Class.forName(driver);
con = DriverManager.getConnection(url, userid, passwd);
pstmt = con.prepareStatement(GET_ONE_STMT);
pstmt.setString(1, news_id);
rs = pstmt.executeQuery();
while (rs.next()) {
// empVo 也稱為 Domain objects
newsVO = new NewsVO();
newsVO.setNews_id(rs.getString("news_id"));
newsVO.setNews_content(rs.getString("news_content"));
newsVO.setNews_date(rs.getTimestamp("news_date"));
}
// Handle any driver errors
} catch (ClassNotFoundException e) {
throw new RuntimeException("Couldn't load database driver. "
+ e.getMessage());
// Handle any SQL errors
} catch (SQLException se) {
throw new RuntimeException("A database error occured. "
+ se.getMessage());
// Clean up JDBC resources
} finally {
if (rs != null) {
try {
rs.close();
} catch (SQLException se) {
se.printStackTrace(System.err);
}
}
if (pstmt != null) {
try {
pstmt.close();
} catch (SQLException se) {
se.printStackTrace(System.err);
}
}
if (con != null) {
try {
con.close();
} catch (Exception e) {
e.printStackTrace(System.err);
}
}
}
return newsVO;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<NewsVO> getAll() {
List<NewsVO> list = new ArrayList<NewsVO>();
NewsVO newsVO = null;
Connection con = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
try {
Class.forName(driver);
con = DriverManager.getConnection(url, userid, passwd);
pstmt = con.prepareStatement(GET_ALL_STMT);
rs = pstmt.executeQuery();
while (rs.next()) {
// empVO 也稱為 Domain objects
newsVO = new NewsVO();
newsVO.setNews_id(rs.getString("news_id"));
newsVO.setNews_content(rs.getString("news_content"));
newsVO.setNews_date(rs.getTimestamp("news_date"));
list.add(newsVO); // Store the row in the list
}
// Handle any driver errors
} catch (ClassNotFoundException e) {
throw new RuntimeException("Couldn't load database driver. "
+ e.getMessage());
// Handle any SQL errors
} catch (SQLException se) {
throw new RuntimeException("A database error occured. "
+ se.getMessage());
// Clean up JDBC resources
} finally {
if (rs != null) {
try {
rs.close();
} catch (SQLException se) {
se.printStackTrace(System.err);
}
}
if (pstmt != null) {
try {
pstmt.close();
} catch (SQLException se) {
se.printStackTrace(System.err);
}
}
if (con != null) {
try {
con.close();
} catch (Exception e) {
e.printStackTrace(System.err);
}
}
}
return list;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
Called when the command is initially scheduled. | @Override
public void initialize() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}",
"@Override\n protected void initialize() {\n System.out.println(\"CargoWheelSuckOrSpitCommand init\");\n _timer.reset();\n _timer.start();\n }",
"@Override\n public void autonomousInit() {\n //ds.set(Value.kForward);\n /*m_autonomousCommand = m_chooser.getSelected();\n\n /*\n * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n * = new MyAutoCommand(); break; case \"Default Auto\": default:\n * autonomousCommand = new ExampleCommand(); break; }\n * \n */\n\n // schedule the autonomous command (example)\n /*if (m_autonomousCommand != null) {\n m_autonomousCommand.start();\n }*/\n //new VisionProcess().start();\n //SmartDashboard.putNumber(\"heerer\", value)\n new TeleOpCommands().start();\n }",
"public void autonomousInit() {\n\t\tautonomousCommand.start();\r\n\t}",
"@Override\n public void autonomousInit() {\n\tgameData.readGameData();\n\tautonomousCommand = (Command) chooserMode.getSelected();\n\tdriveSubsystem.resetEncoders();\n\televatorSubsystem.resetEncoder();\n\t// schedule the autonomous command\n\tif (autonomousCommand != null) {\n\t // SmartDashboard.putString(\"i\", \"nit\");\n\t autonomousCommand.start();\n\t}\n }",
"@Override\n\tpublic void teleopInit() {\n\n\t\tSystem.out.println(\"Teleop init\");\n\t\tif (autonomousCommand != null)\n\t\t\tautonomousCommand.cancel();\n\t\tScheduler.getInstance().add(new DriveCommand());\n\n\t\t\n\t}",
"@Override\r\n\tpublic void doInitialSchedules() {\n\t}",
"public void autonomousInit() {\n if (autonomousCommand != null) autonomousCommand.start();\n }",
"@Override\n public void autonomousInit() {\n //Diagnostics.writeString(\"State\", \"AUTO\");\n //m_autonomousCommand = m_chooser.getSelected();\n\n /*\n * String autoSelected = SmartDashboard.getString(\"Auto Selector\", \"Default\");\n * switch(autoSelected) { case \"My Auto\": autonomousCommand = new\n * MyAutoCommand(); break; case \"Default Auto\": default: autonomousCommand = new\n * ExampleCommand(); break; }\n */\n\n // schedule the autonomous command (example)\n /*if (m_autonomousCommand != null) {\n m_autonomousCommand.start();\n }*/\n\n teleopInit();\n }",
"@Override\n\tpublic void autonomousInit() {\n\t\tautonomousCommand = new Auto();\n\n\t\t/*\n\t\t * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n\t\t * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n\t\t * = new MyAutoCommand(); break; case \"Default Auto\": default:\n\t\t * autonomousCommand = new ExampleCommand(); break; }\n\t\t */\n\n\t\t// schedule the autonomous command (example)\n\t\tif (autonomousCommand != null)\n\t\t\tautonomousCommand.start();\n\t}",
"protected void initialize() {\n\t\tRobot.firstAutonomousCommandDone = true;\n\t}",
"@Override\n public void autonomousInit() {\n\n Robot.m_driveTrain.driveTrainLeftFrontMotor.setSelectedSensorPosition(0);\n Robot.m_driveTrain.driveTrainRightFrontMotor.setSelectedSensorPosition(0);\n Robot.m_driveTrain.driveTrainRightRearMotor.setSelectedSensorPosition(0);\n Robot.m_driveTrain.driveTrainLeftRearMotor.setSelectedSensorPosition(0);\n\n /*\n * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n * = new MyAutoCommand(); break; case \"Default Auto\": default:\n * autonomousCommand = new ExampleCommand(); break; }\n */\n\n // schedule the autonomous command (example)\n }",
"@Override\n public void autonomousInit()\n {\n autonomousCommand = chooser.getSelected();\n \n /*\n * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n * = new MyAutoCommand(); break; case \"Default Auto\": default:\n * autonomousCommand = new ExampleCommand(); break; }\n */\n \n // schedule the autonomous command (example)\n if (autonomousCommand != null) \n {\n autonomousCommand.start();\n }\n }",
"@Override\n public void execute() {\n if (System.currentTimeMillis() - currentMs >= timeMs) {\n // Delay has passed so initialize object11\n super.initialize();\n }\n }",
"@Scheduled(fixedRate = 2000, initialDelay = 5000)\n\tpublic void scheduleTaskWithInitialDelay() {\n\t\tlog.info(\"Fixed Rate Task With Initial Delay :: Execution Time - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}",
"@Override\n\tpublic void autonomousInit() //initialization of the autonomous code\n\t{\n\t\t//m_autonomousCommand = m_chooser.getSelected();\n\n\t\t/*\n\t\t * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n\t\t * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n\t\t * = new MyAutoCommand(); break; case \"Default Auto\": default:\n\t\t * autonomousCommand = new ExampleCommand(); break; }\n\t\t */\n\n\t\t// schedule the autonomous command (example)\n\t\tif (m_autonomousCommand != null) //if we have any autonomous code, start it\n\t\t{\n\t\t\tm_autonomousCommand.start();\n\t\t}\n\t\tRobotMap.encoderLeft.reset(); //reset the values of the encoder\n\t\tRobotMap.encoderRight.reset(); //reset the values of the encoder\n\t\tultrasonic.getInitialDist(); //if nullPointerException, use \"first\" boolean inside the method and run in periodic()\n\t}",
"protected abstract void scheduler_init();",
"@Override\r\n public void robotPeriodic() {\r\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\r\n // commands, running already-scheduled commands, removing finished or interrupted commands,\r\n // and running subsystem periodic() methods. This must be called from the robot's periodic\r\n // block in order for anything in the Command-based framework to work.\r\n CommandScheduler.getInstance().run();\r\n }",
"@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }",
"@Scheduled(fixedRate = 2000, initialDelay = 5000)\n public void scheduleTaskWithInitialDelay() {\n logger.info(\"Fixed Rate Task with Initial Delay :: Execution Time - {}\", formatter.format(LocalDateTime.now()));\n }",
"@Override\n public void taskStarting() {\n\n }",
"@Override\n public void robotPeriodic() {\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\n // commands, running already-scheduled commands, removing finished or interrupted commands,\n // and running subsystem periodic() methods. This must be called from the robot's periodic\n // block in order for anything in the Command-based framework to work.\n CommandScheduler.getInstance().run();\n }",
"public InstantCommand() {\n\t\t//let's all laugh really hard at the style checker...\n\t\tm_toRun = () -> {};\n\t}",
"@Override\n\tpublic void autonomousInit() {\n\t\t//SmartDashboard.getData(\"Driver File\");\n\t\t//SmartDashboard.getData(\"Operator File\");\n\t\tautonomousCommand = chooser.getSelected();\n\t\tisAutonomous = true;\n\t\tisTeleoperated = false;\n\t\tisEnabled = true;\n\t\tRobot.numToSend = 3;\n\t\tdrivebase.resetGyro();\n\n\t\t/*\n\t\t * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n\t\t * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n\t\t * = new MyAutoCommand(); break; case \"Default Auto\": default:\n\t\t * autonomousCommand = new ExampleCommand(); break; }\n\t\t */\n\n\t\t// schedule the autonomous command (example)\n\t\tRobot.gearManipulator.gearManipulatorPivot.setPosition(0);\n\t\tRobot.gearManipulator.gearManipulatorPivot.setSetpoint(0);\n\t\tif (autonomousCommand != null)\n\t\t\tautonomousCommand.start();\n\t}",
"public void autonomousPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}",
"public void autonomousInit(){\n\t \t//resetAndDisableSystems();\n\t\t \n\t \tautonomousCommand = (Command) autoChooser.getSelected();\n\t \tautonomousCommand.start();\n\t \t\n\t \t\n\t }",
"public void autonomousPeriodic() {\n if (m_apFirstRun) {\n System.out.println(\"Default autonomousPeriodic() method... Override me!\");\n m_apFirstRun = false;\n }\n }",
"public final void activate(){\n waitingToExecute = true;\n }",
"public void autonomousPeriodic() {\r\n Scheduler.getInstance().run();\r\n }",
"public void startExecuting()\n {\n super.startExecuting();\n this.breakingTime = 0;\n }",
"public Command() {\n this.executed = false;\n }",
"@Override\n\tpublic void teleopInit() {\n\t\tif (autonomousCommand != null)\n\t\t\tlowGearCommand.start();\n\t\tautonomousCommand.cancel();\n\t}",
"public void autonomousPeriodic() {\n // RobotMap.helmsman.trackPosition();\n Scheduler.getInstance().run();\n }",
"public void autonomousInit() {\n //autonomousCommand = (Command) chooser.getSelected();\n autoLoopCounter = 0; //This resets the loop counter to 0\n //if (autonomousCommand != null) autonomousCommand.start();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"@Override\n protected void initializeMacroCommand() {\n \n addSubCommand(new PrepareControllerCommand());\n addSubCommand(new PrepareModelCommand());\n addSubCommand(new PrepareViewCommand());\n \n // Remove the command because it never be called more than once\n // getFacade().removeCommand(ApplicationConstants.STARTUP);\n }",
"@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }",
"@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"private void schedule() {\n service.scheduleDelayed(task, schedulingInterval);\n isScheduled = true;\n }",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\t\n\t}",
"@Override\n public void disabledInit() {\n\t// new SetElevator(0).start();\n\tif (autonomousCommand != null)\n\t autonomousCommand.cancel();\n\tScheduler.getInstance().removeAll();\n }",
"@Override\n\tpublic void autonomousInit() {\n\t\tif (autonomousCommand != null)\n\t\t\tlowGearCommand.start();\n\t\tautonomousCommand.start();\n\t}",
"@Override\n public void autonomousInit() {\n\n autonomousCommand = new Autonomous(start.getSelected(), chooser.getSelected());\n \n autonomousCommand.start();\n }",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n public void autonomousPeriodic()\n {\n Scheduler.getInstance().run();\n }",
"@Override\n\t\tvoid runCommand() {\n\t\t\ttrigger.execute();\n\t\t}",
"public void autonomousPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}",
"public void initDefaultCommand() {\n setDefaultCommand(new shooterStart());\n }",
"void beginPeriodic() {\n\t\t// if some subsystems need to get called in all modes at the beginning\n\t\t// of periodic, do it here\n\n\t\t// don't need to do anything\n\t}",
"public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n }",
"public void autonomousInit() {\n autonomousCommand = (Command) autoChooser.getSelected();\n autonomousCommand.start();\n// \n }",
"@PostConstruct\n public void init() {\n threadPoolTaskScheduler.scheduleWithFixedDelay(this::process, Instant.now(), Duration.ofSeconds(30));\n }",
"@Override\n public void execute() {\n Time.sleep(3000);\n Starting.execute();\n }",
"public void intialRun() {\n }",
"protected void execute() {\n \tRobot.chassisSubsystem.shootHighM.set(0.75);\n \tif(timeSinceInitialized() >= 1.25){\n \t\tRobot.chassisSubsystem.liftM.set(1.0);\n \t}\n }",
"void doManualStart();",
"protected void initialize() {\n \tRobot.telemetry.setAutonomousStatus(\"Starting \" + commandName + \": \" + distance);\n \tRobot.drivetrain.resetEncoder();\n \t\n \tRobot.driveDistancePID.setSetpoint(distance);\n \tRobot.driveDistancePID.setRawTolerance(RobotPreferences.drivetrainTolerance());\n \tRobot.driveDistancePID.enable();\n \t\n \texpireTime = timeSinceInitialized() + (RobotPreferences.timeOut());\n }",
"@Override\r\n protected void initialize() {\n if (getCommandName().equals(COMMAND_NAME)) {\r\n logMessage(getParmDesc() + \" starting\");\r\n }\r\n\r\n driveSubsystem.setSpeed(speed, speed);\r\n }",
"public void autonomousInit() {\n\t\ttimer.start();\n\t\tautonomousCommand = autoChooser.getSelected();\n\t\t//This outputs what we've chosen in the SmartDashboard as a string.\n\t\tSystem.out.println(autonomousCommand);\n\t\tif (DriverStation.getInstance().isFMSAttached()) {\n\t\t\tgameData = DriverStation.getInstance().getGameSpecificMessage();\n\t\t}\n\t\telse {\n\t\t\tgameData=\"RLR\";\n\t\t}\n\t\t//armSwing.setAngle(90); //hopefully this will swing the arms down. not sure what angle it wants though\n\t}",
"private void scheduleJob() {\n\n }",
"@Override\r\n\tpublic void tellStarting() {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t\t// Not used here\r\n\t}",
"public void robotPeriodic() {\n if (m_rpFirstRun) {\n System.out.println(\"Default robotPeriodic() method... Override me!\");\n m_rpFirstRun = false;\n }\n }",
"@Override\n\tpublic void start()\n\t{\n\t\tarena = \"scenarios/boxpushing/arena/pioneer.controller.arena.txt\"; \n\n\t\t\n\t\tschedule.reset();\n\n\t\tsuper.start();\n\n\t\tresetBehavior();\n\n\t}",
"@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"public void teleopInit() {\n\t\tif (autonomousCommand != null)\n\t\t\tautonomousCommand.cancel();\n\t\t\n//\t\tif ((intake.intakeIsUp() || intake.intakeSolenoidIsOff()) && shooterArm.getAngle() > 45) {\n//\t\t\traiseArm90.start();\t\t\t\n//\t\t}\n\t\tshooterArm.setBrakeOff();\n\t\t\n\t\tvision.enableCameraSaving();\n\t\tvision.setCameraPeriod(1);\n\t}",
"public void prePerform() {\n // nothing to do by default\n }",
"@Override\n public void teleopInit() {\n\t// This makes sure that the autonomous stops running when\n\t// teleop starts running. If you want the autonomous to\n\t// continue until interrupted by another command, remove\n\t// this line or comment it out.\n\tif (autonomousCommand != null) {\n\t autonomousCommand.cancel();\n\t}\n }",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t}",
"public void initDefaultCommand() \n {\n }",
"public static void init(){\r\n CommandBase.magazine.setSpeed(0.0);\r\n CommandBase.loader.setSpeed(0.0);\r\n Init.manualTankDrive.start(); \r\n Init.runCompressor.start();\r\n Init.stopGyroDrift.start();\r\n \r\n }",
"public void teleopPeriodic() {\n if (m_tpFirstRun) {\n System.out.println(\"Default teleopPeriodic() method... Override me!\");\n m_tpFirstRun = false;\n }\n }",
"public void initDefaultCommand() {\n \n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }"
]
| [
"0.694831",
"0.6869797",
"0.6774711",
"0.67235124",
"0.66945976",
"0.66753703",
"0.6657486",
"0.66475713",
"0.6604096",
"0.6577765",
"0.6561175",
"0.6482039",
"0.64754146",
"0.644672",
"0.6402472",
"0.6344543",
"0.6339042",
"0.6322262",
"0.63140696",
"0.62958276",
"0.62720674",
"0.62664163",
"0.6261111",
"0.62571466",
"0.6251572",
"0.62421125",
"0.62352216",
"0.6234025",
"0.623369",
"0.62323254",
"0.6217575",
"0.6216372",
"0.62088937",
"0.620569",
"0.62020177",
"0.62020177",
"0.62020177",
"0.62020177",
"0.62020177",
"0.62020177",
"0.62004745",
"0.61980206",
"0.61886495",
"0.6185543",
"0.6185411",
"0.6181534",
"0.61769086",
"0.61761785",
"0.61623883",
"0.61623883",
"0.61623883",
"0.61623883",
"0.61563826",
"0.6153124",
"0.6151394",
"0.61498344",
"0.61463493",
"0.6144683",
"0.61263484",
"0.6116391",
"0.61108017",
"0.6102207",
"0.6097001",
"0.60824543",
"0.60712206",
"0.6067445",
"0.606492",
"0.6063349",
"0.60496444",
"0.60440403",
"0.6025948",
"0.60228336",
"0.60228336",
"0.60194737",
"0.60194737",
"0.60194737",
"0.60194737",
"0.60194737",
"0.6002024",
"0.60005176",
"0.5997005",
"0.5992159",
"0.59915394",
"0.59911036",
"0.59857327",
"0.5979954",
"0.5972569",
"0.5972569",
"0.5972569",
"0.5972569",
"0.5972569",
"0.5972569",
"0.5972569",
"0.5972569",
"0.5972569",
"0.5972569",
"0.5972569",
"0.5972569",
"0.5972569",
"0.5972569",
"0.5972569"
]
| 0.0 | -1 |
Called every time the scheduler runs while the command is scheduled. | @Override
public void execute() {
//double sliderValue = -1.0 * m_xbox.getRawAxis(3);
//sliderValue = (sliderValue /2) + 0.5;
double joyForward = m_xbox.getRawAxis(Constants.OI.yAxis);
double joyTurn = m_xbox.getRawAxis(Constants.OI.xAxis);
// System.out.println("Y axis: " + joyForward);
// System.out.println("X axis: " + joyTurn);
if(Math.abs(joyForward) < 0.1 ) {
joyForward = 0.0;
}
if(Math.abs(joyTurn) < 0.1) {
joyTurn = 0.0;
}
m_drivetrain.setArcadeDrive(0.7*joyForward, 0.6 * joyTurn);
// if(Math.abs(joyForward) < 0.1) {
// m_drivetrain.setArcadeDrive(sliderValue * joyForward, joyTurn, true);
// } else {
// m_drivetrain.setArcadeDrive(sliderValue * joyForward, 0.8 * joyTurn, false);
// }
// 14 feet, 7 inches
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }",
"@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }",
"@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"@Override\n public void autonomousPeriodic()\n {\n Scheduler.getInstance().run();\n }",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\t\n\t}",
"@Override\n public void run() {\n schedule();\n }",
"public void autonomousPeriodic() {\r\n Scheduler.getInstance().run();\r\n }",
"public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n }",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}",
"@Override\n public void teleopPeriodic()\n {\n Scheduler.getInstance().run();\n }",
"public void run() {\n\t\t\t\tIMSScheduleManager.super.startCron();\r\n\t\t\t\t\r\n\t\t\t}",
"private void scheduleJob() {\n\n }",
"private void schedule() {\n service.scheduleDelayed(task, schedulingInterval);\n isScheduled = true;\n }",
"@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n log();\n }",
"@Override\r\n public void robotPeriodic() {\r\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\r\n // commands, running already-scheduled commands, removing finished or interrupted commands,\r\n // and running subsystem periodic() methods. This must be called from the robot's periodic\r\n // block in order for anything in the Command-based framework to work.\r\n CommandScheduler.getInstance().run();\r\n }",
"@Override\n public void robotPeriodic() {\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\n // commands, running already-scheduled commands, removing finished or interrupted commands,\n // and running subsystem periodic() methods. This must be called from the robot's periodic\n // block in order for anything in the Command-based framework to work.\n CommandScheduler.getInstance().run();\n }",
"private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}",
"public void autonomousPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}",
"public void teleopPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}",
"private void runPeriodic() {\n boolean ok = ScheduledFutureTask.super.runAndReset();\n boolean down = isShutdown();\n // Reschedule if not cancelled and not shutdown or policy allows\n if (ok && !down) {\n updateNextExecutionTime();\n MeasurableScheduler.super.getQueue().add(this);\n }\n // This might have been the final executed delayed\n // task. Wake up threads to check.\n else if (down)\n interruptIdleWorkers();\n }",
"@Override\n public void autonomousPeriodic() {\n \tbeginPeriodic();\n Scheduler.getInstance().run();\n endPeriodic();\n }",
"@Override\n public void autonomousPeriodic() {\n\t// updateDiagnostics();9\n\tScheduler.getInstance().run();\n }",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\tlog();\n\t}",
"public void teleopPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n \n }",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n // RobotMap.helmsman.trackPosition();\n Scheduler.getInstance().run();\n }",
"@Override\n public void teleopPeriodic() {\n\tupdateDiagnostics();\n\tScheduler.getInstance().run();\n }",
"@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n log();\n }",
"@Override\n public void teleopPeriodic() {\n \tbeginPeriodic();\n Scheduler.getInstance().run();\n endPeriodic();\n }",
"protected void runEachMinute() {\n \n }",
"@Override\n public void autonomousPeriodic() {\n\n }",
"@Override\n public void autonomousPeriodic() {\n \n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void run() {\n // 获取最近一次执行时间并将其格式化。\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n System.out.println(\"Scheduled exec time is: \" + simpleDateFormat.format(scheduledExecutionTime()));\n System.out.println(\"Dancing...\");\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"public void onScheduled(long scheduledTime);",
"@Override\n public void autonomousPeriodic() {\n teleopPeriodic();\n //Scheduler.getInstance().run();\n }",
"@Override\n public void run() {\n\n\n\n System.out.println(\"run scheduled jobs.\");\n\n\n checkBlackOutPeriod();\n\n\n\n checkOfficeActionPeriod1();\n\n checkAcceptedFilings();\n\n checkNOAPeriod();\n checkFilingExtensions();\n\n\n\n }",
"void cronScheduledProcesses();",
"@Override\n\tpublic void teleopPeriodic() {\n\t\tOI.refreshAll();\n\t\tScheduler.getInstance().run();\n\t\tlog();\n\t}",
"@Override\n public void periodic() {\n UpdateDashboard();\n }",
"public void teleopPeriodic() {\r\n Scheduler.getInstance().run();\r\n OI.poll();\r\n }",
"protected void runEachDay() {\n \n }",
"@Override\npublic void autonomousPeriodic() {\n\n}",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n rumbleInYourPants();\n turnSpindleIfNeeded();\n turnWinchIfNeeded();\n if (arcadeDrive != null) \n arcadeDrive.start();\n }",
"public void autonomousPeriodic() {\r\n }",
"public void autonomousPeriodic() {\r\n }",
"@Override\n public void periodic() {\n\n }",
"@Override\n public void periodic() {\n\n }",
"public void run(){\n Timer time = new Timer(); // Instantiate Timer Object\n\n ScheduledClass st = new ScheduledClass(this.job,this.shm,time,this.stopp); // Instantiate SheduledTask class\n time.schedule(st, 0, this.periodicwait); // Create Repetitively task for every 1 secs\n }",
"public abstract void schedule();",
"public void autonomousPeriodic() {\n }",
"public void autonomousPeriodic() {\n }",
"@Override\r\n\tpublic void doInitialSchedules() {\n\t}",
"public void autonomousPeriodic() {\n \n }",
"public void autonomousPeriodic() {\n\n }",
"public void autonomousPeriodic() {\n\n }",
"public void autonomousPeriodic()\r\n {\r\n \r\n }",
"protected void runEach10Minutes() {\n try {\n saveHistoryData();\n if (isEnabledScheduler()) {\n boolean action = getLightSchedule().getCurrentSchedule();\n if (action) {\n if (!currentState) switchOn();\n } else {\n if (currentState) switchOff();\n }\n }\n } catch (RemoteHomeManagerException e) {\n RemoteHomeManager.log.error(44,e);\n } catch (RemoteHomeConnectionException e) {\n RemoteHomeManager.log.error(45,e);\n }\n }",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n \n if(switchesSubsystem.readyToFire()) {\n \t\tSmartDashboard.putString(\"DB/String \"+0, \"ready to fire\");\n \t} else {\n \t\tSmartDashboard.putString(\"DB/String \"+0, \"reloading\");\n \t}\n \n SmartDashboard.putString(\"DB/String \"+1, \"Wound switch: \" + switchesSubsystem.isBarDown());\n \tSmartDashboard.putString(\"DB/String \"+2, \"Taut switch: \" + switchesSubsystem.isTaut());\n \tSmartDashboard.putString(\"DB/String \"+3, \"Fired switch: \" + switchesSubsystem.isLauncherFired());\n }",
"public void testPeriodic() {\n Scheduler.getInstance().run();\n }",
"@Override\n public void periodic() {\n\n }",
"@Override\n public void periodic() {\n\n }",
"@Override\n public void periodic() {\n\n }",
"@Override\n public void periodic() {\n\n }",
"public void scheduledUpdate() {\n\n if (isUpdating.compareAndSet(false, true)) {\n\n if (getCurrentChannel() != null) {\n\n updateData();\n }\n }\n\n timer.cancel();\n timer.purge();\n\n timer = new Timer();\n timer.scheduleAtFixedRate(new UpdateTask(), 3600000,\n 3600000);\n\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }"
]
| [
"0.7795588",
"0.7556595",
"0.7483744",
"0.7466229",
"0.73808366",
"0.7376631",
"0.7343765",
"0.73368347",
"0.73189235",
"0.73189235",
"0.73189235",
"0.73189235",
"0.7271756",
"0.7271756",
"0.7271756",
"0.7271756",
"0.7271756",
"0.7271756",
"0.724292",
"0.7233699",
"0.7198446",
"0.71973044",
"0.71968484",
"0.7187741",
"0.7187741",
"0.7187741",
"0.71810174",
"0.7177967",
"0.71700937",
"0.71687156",
"0.71680295",
"0.7134983",
"0.7130027",
"0.7097203",
"0.70889115",
"0.7079789",
"0.7061589",
"0.70554507",
"0.6982403",
"0.6982403",
"0.6982403",
"0.6982403",
"0.69488204",
"0.6929627",
"0.6919421",
"0.6916391",
"0.6903268",
"0.6881482",
"0.6852929",
"0.6842287",
"0.6838946",
"0.6838568",
"0.6838568",
"0.6838568",
"0.68198705",
"0.6773613",
"0.67672384",
"0.67572737",
"0.67236334",
"0.6712062",
"0.668847",
"0.66400033",
"0.6630263",
"0.6589639",
"0.65870786",
"0.65870786",
"0.6586588",
"0.6586588",
"0.6579878",
"0.6566679",
"0.6556749",
"0.6556749",
"0.65422434",
"0.653636",
"0.6535499",
"0.6535499",
"0.65312666",
"0.6522229",
"0.652124",
"0.6518371",
"0.6515238",
"0.6515238",
"0.6515238",
"0.6515238",
"0.6511453",
"0.6505806",
"0.6505806",
"0.6505806",
"0.6505806",
"0.6505806",
"0.6505806",
"0.6505806",
"0.6505806",
"0.6505806",
"0.6505806",
"0.6505806",
"0.6505806",
"0.6505806",
"0.6505806",
"0.6505806",
"0.6505806"
]
| 0.0 | -1 |
Called once the command ends or is interrupted. | @Override
public void end(boolean interrupted) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void endCommand();",
"@Override\n protected void end() {\n System.out.println(\"elevator down command ended\");\n }",
"@Override\n public void end(boolean interrupted) {}",
"@Override\n public void end(boolean interrupted) {}",
"@Override\n public void end(boolean interrupted) {}",
"@Override\n public void end(boolean interrupted) {}",
"@Override\n public void end(boolean interrupted) {\n return;\n }",
"@Override\n protected void interrupted() {\n end();\n }",
"@Override\n protected void interrupted() {\n end();\n }",
"@Override\n protected void interrupted() {\n end();\n }",
"@Override\n protected void interrupted() {\n end();\n }",
"@Override\n protected void interrupted() {\n end();\n }",
"@Override\n protected void interrupted() {\n end();\n }",
"@Override\n protected void interrupted() {\n end();\n }",
"@Override\n protected void interrupted() {\n end();\n }",
"@Override\n protected void interrupted() {\n end();\n }",
"@Override\n protected void interrupted() {\n end();\n }",
"@Override\n protected void interrupted() {\n end();\n }",
"@Override\n protected void interrupted() {\n end();\n }",
"@Override\n protected void interrupted() {\n end();\n }",
"@Override\n protected void interrupted() {\n end();\n }",
"@Override\n protected void interrupted() {\n // isFinished = true;\n // end();\n }",
"@Override\n protected void interrupted() {\n end();\n }",
"@Override\n protected void interrupted() {\n end();\n }",
"@Override\n protected void interrupted() {\n end();\n }",
"@Override\n protected void interrupted() {\n end();\n }",
"@Override\n public void end(boolean interrupted) {\n }",
"protected void interrupted() {\n end();\n }",
"protected void interrupted() {\n end();\n }",
"protected void interrupted() {\n end();\n }",
"protected void interrupted() {\r\n end();\r\n }",
"@Override\n protected void interrupted() \n {\n end();\n }",
"protected void end() {\n \tRobot.telemetry.setAutonomousStatus(\"Finishing \" + commandName + \": \" + distance);\n Robot.driveDistancePID.disable();\n \tRobot.drivetrain.arcadeDrive(0.0, 0.0);\n }",
"protected void end() {\n \tlogger.info(\"Ending AutoMoveLiftUp Command, encoder inches = {}\", Robot.liftSubsystem.readEncoderInInches());\n \t\n }",
"@Override\r\n protected void interrupted() {\r\n \tend();\r\n }",
"@Override\n public void end(boolean interrupted) {\n\n }",
"protected void interrupted() {\r\n end();\r\n }",
"protected void interrupted()\n {\n this.end();\n }",
"@Override\n\tprotected void interrupted() {\n\t\tend();\n\t}",
"protected void interrupted() {\n \t\n \tend();\n }",
"protected void interrupted() {\n end();\r\n }",
"protected void interrupted() {\n\t\tend();\n\t}",
"protected void interrupted() {\n\t\tend();\n\t}",
"protected void interrupted() {\n\t\tend();\n\t}",
"protected void interrupted() {\n\t\tend();\n\t}",
"protected void interrupted() {\n\t\tend();\n\t}",
"protected void interrupted() {\n\t\tend();\n\t}",
"protected void interrupted() {\n\t\tend();\n\t}",
"protected void interrupted() {\n \tend();\n }",
"protected void interrupted() {\n \tend();\n }",
"protected void interrupted() {\n \tend();\n }",
"protected void interrupted() {\n \tend();\n }",
"protected void interrupted() {\n \tend();\n }",
"protected void interrupted() {\n \tend();\n }",
"protected void interrupted() {\n \tend();\n }",
"protected void interrupted() {\n \tend();\n }",
"protected void interrupted() {\n \tend();\n }",
"protected void interrupted() {\n \tend();\n }",
"protected void interrupted() {\n \tend();\n }",
"protected void interrupted() {\n \tend();\n }",
"protected void interrupted() {\n \tend();\n }",
"protected void interrupted() {\n \tend();\n }",
"protected void interrupted() {\n \tend();\n }",
"protected void interrupted() {\n \tend();\n }",
"protected void interrupted() {\n \tend();\n }",
"protected void interrupted() {\n \tend();\n }",
"protected void interrupted() {\n \tend();\n }",
"protected void interrupted() {\n \tend();\n }",
"protected void interrupted() {\n \tend();\n }",
"protected void interrupted() {\n \tend();\n }",
"protected void end() {\n isFinished();\n }",
"@Override\n\tprotected void interrupted() {\n\t\tthis.end();\n\t}",
"protected void end() {\r\n // stop motor, reset position on the dumper, enable closed loop\r\n }",
"@Override\n public void end(boolean interrupted) {\n Robot.Climber.stop();\n SmartDashboard.putBoolean(\"Climb:\", false);\n }",
"@Override\n\tpublic void end(boolean interrupted) {\n\t}",
"protected void interrupted()\n\t{\n\t\tend();\n\t}",
"protected void waitUntilCommandFinished() {\n }",
"protected void interrupted() {\n\t\tSystem.out.println(\"AlignAndDrive interupted\");\n\t\tend();\n\t}",
"public void end() {\n\t\tsigue = false;\n\t}",
"protected void end()\n\t{\n\t\tstop();\n\t}",
"@Override\n protected void end() {\n Robot.toteLifterSubsystem.setEjectorState(EjectorState.STOPPED, 0.0);\n }",
"public void end() throws Exception;",
"protected void end() {\n \t//Just let the lift keep holding the current motion magic\n \t//setpoint after this command ends\n \tRobot.debug.Stop();\n }",
"@Override\n public void execute() {\n System.out.println(\"programm closed\");\n System.exit(0);\n }",
"protected void end() {\n \tRobot.conveyor.stop();\n }",
"@Override\n\tprotected void onTermination() throws SimControlException {\n\t\t\n\t}",
"protected void exit() throws IOException {\r\n\t\tstop();\r\n\t\tkeepRunning = false;\r\n\t}",
"protected void end() {\n\t\tRobot.conveyor.Stop();\n\t}",
"protected void interrupted() {\n \n }",
"protected void end() {\n \n \n }"
]
| [
"0.7605449",
"0.7176284",
"0.7074365",
"0.7074365",
"0.7074365",
"0.7074365",
"0.7039006",
"0.7019191",
"0.7019191",
"0.7019191",
"0.7019191",
"0.7019191",
"0.7019191",
"0.7019191",
"0.7019191",
"0.7019191",
"0.7019191",
"0.7019191",
"0.7019191",
"0.7019191",
"0.7019191",
"0.70119756",
"0.6996919",
"0.6995794",
"0.6995794",
"0.6995794",
"0.6969432",
"0.69322675",
"0.69322675",
"0.69322675",
"0.69310844",
"0.6927687",
"0.68840873",
"0.6883039",
"0.68731415",
"0.68478703",
"0.68441886",
"0.68368876",
"0.67998195",
"0.6795387",
"0.6781225",
"0.6780453",
"0.6780453",
"0.6780453",
"0.6780453",
"0.6780453",
"0.6780453",
"0.6780453",
"0.6738514",
"0.6738514",
"0.6738514",
"0.6738514",
"0.6738514",
"0.6738514",
"0.6738514",
"0.6738514",
"0.6738514",
"0.6738514",
"0.6738514",
"0.6738514",
"0.6738514",
"0.6738514",
"0.6738514",
"0.6738514",
"0.6738514",
"0.6738514",
"0.6738514",
"0.6738514",
"0.6738514",
"0.6738514",
"0.67380494",
"0.67253214",
"0.66523486",
"0.66510886",
"0.66411275",
"0.6639811",
"0.6628616",
"0.6599552",
"0.6560897",
"0.64974415",
"0.6470508",
"0.64387596",
"0.6426708",
"0.6426392",
"0.63940674",
"0.63899684",
"0.6385863",
"0.6374579",
"0.63668466",
"0.6351061"
]
| 0.69664836 | 36 |
Returns true when the command should end. | @Override
public boolean isFinished() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract boolean shouldEnd();",
"private Boolean quitCommand() {\n output.println(\"QUIT COMMAND\");\n return false;\n }",
"protected boolean isFinished() {\r\n\t \treturn (timeSinceInitialized() > .25) && (Math.abs(RobotMap.armarm_talon.getClosedLoopError()) < ARM_END_COMMAND_DIFFERENCE_VALUE); //TODO:\r\n\t }",
"public void endCommand();",
"private boolean isComplete() {\n return redisCommand != null && redisCommand.getAction() != null && !\"\".equals(redisCommand.getAction().trim()) && redisCommand.getArgList().size() == argSize - 1;\n }",
"@Override\n public boolean isFinished() {\n return System.currentTimeMillis() >= endtime;\n }",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn (System.currentTimeMillis() > Endtime);\n\t}",
"@Override\n public boolean isEnding() {\n return false;\n }",
"@Override\n\tpublic boolean isFinished() {\n\t\treturn (this.timeRemaining == 0);\n\t}",
"private boolean quit(Command command) \n {\n if(command.hasSecondWord()) {\n Logger.Log(\"Quit what?\");\n return false;\n }\n else {\n return true; // signal that we want to quit\n }\n }",
"@Override\r\n\tpublic boolean isFinished() {\n\t\treturn finish;\r\n\t}",
"private boolean quit(Command command) \n {\n if(command.hasSecondWord()) {\n System.out.println(\"Quit what?\");\n return false;\n }\n else {\n return true; // these shows that we want to quit\n }\n }",
"protected boolean isFinished() {\n\t\treturn true;\n\t}",
"protected boolean isFinished() {\n\t\treturn true;\n\t}",
"protected boolean isFinished() {\n\t\treturn true;\n\t}",
"protected boolean isFinished() {\n \t//ends \n \treturn isTimedOut();\n }",
"protected boolean isFinished() {\n\t\treturn pid.onTarget();\n\t}",
"private boolean quit(Command command) \n {\n if(command.hasSecondWord()) {\n System.out.println(\"Quit what?\");\n return false;\n }\n else {\n return true; // signal that we want to quit\n }\n }",
"private boolean quit(Command command) \n {\n if(command.hasSecondWord()) {\n System.out.println(\"Quit what?\");\n return false;\n }\n else {\n return true; // signal that we want to quit\n }\n }",
"protected boolean isFinished()\n\t{\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isFinished() {\n\t\treturn true;\n\t}",
"public boolean isFinished() {\n\t\tif (getRemaining() <= 0) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n return Math.abs(pid.getError()) < 0.25;\n }",
"protected boolean isFinished() {\n return true;\n }",
"protected boolean isFinished() {\n return true;\n }",
"protected boolean isFinished() {\n return true;\n }",
"protected boolean isFinished() {\n return true;\n }",
"protected boolean isFinished() {\n return true;\n }",
"protected boolean isFinished() {\n return true;\n }",
"public boolean isFinished() {\n return true;\n }",
"public Guard isFinishedExecution() {\n if (depth == PSymGlobal.getConfiguration().getMaxStepBound()) {\n return Guard.constTrue();\n } else {\n return allMachinesHalted;\n }\n }",
"@Override\n\tpublic boolean isFinished()\n\t{\n\t\treturn false;\n\t}",
"public boolean quit(Command command) \n {\n if(command.hasSecondWord()) {\n System.out.println(\"Quit what?\");\n return false;\n }\n else {\n return true; // signal that we want to quit\n }\n }",
"protected boolean isFinished() {\n logger.info(\"Ending left drive\");\n \treturn timer.get()>howLongWeWantToMove;\n }",
"static private boolean quit(Command command) {\n if (command.hasSecondWord()) {\n System.out.println(\"Quit what?\");\n return false;\n } else {\n return true;\n }\n }",
"public boolean isFinished(){\n return true;\n }",
"protected boolean isFinished()\n\t{\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t\t//return timeOnTarget >= finishTime;\n }",
"protected boolean isFinished(){\r\n return true;\r\n }",
"public Boolean isEnd() {\n\t\t// keep running\n\t\tif (currentNo == -1) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// car production for this production line is done\n\t\telse if (currentNo >= expectedNo) {\n//\t\t\tSystem.out.println(\"isEnd of car Production line is \");\n//\t\t\tSystem.out.print(currentNo >= expectedNo);\n\n\t\t\treturn true;\n\t\t} else {\n//\t\t\tSystem.out.println(\"isEnd of car Production line is \");\n//\t\t\tSystem.out.print(currentNo >= expectedNo);\n\t\t\treturn false;\n\t\t}\n\n\t}",
"public boolean end() {\n\t\ttry {\n\t\t\tbyte[] buffer = \"END\".getBytes();\n\t\t\toos.writeObject(buffer);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean isExit() {\n return true;\n }",
"protected boolean isFinished() {\n\t\treturn Robot.elevator.isInPosition(newPosition, direction);\n\t}",
"protected boolean isFinished() {\n //return !RobotMap.TOTE_SWITCH.get();\n \treturn false;\n }",
"public static boolean isDone(String command) {\r\n\t\tassert command != null;\r\n\t\tcommandType = Logic.determineCommandType(command);\r\n\t\tswitch (commandType) {\r\n\t\tcase DONE:\r\n\t\t\treturn true;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\n\t\tpublic boolean isFinished() {\n\t\t\treturn false;\n\t\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\r\n if (state == STATE_SUCCESS) {\r\n // Success\r\n return true;\r\n }\r\n if (state == STATE_FAILURE) {\r\n // Failure\r\n return true;\r\n }\r\n return false;\r\n }",
"protected boolean isFinished() {\n\t\treturn false;\r\n\t}",
"protected boolean isFinished() {\n\t\treturn isFinished;\n\t}",
"@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}",
"@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}",
"protected boolean isFinished() {\n \t// wait for a time out\n return false;\n }",
"@Override\n\tpublic boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn done; \n\t}",
"public boolean isFinished();",
"@Override\r\n protected boolean isFinished() {\n if (super.isFinished()) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }",
"protected boolean isFinished()\n\t{\n\t\treturn !Robot.oi.respoolWinch.get();\n\t}",
"protected boolean isFinished() {\n \treturn (Robot.sonar.getDistance() <= distance);\n }",
"@Override\n\tprotected boolean isFinished()\n\t{\n\t\treturn false;\n\t}",
"protected abstract boolean end();",
"protected boolean isFinished() {\n return finished;\n }",
"protected boolean isFinished() {\n return Robot.claw.isRetracted();\n }",
"protected boolean isFinished() {\n return isFinished;\n }",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\r\n\treturn false;\r\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }"
]
| [
"0.75273657",
"0.73602504",
"0.73465896",
"0.71294767",
"0.7033159",
"0.7012778",
"0.700753",
"0.6994238",
"0.6931957",
"0.6927545",
"0.6915831",
"0.68845886",
"0.68594575",
"0.68594575",
"0.68594575",
"0.6853999",
"0.68532574",
"0.6851464",
"0.6851464",
"0.6837983",
"0.68260324",
"0.67944705",
"0.6790352",
"0.6787929",
"0.6787929",
"0.6787929",
"0.6787929",
"0.6787929",
"0.6787929",
"0.67818975",
"0.67786217",
"0.6778202",
"0.6770069",
"0.6765901",
"0.6757644",
"0.67570454",
"0.675351",
"0.6746853",
"0.67448765",
"0.673654",
"0.67348415",
"0.6729635",
"0.67287415",
"0.67188156",
"0.6715925",
"0.6713165",
"0.6708804",
"0.6708804",
"0.6708804",
"0.6708804",
"0.6708804",
"0.6708804",
"0.6702017",
"0.66926044",
"0.66913027",
"0.668989",
"0.668989",
"0.6679259",
"0.6670593",
"0.6662767",
"0.6659927",
"0.66539127",
"0.665286",
"0.6633671",
"0.6629671",
"0.6624843",
"0.66048396",
"0.6600003",
"0.65889597",
"0.65866053",
"0.65866053",
"0.65866053",
"0.65866053",
"0.65866053",
"0.65866053",
"0.65866053",
"0.65866053",
"0.65866053",
"0.65853024",
"0.65815485",
"0.65815485",
"0.65815485",
"0.65815485",
"0.65815485",
"0.65815485",
"0.65815485",
"0.65815485",
"0.65815485",
"0.65815485",
"0.65815485",
"0.65815485",
"0.65815485",
"0.65815485",
"0.65815485",
"0.65815485",
"0.65815485",
"0.65815485",
"0.65815485",
"0.65815485",
"0.65815485",
"0.65815485"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean validate() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean test() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub Cmd cmd = new Cmd(); cmd.setName("TA0_KEY"); cmd.setCmd("/usr/local/bin/ibmcloud service keyshow ta0 user0"); cmd.setNr(4); cmd.setPath("/tmp"); | public static void main(String[] args) throws FileNotFoundException {
Path path = Paths.get("/opt/wks/ftwta/WebContent/res/IC_LI_CMD.json");
Cmd cmd = (Cmd) Tools.fromJSON(path.toFile(), new TypeReference<Cmd>(){});
System.out.println(Tools.toJSON(cmd));
try {
// Map<String, Object> output = Tools.fromJSON((String) cmd.run().get("OUTPUT"));
int rc = (int) cmd.run().get("RC");
if(rc == 0) {
path = Paths.get("/opt/wks/ftwta/WebContent/res/taKeyCmd.json");
cmd = (Cmd) Tools.fromJSON(path.toFile(), new TypeReference<Cmd>(){});
System.out.println(cmd.run().get("OUTPUT"));
}
} catch (InterruptedException | IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getKinitCommandAsString() {\n //kinit nifi -kt /etc/security/keytabs/nifi.headless.keytab\n StringBuffer kInitCommand = new StringBuffer();\n return kInitCommand.append(kerberosKinitLocation)\n .append(\" \")\n .append(kerberosPrincipal)\n .append(\" \")\n .append(\"-kt\")\n .append(\" \")\n .append(kerberosKeytab)\n .toString();\n }",
"String command(String key) {\n return ResourceBundle.getBundle(OvsDbCli.class.getName())\n .getString(name() + \".\" + key);\n }",
"public String getCommandKey()\n\t{\n\t\treturn commandKey;\n\t}",
"private void setKey() {\n\t\t \n\t}",
"public void setCommandKey(String commandKey)\n\t{\n\t\tthis.commandKey = Toolbox.trim(commandKey, 1);\n\t}",
"java.lang.String getClientKey();",
"private static void listCommand(File meKeystoreFile, String[] args)\n throws Exception {\n MEKeyTool keyTool;\n PublicKeyInfo key;\n\n for (int i = 1; i < args.length; i++) {\n try {\n if (args[i].equals(\"-MEkeystore\")) {\n i++;\n meKeystoreFile = new File(args[i]); \n } else {\n throw new UsageException(\"Invalid argument for the list \" +\n \"command: \" + args[i]);\n }\n } catch (ArrayIndexOutOfBoundsException e) {\n throw new UsageException(\"Missing value for \" + args[--i]);\n }\n }\n\n keyTool = new MEKeyTool(meKeystoreFile);\n key = keyTool.getFirstKey();\n for (int i = 1; key != null; i++) {\n System.out.println(\"Key \" + Integer.toString(i));\n System.out.println(formatKeyInfo(key));\n key = keyTool.getNextKey();\n }\n\n System.out.println(\"\");\n }",
"java.lang.String getServiceCmd();",
"int getCmd();",
"public static String createAuthorizedKeysSegment(String proxyexecutable, String key, String pubkey){\n String ret=\"\";\n String command = \" command=\\\"\"+proxyexecutable+\" username\\\",no-X11-forwarding,no-pty,no-port-forwarding,no-agent-forwarding \";\n ret=\"#\"+key+\"\\n\"+command+\" \"+pubkey+\"\\n\"+\"#\"+key+\"end\"+\"\\n\";\n return ret;\n }",
"protected abstract String getExecutableKey();",
"OpenSSLKey mo134201a();",
"private void initKey() {\n String del = \":\";\n byte[] key;\n if (MainGame.applicationType == Application.ApplicationType.Android) {\n key = StringUtils.rightPad(Build.SERIAL + del + Build.ID + del, 32, \"~\").getBytes();\n } else if (MainGame.applicationType == Application.ApplicationType.Desktop) {\n key = new byte[]{0x12, 0x2d, 0x2f, 0x6c, 0x1f, 0x7a, 0x4f, 0x10, 0x48, 0x56, 0x17, 0x4b, 0x4f, 0x48, 0x3c, 0x17, 0x04, 0x06, 0x4b, 0x6d, 0x1d, 0x68, 0x4b, 0x52, 0x50, 0x50, 0x1f, 0x06, 0x29, 0x68, 0x5c, 0x65};\n } else {\n key = new byte[]{0x77, 0x61, 0x6c, 0x0b, 0x04, 0x5a, 0x4f, 0x4b, 0x65, 0x48, 0x52, 0x68, 0x1f, 0x1d, 0x3c, 0x4a, 0x5c, 0x06, 0x1f, 0x2f, 0x12, 0x32, 0x50, 0x19, 0x3c, 0x52, 0x04, 0x17, 0x48, 0x4f, 0x6d, 0x4b};\n }\n for (int i = 0; i < key.length; ++i) {\n key[i] = (byte) ((key[i] << 2) ^ magic);\n }\n privateKey = key;\n }",
"com.hps.july.persistence.StorageCardKey getAgregateKey() throws java.rmi.RemoteException;",
"public abstract void keycommand(long ms);",
"public String getUserCommand();",
"public List<String> getKinitCommandAsList() {\n List<String> kinitCommandAsList = new ArrayList<>();\n kinitCommandAsList.add(kerberosKinitLocation);\n kinitCommandAsList.add(kerberosPrincipal);\n kinitCommandAsList.add(\"-kt\");\n kinitCommandAsList.add(kerberosKeytab);\n return kinitCommandAsList;\n }",
"String newKey();",
"java.lang.String getContKey();",
"String process_key () throws BaseException;",
"public void setKey(char key){ this.key = key;}",
"public static String getKey(){\n\t\treturn key;\n\t}",
"public JCTermMIDP(){\n display=Display.getDisplay(this);\n f=new Form(\"JCTerm\");\n si=new StringItem(\"Status\", \"No connection\");\n tf=new TextField(\"user@hostname\", UH, 30, TextField.ANY);\n\n f.append(tf);\n f.append(choice);\n f.append(\"\");\n f.append(COPYRIGHT);\n\n choice.append(\"Install private key\", null);\n\n f.addCommand(exitCommand);\n f.addCommand(connectCommand);\n f.addCommand(clearKeyCommand);\n f.setCommandListener(this);\n display.setCurrent(f);\n\n tb.addCommand(okCommand);\n tb.setCommandListener(this);\n\n resultBox.addCommand(okCommand);\n resultBox.setCommandListener(this);\n\n initGraphics();\n\n }",
"void setKey(String key);",
"public void setCmd(String cmd) {\r\n this.cmd = cmd;\r\n }",
"@Override\n\tpublic String toString() {\n\t\treturn CMD_NAME;\n\t}",
"public static void showInstruction(){\r\n\t\tSystem.out.println(\"put key value : put operation\");\r\n\t\tSystem.out.println(\"get key : get the value of this key\");\r\n\t\tSystem.out.println(\"delete key : delete this key-value pairs\");\r\n\t}",
"public String getKey() {\n\treturn key;\n }",
"private byte[] getSystemKey() throws InternalSkiException {\n return sysKey(SYSTEM_KEY);\n }",
"@Override\n\tpublic String getKey() {\n\t\t LiuLiang_Key = Util.getMaiYuanConfig(\"LiuLiang_Key\");\n\t\treturn LiuLiang_Key;\n\t}",
"private void setKey(String key){\n\t\tthis.key=key;\n\t}",
"public String getCmd() {\r\n return cmd;\r\n }",
"private byte[] getTokenKey() throws InternalSkiException {\n return sysKey(TOKEN_KEY);\n }",
"public Key()\n {\n name = \"\";\n fields = new Vector<String>();\n options = new Vector<String>();\n isPrimary = false;\n isUnique = false;\n }",
"public char getKey(){ return key;}",
"public String getMacKey() {\r\n return macKey;\r\n }",
"Text getKey() throws IOException;",
"@PostMapping(\"/createKeyPair\")\n public String createKeyPair() {\n \n AWSKMS kmsClient = AWSKMSClientBuilder.standard().build();\n \n return \"Private uid: \"+ priuid +\"\\nPublic uid: \" + pubuid +\"\\n\";\n }",
"public String getKey(){\n\t\treturn key;\n\t}",
"protected String getCommand() {\n\treturn \"USER_LOGIN\";\n }",
"public String key() {\n return key;\n }",
"public String key() {\n return key;\n }",
"String key();",
"KeyManager createKeyManager();",
"public MountLV( String cmd ){\r\n super( cmd );\r\n }",
"public abstract \n KEYIN getCurrentKey() throws IOException, InterruptedException;",
"public String key() {\n return this.key;\n }",
"public String key() {\n return this.key;\n }",
"public String key() {\n return this.key;\n }",
"public String key() {\n return this.key;\n }",
"com.hps.july.persistence.WorkerKey getTechStuffKey() throws java.rmi.RemoteException;",
"public static String getKey() {\t\t\n\t\treturn key;\n\t}",
"public byte[] getCmdString() {\n \t\t\n \t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \t\tString strCmd = null;\n \t\tbyte[] byteCmd = null; \t\t\n \t\t\n \t\tSystem.out.print(\"bash$ \");\n \t\ttry {\n\t\t\tstrCmd = br.readLine();\t\n\t\t\tbyteCmd = new byte[ strCmd.length() ]; \n\t\t\tbyteCmd = strCmd.getBytes(\"UTF-8\");\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\tSystem.out.println(\"caught exception.. \");\n\t\t}\n \t\t \t\t \t\t\n \t\treturn byteCmd; \t\n \t}",
"public String showGameKey() {\r\n \t\r\n \treturn \"no key defined\";\r\n \t\r\n }",
"public String Command() {\n\treturn command;\n }",
"public void setKey(int key){\r\n this.key = key; \r\n }",
"java.lang.String getCdkey();",
"void setKey(java.lang.String key);",
"public String getKeyName(){\n\n //returns the value of the keyName field\n return this.keyName;\n }",
"public Key getKey() {\n\t\tString fieldvalue = getValue(\"sys_id\");\n\t\tassert fieldvalue != null;\n\t\treturn new Key(fieldvalue);\n\t}",
"public KeyNamePair() {\r\n this.key = \"\";\r\n this.name = \"\";\r\n }",
"public GenerateKey() {\n\t\tsuper(\"generate_key\", org.jooq.example.jaxrs.db.LicenseServer.LICENSE_SERVER, org.jooq.impl.SQLDataType.VARCHAR);\n\n\t\tsetReturnParameter(RETURN_VALUE);\n\t\taddInParameter(LICENSE_DATE);\n\t\taddInParameter(EMAIL);\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Enter the Software Key\");\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tString softwareKey = input.nextLine();\r\n\t\tSystem.out.println(\"Enter the length of key\");\r\n\t\tint lengthOfKey = input.nextInt();\r\n\t\tString refinedSoftwareKey = refiningSoftwareKey(softwareKey,lengthOfKey);\r\n\t\tSystem.out.println(\"Software Key=: \" + refinedSoftwareKey);\r\n\t\tinput.close();\r\n\t}",
"public void key(){\n }",
"public Kristik(){\n key = \"\";\n blockLen = key.length();\n }",
"com.google.protobuf.ByteString getMasterKey();",
"public short key();",
"public OzoneKey(KsmKeyInfo ksmKeyInfo) {\n this.volumeName = ksmKeyInfo.getVolumeName();\n this.bucketName = ksmKeyInfo.getBucketName();\n this.keyName = ksmKeyInfo.getKeyName();\n this.dataSize = ksmKeyInfo.getDataSize();\n this.keyLocations = ksmKeyInfo.getKeyLocationList();\n }",
"java.lang.String getCommand();",
"String getMemberKey(AbstractClassMetaData cmd);",
"void privateSetAgregateKey(com.hps.july.persistence.StorageCardKey inKey) throws java.rmi.RemoteException;",
"public int getCmd() {\n return cmd_;\n }",
"public void setKey(java.lang.String param){\n localKeyTracker = true;\n \n this.localKey=param;\n \n\n }",
"private static Key generateKey() {\n return new SecretKeySpec(keyValue, ALGO);\n }",
"public Key getKey()\r\n { \r\n return key; \r\n }",
"private String exportkey() {\n\n\t\ttry {\n\t\t\tbyte[] keyBytes = serversharedkey.getEncoded();\n\t\t\tString encodedKey = new String(Base64.encodeBase64(keyBytes), \"UTF-8\");\n\t\t\tFile file = new File(\"serversharedKey\");\n\t\t\t//System.out.println(\"The server Private key: \" + encodedKey);\n\t\t\tPrintWriter writer = new PrintWriter(file, \"UTF-8\");\n\t\t\twriter.println(encodedKey);\n\t\t\twriter.close();\n\n\t\t\treturn encodedKey;\n\n\t\t} catch (UnsupportedEncodingException | FileNotFoundException ex) {\n\t\t\tLogger.getLogger(ClientTCP.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n public com.google.protobuf.ByteString\n getServiceCmdBytes() {\n java.lang.Object ref = serviceCmd_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n serviceCmd_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getMcKey ()\n\t{\n\t\tString mcKey = getContent().substring(OFF_ID27_MCKEY, OFF_ID27_MCKEY + LEN_ID27_MCKEY) ;\n\t\treturn (mcKey);\n\t}",
"public String getKV(String key) throws Exception;",
"void setKey(int key);",
"public CryptoKey getMyKey() {\n return myKey;\n }",
"public String getKey_() {\n return key_;\n }",
"public void setKey(String key) {\n this.key = key;\n }",
"public void setKey(String key) {\r\n this.key = key;\r\n }",
"public byte[] getKey() {\n return this.key;\n }",
"private String getKey()\r\n\t\t{\r\n\t\t\tif (key != null)\r\n\t\t\t{\r\n\t\t\t\treturn key.toString();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn \"The key has not been found\";\r\n\t\t\t}\r\n\t\t}",
"public interface CommandInterface {\n\n\tpublic static class Commands\n\t{\n\t\tpublic static final String ABORT = \"ABOR\";\n\t\tpublic static final String ACCOUNT_INFO = \"ACCT\";\n\t\tpublic static final String AUTHENTICATION_DATA = \"ADAT\";\n\t\tpublic static final String ALLOCATE_DISK_SPACE = \"ALLO\";\n\t\tpublic static final String APPEND = \"APPE\";\n\t\tpublic static final String AUTHENTICATION_MECHANISM = \"AUTH\";\n\t\tpublic static final String GET_AVAILABLE_SPACE = \"AVBL\";\n\t\tpublic static final String CLEAR_COMMAND_CHANNEL = \"CCC\";\n\t\tpublic static final String CHANGE_TO_PARENT_DIRECTORY = \"CDUP\";\n\t\tpublic static final String CONFIDENTIALITY_PROTECTION_COMMAND = \"CONF\";\n\t\tpublic static final String SERVER_IDENTIFICATION = \"CSID\";\n\t\tpublic static final String CHANGE_WORKING_DIRECTORY = \"CWD\";\n\t\tpublic static final String DELETE_FILE = \"DELE\";\n\t\tpublic static final String GET_DIRECTORY_SIZE = \"DSIZ\";\n\t\tpublic static final String PRIVACY_PROTECTED = \"ENC\";\n\t\tpublic static final String SPECIFY_ADDRESS_AND_PORT = \"EPRT\";\n\t\tpublic static final String ENTER_EXTENDED_PASSIVE_MODE = \"EPSV\";\n\t\tpublic static final String GET_FEATURE_LIST = \"FEAT\";\n\t\tpublic static final String HELP = \"HELP\";\n\t\tpublic static final String GET_HOST_BY_NAME = \"HOST\";\n\t\tpublic static final String LANGUAGE_NEGOTIATION = \"LANG\";\n\t\tpublic static final String GET_FILES_LIST = \"LIST\";\n\t\tpublic static final String SPECIFY_LONGADDRESS_AND_PORT = \"LPRT\";\n\t\tpublic static final String ENTER_LONG_PASSIVE_MODE = \"LPSV\";\n\t\tpublic static final String GET_LAST_MODIFICATION_TIME = \"MDTM\";\n\t\tpublic static final String MODIFY_CREATION_TIME = \"MFCT\";\n\t\tpublic static final String MODIFY_FACT = \"MFF\";\n\t\tpublic static final String MODIFY_MODYFICATION_TIME = \"MFMT\";\n\t\tpublic static final String INTEGRITY_PROTECTION = \"MIC\";\n\t\tpublic static final String MAKE_DIRECTORY = \"MKD\";\n\t\tpublic static final String LIST_A_CONTENT = \"MLSD\";\n\t\tpublic static final String PROVIDES_DATA = \"MLST\";\n\t\tpublic static final String SET_TRANSFER_MODE = \"MODE\";\n\t\tpublic static final String LIST_OF_FILE_NAMES = \"NLST\";\n\t\tpublic static final String NO_OPERATION = \"NOOP\";\n\t\tpublic static final String SELECT_OPTIONS = \"OPTS\";\n\t\tpublic static final String AUTHENTICATION_PASSWORD = \"PASS\";\n\t\tpublic static final String ENTER_PASSIVE_MODE = \"PASV\";\n\t\tpublic static final String PROTECTION_BUFFER_SIZE = \"PBSZ\";\n\t\tpublic static final String SPECIFY_PORT = \"PORT\";\n\t\tpublic static final String DATA_CHANNEL_PROTECTION_LEVEL = \"PROT\";\n\t\tpublic static final String PRINT_WORKING_DIRECTORY = \"PWD\";\n\t\tpublic static final String DISCONNECT = \"QUIT\";\n\t\tpublic static final String REINITIALIZE = \"REIN\";\n\t\tpublic static final String RESTART = \"REST\";\n\t\tpublic static final String RETRIEVE_A_COPY = \"RETR\";\n\t\tpublic static final String REMOVE_DIRECTORY = \"RMD\";\n\t\tpublic static final String REMOVE_DIRECTORY_TREE = \"RMDA\";\n\t\tpublic static final String RENAME_FROM = \"RNFR\";\n\t\tpublic static final String RENAME_TO = \"RNTO\";\n\t\tpublic static final String SITE_SPECIFFIC_COMMAND = \"SITE\";\n\t\tpublic static final String SIZE_OF_FILE = \"SIZE\";\n\t\tpublic static final String MOUNT_FILE_STRUCTURE = \"SMNT\";\n\t\tpublic static final String USE_SINGLE_PORT_PASSIVE_MODE = \"SPSV\";\n\t\tpublic static final String GET_STATUS = \"STAT\";\n\t\tpublic static final String ACCEPT_AND_STORE = \"STOR\";\n\t\tpublic static final String STORE_FILE_UNIQUELY = \"STOU\";\n\t\tpublic static final String SET_FILE_TRANSFER_STRUCT = \"STRU\";\n\t\tpublic static final String GET_SYSTEM_TYPE = \"SYST\";\n\t\tpublic static final String GET_THUMBNAIL = \"THMB\";\n\t\tpublic static final String SET_TRANSFER_TYPE = \"TYPE\";\n\t\tpublic static final String AUTHENTICATION_USERNAME = \"USER\";\n\t}\n\t\n\t/**\n\t * Types of transmission.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class TransmissionTypes\n\t{\n\t\tpublic static final String BINARY = \"I\";\n\t\tpublic static final String ASCII = \"A\";\n\t}\n\n\t/**\n\t * Inner class for responses from server.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class ServerResonses\n\t{\n\t\t/**\n\t\t * 1xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitivePreliminaryReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"100\";\n\t\t\tpublic static final String RESTART_REPLY = \"110\";\n\t\t\tpublic static final String SERVICE_READY = \"120\";\t\n\t\t\tpublic static final String DATA_CONNECTION_ALREADY_OPENED = \"125\";\n\t\t\tpublic static final String FILE_STATUS_OKAY = \"150\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 2xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitiveCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"200\";\n\t\t\tpublic static final String SYSTEM_STATUS = \"211\";\n\t\t\tpublic static final String DIRECTORY_STATUS = \"212\";\n\t\t\tpublic static final String FILE_STATUS = \"213\";\n\t\t\tpublic static final String HELP_MESSAGE = \"214\";\n\t\t\tpublic static final String NAME_SYSTEM_TYPE = \"215\";\n\t\t\tpublic static final String READY_FOR_NEW_USER = \"220\";\n\t\t\tpublic static final String SERVICE_CLOSING_CONTROL_CONNECTION = \"221\";\n\t\t\tpublic static final String OPEN_DATA_CONNECTION = \"225\";\t\t\t\n\t\t\tpublic static final String CLOSING_DATA_CONNECTION = \"226\";\n\t\t\tpublic static final String PASSIVE_MODE = \"227\";\n\t\t\tpublic static final String LONG_PASSIVE_MODE = \"228\";\n\t\t\tpublic static final String EXTENDED_PASSIVE_MODE = \"229\";\n\t\t\tpublic static final String USER_LOG_IN = \"230\";\n\t\t\tpublic static final String USER_LOG_OUT = \"231\";\n\t\t\tpublic static final String LOGOUT_NOTED = \"232\";\n\t\t\tpublic static final String REQUESTED_OK = \"250\";\n\t\t\tpublic static final String PATHNAME_CREATED = \"257\";\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 3xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PositiveIntermediateReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"300\";\n\t\t\tpublic static final String USERNAME_OK_PASSWORD_NEEDED = \"331\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_LOGIN = \"332\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION = \"350\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 4xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class TransientNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"400\";\n\t\t\tpublic static final String SERVICE_NOT_AVAILABLE = \"421\";\n\t\t\tpublic static final String CANT_OPEN_DATA_CONNECTION = \"425\";\n\t\t\tpublic static final String CONNECTION_CLOSED = \"426\";\n\t\t\tpublic static final String INVALID_USERNAME_OR_PASSWORD = \"430\";\n\t\t\tpublic static final String REQUESTED_HOST_UNAVAILABLE = \"434\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION_NOT_TAKEN = \"450\";\n\t\t\tpublic static final String LOCAL_ERROR = \"451\";\n\t\t\tpublic static final String FILE_BUSY = \"452\";\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 5xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PermamentNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"500\";\n\t\t\tpublic static final String SYNTAX_ERROR = \"501\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED = \"502\";\n\t\t\tpublic static final String BAD_SEQUENCE_OF_COMMANDS = \"503\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER = \"504\";\n\t\t\tpublic static final String NOT_LOGGED_IN = \"530\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_STORING_FILES = \"532\";\n\t\t\tpublic static final String POLICY_REQUIRES_SSL = \"534\";\n\t\t\tpublic static final String FILE_NOT_FOUND = \"550\";\n\t\t\tpublic static final String PAGE_TYPE_UNKNOWN = \"551\";\t\t\t\n\t\t\tpublic static final String EXCEEDED_STORAGE_ALLOCATION = \"552\";\n\t\t\tpublic static final String FILE_NAME_NOT_ALLOWED = \"553\";\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 6xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class ProtectedReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"600\";\n\t\t\tpublic static final String INTEGRITY_PROTECTED_REPLY = \"631\";\n\t\t\tpublic static final String CONFIDENTIALITY_AND_INTEGRITY_PROTECTED_REPLY = \"632\";\t\t\t\n\t\t\tpublic static final String CONFIDENTIALITY_PROTECTED_REPLY = \"633\";\t\t\t\n\t\t}\n\t}\n\t\n\t/**\n\t * Language controller.\n\t */\n\tpublic final static LanguageController lc = LanguageController.getInstance();\n\t\n\tpublic void execute(FTPLexer lexer);\n}",
"public String getAPIkey() {\n\t\treturn key1;\r\n\t}",
"private void setKey(String key) {\n this.key = key;\n }",
"public void setKey(String key) {\n\t\tthis.key = key;\n\t}",
"OwnDesire.Acting formOwnDesireWithActingCommand(DesireKey desireKey);",
"public String getKey() {\r\n return key;\r\n }",
"public SmartKey getSmartKey(String value);",
"protected abstract String getScriptKey();",
"String getNameKeySpace();",
"public byte[] addOTK(String authkey) {\n return new byte[2*32];\n }",
"public String toString() {\r\n \treturn key;\r\n }",
"public static String readKey() throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tSystem.out.print(\"Enter the key :: \");\n\t\tSystem.out.println();\n\t\tString s = br.readLine();\n\t\treturn s;\n\n\t}",
"public String getKey() {\r\n return key;\r\n }",
"public String getKey() {\r\n return key;\r\n }",
"public String getKey() {\r\n return key;\r\n }"
]
| [
"0.62889016",
"0.6051803",
"0.5701296",
"0.55705464",
"0.5526377",
"0.5398687",
"0.53785336",
"0.5369401",
"0.5342174",
"0.5328906",
"0.52817965",
"0.52282286",
"0.52155936",
"0.5215382",
"0.5203443",
"0.51933694",
"0.51765716",
"0.51658064",
"0.51619947",
"0.5161663",
"0.5156397",
"0.5150086",
"0.51229566",
"0.51068807",
"0.5100132",
"0.50909084",
"0.5086086",
"0.508469",
"0.507812",
"0.5076709",
"0.50531596",
"0.50484926",
"0.50359464",
"0.5033837",
"0.50321835",
"0.502123",
"0.50160295",
"0.5011843",
"0.5001711",
"0.4995724",
"0.49933013",
"0.49933013",
"0.49850857",
"0.4980473",
"0.49746946",
"0.4969698",
"0.49610248",
"0.49610248",
"0.49610248",
"0.49610248",
"0.49558955",
"0.4953916",
"0.4951594",
"0.49429256",
"0.49383822",
"0.4937915",
"0.49343365",
"0.49303007",
"0.4927911",
"0.4920483",
"0.49051273",
"0.48981982",
"0.48975378",
"0.48952103",
"0.48853225",
"0.48787108",
"0.48783004",
"0.4871009",
"0.48679957",
"0.48661944",
"0.48558468",
"0.48530328",
"0.48510602",
"0.48469555",
"0.48391318",
"0.48376647",
"0.48323706",
"0.48280463",
"0.48268914",
"0.4825833",
"0.4825394",
"0.48244265",
"0.48240772",
"0.48209098",
"0.48207515",
"0.48194268",
"0.48173666",
"0.4806892",
"0.48060277",
"0.48020247",
"0.4799093",
"0.4797479",
"0.47953618",
"0.47933236",
"0.4792918",
"0.47923645",
"0.47910166",
"0.47906518",
"0.4789617",
"0.4789617",
"0.4789617"
]
| 0.0 | -1 |
Called while entering OVX mode in CMD | public void setOVXmode(int tenantId, int OVXmode) {
this.log.info("Inside setOVXmode method; tenantid={}, mode={}", tenantId, OVXmode);
OVXmodeMap.put(tenantId, OVXmode);
mode = OVXmodeMap.get(tenantId);
log.info("value stored in OVX mode map={}", mode);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void command() {\n\t\tSystem.out.println(\"CommandAttack Process\");\r\n\t}",
"protected void executeVmCommand() {\n }",
"@Override\r\n\tpublic void keyPressedAction(GlobalKeyEvent event) {\n\t\tSystem.out.println(event.getVirtualKeyCode()+\"press\");\r\n\t\t// TODO OCR\r\n\t\tif (Scope.getInstace().getPrefInfo().getOcrKey() == event.getVirtualKeyCode()\r\n\t\t\t\t&& !Scope.getInstace().isOcrFlag()&&Scope.getInstace().isOcrToggleFlag()) {\r\n\t\t\tocrHookAction();\r\n\t\t\tScope.getInstace().setOcrFlag(true);\r\n\t\t}\r\n\t}",
"protected void execute()\n\t{\n\t\tif(enable)\n\t\tRobot.winch.respoolWinch();\n\t}",
"public void initDefaultCommand() {\n \tsetDefaultCommand(new TestCommandEye());\n }",
"private void instruct() {\n\t\tif (vsComputer) {\n\t\t\tSystem.out.println(\"\"\"\n 1. Stone\n 2. Paper\n 3. Scissors\n You have to enter your choice\n \"\"\");\n\t\t}\n\t}",
"@FXML\n\tpublic void onProcessCommand() {\n\t\tString command = prompt.getText().trim();\n\t\tif (!command.isEmpty()) {\n\t\t\t// Print what the user entered to the screen\n\t\t\tscreen.appendText(\"> \" + command + \"\\n\");\n\t\t\tswitch (command) {\n\t\t\t\tcase \"clear\":\n\t\t\t\t\tscreen.clear();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t// Print the output of the commandName\n\t\t\t\t\tscreen.appendText(commandDispatch.processCommand(command) + \"\\n\");\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// Clear the prompt - ready for new input\n\t\t\tprompt.clear();\n\t\t}\n\t}",
"void processGUIInput(String cmd){\n try{\n debugWriter.write(cmd);\n debugWriter.flush();\n //}\n }catch(IOException e){\n //Eat it\n e.printStackTrace();\n //throw new InvalidInteractionsException();\n }\n }",
"private void iniciarNovaVez() {\n this.terminouVez = false;\n }",
"public void processCommand() {\n if (cam != null) {\n // No commands if no draw canvas to retrieve them from!\n if (this.cam.getDr().isKeyPressed(KeyEvent.VK_UP) || StdDraw.isKeyPressed(KeyEvent.VK_UP))\n this.setR(this.getR().minus(this.getFacingVector().times(1e8)));\n if (this.cam.getDr().isKeyPressed(KeyEvent.VK_DOWN) || StdDraw.isKeyPressed(KeyEvent.VK_DOWN)) \n this.setR(this.getR().plus(this.getFacingVector().times(1e8)));\n if (this.cam.getDr().isKeyPressed(KeyEvent.VK_LEFT) || StdDraw.isKeyPressed(KeyEvent.VK_LEFT)) \n this.rot += FOV_INCREMENT;\n if (this.cam.getDr().isKeyPressed(KeyEvent.VK_RIGHT) || StdDraw.isKeyPressed(KeyEvent.VK_RIGHT)) \n this.rot -= FOV_INCREMENT; \n }\n }",
"@Override\r\n\tpublic void powerOn() {\n\t\tSystem.out.println(\"ig tv power on\");\r\n\t}",
"private void handle_mode_display() {\n\t\t\t\n\t\t}",
"static int onShellCommand(Shell shell, String cmd) {\n char c;\n List<AppOpsManager.PackageOps> ops;\n if (cmd == null) {\n return shell.handleDefaultCommands(cmd);\n }\n PrintWriter pw = shell.getOutPrintWriter();\n PrintWriter err = shell.getErrPrintWriter();\n try {\n int i = 0;\n switch (cmd.hashCode()) {\n case -1703718319:\n if (cmd.equals(\"write-settings\")) {\n c = 4;\n break;\n }\n c = 65535;\n break;\n case -1166702330:\n if (cmd.equals(\"query-op\")) {\n c = 2;\n break;\n }\n c = 65535;\n break;\n case 102230:\n if (cmd.equals(\"get\")) {\n c = 1;\n break;\n }\n c = 65535;\n break;\n case 113762:\n if (cmd.equals(\"set\")) {\n c = 0;\n break;\n }\n c = 65535;\n break;\n case 3540994:\n if (cmd.equals(\"stop\")) {\n c = 7;\n break;\n }\n c = 65535;\n break;\n case 108404047:\n if (cmd.equals(\"reset\")) {\n c = 3;\n break;\n }\n c = 65535;\n break;\n case 109757538:\n if (cmd.equals(\"start\")) {\n c = 6;\n break;\n }\n c = 65535;\n break;\n case 2085703290:\n if (cmd.equals(\"read-settings\")) {\n c = 5;\n break;\n }\n c = 65535;\n break;\n default:\n c = 65535;\n break;\n }\n switch (c) {\n case 0:\n int res = shell.parseUserPackageOp(true, err);\n if (res < 0) {\n return res;\n }\n String modeStr = shell.getNextArg();\n if (modeStr == null) {\n err.println(\"Error: Mode not specified.\");\n return -1;\n }\n int mode = Shell.strModeToMode(modeStr, err);\n if (mode < 0) {\n return -1;\n }\n if (!shell.targetsUid && shell.packageName != null) {\n shell.mInterface.setMode(shell.op, shell.packageUid, shell.packageName, mode);\n return 0;\n } else if (!shell.targetsUid || shell.packageName == null) {\n shell.mInterface.setUidMode(shell.op, shell.nonpackageUid, mode);\n return 0;\n } else {\n try {\n shell.mInterface.setUidMode(shell.op, shell.mInternal.mContext.getPackageManager().getPackageUid(shell.packageName, shell.userId), mode);\n return 0;\n } catch (PackageManager.NameNotFoundException e) {\n return -1;\n }\n }\n case 1:\n int res2 = shell.parseUserPackageOp(false, err);\n if (res2 < 0) {\n return res2;\n }\n List<AppOpsManager.PackageOps> ops2 = new ArrayList<>();\n int[] iArr = null;\n if (shell.packageName != null) {\n List<AppOpsManager.PackageOps> r = shell.mInterface.getUidOps(shell.packageUid, shell.op != -1 ? new int[]{shell.op} : null);\n if (r != null) {\n ops2.addAll(r);\n }\n IAppOpsService iAppOpsService = shell.mInterface;\n int i2 = shell.packageUid;\n String str = shell.packageName;\n if (shell.op != -1) {\n iArr = new int[]{shell.op};\n }\n List<AppOpsManager.PackageOps> r2 = iAppOpsService.getOpsForPackage(i2, str, iArr);\n if (r2 != null) {\n ops2.addAll(r2);\n }\n } else {\n IAppOpsService iAppOpsService2 = shell.mInterface;\n int i3 = shell.nonpackageUid;\n if (shell.op != -1) {\n iArr = new int[]{shell.op};\n }\n ops2 = iAppOpsService2.getUidOps(i3, iArr);\n }\n if (ops2 != null) {\n if (ops2.size() > 0) {\n long now = System.currentTimeMillis();\n int i4 = 0;\n while (i4 < ops2.size()) {\n AppOpsManager.PackageOps packageOps = ops2.get(i4);\n if (packageOps.getPackageName() == null) {\n pw.print(\"Uid mode: \");\n }\n List<AppOpsManager.OpEntry> entries = packageOps.getOps();\n int j = i;\n while (j < entries.size()) {\n AppOpsManager.OpEntry ent = entries.get(j);\n pw.print(AppOpsManager.opToName(ent.getOp()));\n pw.print(\": \");\n pw.print(AppOpsManager.modeToName(ent.getMode()));\n if (ent.getTime() != 0) {\n pw.print(\"; time=\");\n ops = ops2;\n TimeUtils.formatDuration(now - ent.getTime(), pw);\n pw.print(\" ago\");\n } else {\n ops = ops2;\n }\n if (ent.getRejectTime() != 0) {\n pw.print(\"; rejectTime=\");\n TimeUtils.formatDuration(now - ent.getRejectTime(), pw);\n pw.print(\" ago\");\n }\n if (ent.getDuration() == -1) {\n pw.print(\" (running)\");\n } else if (ent.getDuration() != 0) {\n pw.print(\"; duration=\");\n TimeUtils.formatDuration(ent.getDuration(), pw);\n }\n pw.println();\n j++;\n ops2 = ops;\n }\n i4++;\n i = 0;\n }\n return 0;\n }\n }\n pw.println(\"No operations.\");\n if (shell.op <= -1 || shell.op >= 91) {\n return 0;\n }\n pw.println(\"Default mode: \" + AppOpsManager.modeToName(AppOpsManager.opToDefaultMode(shell.op)));\n return 0;\n case 2:\n int res3 = shell.parseUserOpMode(1, err);\n if (res3 < 0) {\n return res3;\n }\n List<AppOpsManager.PackageOps> ops3 = shell.mInterface.getPackagesForOps(new int[]{shell.op});\n if (ops3 == null || ops3.size() <= 0) {\n pw.println(\"No operations.\");\n return 0;\n }\n for (int i5 = 0; i5 < ops3.size(); i5++) {\n AppOpsManager.PackageOps pkg = ops3.get(i5);\n boolean hasMatch = false;\n List<AppOpsManager.OpEntry> entries2 = ops3.get(i5).getOps();\n int j2 = 0;\n while (true) {\n if (j2 < entries2.size()) {\n AppOpsManager.OpEntry ent2 = entries2.get(j2);\n if (ent2.getOp() == shell.op && ent2.getMode() == shell.mode) {\n hasMatch = true;\n } else {\n j2++;\n }\n }\n }\n if (hasMatch) {\n pw.println(pkg.getPackageName());\n }\n }\n return 0;\n case 3:\n String packageName = null;\n int userId = -2;\n while (true) {\n String argument = shell.getNextArg();\n if (argument == null) {\n if (userId == -2) {\n userId = ActivityManager.getCurrentUser();\n }\n shell.mInterface.resetAllModes(userId, packageName);\n pw.print(\"Reset all modes for: \");\n if (userId == -1) {\n pw.print(\"all users\");\n } else {\n pw.print(\"user \");\n pw.print(userId);\n }\n pw.print(\", \");\n if (packageName == null) {\n pw.println(\"all packages\");\n } else {\n pw.print(\"package \");\n pw.println(packageName);\n }\n return 0;\n } else if (\"--user\".equals(argument)) {\n userId = UserHandle.parseUserArg(shell.getNextArgRequired());\n } else if (packageName == null) {\n packageName = argument;\n } else {\n err.println(\"Error: Unsupported argument: \" + argument);\n return -1;\n }\n }\n case 4:\n shell.mInternal.enforceManageAppOpsModes(Binder.getCallingPid(), Binder.getCallingUid(), -1);\n long token = Binder.clearCallingIdentity();\n try {\n synchronized (shell.mInternal) {\n shell.mInternal.mHandler.removeCallbacks(shell.mInternal.mWriteRunner);\n }\n shell.mInternal.writeState();\n pw.println(\"Current settings written.\");\n return 0;\n } finally {\n Binder.restoreCallingIdentity(token);\n }\n case 5:\n shell.mInternal.enforceManageAppOpsModes(Binder.getCallingPid(), Binder.getCallingUid(), -1);\n long token2 = Binder.clearCallingIdentity();\n try {\n shell.mInternal.readState();\n pw.println(\"Last settings read.\");\n return 0;\n } finally {\n Binder.restoreCallingIdentity(token2);\n }\n case 6:\n int res4 = shell.parseUserPackageOp(true, err);\n if (res4 < 0) {\n return res4;\n }\n if (shell.packageName == null) {\n return -1;\n }\n shell.mInterface.startOperation(shell.mToken, shell.op, shell.packageUid, shell.packageName, true);\n return 0;\n case 7:\n int res5 = shell.parseUserPackageOp(true, err);\n if (res5 < 0) {\n return res5;\n }\n if (shell.packageName == null) {\n return -1;\n }\n shell.mInterface.finishOperation(shell.mToken, shell.op, shell.packageUid, shell.packageName);\n return 0;\n default:\n return shell.handleDefaultCommands(cmd);\n }\n } catch (RemoteException e2) {\n pw.println(\"Remote exception: \" + e2);\n return -1;\n }\n }",
"private void interactive() {\r\n\t\tBufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\r\n\t\twhile (true) {\r\n\t\t\tSystem.out.print(\"Enter Command: \");\r\n\t\t\ttry {\r\n\t\t\t\tprocessCommandSet(tokenizeInput(keyboard.readLine()));\r\n\t\t\t\tif (quit == true) {\r\n\t\t\t\t\tSystem.out.println(\"Terminated at users request.\");\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.err.println(\"An IO Error Occured. \" + e.getMessage());\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}",
"@Override\n public void interact() {\n System.out.print(\"Halo aku ikan di bawah laut dalam lho, aku punya lampu supaya aku\" \n + \"bisa tetap melihat di kegelapan\");\n }",
"public GetInRangeAndAimCommand() {\n xController = new PIDController(0.1, 1e-4, 1);\n yController = new PIDController(-0.1, 1e-4, 1);\n xController.setSetpoint(0);\n yController.setSetpoint(0);\n // xController.\n drive = DrivetrainSubsystem.getInstance();\n limelight = Limelight.getInstance();\n // Use addRequirements() here to declare subsystem dependencies.\n addRequirements(drive);\n\n }",
"protected void execute() {\n \tthis.LiftVertAxis.manualOverride(-(this.oi.getBMGamepadAxis5() * .75));\n }",
"private boolean promptCommand() {}",
"public void onCommand(Session session) {\n /**\n * VRFY is not safe.\n */\n String responseString = \"502 VRFY command is disabled\";\n session.writeResponse(responseString);\n }",
"private void voteCommand(){\n out.println(\"\\r\\nEnter stock and vote (e.g. A1 for YES, B0 for NO). Enter 'X' to exit.\");\n String voteInput = in.nextLine();\n\n switch(voteInput.toUpperCase()){\n case \"A1\":castVote(game.apple, 1);\n break;\n case \"A0\":castVote(game.apple, 0);\n break;\n case \"B1\":castVote(game.bp, 1);\n break;\n case \"B0\":castVote(game.bp, 0);\n break;\n case \"C1\":castVote(game.cisco, 1);\n break;\n case \"C0\":castVote(game.cisco, 0);\n break;\n case \"D1\":castVote(game.dell, 1);\n break;\n case \"D0\":castVote(game.dell, 0);\n break;\n case \"E1\":castVote(game.ericsson, 1);\n break;\n case \"E0\":castVote(game.ericsson, 0);\n break;\n case \"X\":command();\n break;\n default:\n out.println(\"Invalid input: Please enter a stock (e.g. A) and a vote (0 or 1)\" + \"\\r\\n\");\n voteCommand();\n break;\n }\n\n }",
"private void command(){\n out.println(\"Enter command: \");\n String comInput = in.nextLine();\n\n if (comInput.toLowerCase().equals(\"vote\")) {\n voteCommand();\n }else if (comInput.toLowerCase().equals(\"trade\")){\n tradeCommand();\n }else if (comInput.toLowerCase().equals(\"next\")){\n out.println(waitPrint());\n await();\n// nextRound();\n }else if(comInput.toLowerCase().equals(\"logout\")){\n// login = false;\n logout();\n }\n }",
"private static void driver() {\n Scanner scnr = new Scanner(System.in);\n String promptCommandLine = \"\\nENTER COMMAND: \";\n\n System.out.print(MENU);\n System.out.print(promptCommandLine);\n String line = scnr.nextLine().trim();\n char c = line.charAt(0);\n\n while (Character.toUpperCase(c) != 'Q') {\n processUserCommandLine(line);\n System.out.println(promptCommandLine);\n line = scnr.nextLine().trim();\n c = line.charAt(0);\n }\n scnr.close();\n }",
"public void interactWhenSteppingOn() {\r\n\t\t\r\n\t}",
"public static void consoleWindow(CommandLine cmd) throws ParseException {\n\n\t\tif (cmd.getOptionValue(\"u\") == null)\n\t\t\tthrow new ParseException(\"Vista vacía.\");\n\n\t\telse if (cmd.getOptionValue(\"u\").equalsIgnoreCase(\"window\")) {\n\n\t\t\tControladorGui c = new ControladorGui(p, f, tipo);\n\t\t\tnew VistaGUI(c, tipo);\n\n\t\t} else if (cmd.getOptionValue(\"u\").equalsIgnoreCase(\"console\")) {\n\n\t\t\tScanner in = new Scanner(System.in);\n\t\t\tControladorConsola c = new ControladorConsola(f, p, in);\n\t\t\tnew VistaConsola(c);\n\t\t\tc.run();\n\n\t\t} else\n\n\t\t\tthrow new ParseException(\"Comando '\" + cmd.getOptionValue(\"u\")\n\t\t\t\t\t+ \"' incorrecto.\");\n\t}",
"private void handleEpsv() {\n sendMsgToClient(\"229 Entering Extended Passive Mode (|||\" + dataPort + \"|)\");\n openDataConnectionPassive(dataPort);\n }",
"public void interact() {\r\n\t\t\r\n\t}",
"public ModifyVirtualMachine(){\r\n\t\t super(COMMAND);\r\n\t}",
"@Override\n\tpublic void powerOn() {\n\t\tSystem.out.println(\"samsongTV powerOn\");\n\n\t}",
"private void psvm() {\n\t\tSystem.out.println(\"test\");\r\n\t}",
"private static void viewOptions() {\n\t\tlog.info(\"Enter 0 to Exit.\");\n\t\tlog.info(\"Enter 1 to Login.\");\n\t}",
"private boolean handleStartMenuCommands(String command) {\n if (command.equals(\"1\")) {\n toggleVisibleArrays();\n } else if (command.equals(\"2\")) {\n comparisonMenu();\n } else if (command.equalsIgnoreCase(\"x\")) {\n return false;\n } else {\n System.out.println(\"\\nWrong Input\\n\");\n }\n return true;\n }",
"public void StartVECapture() {\n Log.v(TAG, \"StartVECapture\");\n\n startVECapture();\n enableUpdateDynamicTex(true);\n\n }",
"public void enterPrivilegedMode() throws Exception{\n\t if(this.getConnectionType().equals(ConnectionType.SSH)){\n\t if(!(session.isConnected())){\n\t\t log.fatal(\"X---------FatalErrorOccured-----------X\\n\\n\");\n\t\t log.error(\"Can't enter the privileged mode without connecting to the device!!!\");\n\t\t log.info(\"Call connectSSH() first and then try again.\");\n\t\t Exception e =new Exception(\"NoConnectionHasBeenMade\");\n\t\t throw e;\n\t }\n\t else{\n\t\t log.info(\"Trying to enter the privileged mode ... \");\n\t\t this.startExpectSSH();\n\t\t String command=setCommand(\"PRIVILEGED_MODE\", this.deviceType.toString());\n\t\t log.info(\"Command \\\"\"+command+\"\\\" is going to be executed\");\n\t\t expect.expect(TIME_OUT,Pattern.compile(\".*>$\"));\n\t\t log.info(\"The following was happening on the terminal screen\\n\\t\\t\");\n\t\t log.info(expect.before);\n\t\t expect.send(command+\"\\n\");\n\t\t expect.expect(TIME_OUT,\"Password\");\n\t\t expect.send(this.deviceEnPassword+\"\\n\");\n\t\t log.info(\"Command \\\"\"+command+\"\\\" was sent. Waiting for response ... \");\n\t\t log.info(\"---The command executed was \\n\"+expect.before);\n\t\t expect.expect(TIME_OUT,Pattern.compile(\".*#$\"));\n\t\t log.info(\"----After execution of command \\n\"+expect.before);\n\t }\n\t }\n\t else{\n\t\t if(!(this.telnetClient.isConnected())){\n\t\t\t log.fatal(\"X---------FatalErrorOccured-----------X\\n\\n\");\n\t\t\t log.error(\"Can't enter the privileged mode without connecting to the device!!!\");\n\t\t\t log.info(\"Call connectTelnet() first and then try again.\");\n\t\t\t Exception e =new Exception(\"NoConnectionHasBeenMade\");\n\t\t\t throw e;\n\t\t }\n\t\t else{\n\t\t\t log.info(\"Trying to enter the privileged mode ... \");\n\t\t\t this.startExpectTelnet();\n\t\t\t String command=setCommand(\"PRIVILEGED_MODE\", this.getDeviceType().toString());\n\t\t\t log.info(\"Command \\\"\"+command+\"\\\" is going to be executed\");\n\t\t\t expect.expect(TIME_OUT,Pattern.compile(\".*>$\"));\n\t\t\t log.info(\"The following was happening on the terminal screen\\n\\t\\t\");\n\t\t\t log.info(expect.before);\n\t\t\t expect.send(command+\"\\n\");\n\t\t\t expect.expect(TIME_OUT,\"Password\");\n\t\t\t expect.send(this.deviceEnPassword+\"\\n\");\n\t\t\t log.info(\"Command \\\"\"+command+\"\\\" was sent. Waiting for response ... \");\n\t\t\t log.info(\"---The command executed was \\n\"+expect.before);\n\t\t\t expect.expect(TIME_OUT,Pattern.compile(\".*#$\"));\n\t\t\t log.info(\"----After execution of command \\n\"+expect.before);\n\t\t }\n\t }\n }",
"@Override\n public void initDefaultCommand() {\n Robot.driveTrain.setDefaultCommand(new xboxDrive());\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }",
"private void vdm_init_ATOutput () {\n try {\n setSentinel();\n }\n catch (Exception e) {\n e.printStackTrace(System.out);\n System.out.println(e.getMessage());\n }\n }",
"@Override\n\tpublic void drive() {\n\t\tSystem.out.println(\"VAN IS DRIVING\");\n\t}",
"public void analyzeCommand(String cmd)\n {\n commandEntered(cmd);\n }",
"@Override\n public void show() {\n VisAQ.getInstance().userInput();\n }",
"@Override \n public void runOpMode() \n {\n leftMotors = hardwareMap.get(DcMotor.class, \"left_Motors\");\n rightMotors = hardwareMap.get(DcMotor.class, \"right_Motors\");\n vLiftMotor = hardwareMap.get(DcMotor.class, \"vLift_Motor\"); \n \n leftMotors.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightMotors.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n leftMotors.setDirection(DcMotor.Direction.REVERSE);\n rightMotors.setDirection(DcMotor.Direction.FORWARD);\n vLiftMotor.setDirection(DcMotor.Direction.REVERSE);\n vLiftMotor.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n \n waitForStart(); //press play button, actives opMode\n intakePivotServo.setPosition(intakePivotServoPos);\n while (opModeIsActive()) \n { \n drive();\n pivotIntake();\n pivotLift();\n \n }//opModeIsActive \n \n }",
"@Override\n public void runOpMode() {\n initialize();\n\n //wait for user to press start\n waitForStart();\n\n if (opModeIsActive()) {\n\n // drive forward 24\"\n // turn left 90 degrees\n // turnLeft(90);\n // drive forward 20\"\n // driveForward(20);\n // turn right 90 degrees\n // turnRight(90);\n // drive forward 36\"\n // driveForward(36);\n\n }\n\n\n }",
"public void doInteract()\r\n\t{\n\t}",
"@Override\n public void initDefaultCommand() \n {\n }",
"@Override\n public void runOpMode() {\n leftDrive = hardwareMap.get(DcMotor.class, \"left_drive\");\n rightDrive = hardwareMap.get(DcMotor.class, \"right_drive\");\n intake = hardwareMap.get (DcMotor.class, \"intake\");\n dropServo = hardwareMap.get(Servo.class, \"drop_Servo\");\n leftDrive.setDirection(DcMotor.Direction.REVERSE);\n rightDrive.setDirection(DcMotor.Direction.FORWARD);\n\n dropServo.setPosition(1.0);\n waitForStart();\n dropServo.setPosition(0.6);\n sleep(500);\n VuforiaOrientator();\n encoderSequence(\"dumbDrive\");\n\n\n }",
"public static void main(String[] args) {\n\t\tLight light = new Light(\"Party Hall \");\r\n\t\tSterio sterio = new Sterio(\"Party Hall \");\r\n\t\tTv tv = new Tv(\"Party Hall \");\r\n\t\t\r\n\t\tLightOnCommand lightOnCommand = new LightOnCommand(light);\r\n\t\tSterioOnWithCDCommand sterioOnWithCDCommand = new SterioOnWithCDCommand(sterio);\r\n\t\tTvOnCommand tvOnCommand = new TvOnCommand(tv);\r\n\t\t\r\n\t\tLightOffCommand lightOffCommand = new LightOffCommand(light);\r\n\t\tSterioOffCommand sterioOffCommand = new SterioOffCommand(sterio);\r\n\t\tTvOffCommand tvOffCommand = new TvOffCommand(tv);\r\n\t\t\r\n\t\tCommand[] onCommands = {lightOnCommand, sterioOnWithCDCommand, tvOnCommand};\r\n\t\tCommand[] offCommands = {lightOffCommand, sterioOffCommand, tvOffCommand};\r\n\t\t\r\n\t\tMacroCommand macroOnCommand = new MacroCommand(onCommands);\r\n\t\tMacroCommand macroOffCommand = new MacroCommand(offCommands);\r\n\t\t\r\n\t\tRemoteControl rc = new RemoteControl();\r\n\t\trc.setCommand(0, macroOnCommand, macroOffCommand);\r\n\t\t\r\n\t\trc.onButtonWasPressed(0);\r\n\t\t\r\n\t\trc.offButtonWasPressed(0);\r\n\t\t\r\n\t\tSystem.out.println(\"=======undo========\");\r\n\t\trc.undoButtonWasPressed();\r\n\r\n\t}",
"@Override\n public void initDefaultCommand() {\n\n }",
"public void InitLinearLV() throws Exception{\n\tcommandExec c1 = new commandExec();\n\tc1.runCommand(\"lvcreate -n LinearLV -l 50%VG /dev/TargetVG\" );\n}",
"void setutxent();",
"@Override\r\n\tpublic void volume() {\n\t\tSystem.out.println(\"Turn up\");\r\n\t\t\r\n\t}",
"public void inputCommand(String line) {\n if (!validCommand(line)) {\n return;\n } else if (line.startsWith(\"PUT\")) {\n if (model.isGameOver()) {\n System.out.println(GAME_OVER_NO_PUTS_ERROR_MESSAGE);\n return;\n }\n String[] tokens = line.split(\" \");\n int column = Integer.parseInt(tokens[1]);\n System.out.println(model.putToken(column));\n } else if (line.equals(\"GET\")) {\n view.printMoves(model.getMoves());\n } else if (line.equals(\"BOARD\")) {\n view.printBoard(model.getBoard());\n }\n }",
"@FXML\r\n\tprivate void handleConsoleButton() throws IOException{\r\n\t\tAnchorPane cmdPane = (AnchorPane) FXMLLoader.load(getClass().getResource(\"/guiFXML/ConsoleScreenFXML.fxml\"));\r\n\t\ttry {\r\n\t\t\tanchCmdController.getChildren().clear();\r\n\t\t\tanchCmdController.getChildren().add(cmdPane);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\n public void runOpMode() {\n RobotMain main = new RobotMain(this,hardwareMap,telemetry);\n\n //initialize controls\n imuTeleOpDualGamepad control = new imuTeleOpDualGamepad(main,gamepad1,gamepad2);\n\n waitForStart();\n\n //Pull the tail back from autonomous\n main.JewelArm.setServo(.65);\n\n //Continually run the control program in the algorithm\n while (opModeIsActive()) control.run();\n }",
"private void acceptCommands() {\n\t\tScanner input = new Scanner(System.in);\n\t\tInteractiveCommandParser commandParser = new InteractiveCommandParser(\n\t\t\t\tinput, this);\n\t\tcommandParser.readCommands(); // blocking command reader\n\t}",
"@Override\n public void execute() {\n\n\n /* container.swerveControllerCommand =\n new SwerveControllerCommand(\n trajectory,\n drivetrain::getCurrentPose, \n DrivetrainConstants.DRIVE_KINEMATICS,\n\n // Position controllers\n new PIDController(DrivetrainConstants.P_X_Controller, 0, 0),\n new PIDController(DrivetrainConstants.P_Y_Controller, 0, 0),\n container.thetaController,\n drivetrain::setModuleStates, //Not sure about setModuleStates\n drivetrain);*/\n\n// Reset odometry to the starting pose of the trajectory.\ndrivetrain.resetOdometry(trajectory.getInitialPose());\n\n\n}",
"@Override\n public void onInteract() {\n }",
"private void setupCommandLineForVMS(Execute exe, String[] command) {\r\n ExecuteJava.setupCommandLineForVMS(exe, command);\r\n }",
"void beginVCard();",
"public void switchInsMode() {\n this.inputMode = !this.inputMode;\n }",
"public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \tsetDefaultCommand(new VelocityDriveCommand());\n }",
"public void startVirtual() {\n if (mMediaProjection != null) {\n Log.i(TAG, \"want to display virtual\");\n virtualDisplay();\n } else {\n Log.i(TAG, \"start screen capture intent\");\n Log.i(TAG, \"want to build mediaprojection and display virtual\");\n setUpMediaProjection();\n virtualDisplay();\n }\n }",
"public void input(){\n\t\tboolean[] inputKeyArray = inputHandler.processKeys();\n\t\tint[] inputMouseArray = inputHandler.processMouse();\n\t\tcurrentLevel.userInput(inputKeyArray, inputMouseArray);\n\t}",
"@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}",
"public void initDefaultCommand() {\n \tsetDefaultCommand(new SparkControl());\n }",
"private void doView() {\n System.out.println(pickedAccount.toString());\n System.out.println(\"Cancel any reservation? (y/n)\");\n\n String command;\n command = input.next();\n if (command.toLowerCase().equals(\"y\")) {\n processCancelReservation();\n }\n }",
"public void actionPerformed( ActionEvent event )\n {\n if ( !getEnvironmentWindow().getEnvironment().getLock().equals(\n KalumetConsoleApplication.getApplication().getUserid() ) )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"environment.locked\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // check if the user can do it\n if ( !getEnvironmentWindow().adminPermission && !getEnvironmentWindow().softwareUpdatePermission )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"action.restricted\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // check if some change has not yet been saved\n if ( getEnvironmentWindow().isUpdated() )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"environment.notsaved\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n final String commandName = event.getActionCommand();\n // display confirm window\n KalumetConsoleApplication.getApplication().getDefaultWindow().getContent().add(\n new ConfirmWindow( new ActionListener()\n {\n public void actionPerformed( ActionEvent event )\n {\n // add a message into the log pane and the journal\n KalumetConsoleApplication.getApplication().getLogPane().addInfo(\n \"Software \" + name + \" command \" + commandName + \" execution in progress ...\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" command \" + commandName + \" execution requested.\" );\n // start the execute command thread\n final ExecuteCommandThread executeCommandThread = new ExecuteCommandThread();\n executeCommandThread.commandName = commandName;\n executeCommandThread.start();\n // sync with the client\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), new Runnable()\n {\n public void run()\n {\n if ( executeCommandThread.ended )\n {\n if ( executeCommandThread.failure )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addError(\n executeCommandThread.message,\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n executeCommandThread.message );\n }\n else\n {\n KalumetConsoleApplication.getApplication().getLogPane().addConfirm(\n \"Software \" + name + \" command \" + commandName + \" executed.\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" command \" + commandName + \" executed.\" );\n }\n }\n else\n {\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), this );\n }\n }\n } );\n }\n } ) );\n }",
"public void actionPerformed( ActionEvent event )\n {\n if ( !getEnvironmentWindow().getEnvironment().getLock().equals(\n KalumetConsoleApplication.getApplication().getUserid() ) )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"environment.locked\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // check if the user can do it\n if ( !getEnvironmentWindow().adminPermission && !getEnvironmentWindow().softwareChangePermission )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"action.restricted\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // looking for the command object\n Command command = software.getCommand( event.getActionCommand() );\n if ( command == null )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"command.notfound\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // change the state and add an event\n if ( command.isActive() )\n {\n command.setActive( false );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Disable software \" + name + \" command \" + command.getName() );\n }\n else\n {\n command.setActive( true );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Enable software \" + name + \" command \" + command.getName() );\n }\n // change the update flag\n parent.getEnvironmentWindow().setUpdated( true );\n // update the journal pane\n parent.getEnvironmentWindow().updateJournalPane();\n // update the pane\n update();\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n setDefaultCommand(new IntakeDrive());\n }",
"public ConsoleView() {\n\t\tcrapsControl = new CrapsControl();\n\t\tinput = new Scanner(System.in);\n\t}",
"public static void showUI(DebugVirtualMachine vm) {\n System.out.println(\"==============Debug Mode============== (\\\"?\\\" for help)\");\n dvm = vm;\n displayXCode();\n //Start fetch-execute cycle\n while (dvm.isRunning()) {\n if(!stop){\n try {\n //Consol prompt\n System.out.print(\"('?' for help) ~>\");\n BufferedReader reader = new BufferedReader( new InputStreamReader( System.in ) );\n processRequest(reader.readLine().toLowerCase());\n } catch (IOException e) {\n System.out.println(\"Error in displayInterface(): \"+e);\n }\n }else{\n break;\n }\n }\n System.out.println(\"Thank you for using the .x Debugger!\\n===========End Execution============\");\n }",
"public void onCommandReceived(AbstractCommand command) {\n\t\t\t\t\t\tif (command instanceof GrantedSessionCommand) {\n\t\t\t\t\t\t\t// Print our our unique key, this will be used for\n\t\t\t\t\t\t\t// subsequent connections\n\t\t\t\t\t\t\tUtilities.log(\"Your instanceId is \" + ((GrantedSessionCommand) command).getInstanceId());\n\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t//let's make the dock show up on the TV\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_yahoo\"));\n\n\t\t\t\t\t\t\t\tThread.sleep(2000); //sleep for 2 seconds so the animation to dock finishes\n\n\t\t\t\t\t\t\t\t// Lets do something cool, like tell the TV to navigate to the right. Then do a little dance\n\t\t\t\t\t\t\t\t// This is the same as pressing \"right\" on your remote\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_right\"));\n\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\n\t\t\t\t\t\t\t\t// slide to the left\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_left\"));\n\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\n\t\t\t\t\t\t\t\t//slide to the right\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_right\"));\n\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\n\t\t\t\t\t\t\t\t//take it back now, y'all\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_left\"));\n\n\t\t\t\t\t\t\t\t//cha cha cha\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_up\"));\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_down\"));\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_up\"));\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_down\"));\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\tUtilities.log(\"Problem writing to the network connection\");\n\t\t\t\t\t\t\t\tconn.close();\n\t\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Notify the main thread that everything we wanted to\n\t\t\t\t\t\t\t// do is done.\n\t\t\t\t\t\t\tsynchronized (conn) {\n\t\t\t\t\t\t\t\tconn.notifyAll();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else { // print out the others for educational purposes\n\t\t\t\t\t\t\tUtilities.log(\"Received: \" + command.toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"public void pressTVButton() {\n System.out.println(\"Home: You must pick an app to show movies.\\n\");\n }",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tbyte opcao = 0;\n\t\tControleRemoto remoto = new ControleRemoto(new TV());\n\t\tdo {\n\t\t\tSystem.out.println(\"Selecione o comando (0 para sair)\");\n\t\t\tSystem.out.println(\"1 - Ligar/Desligar\");\n\t\t\tSystem.out.println(\"2 - Aumentar Volume\");\n\t\t\tSystem.out.println(\"3 - Abaixar Volume\");\n\t\t\topcao = sc.nextByte();\n\t\t\tswitch (opcao) {\n\t\t\tcase 1:\n\t\t\t\tremoto.pressLigDes();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tremoto.pressAumVol();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tremoto.pressAbxVol();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} while (opcao != 0);\n\t}",
"public void actionPerformed( ActionEvent event )\n {\n if ( !getEnvironmentWindow().getEnvironment().getLock().equals(\n KalumetConsoleApplication.getApplication().getUserid() ) )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"environment.locked\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // check if the user can do it\n if ( !getEnvironmentWindow().adminPermission && !getEnvironmentWindow().softwareChangePermission )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"action.restricted\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // looking for the command object\n Command command = software.getCommand( event.getActionCommand() );\n if ( command == null )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"command.notfound\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n if ( command.isBlocker() )\n {\n command.setBlocker( false );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Set not blocker for software \" + name + \" command \" + command.getName() );\n }\n else\n {\n command.setBlocker( true );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Set blocker for software \" + name + \" command \" + command.getName() );\n }\n // change the update flag\n parent.getEnvironmentWindow().setUpdated( true );\n // update the journal pane\n parent.getEnvironmentWindow().updateJournalPane();\n // update the pane\n update();\n }",
"public void initDefaultCommand() {\n \n }",
"@Override\n public void runOpMode() {\n commands.init(hardwareMap);\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n // run until the end of the match (driver presses STOP)\n while (opModeIsActive()) {\n sleep(30000);\n }\n }",
"public void runOpMode() {\n robot.init(hardwareMap);\n\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Status\", \"Resetting Encoders\"); //\n telemetry.update();\n\n robot.leftMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.rightMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n idle();\n\n robot.leftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n // Send telemetry message to indicate successful Encoder reset\n telemetry.addData(\"Path0\", \"Starting at %7d :%7d\",\n robot.leftMotor.getCurrentPosition(),\n robot.rightMotor.getCurrentPosition());\n telemetry.addData(\"Gyro Heading:\", \"%.4f\", getHeading());\n telemetry.update();\n\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters(cameraMonitorViewId);\n\n parameters.vuforiaLicenseKey = \"Adiq0Gb/////AAAAme76+E2WhUFamptVVqcYOs8rfAWw8b48caeMVM89dEw04s+/mRV9TqcNvLkSArWax6t5dAy9ISStJNcnGfxwxfoHQIRwFTqw9i8eNoRrlu+8X2oPIAh5RKOZZnGNM6zNOveXjb2bu8yJTQ1cMCdiydnQ/Vh1mSlku+cAsNlmfcL0b69Mt2K4AsBiBppIesOQ3JDcS3g60JeaW9p+VepTG1pLPazmeBTBBGVx471G7sYfkTO0c/W6hyw61qmR+y7GJwn/ECMmXZhhHkNJCmJQy3tgAeJMdKHp62RJqYg5ZLW0FsIh7cOPRkNjpC0GmMCMn8AbtfadVZDwn+MPiF02ZbthQN1N+NEUtURP0BWB1CmA\";\n\n\n parameters.cameraDirection = VuforiaLocalizer.CameraDirection.FRONT;\n this.vuforia = ClassFactory.createVuforiaLocalizer(parameters);\n\n VuforiaTrackables relicTrackables = this.vuforia.loadTrackablesFromAsset(\"RelicVuMark\");\n VuforiaTrackable relicTemplate = relicTrackables.get(0);\n relicTemplate.setName(\"relicVuMarkTemplate\"); // can help in debugging; otherwise not necessary\n\n telemetry.addData(\">\", \"Press Play to start\");\n telemetry.update();\n\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n relicTrackables.activate();\n\n //while (opModeIsActive()) {\n\n /**\n * See if any of the instances of {@link relicTemplate} are currently visible.\n * {@link RelicRecoveryVuMark} is an enum which can have the following values:\n * UNKNOWN, LEFT, CENTER, and RIGHT. When a VuMark is visible, something other than\n * UNKNOWN will be returned by {@link RelicRecoveryVuMark#from(VuforiaTrackable)}.\n */\n RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.from(relicTemplate);\n while (vuMark == RelicRecoveryVuMark.UNKNOWN) {\n vuMark = RelicRecoveryVuMark.from(relicTemplate);\n /* Found an instance of the template. In the actual game, you will probably\n * loop until this condition occurs, then move on to act accordingly depending\n * on which VuMark was visible. */\n }\n telemetry.addData(\"VuMark\", \"%s visible\", vuMark);\n telemetry.update();\n sleep(550);\n\n //switch (vuMark) {\n // case LEFT: //RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.LEFT;\n // coLumn = 2;\n // case CENTER:// RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.CENTER;\n // coLumn = 1;\n // case RIGHT:// RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.RIGHT;\n // coLumn = 0;\n //}\n if ( vuMark == RelicRecoveryVuMark.LEFT) {\n coLumn = 2;\n }\n else if(vuMark == RelicRecoveryVuMark.RIGHT){\n coLumn = 0;\n }\n else if(vuMark == RelicRecoveryVuMark.CENTER){\n coLumn = 1;\n }\n\n\n telemetry.addData(\"coLumn\", \"%s visible\", coLumn);\n telemetry.update();\n sleep(550);\n\n\n\n//if jewej is red 1 if jewel is blue 2\n\n // if(jewel == 1) {\n // gyroturn(-10, TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //gyroturn(-2, -TURN_SPEED, TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //}\n //else if(jewel == 2){\n // gyroturn(10, -TURN_SPEED, TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n // gyroturn(-2, TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //}\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[0][coLumn], disandTurn[0][coLumn], 5.0); // S1: Forward 24 Inches with 5 Sec timeout shoot ball\n\n gyroturn(disandTurn[1][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[0], -turndistance[0], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[2][coLumn], disandTurn[2][coLumn], 5.0); // S3: Forward 43.3 iNCHES\n\n gyroturn(disandTurn[3][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[4][coLumn], disandTurn[4][coLumn], 5.0);// S5: Forward 12 Inches with 4 Sec timeout\n\n gyroturn(disandTurn[5][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[6][coLumn], disandTurn[6][coLumn], 5.0);// S5: Forward 12 Inches with 4 Sec timeout\n\n\n Outake();\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[7][coLumn], disandTurn[7][coLumn], 5.0);// S6: Forward 48 inches with 4 Sec timeout\n }",
"private static void inputInstallerCommand() {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString commandLine = scanner.nextLine();\n\t\t//Case-sensitive ans should be always Upper case\n\t\tif (!commandLine.equals(\"END\")) {\n\t\t\tcallIstallerCommand(commandLine);\n\t\t\tinputInstallerCommand();\n\t\t}\n\t}",
"public void entryPanelProcess() {\n\t\tif (nmfkpinds.funKey03() || nmfkpinds.funKey12()) {\n\t\t\treturn;\n\t\t}\n\t\tstateVariable.setZmsage(blanks(78));\n\t\t// Action command keys\n\t\tif (nmfkpinds.pgmInd28()) {\n\t\t\tcmdkey();\n\t\t}\n\t\telse {\n\t\t\t// Else action selections\n\t\t\tzselec();\n\t\t}\n\t\tmainline0();\n\t\treturn;\n\t}",
"public void run() {\n\t\t\t\t\t\tString monkeyCmd = \"\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tmonkeyCmd = \"adb -s \" + deviceId + \" \" + textAreaCmd.getText().toString().trim().substring(3);\n\t\t\t\t\t\tSystem.out.println(monkeyCmd);\n\t\t\t\t\t\t//2.sent command to device and return touch event.\n\t\t\t\t\t\tcmd.makeDirectory(\"report\");\n\t\t\t\t\t\tString filename = \"MONKEY_\" + systime + \".txt\";\n\t\t\t\t\t\tString filepath = cmd.getCurrentDirectory() + \"\\\\report\\\\\" + filename; \n\t\t\t\t\t\tcmd.execCommandAndSave(monkeyCmd, filepath);\n\t\t\t\t\t}",
"private String initialMenu(String command) {\n System.out.println(\"1: Show Arrays On/Off\");\n System.out.println(\"2: Time comparison\");\n System.out.println(\"x: Stop the program\\n\");\n\n command = scanner.nextLine();\n\n return command;\n }",
"private void okEvent() {\n\t\tYAETMMainView.PRIVILEGE = (String)loginBox.getSelectedItem();\n\t\tshowMain();\n\t\tcloseDialog();\n\t}",
"@Override\n public void runOpMode() {\n hw = new RobotHardware(robotName, hardwareMap);\n rd = new RobotDrive(hw);\n rs=new RobotSense(hw, telemetry);\n /*rd.moveDist(RobotDrive.Direction.FORWARD, .5, .3);\n rd.moveDist(RobotDrive.Direction.REVERSE, .5, .3);\n rd.moveDist(RobotDrive.Direction.FORWARD, .5, 1);\n rd.moveDist(RobotDrive.Direction.REVERSE, .5, 1);*/\n telemetry.addData(\"Ready! \", \"Go Flamangos!\"); \n telemetry.update();\n\n //Starting the servos in the correct starting position\n /*hw.armRight.setPosition(1-.3);\n hw.armLeft.setPosition(.3);\n hw.level.setPosition(.3+.05);*/\n hw.f_servoLeft.setPosition(1);\n hw.f_servoRight.setPosition(0.5);\n \n rd.moveArm(hw.startPos());\n waitForStart();\n while (opModeIsActive()) {\n \n /*Starting close to the bridge on the building side\n Move under the bridge and push into the wall*/\n rd.moveDist(RobotDrive.Direction.LEFT,2,.5);\n rd.moveDist(RobotDrive.Direction.FORWARD, 10, .5);\n break;\n }\n }",
"@Override\n\tpublic void onCommand(CommandSender sender, String[] args) {\n\t\t\n\t}",
"@Override\n\tpublic void onCommand(CommandSender sender, String[] args) {\n\t\t\n\t}",
"public void initDefaultCommand() {\n \tclaw = new DoubleSolenoid(RobotMap.CLAW_PNU_1, RobotMap.CLAW_PNU_2);\n \tpunch = new DoubleSolenoid(RobotMap.PUNCH_PNU_1, RobotMap.PUNCH_PNU_2);\n \t\n \tarm = new VictorSP(RobotMap.ARM_MOTOR);\n \t\n \tarmEncode = new Encoder(RobotMap.ARM_ENCODE_1, RobotMap.ARM_ENCODE_2);\n \t\n \t//armEncode.setPIDSourceType(PIDSourceType.kDisplacement);\n \tarmControl = new PIDController(0.01,0,0, armEncode, arm);\n \t\n }",
"@Override\n public void initDefaultCommand() {\n }",
"public void visitPOSKeyboard( DevCat devCat ) {}",
"private void showCommands() {\n System.out.println(\"\\n Commands:\");\n System.out.println(\"\\t lf: List reference frames\");\n System.out.println(\"\\t af: Add a reference frame\");\n System.out.println(\"\\t rf: Remove a reference frame\");\n System.out.println(\"\\t le: List events\");\n System.out.println(\"\\t ae: Add an event\");\n System.out.println(\"\\t re: Remove an event\");\n System.out.println(\"\\t ve: View all events from a certain frame\");\n System.out.println(\"\\t li: Calculate the Lorentz Invariant of two events\");\n System.out.println(\"\\t s: Save the world to file\");\n System.out.println(\"\\t l: Load the world from file\");\n System.out.println(\"\\t exit: Exit the program\");\n }",
"public void initDefaultCommand() {\n \n }",
"private static String viewCommand(String[] commandLineArguments) {\n \t\t// TODO Auto-generated method stub\n \t\treturn null;\n \t}",
"@Override\r\n\t//launches commands at idle to\r\n\tprotected void initDefaultCommand() {\n\t\tsetDefaultCommand(new OperateJoystick());\r\n\t}",
"public static void turn(String cmd) {\n switch (cmd) {\n case \"-n\":\n on = true;\n break;\n case \"-f\":\n on = false;\n break;\n }\n }",
"@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}",
"@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}"
]
| [
"0.57465947",
"0.56478107",
"0.5536538",
"0.55219823",
"0.5464551",
"0.54617757",
"0.54501975",
"0.544341",
"0.5436066",
"0.53999925",
"0.53771096",
"0.536829",
"0.5360957",
"0.53417736",
"0.5335701",
"0.5288373",
"0.5283925",
"0.52634615",
"0.52615845",
"0.5260534",
"0.5223726",
"0.5222743",
"0.5212588",
"0.5182163",
"0.5165418",
"0.5149105",
"0.5141405",
"0.5134432",
"0.51220673",
"0.5119882",
"0.51118207",
"0.51116997",
"0.51074564",
"0.5089557",
"0.50894886",
"0.5087271",
"0.5085571",
"0.5082855",
"0.50775236",
"0.5074288",
"0.5071041",
"0.5069833",
"0.5066455",
"0.50657475",
"0.50651646",
"0.506475",
"0.5061956",
"0.5058946",
"0.5057442",
"0.5040794",
"0.5030838",
"0.5030809",
"0.50276744",
"0.5014247",
"0.50128645",
"0.5012227",
"0.50109994",
"0.5010793",
"0.50106347",
"0.5008244",
"0.5007856",
"0.50066996",
"0.50023544",
"0.49943814",
"0.4992936",
"0.49925685",
"0.49925685",
"0.49925685",
"0.49925685",
"0.49925685",
"0.49925685",
"0.49925685",
"0.49923673",
"0.49905542",
"0.49879006",
"0.49853173",
"0.49677306",
"0.4965212",
"0.49620444",
"0.49615008",
"0.4961033",
"0.4957904",
"0.4956176",
"0.49551567",
"0.4948979",
"0.4948286",
"0.49367505",
"0.49353522",
"0.49349123",
"0.49349123",
"0.49335948",
"0.4932882",
"0.49270782",
"0.49186742",
"0.49173054",
"0.49172485",
"0.4917146",
"0.49168137",
"0.49116215",
"0.49116215"
]
| 0.5306144 | 15 |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner teclado=new Scanner(System.in);
String frase="";
int i=1;
do{
System.out.println("Introduce la frase: ");
frase=teclado.nextLine();
}while(frase.length()>80); //Max. 80 carácteres
do{
//imprimo desde 0 a i
System.out.println(frase.substring(0,i));
i++;
}while(i<=frase.length()); //Mientras i sea menor que la longitud de frase
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
System.out.println("reversed string " + str); | public static String reverseWithStaticMethod(String str) {
return new StringBuilder(str).reverse().toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void reverse(string str) \n{ \n for (int i=str.length()-1; i>=0; i--) \n cout << str[i]; \n}",
"public static void main(String[] args) {\n \n String str1 = \"hello, return olleh\";\n \n System.out.println( \"ReverseString ans: \" + reverseStr(str1)); \n \n }",
"public static void main(String[] args) {\n String str = null;\n //String str = \"My Name Is Aakash\";\n //String str = \"!@@#$%^&*()+_)(*&^%$#@!@#$%^&*(_)(*&^%$%^&**&^%$#$%^&*&^%$##$%^&*&^%$\";\n //String str = \"_sakdkjashdksahkdhjksahdkjakjshdkjahsdkaskdkasdjhasjhckhagcuagskdjkasdjkaskjdhjkashdkjhakjdjkasdkaskjdajksdhjkashdjkahsjkdhjkasckjackhaduihcadlcdjcbkjsbdcjksdjkckjsdcjksdnjkcnjksdhckjsdhjkvsdjvnkjdsbvjkdsvkjdshkhsdkfheklwjfbjkwegfwegfiuwekjfbewjkhfgwejyfguiwejfbwekhfgywegfkjewbhjfgewjfgewhjfjhewgf\";\n\n System.out.println(reverseString(str));\n }",
"public static void Rev_Str_Fn(){\r\n\t\r\n\tString x=\"ashu TATA\";\r\n\t\r\n\tStringBuilder stb=new StringBuilder();\r\n\tstb.append(x);\r\n\tstb.reverse();\r\n\tSystem.out.println(stb);\r\n}",
"public static void main(String[] args) {\nString str=\"Welcome To Coding Ninja\";\n\nSystem.out.println(reverse_each(str));\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tString str1=\"A man, a plan, a canal: Panama\";\r\n\t\tSystem.out.println(reverseString(str1));\r\n\t}",
"static void reverse(StringBuffer str)\n\t {\n\t\t Stack<Character> s = new Stack<Character>();\n\t\t int len = str.length();\n\t\t for(int i= 0; i<len ;i ++)\n\t\t {\n\t\t\t s.push(str.charAt(i));\n\t\t }\n\t\t \n\t\t //pop the string and print it\n\t\t for(int i= 0; i<len ;i ++)\n\t\t {\n\t\t\t System.out.print(s.pop());\n\t\t }\n\t }",
"public static void main(String[] args) {\n\n StringBuilder lz = new StringBuilder(\"Led Zeppelin\");\n lz.reverse();\n System.out.println(lz);\n\n String lz2 = \"Led Zeppelin\";\n// System.out.println(lz2.reverse()); // does not compile\n\n }",
"public static void main(String[] args) {\n StringBuffer s = new StringBuffer(\"GeeksforGeeks\");\n System.out.println(\"Original string is : \" + s );\n //print the reversed string\n System.out.print(\"Reversed string is : \" );\n //call reverse method\n reverse(s);\n\t}",
"public static void reverseUsingStringBuilder(String str) {\n\n\t\tStringBuilder revStrBuilder = new StringBuilder(str);\n\t\tString revStr = revStrBuilder.reverse().toString();\n\n\t\tSystem.out.println(\"str value after reverse using JAVA API: \" + revStr);\n\t}",
"public static void main(String[] args) {\n String input = \"Lukman\";\n StringBuilder input1 = new StringBuilder();\n\n // append a string into StringBuilder input1\n //input1.append(input);\n\n // reverse StringBuilder input1\n //input1 = input1.reverse();\n\n // print reversed String\n int len = input.length() - 1;\n for (int i = len; i >= 0; --i) {\n input1.append(input.charAt(i));\n }\n System.out.println(\"Reverse:\" + input1);\n }",
"public static void main(String[] args)\n {\n String input = \"now this was interesting\";\n\n StringBuilder input1 = new StringBuilder();\n\n // append a string into StringBuilder input1\n input1.append(input);\n\n // reverse StringBuilder input1\n input1.reverse();\n\n // print reversed String\n System.out.println(input1);\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tString str=\"Ali Can\";\r\n\t\t\r\n\t\tString reverse=\"\";\r\n\t\t\r\n\t\tfor(int i=str.length()-1;i>=0;i--) {\r\n\t\t\treverse=reverse+str.charAt(i);\r\n\t\t}\r\n\t\tSystem.out.println(reverse);\r\n\t}",
"public static void main(String[] args) {\n\tScanner s = new Scanner(System.in);\n\tSystem.out.println(\"Enter String\");\n\tString input = s.nextLine();\n\tString a=reverse(input);\n\tSystem.out.print(a);\n}",
"public static void main(String[] args) {\n String s =\" 1\";\n\n System.out.println(reverseWords(s));\n\n }",
"static void findReverseString(String string){\n\t\tfor (int i = string.length() -1; i >= 0; i--) {\n\t\t\tSystem.out.print(string.charAt(i));\n\t\t}\n\t}",
"public static void reverseUsingCustomizedLogic(String str) {\n\t\tint strLength = str.length();\n\n\t\tStringBuilder strBuilder = new StringBuilder();\n\n\t\tfor (int i = strLength - 1; i >= 0; i--) {\n\t\t\tstrBuilder = strBuilder.append(str.charAt(i));\n\t\t}\n\t\tSystem.out.println(\"str value after reverse using customized logic : \" + strBuilder.toString());\n\t}",
"public static void main(String[] args)\r\n\t{\n\t\t\tString s;\r\n\t\t\tSystem.out.println(\"Enter a string\");\r\n\t\t\tScanner in=new Scanner(System.in);\r\n\t\t\ts=in.nextLine();\r\n\t\t\tStringBuffer s2=new StringBuffer(s);\r\n\t\t\tfor(int i=0;i<s.length();i++)\r\n\t\t\t{\r\n\t\t\t\ts2.setCharAt(i,s.charAt(s.length()-i-1));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Reverse is \"+s);\r\n\t}",
"public static void main(String[] args) {\n\t\tString str = \"Pooja\";\n\t\tchar str1[] = str.toCharArray();\n\t\tString reverse = \"\";\n\t\t\n\t\tfor (int i = str1.length; i>=0 ; i--) {\n\t\t\treverse = reverse + str1[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(reverse);\n\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tStringBuffer s1 = new StringBuffer(\"This method returns the reversed object on which it was called\");\r\n\t\tSystem.out.println(\"Original string: \" + s1);\r\n\t\ts1.reverse();\r\n\t\tSystem.out.println(\"Reversed string: \" + s1);\r\n\r\n\t}",
"@Test\n\tpublic void RevStr() {\n\n\t\tString str = \"i am the tester\";\n\t\tfor (int i = str.length() - 1; i >= 0; i--) {\n\t\t\tSystem.out.println(str.charAt(i));\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the String\");\n\t\tString string=s.nextLine();\n\t\tSystem.out.println(string);\n\t\tString rev=\"\";\n\t\tint length=string.length();\n\t\tfor(int i=length-1;i>=0;i--) {\n\t\t\trev=rev+string.charAt(i);\n\t\t}\n\t\tSystem.out.println(rev);\n\t}",
"public static void main(String[] args) {\n\t\tString reverse = \"Ragha\";\r\n\t\t//String reversed = ;\r\n //System.out.println(reverseAstring(reverse.toCharArray(),0));\r\n \t//printReverseString(reverse.toCharArray(),0);\r\n \tSystem.out.println('A'^'B');\r\n \tSystem.out.println('B'^3);\r\n \tSystem.out.println(3^65);\r\n\t}",
"public static String reverse(String str)\n {\n // return if string is null or empty\n if (str == null || str.equals(\"\"))\n return str;\n \n // variable to store the reversed string\n String rev = \"\";\n \n // use string concatenation operator to build reversed string by\n // reading character from the end of the original string\n for (int i = str.length() - 1; i >=0 ; i--)\n rev += str.charAt(i);\n \n return rev;\n }",
"public static void main1(String[] args) {\n String str = \"i am a student\";\n String[] arr = str.split(\" \");\n reverse(arr);\n System.out.println(Arrays.toString(arr));\n StringBuilder builder = new StringBuilder();\n for (int i = 0; i < arr.length; i++) {\n builder.append(arr[i]);\n if (i != arr.length - 1) {\n builder.append(\" \");\n }\n }\n builder.reverse();\n System.out.println(builder);\n }",
"private static String reverse(String in){\n\t\tString reversed = \"\";\n\t\tfor(int i = in.length() - 1; i >= 0; i--){\n\t\t\treversed += in.charAt(i);\n\t\t}\n\t\treturn reversed;\n\t}",
"@Override\n\tpublic String reverse() {\n\t\tint len = theString.length();\n\t\tString s1 = \"\";\n\t\tfor (int i = len - 1; i >= 0; i--) {\n\t\t\ts1 = s1 + theString.charAt(i);\n\t\t}\n\t\t// System.out.println(s1);\n\n\t\treturn s1;\n\t}",
"public static void main (String []args){\n\t\tString reverse=\"\";\n\t\tString s=\"ABCDEF\";\n\t\tint length=s.length();\n\t\tSystem.out.println(length);\n\t\tfor (int i=length-1;i>=0;i--)\n\t\t{\n\t\t\treverse=reverse+s.charAt(i);\n\n\t\t}\n\n\n\n\t\t//String reversing with String Builder class\n\n\t\tStringBuilder str= new StringBuilder(\"ReverseNumber\");\n\t\tString\tNewoff= \"\"+str.reverse();\n\t\tSystem.out.println(Newoff);\n\n\n\n\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tString str=\"Selenium\";\n\t\tString revStr=\"\";\n\t\t\n\t\tfor (int i=str.length()-1;i>=0;i--){\n\t\t\trevStr=revStr+str.charAt(i);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Reverse String is \"+revStr);\n\n\t}",
"public static void main(String[] args) {\n\t\tStringBuilder sb = new StringBuilder(\"12345\");\n\t\t\n\t\t//inverte a posição dos caracteres da string de traz pra frente e imprime a mensagem\n\t\tSystem.out.println(sb.reverse());\n\t}",
"public static void main(String[] args) {\n\r\n\t\tString s = \"hello my name is john\";\r\n\t\t//System.out.println(reverse(s,0,s.length()-1));\r\n\t\t\r\n\t\tSystem.out.println(reverseWordsAlt(s));\r\n\t}",
"public static void main(String[] args) {\n String str = \" \";\n String s = ReverseSentence(str);\n System.out.println(s);\n }",
"public static String reverse(String str) {\n String retStr = \"\"; //final string\n for (int i = str.length(); i > 0; i--) { //for loop starting from the end of the string\n retStr += str.substring(i-1,i);\n }\n return retStr;\n }",
"public static void main(String[] args) {\n\n\t\tString str = \"This is the test string\";\n\t\tString str1 = \"Hello\";\n\t\tString str2 = \"Hello\";\n\t\tString str3 = \"\";\n\t\t\n\t\tString input = \"This is my own assignment\";\n\t\tString output = reverse(input);\n\t\n\n\t\tSystem.out.println(\"The lenght of the string = \" + str.length());\n\t\tSystem.out.println(str.charAt(2));\n\t\tSystem.out.println(str.concat(\" and this is the apprenhended test\"));\n\t\tSystem.out.println(str.contains(\"test\"));\n\t\tSystem.out.println(str.contains(\"si\"));\n\t\tSystem.out.println(str.startsWith(\"This\"));\n\t\tSystem.out.println(str.startsWith(\"is\"));\n\t\tSystem.out.println(str.endsWith(\"string\"));\n\t\tSystem.out.println(str1.equals(str2));\n\t\tSystem.out.println(str.equals(str1));\n\t\tSystem.out.println(str.isEmpty());\n\t\tSystem.out.println(str3.isEmpty());\n\t\t\n\t\tSystem.out.println(\"*********************************************\");\n\t\t\n\t\tSystem.out.println(output);\n\t}",
"@Test\n public void reverseString_passString_ReturnReversedString() {\n String output = Java8Streams.reverseString(\"java interview\");\n\n assertThat(output).isEqualTo(\"weivretni avaj\");\n }",
"public static void main(String[] args) {\n String a=\"abbac\";\r\n System.err.println(huiwen(a));\r\n /*StringBuilder reversesub=(new StringBuilder(a)).reverse();\r\n System.err.println(reversesub.toString().equals(a));*/\r\n\t}",
"public void StringReverse(String parameter){\n String str=parameter;\n String[] arr=str.split(\"\\\\s+\");\n for(int i=0;i<arr.length;i++){\n arr[i]=arr[i].replaceAll(\"[^\\\\w]\", \"\");\n }\n reverser(arr);\n\n String output=new String();\n for(int i=0;i<arr.length;i++){\n output=output+arr[i]+\" \";\n }\n System.out.println(output);\n }",
"public static void main(String[] args) {\n\t\tString name=\"BEGMYRAT\";\r\n\t\tString reversed=\"\";\r\n\t\t\r\n\t\tfor(int idx=name.length()-1; idx>=0; idx--) {\r\n\t\t\treversed=reversed+name.charAt(idx);\r\n\t\t}System.out.println(reversed);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\tStringReverse m = new StringReverse();\n\t\t//char[] a = {'A',' ','m','a','n',',',' ','a',' ','p','l','a','n',',',' ','a',' ','c','a','n','a','l',':',' ','P','a','n','a','m','a'};\n\t\tchar[] a = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\tSystem.out.println(m.reverseString(a));\n\t}",
"public String reversestring(String inputstring){\n String originalstring = inputstring; //Originial String\n int n = originalstring.length(); //Length of the string\n String answer=\"\";\n\n for(int i=n-1;i>=0;i--){\n System.out.print(originalstring.charAt(i));\n answer += originalstring.charAt(i) + \" \";//Reversing the string\n }\n answer = answer.trim();\n return answer;\n }",
"public static void main(String[] args) {\n\r\n\t\tString reverse = \"hakunaMatata\";\r\n\t\tchar[] creverse = reverse.toCharArray();\r\n\r\n\t\tList<Character> list = new ArrayList();\r\n\r\n\t\tfor (char c : creverse)list.add(c);\r\n\t\tCollections.reverse(list);\r\n\t\tListIterator litr = list.listIterator();\r\n\t\twhile (litr.hasNext())\r\n\t\t\tSystem.out.println(\"Reverse of String: \" + litr.next());\r\n\t}",
"public static String reverse(String str){\n String result=\"\";//\"CBA\"\n\n for (int i = str.length()-1; i>=0; i--) {\n result+=str.charAt(i);\n }\n return result;\n }",
"public static void main(String [] args )\n {\n String org, rev=\"\";\n Scanner scanner = new Scanner(System.in);\n\n System.out.println(\"Enter a string to Reverse\");\n org=scanner.nextLine();\n //input length value\n int length=org.length();\n\n for (int i=length - 1; i >=0; i--)\n rev=rev +org.charAt(i);\n\n System.out.println(\"Reverse of the entered string is:\" +rev);\n }",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString str = in.nextLine();\n//\t\tSystem.out.println(reverse(str));\n\t\tSystem.out.println(reverse2(str));\n\t\t\n}",
"public static void main(String[] args) {\r\n\t\tString str = \"madam\";\r\n\t\tString rev = \"\";\r\n\t\tfor(int i = str.length()-1; i>=0; i--)\r\n\t\t{\r\n\t\t rev = rev+str.charAt(i);\t\r\n\t\t}\r\n\t\tSystem.out.println(rev);\r\n\t\tif(rev.equals(str))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"its a palendrome\");\r\n\t\t}else {\r\n\t\t\tSystem.out.println(\"its not palendrome\");\r\n\t\t}\r\n\t\treverse(\"avinesh\");\r\n\t\t\r\n\r\n\t}",
"public static String reverse(String st) {\n\t\t\n\t\tif(st == null || st ==\"\") {\n\t\t\treturn st;\n\t\t}\n\t\tStringBuffer br = new StringBuffer();\n\t\tfor(int i=st.length()-1; i>=0; i--) {\n\t\t\tbr.append(st.charAt(i));\n\t\t}\n\t\treturn br.toString();\n\t}",
"public static void main(String[] args) \n\t{\n\t\t\n\t\tStringBuilder builder = new StringBuilder(\"citi 1\");\n\t\tSystem.out.println(\"initial value : \" +builder);\n\t\tbuilder.append(\", EON\");\n\t\tSystem.out.println(\"new value :\" +builder);\n\t\t\n\t\tSystem.out.println(\"reverse value :\"+builder.reverse());\n\t}",
"public static void main(String[] args) {\n String s = \"Let's take LeetCode contest\";\n System.out.println(s);\n System.out.println(reverseWords(s));\n }",
"public static void main(String[] args) {\n\n String name = \"Mesud\";\n ReverseString(name);\n\n System.out.println(\"Hello World\");\n\n String name2 = \"Leyla\";\n ReverseString(name2);\n\n }",
"public static void reverser(String word) {\n String newStr = \"\";\n for (int i = word.length(); i > 0; i--) {\n newStr += word.substring(i - 1, i);\n }\n System.out.println(newStr);\n }",
"public static String reverseStr( String str ){\n //your code goes here\n if (str == null || \"\".equalsIgnoreCase(str)){\n return str;\n }\n\n String reverse = \"\";\n for (int i = 0; i < str.length(); i++){\n reverse += str.charAt(str.length()-1-i);\n }\n\n return reverse;\n }",
"public static void main(String[] args) {\nScanner obj =new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the String\");\nString value=obj.nextLine();\nreverseString1(value);\n\t}",
"static String reverse3(String s)\n\t{\n\t\tString reverseStr = new StringBuffer(s).reverse().toString();\n\t\treturn reverseStr;\n \n\t}",
"public static void main(String[] args) {\n\n String s = \"Life is beautiful\"; //give any sentence you want to reverse and run program\n\n System.out.println(reverseWordsInSentence(s)); //This line is to print result on the console\n }",
"public static void main(String[] args) {\n\t\r\n\t\r\n\tString str=\"Welcome\";\r\n\t\r\n\tchar[] arr=str.toCharArray();\r\n\tList<Character> l=new LinkedList<>();\r\n\tfor (Character c1 : arr) {\r\n\t\tl.add(c1);\r\n\t}\r\n\tCollections.reverse(l);\r\n\tListIterator<Character> i=l.listIterator();\r\n\twhile (i.hasNext()) {\r\n\t\tSystem.out.print(i.next());\r\n\t\t\r\n\t}\r\n\t\r\n\t\r\n\t\r\n}",
"String str(String strR) {\n\t\tString rev = \"\";\n\t\tfor (int i = strR.length(); i >0; i--) {\n\t\t\trev = rev + strR.substring(i - 1, i);\n\t\t}\n\t\treturn rev;\n\t}",
"@Test\n\tpublic void checkReverseString()\n\n\t{\n\t\tassertEquals(\"nitin si a doog yob \",test.testReverseString(\"nitin is a good boy\"));\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tString str = \"Bangalore is capital of Karnataka where\";\n\t\tString[] words = str.split(\" \");\n\t\tString newString=\"\";\n\t\t\t\n\t\tfor(String word: words) {\n\t\n\t\t\t\tnewString= newString+reverse(word);\n\t\t}\n\t\t\n\t\tSystem.out.println(newString);\n\t}",
"private static void reverseWord(String word) {\n // StringBuild.reverse()\n System.out.println(new StringBuilder(word).reverse().toString());\n\n // Add char one by one iteration method\n StringBuilder reversed = new StringBuilder();\n char[] chars = word.toCharArray();\n for (int i = 0; i < chars.length; i++) {\n reversed.append(chars[chars.length - i - 1]);\n }\n System.out.println(reversed.toString());\n }",
"public static void main(String[] args) {\n\t\tString s = \"I am Ritesh Kumar\";\r\n \r\n\t\tString to = StringRecusiveReverse.reverseMe(s);\r\n\t\tString to1 = StringRecusiveReverse.recursiveReverseString(s);\r\n\t\tSystem.out.println(to);\r\n System.out.println(to1);\r\n /*StringTokenizer st=new StringTokenizer(s);\r\n while(st.hasMoreTokens()) {\r\n \ts1=st.nextToken(); \r\n \tSystem.out.println(s1);\r\n }*/\r\n String[] s1=s.split(\" \");\r\n \r\n for(int i=s1.length-1;i>=0;i--)\r\n \tSystem.out.println(s1[i]);\r\n\t}",
"public static void main(String[] args) {\n\t\tStringBuffer sb1=new StringBuffer(\" Java Programming\");\n\t\tStringBuffer sb2=null;\n\t\tsb2=sb1.reverse();\n\t\tSystem.out.println(\"sb2=\"+sb2);\n\t}",
"private static void reverseWithSplitArray(String str) {\n\t\tString result = \"\";\r\n\t\tString wordArray[] = str.split(\" \");\r\n\t\tfor (int j = wordArray.length - 1; j >= 0; j--) {\r\n\t\t\tresult = result + wordArray[j] + \" \";\r\n\t\t}\r\n\t\tSystem.out.println(result);\r\n\t}",
"public String reverse(String input) {\n \n // if there is no string, send it back\n if (input == null) {\n return input;\n }\n // string to return\n String output = \"\";\n // go from the back of input and put its last character at the front of the new string\n for (int i = input.length() - 1; i >= 0; i--) {\n output = output + input.charAt(i);\n }\n \n return output;\n}",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter a string\");\n\t\tString str = scan.next();\n\t\t\n\t\n\t\tString temp = new String(); \n\t\tfor (int i= str.length()-1; i >=-1; i--)\n\t\t{\n\t\t\ttry {\n\t\t\t\ttemp = temp+ str.charAt(i);\n\t\t\t} catch (StringIndexOutOfBoundsException e) {\n\n\t\t\t\tSystem.out.print(\"Reverse String is:\" + temp);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\nWarning: String have only \"+str.length() + \" characters\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"private void reverse(StringBuffer s)\n {\n s.reverse();\n String k = s.toString();\n String tokens[] = k.split(\" \");\n for(int i=0;i<tokens.length;i++)\n {\n StringBuffer temp = new StringBuffer(tokens[i]);\n System.out.print(temp.reverse()+\" \");\n }\n //Normal method\n /*String[] words = s.split(\" \");\n int i = words.length-1;\n while(i>=0)\n {\n System.out.print(words[i]+\" \");\n i--;\n }*/\n }",
"public static void main(String[] args) {\n\n\t System.out.println(Sample.name);\n\n\t\t\n\t\t\n\t\tint num=153,rev=0, value;\n\t\t\t\twhile(num!=0)\n\t\t\t\t{\n\t\t\t\t\tvalue=num%10;\n\t\t\t\t\trev=rev*10+value;\n\t\t\t\t\tnum=num/10;\n\t\t\t\t\tSystem.out.println(\"reverse value is \"+ rev);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tString string = \"sushma\";\n\t\t\t String reverse = new StringBuffer(string).reverse().toString();\n\t\t\t System.out.println(\"\\nString before reverse: \"+string);\n\t\t\t System.out.println(\"String after reverse: \"+reverse);\n\t\t\t \n\t\t\t \n\t\t\t \n\t\t\t String name=\"siva\";\n\t\t\t int size=name.length();\n\t\t\t System.out.println(size);\n\t\t\t for(int i=size;i>0;--i)\n\t\t\t \t \n\t\t\t {\n\t\t\t \t System.out.print(name.charAt(i-1)); \n\t\t\t \t \n\n\t\t\t }\n\t\t\t \n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String string = sc.next();\n char[] ch = string.toCharArray();\n String reverse = \"\";\n for (int i=string.length() - 1; i >=0 ; i--){\n reverse += ch[i];\n }\n if (string.equals(reverse) ) {\n System.out.println(\"yes\");\n } else {\n System.out.println(\"no\");\n }\n }",
"public static void main (String [ ] args){//declaracion del programa principal \r\n\t\r\n \tScanner in=new Scanner(System.in); //se crea el objeto de la clase Scanner para poder capturar desde teclado\r\n\r\n\tSystem.out.println(\"Capture a phrase: \"); //se imprime en pantalla la instruccion\r\n\tString normal=in.nextLine();//almacenamos el numero capturado a normal, con el metodo nextLine() \r\n\r\n\tString back=new StringBuilder(normal).reverse().toString();\r\n\tSystem.out.println(\"The phrase backwards is: \"+back);//Impresion de la frase al reves\r\n}",
"@Test\n\tvoid testReverseString() {\n\t\tReverseString tester = new ReverseString();\n\t\tchar[] input = new char[] { 'h', 'e', 'l', 'l', 'o' };\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[] { 'o', 'l', 'l', 'e', 'h' }, input);\n\n\t\tinput = new char[] { 'H', 'a', 'n', 'n', 'a', 'h' };\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[] { 'h', 'a', 'n', 'n', 'a', 'H' }, input);\n\n\t\tinput = new char[] { 'H' };\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[] { 'H' }, input);\n\n\t\tinput = new char[0];\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[0], input);\n\t}",
"static void test_reverse() {\n\n System.out.println( \"\\nTESTS for reverse() : \" );\n\n System.out.print( \"String 'Racecar' returns : \" );\n try { System.out.println(StringStuff.reverse( \"Racecar\" ) ); }\n catch ( Exception e ) { System.out.println ( false ); }\n\n System.out.print( \"String 'sbmal EVOL I' returns : \" );\n try { System.out.println(StringStuff.reverse( \"sbmal EVOL I\" ) ); }\n catch ( Exception e ) { System.out.println ( false ); }\n\n }",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the String : \");\r\n\t\tString s = sc.nextLine();\r\n\t\t\r\n\t\tStack<Character> stack = new Stack<>();\r\n\t\t\r\n\t\tfor(int i=0;i<s.length();i++)\r\n\t\t{\r\n\t\t\tstack.push(s.charAt(i));\r\n\t\t}\r\n\t\tSystem.out.println(\"Reverse of string is :\");\r\n\t\t\r\n\t\twhile(!stack.empty())\r\n\t\t{\r\n\t\t\tSystem.out.print(stack.pop());\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\t}",
"public IDnaStrand reverse();",
"public static void main(String[] args) {\n System.out.println(\"what do you wanna reverse?\");\n Scanner in = new Scanner(System.in);\n String str = in.nextLine();\n StringBuilder ohyeah = new StringBuilder(str);\n System.out.println(\"Here ya go:\");\n System.out.println(ohyeah.reverse().toString());\n\n//option 2 with recursion\n System.out.println(\"what do you wanna reverse?\");\n Scanner in2 = new Scanner(System.in);\n String hey = in2.nextLine();\n String reverseHey = reverse(hey);\n System.out.println(\"Here ya go: \"+ reverseHey);\n }",
"static void reverseString(String s){\n\tString[] words=s.split(\" \");\n\tString ReverseString=\"\";\n\tfor(int i=0;i<words.length;i++)\n\t{\n\t\tString word=words[i];\n\t\tString reverseword=\"\";\n\t\tfor(int j=word.length()-1;j>=0;j--){\n\t\t\treverseword=reverseword+word.charAt(j);\n\t\t}\n\t\t\n\t\tReverseString=ReverseString+reverseword+\"\";\n\t}\n\tSystem.out.println(s);\n\tSystem.out.println(\"ReverseString is - \" +ReverseString);\n\t\n}",
"static void reverseWordInMyString(String str) {\r\n\t\tString[] words = str.split(\" \");\r\n\t\tString reversedString = \"\";\r\n\t\tfor (int i = 0; i < words.length; i++) {\r\n\t\t\tString word = words[i];\r\n\t\t\tString reverseWord = \"\";\r\n\t\t\tfor (int j = word.length() - 1; j >= 0; j--) {\r\n\t\t\t\t/*\r\n\t\t\t\t * The charAt() function returns the character at the given position in a string\r\n\t\t\t\t */\r\n\t\t\t\treverseWord = reverseWord + word.charAt(j);\r\n\t\t\t}\r\n\t\t\treversedString = reversedString + reverseWord + \" \";\r\n\t\t}\r\n\t\tSystem.out.println(str);\r\n\t\tSystem.out.println(reversedString);\r\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tString sampleStr=\"test a is this\";\r\n\t\tchar sampleInput[] = sampleStr.toCharArray();\r\n\t\t\r\n\t\t//char[] sampleInput= new char[] {'t','e','s','t',' ','a',' ','i','s',' ','t','h','i','s',' ','h','i'};\r\n\t\t\r\n\t\tSystem.out.println(\"Original String # \");\r\n\t\tfor (char c : sampleInput) {\r\n\t\t\tSystem.out.print(c);\r\n\t\t}\r\n\t\t\r\n\t\treverseWord(sampleInput, 0, sampleInput.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\nReverted String # \");\r\n\t\tfor (char c : sampleInput) {\r\n\t\t\tSystem.out.print(c);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tint startindx=0;\r\n\t\t\r\n\t\tfor(int j=0; j<=sampleInput.length; j++) {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(j == sampleInput.length || sampleInput[j]==' ') {\t\t\t\r\n\t\t\t\treverseWord(sampleInput,startindx,j-1);\r\n\t\t\t\tstartindx=j+1;\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\nFinal String # \");\r\n\t\tfor(int i=0;i<sampleInput.length;i++)\r\n\t\t\tSystem.out.print(sampleInput[i]);\r\n\r\n\t}",
"public static void reverse(String sentence) {\r\n\r\n if ((sentence == null) || (sentence.length() <= 1)) {\r\n System.out.println(sentence);\r\n }\r\n else {\r\n System.out.print(sentence.charAt(sentence.length() - 1));\r\n reverse(sentence.substring(0, sentence.length() - 1));\r\n }\r\n }",
"@org.junit.Test\n\tpublic void testingStringReverse() {\n\t\tString result=object.reverseString(\"Game of Thrones\");\n\t\tassertEquals(\"senorhT fo emaG\",result );\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\tSystem.out.println(\"please enter any String\");\n\t\tString str=sc.next();\n\t\tString org_str=str;\n\t\tString rev=\" \";\n\t\tint len=str.length();\n\t\tfor(int i=len-1;i>=0;i--){\n\t\t\trev=rev+str.charAt(i);\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"reverse string is :\" +rev);\n\t\tif(org_str.equals(rev)){\n\t\t\tSystem.out.println(org_str+ \"is palindrom\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(org_str+ \"is not palindrom\");\n\t\t}\n\t\t\n\n\t}",
"public static void main(String[] args) {\n\n\t\t\n\t\tScanner s= new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the String\");\n\t\tString value=s.nextLine();\n\t\t\n\t\t\n\n\t\treverse(value);\n s.close();\t\t\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str= sc.nextLine();\n\t\n\t\tSystem.out.println(\"with char Array \");\n\t\treverse1(str);\n\t\t\n\t\tSystem.out.println(\"with stack \");\n\t\tString revStr = reverse2(str);\n\t\tSystem.out.print (revStr);\n\t\t\n\t\tSystem.out.println(\"with string buffer reverse function\");\n\t\tString revStr3 = reverse3(str);\n\t\tSystem.out.print (revStr3);\n\t\t\n\t\tSystem.out.println(\"with recursion\");\n\t\tString revStr5 = reverse5(str);\n\t\tSystem.out.print(revStr5);\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Hello Watson\");\n\t\tString output = reverseCase(\"Thou art thyself though not a Montague - from Romeo and Juliet\");\n\t\tSystem.out.print(output);\n\t\tsc.close();\n\t}",
"public static void reverseDisplay(String value) {\n\t\tif (value.length() == 0)\r\n\t\t\treturn;\r\n\t\t// print last letter of value string\r\n\t\tSystem.out.print(value.substring(value.length() - 1));\r\n\t\t// delete last letter of value string\r\n\t\treverseDisplay(value.substring(0, value.length() - 1));\r\n\r\n\t}",
"public static void main(String[] args) {\n String input = \"DXC technologies limited\";\n\n String revr = \"\";\n for (int z = input.length() - 1; z >= 0; z--) {\n revr = revr + input.charAt(z);\n }\n System.out.println(revr);\n\n\n String splitwords[] = input.split(\" \");\n String reverseword = \"\";\n\n for (int i = 0; i < splitwords.length; i++) {\n String word = splitwords[i];\n String reversewords = \"\";\n\n for (int j = word.length() - 1; j >= 0; j--) {\n reversewords = reversewords + word.charAt(j);\n }\n reverseword = reverseword + reversewords + \" \";\n\n }\n System.out.println(\"traditional method is \" +trim(reverseword));\n\n //return reverseword;\n\n }",
"void reverse();",
"void reverse();",
"public static void main(String[] args) {\n\t\tString original=\"kayak radar kayak\";\n\t\tString reversed=\"\";\n\t\t\n\t\tfor(int i=original.length()-1; i>=0; i--) {\n\t\t\t\n\t\t\treversed=reversed+original.charAt(i); // +k=k+a=ka+k\n\t\t}\n\t\tSystem.out.println(reversed);\n\t\t\n\t\tif(original.equals(reversed)) {\n\t\t\tSystem.out.println(\"String is a palindrome \");\n\t\t}else {\n\t\t\tSystem.out.println(\"String is NOT palindrome\");\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) {\n String s = \" \" ;\n\n Solution solution = new Solution();\n String s1 = solution.reverseWords(s);\n\n System.out.println(\"the work is: \" + s1) ;\n }",
"public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(reverse(\"foo\"));\n\t\tSystem.out.println(reverse(\"student\"));\n\t\t\n\t}",
"public static String isPalindrome(String str) {\n\t\tchar ch[] = new char[(str.length())];\r\n\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tfor (int i = str.length()-1; i>=0; i--) {\r\n\t\t\tch[i] = str.charAt(i);\r\n\t\t\t// System.out.println(ch[i]);\r\n\t\t\tsb.append(ch[i]);\r\n\t\t}\r\n\t\t// System.out.println(sb);\r\n\t\tString rev = sb.toString();\r\n\t\treturn rev;\r\n\t\t}",
"String reverseMyInput(String input);",
"private static String reverseString(char[] str, int begin, int end) {\n\t\tfor(int i = 0; i < (end-begin)/2; i++){\n\t\t\tchar temp = str[begin+i];\n\t\t\tstr[begin+i] = str[end-i-1];\n\t\t\tstr[end-i-1] = temp;\n\t\t}\n\t\treturn new String(str);\n\t}",
"public static String reverse(String sentence)\n {\n // Complete this method. Use a Stack.\n ...\n\n\n\n\n\n\n }",
"String reverseTheString(String str)\n {\n \n char s[] = str.toCharArray();\n char temp [] = new char[s.length];\n \n int j = 0; \n for (int i = s.length - 1; i >=0; i--)\n {\n temp[j++] = s[i];\n }\n return new String(temp) ; \n }",
"public String getReverse() {\r\n return reverse;\r\n }",
"public static String reverseString(String str) {\n StringBuilder reverse = new StringBuilder();\n for (int i = str.length() - 1; i >= 0; i--) {\n reverse.append(str.charAt(i));\n }\n return reverse.toString();\n }",
"public static String reverse(String s)\n\t{\n\t\tStringBuilder stb = new StringBuilder(s);\n\t\treturn stb.reverse().toString();\n\t}",
"public static void main(String[] args) {\n\t\t\n\tString given=\"Welcome to the Java class\";\n\t\n\n\t\n\t/* to reverse String\n\t * split();\n\t * step1: split-->array of string\n\t * step2: use for loop and use decrement to print values\n\t */\n\tString reversed =\"\";\t\n\tString []str=given.split(\"\\\\s\");\n\tfor (int j=str.length-1; j>=0; j--) {\n\treversed = reversed + str[j] + \" \";\n\t}\n\tSystem.out.println(reversed);\t\t\n\t\t\n\t//String []\tstr =given.split (\"\\\\s);\n\t//for (int j=str.length-1; j>=0; j--){\n\t//System.out.println(str[j]);}\n\t/////////////////////////////////////////////\n\t\n\t//Write a java program to reverse String?\t\n\t//toCharArray();charAt();\n\t\n\t\tString given1=\"today is java class\";\n\t\tchar []charArray=given1.toCharArray();\n\t\tfor (int i=charArray.length-1; i>=0; i--) {\n\t\t\tSystem.out.print(charArray[i]);\n\t\t}\n\t///////////////////////////////////////////////using charAt\tmethod\n\t\tSystem.out.println();\n\t\tString given2=\"I love java\";\n\t\t\n\t\tfor(int i=given2.length()-1; i>=0; i--) {\n\t\t\tSystem.out.print(given2.charAt(i));\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public String reverse(String string) {\n\t\t// TODO Write an implementation for this method declaration\n\t\tString result = \"\";\n\t\tint indexCount = string.length()-1;\n\t\t\n\t\twhile(indexCount > -1) {\n//\t\t\tresult += string.charAt(indexCount);\n\t\t\tchar character = string.charAt(indexCount);\n\t\t\t//System.out.println(character);\n\t\t\tresult = result + character;\n\t\t\tindexCount--;\n\t\t}\n\t\t\n\t\t//System.out.println(result);\n\t\treturn result;\n\n\t}",
"@Test\n public void reverse_Givenastring_ReverseEachWord()\n {\n\n assertEquals(\"a kciuq nworb xof spmuj revo eht yzal god\",fp.Reversethestring(\"a quick brown fox jumps over the lazy dog\"));\n\n }",
"public static void main(String[] args) {\r\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tSystem.out.println(\"enter a string\");\r\n\t\tString s=sc.nextLine();\r\n\t\tStack<Character> st=new Stack<>();\r\n\t\tfor(int i=0;i<s.length();i++) {\r\n\t\t\tst.push(s.charAt(i));\r\n\t\t}\r\n\t\tSystem.out.println(\"reverse a string\");\r\n\t\twhile(!st.empty()) {\r\n\t\t\tSystem.out.print(st.pop());\r\n\t\t}\r\n\t\tsc.close();\r\n\t}"
]
| [
"0.7940594",
"0.7914659",
"0.7825707",
"0.7700964",
"0.7633934",
"0.76179826",
"0.75998056",
"0.75932944",
"0.7494215",
"0.7461473",
"0.74497867",
"0.7439163",
"0.7382751",
"0.7382024",
"0.7361432",
"0.7322273",
"0.73019254",
"0.72876287",
"0.72853434",
"0.72658414",
"0.7264512",
"0.72263676",
"0.71701825",
"0.71651906",
"0.71216345",
"0.709343",
"0.7089892",
"0.7073503",
"0.7066193",
"0.7055323",
"0.7053272",
"0.7050433",
"0.7039803",
"0.7030619",
"0.69923663",
"0.69811577",
"0.6926368",
"0.6916684",
"0.69078076",
"0.68797207",
"0.6870261",
"0.6869669",
"0.6857473",
"0.6850678",
"0.68337446",
"0.6829734",
"0.6829213",
"0.6828635",
"0.6791998",
"0.67557037",
"0.6743557",
"0.6738586",
"0.67226267",
"0.6699675",
"0.6695648",
"0.66930413",
"0.6690451",
"0.6687813",
"0.66652143",
"0.6664302",
"0.66583896",
"0.665669",
"0.6655726",
"0.6648887",
"0.6629292",
"0.66203445",
"0.66052955",
"0.6604987",
"0.6592117",
"0.65870637",
"0.6586028",
"0.6584849",
"0.65598494",
"0.6549984",
"0.652414",
"0.65196025",
"0.6511078",
"0.6506828",
"0.65042853",
"0.6490306",
"0.647992",
"0.64741653",
"0.64701295",
"0.64696217",
"0.64696217",
"0.6462204",
"0.64509207",
"0.64478564",
"0.64467376",
"0.6441308",
"0.64320266",
"0.64281386",
"0.64215845",
"0.6414866",
"0.6403504",
"0.6398013",
"0.63954383",
"0.6394338",
"0.639221",
"0.638698"
]
| 0.6639107 | 64 |
Returns the shared instance | public static BundleContext getContext() {
return context;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Shared shared();",
"public T getInstance() {\n return instance;\n }",
"public static SingleObject getInstance(){\n return instance;\n }",
"@Override\n public T getInstance() {\n return instance;\n }",
"public static EnduserApi getSharedInstance() {\n if (EnduserApi.sharedInstance == null) {\n throw new NullPointerException(\"Instance is null. Please use getSharedInstance(apikey, context) \" +\n \"or setSharedInstance\");\n }\n return EnduserApi.sharedInstance;\n }",
"public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }",
"public static SingleObject getInstance(){\n\t\treturn instance;\n\t}",
"public static Singleton instance() {\n return Holder.instance;\n }",
"public static Singleton getInstance() {\n return mSing;\n }",
"public static SingletonEager getInstance()\n {\n return instance;\n }",
"@Override\n\t\tpublic Object getInstance() {\n\t\t\treturn null;\n\t\t}",
"public static RCProxy instance(){\n\t\treturn SingletonHolder.INSTANCE;\n\t}",
"public static Singleton getInstance( ) {\n return singleton;\n }",
"public static Singleton getInstance( ) {\n return singleton;\n }",
"public static SingletonEager get_instance(){\n }",
"public static utilitys getInstance(){\n\r\n\t\treturn instance;\r\n\t}",
"public static Main getInstance() {\r\n return instance;\r\n }",
"static public AtomSlinger Get_Instance ()\n {\n return AtomSlingerContainer._instance;\n }",
"protected static KShingler getInstance() {\n return ShinglerSingleton.INSTANCE;\n }",
"public static Singleton getInstance() {\n return SingletonHolder.SINGLETON_INSTANCE;\n }",
"public static OI getInstance() {\n\t\treturn INSTANCE;\n\t}",
"public static Main getInstance() {\n return instance;\n }",
"synchronized public static SampletypeManager getInstance()\n {\n return singleton;\n }",
"public static AppClient getInstance() {\n return instance;\n }",
"private static Session getInstance() {\n return SingletonHolder.INSTANCE;\n }",
"public static Logger getInstance(){\n if (shareInstance == null) {\n shareInstance = new Logger();\n }\n return shareInstance;\n }",
"public static Gadget getInstance(){\r\n\t\t\treturn instance;\r\n\t\t}",
"public static TaskManager getInstance()\n {\n return gInstance;\n }",
"public static AccessSub getInstance() {\n\t\treturn instance;\n\t}",
"public static FacebookUtils getInstance() {\n return FacebookUtils.shared_instance;\n }",
"T getInstance();",
"public Object getShared (Object aKey)\n\t{\n\t\treturn shared.get (aKey);\n\t}",
"public static MetaDataManager getInstance() {\n return instance;\n }",
"synchronized static PersistenceHandler getInstance() {\n return singleInstance;\n }",
"public static MarketDataManagerImpl getInstance()\n {\n return instance;\n }",
"public static ToolRegistery getInstance(){\n\t\treturn InstanceKeeper.instance;\n\t}",
"public static synchronized Singleton getInstance() {\n\t\tif(instance ==null) {\n\t\t\tinstance= new Singleton();\n\t\t\t\n\t\t}\n\t\treturn instance;\n\t}",
"public static EagerInitializationSingleton getInstance() {\n\t\treturn INSTANCE;\n\t}",
"public static SPSSDialog getCurrentInstance()\n\t{\n\t\treturn instance;\n\t}",
"public static synchronized Singleton getInstance(){\n if(instance == null){\n instance = new Singleton();\n }\n return instance;\n }",
"public boolean getShared(){\n return this.shared;\n }",
"public static SingletonTextureFactory getInstance(){\n\t\treturn instance;\n\t}",
"public synchronized static Session getInstance(){\n if (_instance == null) {\n _instance = new Session();\n }\n return _instance;\n }",
"public static synchronized Singleton getInstanceTS() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}",
"public static Boot getInstance()\n {\n return instance;\n }",
"public static PSUniqueObjectGenerator getInstance()\n {\n if ( null == ms_instance )\n ms_instance = new PSUniqueObjectGenerator();\n return ms_instance;\n }",
"public static Controller getInstance() { return INSTANCE; }",
"public SingletonSyncBlock getInstance() { // when getting a new instance, getInstance as synchronized method is\n\t\t\t\t\t\t\t\t\t\t\t\t// called\n\n\t\tif (SINGLETON_INSTANCE == null) { // if no Singleton was yet initialized, one instance will be created else,\n\t\t\t\t\t\t\t\t\t\t\t// it's returned the one already created.\n\n\t\t\tsynchronized (SingletonSyncBlock.class) { // synchronized block\n\n\t\t\t\tif (SINGLETON_INSTANCE == null) {\n\n\t\t\t\t\tSINGLETON_INSTANCE = new SingletonSyncBlock();\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn SINGLETON_INSTANCE;\n\n\t}",
"public static SalesOrderDataSingleton getInstance()\n {\n // Return the instance\n return instance;\n }",
"public static synchronized DemoApplication getInstance() {\n return mInstance;\n }",
"public static GameManager getInstance() {\n return ourInstance;\n }",
"public static RMIUtils getInstance() {\n return InstanceHolder.INSTANCE;\n }",
"public static Light getInstance() {\n\treturn INSTANCE;\n }",
"public static OneByOneManager getInstance() {\n // The static instance of this class\n return INSTANCE;\n }",
"public static Settings get() {\n return INSTANCE;\n }",
"public static Singleton getInstance() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}",
"public static METSNamespace getInstance() {\n return ONLY_INSTANCE;\n }",
"String getInstance()\n {\n return instance;\n }",
"public static CZSZApplication_bak getInstance() {\n return theSingletonInstance;\n }",
"public static Resources getSharedResources() {\n return sharedResource;\n }",
"public static Empty getInstance() {\n return instance;\n }",
"public static MusicPlayer getInstance()\n {\n return INSTANCE;\n }",
"static OpenSamlImplementation getInstance() {\n\t\treturn instance;\n\t}",
"public static AnagramService getInstance() {\n\t\treturn SingletonHelper.INSTANCE;\n\t}",
"public static synchronized ChoseActivity getInstance() {\n return mInstance;\n }",
"public static FaceDetection getInstance()\n\t{\n\t\treturn SingletonHolder.INSTANCE;\n\t}",
"public org.omg.uml.behavioralelements.commonbehavior.Instance getInstance();",
"public static synchronized SingletonImpl getSingleton() {\n\t\t\n\t\tif(mySingleton == null){\n\t\t\tmySingleton = new SingletonImpl();\n\t\t}\n\t\treturn mySingleton;\n\t}",
"public static UserInteraction getInstance() {\n\t\tif (sharedInstance == null) {\n\t\t\tsharedInstance = new UserInteraction();\n\t\t}\n\t\treturn sharedInstance;\n\t}",
"public static TinkerPrefs getInstance() {\n\t\treturn instance;\n\t}",
"public static ModuleMapper getInstance() {\n return singleton;\n }",
"public static MainWindow getInstance ()\r\n {\r\n return INSTANCE;\r\n }",
"static SerialCommunication getInstance() {\r\n\t\treturn INSTANCE;\r\n\t}",
"public static AccountVerificationSingleton getInstance()\n {\n if (uniqueInstance == null)\n {\n uniqueInstance = new AccountVerificationSingleton();\n }\n \n return uniqueInstance;\n }",
"public static synchronized QuestStateTableDataGateway getSingleton()\n\t{\n\t\tif (singleton == null)\n\t\t{\n\t\t\tsingleton = new QuestStateTableDataGatewayRDS();\n\t\t}\n\t\treturn singleton;\n\t}",
"public static ColorParserFactory sharedInstance()\n {\n return _sInstance;\n }",
"public static Ontology getInstance() {\n return theInstance;\n }",
"public static Ontology getInstance() {\n return theInstance;\n }",
"public static GameController getInstance() {\n\t\treturn INSTANCE; \n\t}",
"public static LibValid getInstance() {\n\t\treturn instance;\n\t}",
"public static ColorPaletteBuilder getInstance()\n {\n return SingletonHolder.instance;\n }",
"public static OImaging getInstance() {\n return (OImaging) App.getInstance();\n }",
"public static RecordUtil sharedInstance() {\n if (sRecordUtil != null) {\n return sRecordUtil;\n } else {\n throw new RuntimeException(\"RecordUtil must be initialized in the Application class before use\");\n }\n }",
"public static Singleton getInstance() {\n if (instance == null) {\n synchronized (Singleton.class){\n if (instance == null) {\n instance = new Singleton();\n }\n }\n }\n return instance;\n }",
"public synchronized static ApModel getInstance()\n\t{\n\t\tif (INSTANCE == null)\n\t\t\tINSTANCE = new ApModel();\n\t\treturn INSTANCE;\n\t}",
"public static synchronized ChatAdministration getInstance(){\n\t\treturn singleInstance;\n\t}",
"public static GameEngine getInstance() {\n return INSTANCE;\n }",
"@SuppressWarnings(\"unchecked\")\n public static <T> Singleton<T> instance() {\n // Return the singleton instance from the SingletonHolder.\n return (Singleton<T>) SingletonHolder.INSTANCE;\n }",
"public static DataModule getInstance() {\n return Holder.INSTANCE;\n }",
"public static CarSingleton2 getInstance() {\n\t\treturn singleton_instance;\n\t}",
"@SuppressWarnings(\"unchecked\")\n public static <T> Singleton<T> instance() {\n // Atomically set the reference's value to a new singleton iff\n // the current value is null. This constructor will most likely\n // be called more than once if instance() is called from\n // multiple threads, but only the first one is used.\n sSingletonAR\n .updateAndGet(u ->\n u != null ? u : new SingletonAR<T>());\n\n // Return the singleton's current value.\n return (Singleton<T>) sSingletonAR.get();\n }",
"public static Singleton getInstance() {\n\n if (_instance == null) {\n synchronized (Singleton.class) {\n if (_instance == null)\n _instance = new Singleton();\n }\n }\n return _instance;\n }",
"public static Client getInstance() {\n if(client == null) {\n client = new Client();\n }\n return client;\n }",
"public static SlavesHolder getInstance() {\n if (instance == null) {\n instance = new SlavesHolder();\n }\n return instance;\n }",
"public static Replica1Singleton getInstance() {\r\n\t\tif (instance==null){\r\n\t\t/*System.err.println(\"Istanza creata\");*/\r\n\t\tinstance = new Replica1Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t\r\n\t}",
"public String name() {\n\t\treturn \"shared\";\n\t}",
"public static RetrofitClient getInstance() {\n return OUR_INSTANCE;\n }",
"public static BackendFactory getInstance() {\n return INSTANCE;\n }",
"public static GameVariableRepository getInstance() {\r\n\t\treturn instance;\r\n\t}",
"public static Singleton getInstance()\r\n\t{\r\n\t\t// check if the instance is already created or not, required only for lazy init\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new Singleton();\r\n\t\treturn instance;\r\n\t}",
"public static MessageBusImpl getInstance() \r\n\t{\r\n\t\treturn MessageBusImplHolder.instance;\r\n\t}"
]
| [
"0.7632382",
"0.7592664",
"0.7545918",
"0.7495189",
"0.74723595",
"0.7447487",
"0.7382395",
"0.7339353",
"0.7288101",
"0.7265372",
"0.7244134",
"0.7227265",
"0.7176469",
"0.71117234",
"0.70697963",
"0.704939",
"0.6979159",
"0.6949296",
"0.694791",
"0.6945432",
"0.6937742",
"0.6932995",
"0.6932344",
"0.6920273",
"0.6894221",
"0.6867778",
"0.68400717",
"0.6831522",
"0.6807339",
"0.6794936",
"0.6792896",
"0.67649555",
"0.67464036",
"0.6739778",
"0.67340136",
"0.6723222",
"0.6715325",
"0.6709522",
"0.6704821",
"0.66928095",
"0.6681966",
"0.66779435",
"0.6673944",
"0.66685885",
"0.66598606",
"0.66546863",
"0.66533023",
"0.66248906",
"0.6619589",
"0.6617113",
"0.6616215",
"0.6616114",
"0.6605319",
"0.6603507",
"0.65806085",
"0.6578576",
"0.65752953",
"0.656818",
"0.65574455",
"0.6553226",
"0.65446603",
"0.6543974",
"0.65357965",
"0.6532151",
"0.65286744",
"0.652376",
"0.6523195",
"0.6517611",
"0.6504249",
"0.6499768",
"0.6495797",
"0.648545",
"0.6479596",
"0.6474091",
"0.64721054",
"0.64644617",
"0.6451292",
"0.6451292",
"0.644812",
"0.64320654",
"0.6429708",
"0.64259815",
"0.6414516",
"0.64101416",
"0.64098203",
"0.6403441",
"0.6401797",
"0.6397901",
"0.6396871",
"0.6390044",
"0.6388791",
"0.6387128",
"0.63843524",
"0.63751173",
"0.6374729",
"0.63734156",
"0.63733584",
"0.63668525",
"0.63610023",
"0.63577455",
"0.6355794"
]
| 0.0 | -1 |
Initialize the contents of the frame. | private void initialize() {
frame = new JFrame();
frame.setBounds(200, 200, 500, 300);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null);
JLabel lblNewLabel = new JLabel("Airline_Reservation_System");
lblNewLabel.setFont(new Font("Arial Black", Font.PLAIN, 14));
lblNewLabel.setBounds(128, 31, 268, 13);
frame.getContentPane().add(lblNewLabel);
JRadioButton rdbtnPassenger = new JRadioButton("Passenger");
rdbtnPassenger.setFont(new Font("Times New Roman", Font.PLAIN, 14));
rdbtnPassenger.setBounds(128, 82, 103, 21);
frame.getContentPane().add(rdbtnPassenger);
rdbtnPassenger.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
passenger1.main(new String[]{});
frame.dispose();
}
});
JRadioButton rdbtnReservation = new JRadioButton("Reservation");
rdbtnReservation.setFont(new Font("Times New Roman", Font.PLAIN, 14));
rdbtnReservation.setBounds(128, 140, 103, 21);
frame.getContentPane().add(rdbtnReservation);
rdbtnReservation.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
reservation4.main(new String[]{});
frame.dispose();
}
});
JRadioButton rdbtnFlight = new JRadioButton("Flight");
rdbtnFlight.setFont(new Font("Times New Roman", Font.PLAIN, 14));
rdbtnFlight.setBounds(128, 206, 103, 21);
frame.getContentPane().add(rdbtnFlight);
rdbtnFlight.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
flight.main(new String[]{});
frame.dispose();
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BreukFrame() {\n super();\n initialize();\n }",
"public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}",
"public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1100, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tsetUIComponents();\n\t\tsetControllers();\n\n\t}",
"private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}",
"private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\taddSampleData();\n\t\tsetDefaultSettings();\n\t\topenHomePage();\n\t\tframe.setVisible(true);\n\t}",
"private void initialize() {\n\t\tframe = new JFrame(\"Media Inventory\");\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}",
"private void initialize() {\n\t\tframe = new JFrame(\"BirdSong\");\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\tframe.setBounds(100, 100, 400, 200);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tabc = new BirdPanel();\n\t\ttime = new TimePanel();\n\t\tgetContentPane().setLayout(new BoxLayout(frame, BoxLayout.Y_AXIS));\n\n\t\tframe.getContentPane().add(abc, BorderLayout.NORTH);\n\t\tframe.getContentPane().add(time, BorderLayout.CENTER);\n\t}",
"private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}",
"public Frame() {\n initComponents();\n }",
"public Frame() {\n initComponents();\n }",
"private void initialize() {\r\n\t\tthis.setSize(497, 316);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}",
"protected HFrame(){\n\t\tinit();\n\t}",
"private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }",
"private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}",
"private void initialize() {\r\n\t\t//setFrame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(125,175, 720, 512);\r\n\t\tframe.setTitle(\"Periodic Table\");\r\n\t\tframe.setResizable(false);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}",
"private void initFrame() {\n setLayout(new BorderLayout());\n }",
"private void initialize() {\n\t\tthis.setSize(300, 300);\n\t\tthis.setIconifiable(true);\n\t\tthis.setClosable(true);\n\t\tthis.setTitle(\"Sobre\");\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setFrameIcon(new ImageIcon(\"images/16x16/info16x16.gif\"));\n\t}",
"public FrameControl() {\n initComponents();\n }",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}",
"public MainFrame() {\n initComponents();\n \n }",
"private void init(Element frame) {\n\t\tthis.frameWidth = Integer.parseInt(frame.attributeValue(\"width\"));\n\t\tthis.frameHeight = Integer.parseInt(frame.attributeValue(\"height\"));\n\t\tthis.paddle = Integer.parseInt(frame.attributeValue(\"paddle\"));\n\t\tthis.size = Integer.parseInt(frame.attributeValue(\"size\"));\n\t}",
"public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }",
"public internalFrame() {\r\n initComponents();\r\n }",
"private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}",
"public Mainframe() {\n initComponents();\n }",
"private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}",
"private void initialize() {\n this.setSize(253, 175);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setContentPane(getJContentPane());\n this.setTitle(\"Breuken vereenvoudigen\");\n }",
"private void initialize() {\r\n\t\t// Initialize main frame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(Constants.C_MAIN_PREFERED_POSITION_X_AT_START, Constants.C_MAIN_PREFERED_POSITION_Y_AT_START, \r\n\t\t\t\tConstants.C_MAIN_PREFERED_SIZE_X, Constants.C_MAIN_PREFERED_SIZE_Y);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setTitle(Constants.C_MAIN_WINDOW_TITLE);\r\n\t\t\r\n\t\t// Tab panel and their panels\r\n\t\tmainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(mainTabbedPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tpanelDecision = new DecisionPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_DECISION_TITLE, null, panelDecision, null);\r\n\t\t\r\n\t\tpanelCalculation = new CalculationPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_CALCULATION_TITLE, null, panelCalculation, null);\r\n\t\t\r\n\t\tpanelLibrary = new LibraryPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_LIBRARY_TITLE, null, panelLibrary, null);\r\n\t\t\r\n\t\t// Menu bar\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\tcreateMenus();\r\n\t}",
"public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }",
"private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}",
"private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }",
"private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }",
"private void initialize() {\n\t\tframe = new JFrame(\"DB Filler\");\n\t\tframe.setBounds(100, 100, 700, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdbc = new DataBaseConnector();\n\t\tcreateFileChooser();\n\n\t\taddTabbedPane();\n\t\tsl_panel = new SpringLayout();\n\t\taddAddFilePanel();\n\t}",
"public mainframe() {\n initComponents();\n }",
"public FrameDesign() {\n initComponents();\n }",
"public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }",
"public JGSFrame() {\n\tsuper();\n\tinitialize();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }",
"private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }",
"private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}",
"private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}",
"public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}",
"private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }",
"public SMFrame() {\n initComponents();\n updateComponents();\n }",
"private void initialize() {\n m_frame = new JFrame(\"Video Recorder\");\n m_frame.setResizable(false);\n m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n m_frame.setLayout(new BorderLayout());\n m_frame.add(buildContentPanel(), BorderLayout.CENTER);\n\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));\n JButton startButton = new JButton(\"Start\");\n startButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent ae) {\n listen();\n }\n });\n buttonPanel.add(startButton);\n\n m_connectionLabel = new JLabel(\"Disconnected\");\n m_connectionLabel.setOpaque(true);\n m_connectionLabel.setBackground(Color.RED);\n m_connectionLabel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));\n m_connectionLabel.setPreferredSize(new Dimension(100, 26));\n m_connectionLabel.setHorizontalAlignment(SwingConstants.CENTER);\n buttonPanel.add(m_connectionLabel);\n\n m_frame.add(buttonPanel, BorderLayout.PAGE_END);\n }",
"public FirstNewFrame() {\n\t\tjbInit();\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Play\");\n\t\tbtnNewButton.setFont(new Font(\"Bodoni 72\", Font.BOLD, 13));\n\t\tbtnNewButton.setBounds(frame.getWidth() / 2 - 60, 195, 120, 30);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Space Escape\");\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\tlblNewLabel.setFont(new Font(\"Bodoni 72\", Font.BOLD, 24));\n\t\tlblNewLabel.setBounds(frame.getWidth() / 2 - 60, 30, 135, 25);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\n\t\tlblNewLabel_1.setBounds(0, 0, frame.getWidth(), frame.getHeight());\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t}",
"private void initializeFrame()\r\n\t{\r\n\t\tthis.setResizable(false);\r\n\r\n\t\tsetSize(DIMENSIONS); // set the correct dimensions\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetLayout( new GridLayout(1,1) );\r\n\t}",
"private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}",
"public MainFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}",
"public void init()\n {\n buildUI(getContentPane());\n }",
"private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }",
"public launchFrame() {\n \n initComponents();\n \n }",
"private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}",
"private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}",
"public PilaFrame() {\n initComponents();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 900, 900);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tgame = new Game();\n\t\t\n\t\tGameTable puzzle = new GameTable(game.getPuzzle());\n\t\tpuzzle.setBounds(100, 100, 700, 700);\n\t\t\n\t\tframe.add(puzzle);\n\t\t\n\t\tSystem.out.println(\"SAD\");\n\t\t\n\t}",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tPanel mainFramePanel = new Panel();\r\n\t\tmainFramePanel.setBounds(10, 10, 412, 235);\r\n\t\tframe.getContentPane().add(mainFramePanel);\r\n\t\tmainFramePanel.setLayout(null);\r\n\t\t\r\n\t\tfinal TextField textField = new TextField();\r\n\t\ttextField.setBounds(165, 62, 79, 24);\r\n\t\tmainFramePanel.add(textField);\r\n\t\t\r\n\t\tButton changeTextButt = new Button(\"Change Text\");\r\n\t\tchangeTextButt.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttextField.setText(\"Domograf\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tchangeTextButt.setBounds(165, 103, 79, 24);\r\n\t\tmainFramePanel.add(changeTextButt);\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setAlwaysOnTop(true);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t}",
"StudentFrame() {\n \tgetContentPane().setFont(new Font(\"Times New Roman\", Font.PLAIN, 11));\n s1 = null; // setting to null\n initializeComponents(); // causes frame components to be initialized\n }",
"private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setTitle(\"Error\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}",
"public NewFrame() {\n initComponents();\n }",
"public SerialCommFrame()\n {\n super();\n initialize();\n }",
"public LoginFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"public BaseFrame() {\n initComponents();\n }",
"private void initialize() {\r\n\t\tthis.setSize(733, 427);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"jProxyChecker\");\r\n\t}",
"public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}",
"public MercadoFrame() {\n initComponents();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(X_FRAME, Y_FRAME, WIDTH_FRAME, HEIGHT_FRAME);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnAddSong = new JButton(\"Add song\");\r\n\t\tbtnAddSong.setBounds(X_BTN, Y_ADDSONG, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddSong);\r\n\t\t\r\n\t\tJTextPane txtpnBlancoYNegro = new JTextPane();\r\n\t\ttxtpnBlancoYNegro.setText(\"Blanco y negro\\r\\nThe Spectre\\r\\nGirasoles\\r\\nFaded\\r\\nTu Foto\\r\\nEsencial\");\r\n\t\ttxtpnBlancoYNegro.setBounds(X_TXT, Y_TXT, WIDTH_TXT, HEIGHT_TXT);\r\n\t\tframe.getContentPane().add(txtpnBlancoYNegro);\r\n\t\t\r\n\t\tJLabel lblSongs = new JLabel(\"Songs\");\r\n\t\tlblSongs.setBounds(X_LBL, Y_LBL, WIDTH_LBL, HEIGHT_LBL);\r\n\t\tframe.getContentPane().add(lblSongs);\r\n\t\t\r\n\t\tJButton btnAddAlbum = new JButton(\"Add album\");\r\n\t\tbtnAddAlbum.setBounds(X_BTN, Y_ADDALBUM, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddAlbum);\r\n\t}",
"public holdersframe() {\n initComponents();\n }",
"public void init() {\n\t\tsetSize(500,300);\n\t}",
"private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}",
"public addStFrame() {\n initComponents();\n }",
"public JFrame() {\n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"private void initialize() {\n\t\tframe = new JFrame(\"View Report\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.setBounds(176, 227, 89, 23);\n\t\tframe.getContentPane().add(backButton);\n\t\tbackButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBounds(50, 30, 298, 173);\n\t\tframe.getContentPane().add(textArea);\n\t\ttextArea.append(control.seeReport());\n\t\tframe.setVisible(true);\n\t}",
"private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblSubmission = new JLabel(\"Submission\");\n\t\tlblSubmission.setForeground(Color.WHITE);\n\t\tlblSubmission.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 16));\n\t\tlblSubmission.setBounds(164, 40, 83, 14);\n\t\tframe.getContentPane().add(lblSubmission);\n\t\t\n\t\tJLabel lblTitle = new JLabel(\"Title:\");\n\t\tlblTitle.setForeground(Color.WHITE);\n\t\tlblTitle.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblTitle.setBounds(77, 117, 41, 14);\n\t\tframe.getContentPane().add(lblTitle);\n\t\t\n\t\tJLabel lblPath = new JLabel(\"Path:\");\n\t\tlblPath.setForeground(Color.WHITE);\n\t\tlblPath.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblPath.setBounds(85, 155, 33, 14);\n\t\tframe.getContentPane().add(lblPath);\n\t\t\n\t\ttitle = new JTextField();\n\t\ttitle.setBounds(128, 116, 197, 20);\n\t\tframe.getContentPane().add(title);\n\t\ttitle.setColumns(10);\n\t\t\n\t\tpath = new JTextField();\n\t\tpath.setBounds(128, 154, 197, 20);\n\t\tframe.getContentPane().add(path);\n\t\tpath.setColumns(10);\n\t\t\n\t\tbtnSubmit = new JButton(\"Submit\");\n\t\tbtnSubmit.setBackground(Color.BLACK);\n\t\tbtnSubmit.setForeground(Color.WHITE);\n\t\tbtnSubmit.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tbtnSubmit.setBounds(158, 210, 89, 23);\n\t\tframe.getContentPane().add(btnSubmit);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}",
"public void init() {\r\n\t\t\r\n\t\tsetSize(WIDTH, HEIGHT);\r\n\t\tColor backgroundColor = new Color(60, 0, 60);\r\n\t\tsetBackground(backgroundColor);\r\n\t\tintro = new GImage(\"EvilMehranIntroGraphic.png\");\r\n\t\tintro.setLocation(0,0);\r\n\t\tadd(intro);\r\n\t\tplayMusic(new File(\"EvilMehransLairThemeMusic.wav\"));\r\n\t\tinitAnimationArray();\r\n\t\taddKeyListeners();\r\n\t\taddMouseListeners();\r\n\t\twaitForClick();\r\n\t\tbuildWorld();\r\n\t}",
"public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblCoisa = new JLabel(\"Coisa\");\n\t\tlblCoisa.setBounds(10, 11, 46, 14);\n\t\tframe.getContentPane().add(lblCoisa);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(39, 8, 86, 20);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t}",
"private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}"
]
| [
"0.77704835",
"0.75652915",
"0.7442664",
"0.7369101",
"0.7366378",
"0.7358479",
"0.73146075",
"0.73096764",
"0.72987294",
"0.72978777",
"0.7278321",
"0.72729623",
"0.7269468",
"0.7269468",
"0.7215727",
"0.7180792",
"0.71682984",
"0.7140954",
"0.7140953",
"0.7126852",
"0.7107974",
"0.7100368",
"0.7092515",
"0.708178",
"0.70652425",
"0.70630395",
"0.70621413",
"0.7060283",
"0.70517516",
"0.7043992",
"0.6996167",
"0.6978269",
"0.6971387",
"0.6956391",
"0.6938475",
"0.6929829",
"0.6929629",
"0.69251114",
"0.6921989",
"0.6920365",
"0.6914633",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.69020075",
"0.68911743",
"0.6886017",
"0.6873457",
"0.6870402",
"0.68686837",
"0.68669385",
"0.686311",
"0.68616706",
"0.68552315",
"0.68537515",
"0.681551",
"0.68141145",
"0.68094325",
"0.67992085",
"0.67930394",
"0.6782133",
"0.6765297",
"0.6748138",
"0.6731745",
"0.6716807",
"0.6711878",
"0.6706194",
"0.6697453",
"0.6692831",
"0.66927665",
"0.6689213",
"0.66724384",
"0.66606426",
"0.664954",
"0.6642464",
"0.6640775",
"0.6638488",
"0.663824",
"0.663545",
"0.66264987",
"0.6625419",
"0.6611392",
"0.6608291",
"0.6600817",
"0.66005784",
"0.6591052",
"0.65869486",
"0.65862876",
"0.65753394",
"0.6575285",
"0.6570335",
"0.655961"
]
| 0.0 | -1 |
ByteBuf bf= Unpooled.copiedBuffer("hello".getBytes()); ctx.writeAndFlush(new TankJoinMsg(2,3, Group.GOOD,Dir.DOWN,false, UUID.randomUUID())); | @Override
public void channelActive(ChannelHandlerContext ctx) throws Exception {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public EchoClientHandler()\n {\n String data = \"hello zhang kylin \" ;\n firstMessage = Unpooled.buffer(2914) ;\n firstMessage.writeBytes(data.getBytes()) ;\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Hello\");\n\t\tByteBuf bb = Unpooled.buffer();\n\t\t\n\t\tSystem.out.println(bb.retain());\n\t\tSystem.out.println(bb.capacity());\n\t\tSystem.out.println(bb);\n\t\tbb.writeByte(5);\n\t\tbb.writeInt(5);\n\t\tbyte a = bb.readByte();\n\t\tSystem.out.println(bb);\n\t\tSystem.out.println(a);\n\t}",
"@Override\n public void channelActive(ChannelHandlerContext ctx) {\n ctx.writeAndFlush(Unpooled.copiedBuffer(\"Netty rocks!\", CharsetUtil.UTF_8));\n }",
"private ByteBuf getSendByteBuf(byte[] bytes){\n return Unpooled.unreleasableBuffer(Unpooled.copiedBuffer(\n bytes));\n }",
"void onSomething(org.jboss.netty.buffer.ChannelBuffer buffer);",
"void writeBody(ByteBuf bb, TranscoderContext context) throws Exception;",
"public void toBuffer(ByteBufWrapper paramhd)\r\n/* 23: */ {\r\n/* 24:40 */ paramhd.a(a.toJson(this.b));\r\n/* 25: */ }",
"void encrypt(ChannelBuffer buffer, Channel c);",
"private int writeBytes(ChannelOutboundBuffer in, ByteBuf buf) throws Exception {\n/* 267 */ int readableBytes = buf.readableBytes();\n/* 268 */ if (readableBytes == 0) {\n/* 269 */ in.remove();\n/* 270 */ return 0;\n/* */ } \n/* */ \n/* 273 */ if (buf.hasMemoryAddress() || buf.nioBufferCount() == 1) {\n/* 274 */ return doWriteBytes(in, buf);\n/* */ }\n/* 276 */ ByteBuffer[] nioBuffers = buf.nioBuffers();\n/* 277 */ return writeBytesMultiple(in, nioBuffers, nioBuffers.length, readableBytes, \n/* 278 */ config().getMaxBytesPerGatheringWrite());\n/* */ }",
"@Override\n protected void encode(ChannelHandlerContext ctx, FoscamTextByteBufDTO msg, List<Object> out) {\n final ByteBuf buf = FoscamTextByteBufDTOEncoder.allocateBuf(ctx, msg);\n new FoscamTextByteBufDTOEncoder().encode(ctx, msg, buf);\n final DatagramPacket datagramPacket = new DatagramPacket(buf, new InetSocketAddress(BROADCAST_ADDRESS, BROADCAST_PORT));\n out.add(datagramPacket);\n }",
"private static ByteBuf toByteBuf(Object any) {\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n try {\n out.write(\"data: \".getBytes(Charset.defaultCharset()));\n MAPPER.writeValue(out, any);\n out.write(\"\\n\\n\".getBytes(Charset.defaultCharset()));\n }\n catch (Exception e) {\n throw new RuntimeException(e);\n }\n return ByteBufAllocator.DEFAULT\n .buffer()\n .writeBytes(out.toByteArray());\n }",
"public void toBuffer(ByteBufWrapper paramhd)\r\n/* 48: */ {\r\n/* 49:55 */ paramhd.b(this.a);\r\n/* 50:56 */ paramhd.writeInt(this.b);\r\n/* 51:57 */ paramhd.writeInt(this.c);\r\n/* 52:58 */ paramhd.writeInt(this.d);\r\n/* 53:59 */ paramhd.writeByte(this.e);\r\n/* 54:60 */ paramhd.writeByte(this.f);\r\n/* 55:61 */ paramhd.writeBoolean(this.g);\r\n/* 56: */ }",
"@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n ctx.write(buf.duplicate()).addListener(ChannelFutureListener.CLOSE);\n }",
"@Override\r\n\tpublic void channelRead(ChannelHandlerContext ctx, Object msg)\r\n\t\t\tthrows Exception {\r\n\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"server channelRead: \" + msg);\r\n\t\t} finally {\r\n\t\t\t// ByteBuf是一个引用计数对象,这个对象必须显示地调用release()方法来释放\r\n\t\t\t// or ((ByteBuf)msg).release();\r\n\t\t\tReferenceCountUtil.release(msg);\r\n\t\t}\r\n\r\n\t\t// ctx.writeAndFlush(Unpooled.copiedBuffer(\"hello,client\",\r\n\t\t// CharsetUtil.UTF_8));\r\n\t\tString sendMsg=\"hi,client...\";\r\n\t\tctx.writeAndFlush(new MyMessage(new MyHead(\r\n\t\t\t\tsendMsg.getBytes(\"UTF-8\").length, 1), sendMsg));\r\n\t}",
"public void writeTo(ChannelBuffer buf) {\n // Wire format:\n // <PID><port><host length><name length><host><name><is-stateless?>\n buf.writeInt(this.pid);\n buf.writeInt(this.port);\n buf.writeInt(this.hostBytes.length);\n buf.writeInt(this.nameBytes.length);\n buf.writeBytes(this.hostBytes);\n buf.writeBytes(this.nameBytes);\n buf.writeInt(this.isStateless ? 1 : 0);\n }",
"@Override\n\tprotected void encode(ChannelHandlerContext ctx, RPCResponse msg, ByteBuf out) throws Exception {\n\t\tbyte[] data = SerializationUtils.serialize(msg);\n\t\tout.writeInt(data.length);\n\t\tout.writeBytes( data );\n\t}",
"@Override\n\tprotected void encode(ChannelHandlerContext ctx, Packet msg, ByteBuf out) throws Exception\n\t{\n\t\tout.writeShort(msg.getPacketID()); // Packet ID\n\t\t\n\t\ttry\n\t\t{\n\t\t\tmsg.encodePayload(out);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tctx.fireExceptionCaught(e);\n\t\t}\n\t}",
"@Override\n\tpublic void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n\t\tctx.write(msg);\n\t}",
"@Override\n\tpublic void channelActive(ChannelHandlerContext ctx) throws Exception {\n\t\tctx.writeAndFlush(firstMessage);\n\t}",
"public void writeTo(ByteBuf out) {\n/* 77 */ if (this.value == null) {\n/* */ return;\n/* */ }\n/* 80 */ out.writeByte(this.value.byteValue());\n/* */ }",
"public interface WriteOnlyChannel {\n /**\n * Write message packet\n * @param data message packet\n * @return True if success ele False\n */\n boolean write(byte[] data );\n}",
"void putTo(ByteBuffer dst, TcpTxContext tx) {}",
"ByteBuf allocate(ByteBufAllocator alloc);",
"public void write(byte[] buffer) {\n try {\n String bufferstring=\"a5550100a2\";\n // byte [] buffer03=new byte[]{(byte) 0xa5, Byte.parseByte(\"ffaa\"),0x01,0x00, (byte) 0xa2};\n byte buffer01[]=bufferstring.getBytes();\n byte [] buffer02=new byte[]{(byte) 0xa5,0x55,0x01,0x00, (byte) 0xa2};\n\n\n //for(int i=0;i<100000;i++) {\n mmOutStream.write(buffer);\n // Thread.sleep(1000);\n //}\n //\n //Share the sent message back to the UI Activity\n// mHandler.obtainMessage(BluetoothChat.MESSAGE_WRITE, -1, -1, buffer)\n// .sendToTarget();\n } catch (Exception e) {\n Log.e(TAG, \"Exception during write\", e);\n }\n }",
"public void writedata(byte b) throws Exception{\n ByteBuffer byteBuffer = ByteBuffer.wrap(\"hello\".getBytes(\"UTF-8\"));\n// byteBuffer.flip();\n client.write(byteBuffer);\n byteBuffer.clear();\n client.close();\n\n }",
"private ChannelFuture write(ClientMessagePacker packer) throws IgniteClientConnectionException {\n var buf = packer.getBuffer();\n\n return sock.send(buf);\n }",
"public void sendmsg(Message msg){\n try {\n oos.writeObject(new Datapacket(1, null, msg,null, null));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tprotected void encode(ChannelHandlerContext ctx, Envelope env, ByteBuf out) throws Exception {\n\t\t// (1) header (48 bytes)\n\t\t// --------------------------------------------------------------------\n\t\tout.writeInt(MAGIC_NUMBER); // 4 bytes\n\n\t\tif (out.getInt(out.writerIndex()-4) != MAGIC_NUMBER) {\n\t\t\tthrow new RuntimeException();\n\t\t}\n\n\t\tout.writeInt(env.getSequenceNumber()); // 4 bytes\n\t\tenv.getJobID().writeTo(out); // 16 bytes\n\t\tenv.getSource().writeTo(out); // 16 bytes\n\t\tout.writeInt(env.getEventsSerialized() != null ? env.getEventsSerialized().remaining() : 0); // 4 bytes\n\t\tout.writeInt(env.getBuffer() != null ? env.getBuffer().size() : 0); // 4 bytes\n\t\t// --------------------------------------------------------------------\n\t\t// (2) events (var length)\n\t\t// --------------------------------------------------------------------\n\t\tif (env.getEventsSerialized() != null) {\n\t\t\tout.writeBytes(env.getEventsSerialized());\n\t\t}\n\n\t\t// --------------------------------------------------------------------\n\t\t// (3) buffer (var length)\n\t\t// --------------------------------------------------------------------\n\t\tif (env.getBuffer() != null) {\n\t\t\tBuffer buffer = env.getBuffer();\n\t\t\tout.writeBytes(buffer.getMemorySegment().wrap(0, buffer.size()));\n\n\t\t\t// Recycle the buffer from OUR buffer pool after everything has been\n\t\t\t// copied to Nettys buffer space.\n\t\t\tbuffer.recycleBuffer();\n\t\t}\n\t}",
"ByteBuf getMessageBody();",
"public Buffer(String label){\n channelLabel = label;\n }",
"public PingWebSocketFrame(ByteBuf binaryData) {\n/* 40 */ super(binaryData);\n/* */ }",
"@Override\n public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n String body = (String) msg;\n System.out.println(body);\n System.out.println(\"第\"+ ++count + \"次收到服务器回应\");\n }",
"@Override\n\tpublic void send(String msg) {\n\t\t\n\t\t\n\t\n\t}",
"void send(Pack pack) { testing_pack = pack; }",
"public interface Packet {\n /**\n * Read body from byte buffer\n * @param bb \n * @throws java.lang.Exception \n */\n void readBody(ByteBuf bb, TranscoderContext context) throws Exception;\n \n /**\n * Write body to byte buffer\n * @param bb \n * @param context \n * @throws java.lang.Exception \n */\n void writeBody(ByteBuf bb, TranscoderContext context) throws Exception;\n \n /**\n * Calculate and return body size in bytes\n * @param context\n * @return \n */\n int calculateBodyLength(TranscoderContext context);\n \n /**\n * Calculate and set field with body length\n * @param context\n */\n void calculateAndSetBodyLength(TranscoderContext context);\n \n /**\n * Get body length from field\n * @return \n */\n int getBodyLength();\n\n /**\n * Get sequence number field value\n * @return \n */\n int getSequenceNumber();\n \n /**\n * Set sequence number field value\n * @param sequenceNumber \n */\n void setSequenceNumber(int sequenceNumber); \n}",
"public ByteBuf writeBytes(ByteBuf src)\r\n/* 581: */ {\r\n/* 582:592 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 583:593 */ return super.writeBytes(src);\r\n/* 584: */ }",
"public void write(byte[] buffer) { //이건 보내주는거\n try {\n mmOutStream.write(buffer);\n\n // Disabled: Share the sent message back to the main thread\n mHandler.obtainMessage(MESSAGE_WRITE, -1, -1, buffer).sendToTarget(); //MH주석풀엇음 //what arg1, arg2 obj\n\n } catch (IOException e) {\n Log.e(TAG, \"Exception during write\");\n }\n }",
"@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n super.channelActive(ctx);\n \n }",
"protected abstract void sendInternal(ByteBuffer outputBuffer) throws IOException;",
"public interface SocketControl {\n\n /**\n * 获取服务的IP和端口\n * @return 格式:ip:port,如127.0.0.1:8080\n */\n String getIpPort();\n\n /**\n * 获取服务的ServiceId\n * @return 服务的ServiceId\n */\n String getServiceId();\n\n /**\n * 获取服务的InstanceId\n * @return 服务的InstanceId\n */\n String getInstanceId();\n\n\n /**\n * 获取模块名称,也可以直接调用getIpPort()\n * @return 模块名称\n */\n String getModelName();\n\n\n /**\n * 模块下连接的标示\n * @param channel 管道对象\n * @return uk\n */\n String getUniqueKey(Channel channel);\n\n\n /**\n * 模块下连接的标示\n * @param ctx 管道对象\n * @return uk\n */\n String getUniqueKey(ChannelHandlerContext ctx);\n\n\n /**\n * 绑定key\n * @param ctx 当前连接对象\n * @param key key\n */\n void bindKey(ChannelHandlerContext ctx,String key);\n\n /**\n * 绑定key\n * @param ctx 当前连接对象\n * @param key key\n */\n void bindKey(Channel ctx,String key);\n\n /**\n * 获取key\n * @param ctx 当前链接对象\n * @return key\n */\n String getKey(Channel ctx);\n\n /**\n * 获取key\n * @param ctx 当前链接对象\n * @return key\n */\n String getKey(ChannelHandlerContext ctx);\n\n\n /**\n * 重置心跳时间\n * @param ctx 当前连接对象\n * @param heartTime 心跳时间(秒)\n */\n void resetHeartTime(Channel ctx,int heartTime);\n\n\n\n}",
"@Override\n\tpublic void flush(ChannelHandlerContext ctx) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"flush\");\n\t\tsuper.flush(ctx);\n\t}",
"public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise)\r\n/* 33: */ throws Exception\r\n/* 34: */ {\r\n/* 35: 81 */ CodecOutputList out = null;\r\n/* 36: */ try\r\n/* 37: */ {\r\n/* 38: 83 */ if (acceptOutboundMessage(msg))\r\n/* 39: */ {\r\n/* 40: 84 */ out = CodecOutputList.newInstance();\r\n/* 41: */ \r\n/* 42: 86 */ I cast = msg;\r\n/* 43: */ try\r\n/* 44: */ {\r\n/* 45: 88 */ encode(ctx, cast, out);\r\n/* 46: */ }\r\n/* 47: */ finally\r\n/* 48: */ {\r\n/* 49: 90 */ ReferenceCountUtil.release(cast);\r\n/* 50: */ }\r\n/* 51: 93 */ if (out.isEmpty())\r\n/* 52: */ {\r\n/* 53: 94 */ out.recycle();\r\n/* 54: 95 */ out = null;\r\n/* 55: */ \r\n/* 56: */ \r\n/* 57: 98 */ throw new EncoderException(StringUtil.simpleClassName(this) + \" must produce at least one message.\");\r\n/* 58: */ }\r\n/* 59: */ }\r\n/* 60: */ else\r\n/* 61: */ {\r\n/* 62:101 */ ctx.write(msg, promise);\r\n/* 63: */ }\r\n/* 64: */ }\r\n/* 65: */ catch (EncoderException e)\r\n/* 66: */ {\r\n/* 67: */ int sizeMinusOne;\r\n/* 68: */ ChannelPromise voidPromise;\r\n/* 69: */ boolean isVoidPromise;\r\n/* 70: */ int i;\r\n/* 71: */ ChannelPromise p;\r\n/* 72: */ ChannelPromise p;\r\n/* 73:104 */ throw e;\r\n/* 74: */ }\r\n/* 75: */ catch (Throwable t)\r\n/* 76: */ {\r\n/* 77:106 */ throw new EncoderException(t);\r\n/* 78: */ }\r\n/* 79: */ finally\r\n/* 80: */ {\r\n/* 81:108 */ if (out != null)\r\n/* 82: */ {\r\n/* 83:109 */ int sizeMinusOne = out.size() - 1;\r\n/* 84:110 */ if (sizeMinusOne == 0)\r\n/* 85: */ {\r\n/* 86:111 */ ctx.write(out.get(0), promise);\r\n/* 87: */ }\r\n/* 88:112 */ else if (sizeMinusOne > 0)\r\n/* 89: */ {\r\n/* 90:115 */ ChannelPromise voidPromise = ctx.voidPromise();\r\n/* 91:116 */ boolean isVoidPromise = promise == voidPromise;\r\n/* 92:117 */ for (int i = 0; i < sizeMinusOne; i++)\r\n/* 93: */ {\r\n/* 94: */ ChannelPromise p;\r\n/* 95: */ ChannelPromise p;\r\n/* 96:119 */ if (isVoidPromise) {\r\n/* 97:120 */ p = voidPromise;\r\n/* 98: */ } else {\r\n/* 99:122 */ p = ctx.newPromise();\r\n/* 100: */ }\r\n/* 101:124 */ ctx.write(out.getUnsafe(i), p);\r\n/* 102: */ }\r\n/* 103:126 */ ctx.write(out.getUnsafe(sizeMinusOne), promise);\r\n/* 104: */ }\r\n/* 105:128 */ out.recycle();\r\n/* 106: */ }\r\n/* 107: */ }\r\n/* 108: */ }",
"@Override\n public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n// ctx.pipeline().write(buffer);\n\n// System.out.println(\"received msg: \"+ msg.toString()\n// + \" ---current thread: \" + Thread.currentThread().getName());\n\n logger.info(\"received msg: \" + msg.toString());\n User user = (User) msg;\n user.setUserName(\"server-robbie\");\n ctx.pipeline().write(user);\n }",
"@Override\n protected void sink(Message message) {\n }",
"private void send(Message outgoing, ByteBuffer buffer, SocketChannel channel, boolean debug) throws IOException {\n\t\tif (debug)\n\t\t\tSystem.out.println(\"Worker Thread \" + threadID + \" sending new message: \" + outgoing.toString());\n\t\tbuffer = ByteBuffer.wrap(Serializer.serialize(outgoing));\n\t\tchannel.write(buffer);\n\t\tif (debug)\n\t\t\tSystem.out.println(\"Worker Thread \" + threadID + \"sent message\");\n\t}",
"void send();",
"@Test\n public void outgoingWritesAreBatched() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.sendFrame().headers(false, 3, TestUtil.headerEntries(\"a\", \"android\"));\n peer.acceptFrame();// DATA\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"b\", \"banana\"), true);\n // two outgoing writes\n Sink sink = stream.getSink();\n sink.write(new Buffer().writeUtf8(\"abcde\"), 5);\n sink.write(new Buffer().writeUtf8(\"fghij\"), 5);\n sink.close();\n // verify the peer received one incoming frame\n Assert.assertEquals(TYPE_HEADERS, peer.takeFrame().type);\n MockHttp2Peer.InFrame data = peer.takeFrame();\n Assert.assertEquals(TYPE_DATA, data.type);\n Assert.assertArrayEquals(\"abcdefghij\".getBytes(StandardCharsets.UTF_8), data.data);\n Assert.assertTrue(data.inFinished);\n }",
"@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n ctx.fireChannelActive();\n\n ctx.executor().scheduleAtFixedRate(new Runnable() {\n @Override\n public void run() {\n log.info(\"send heart beat\");\n HeartBeat heartBeat = new HeartBeat();\n ctx.writeAndFlush(heartBeat);\n }\n }, 0, 5, TimeUnit.SECONDS);\n }",
"public void send(Serializable msg) throws IOException;",
"public interface BufferUsageStrategy\n{\n ByteBuffer onTermAdded(final String destination,\n final long sessionId,\n final long channelId,\n final long termId,\n boolean isSender) throws Exception;\n}",
"private void sendData() {\n final ByteBuf data = Unpooled.buffer();\n data.writeShort(input);\n data.writeShort(output);\n getCasing().sendData(getFace(), data, DATA_TYPE_UPDATE);\n }",
"@Override\npublic int sendToID(NodeIDType id, byte[] msg) throws IOException {\n\treturn 0;\n}",
"public ByteBuf writeBytes(ByteBuffer src)\r\n/* 611: */ {\r\n/* 612:622 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 613:623 */ return super.writeBytes(src);\r\n/* 614: */ }",
"public ChannelFuture writeOneOutbound(Object msg) {\n/* 422 */ return writeOneOutbound(msg, newPromise());\n/* */ }",
"@Override\n\tpublic void msgAtBed() {\n\t\t\n\t}",
"public ByteBuf writeBytes(ByteBuf src, int length)\r\n/* 587: */ {\r\n/* 588:598 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 589:599 */ return super.writeBytes(src, length);\r\n/* 590: */ }",
"void encode(ByteBuffer buffer, Message message);",
"Flux<ByteBuffer> write(ByteBuffer buf) {\n if (isThresholdBreached()) {\n size += buf.remaining();\n return Flux.just(buf);\n } else {\n size += buf.remaining();\n byteBuffers.add(buf);\n if (isThresholdBreached()) {\n Flux<ByteBuffer> result = dequeuingFlux(byteBuffers);\n byteBuffers = null;\n return result;\n } else {\n return Flux.empty();\n }\n }\n }",
"public synchronized void sendOrder(BlockingBuffer buffer,AmazonOrder order){\n try\n {\n buffer.blockingPut(order); // set value in buffer\n } catch (InterruptedException exception) {\n Thread.currentThread().interrupt();\n }\n\n }",
"protected void send(InternalCommunicationNetwork tank){\n\t\ttank.put(0,this.rain_level);\n\t}",
"public void SendOrder(Order order){\r\n\r\n try {\r\n String orderString=Order.packageOrder(order);\r\n out.writeChars(orderString);\r\n out.flush();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }",
"public void write(ByteBuffer buffer) throws IOException {\n _channel.write(buffer);\n }",
"public void send() {\n\t}",
"void Send (int boardID, short addr, ByteBuffer databuf, long datacnt, int eotMode);",
"@Override\n\tpublic void send(String msg) {\n\t}",
"void sendRawPacket(UUID uuid, ByteBuf packet) throws IllegalArgumentException;",
"@Override\n protected void encode(ChannelHandlerContext channelHandlerContext, RequestMessage msg, ByteBuf out) throws Exception {\n byte[] bytes = REQUEST_MESSAGE_CODEC.encode(msg);\n out.writeBytes(REQUEST_HEADER);\n out.writeBytes(Integer.toString(bytes.length).getBytes(StandardCharsets.US_ASCII));\n out.writeBytes(CRLF);\n out.writeBytes(bytes);\n }",
"public void sendNBTPacket()\n\t{\n\t\tif (!this.worldObj.isRemote)\n\t\t{\n\t\t\tNBTTagCompound tag = new NBTTagCompound();\n\t\t\tthis.writeToNBT(tag);\n\t\t\tPacketHandler.sendPacketToClients(ResonantInduction.PACKET_TILE.getPacket(this, SimplePacketTypes.NBT.name, this, tag), worldObj, new Vector3(this), 64);\n\t\t}\n\t}",
"void send(ByteBuffer data, Address addr) throws CCommException, IllegalStateException;",
"public void frameMsg(byte[] encodedMsg, OutputStream out) {\n\r\n }",
"void send(ByteBuffer data) throws CCommException, IllegalStateException;",
"private void run() throws IOException, InterruptedException {\n \t\t// InetSocketAddress endpoint = SocketAddresses.fromIp(\"10.95.162.221\",\r\n \t\t// 1234);\r\n \t\tInetSocketAddress endpoint = SocketAddresses.fromIp(\"127.0.0.1\", 1234);\r\n \r\n \t\tbyte[] buf = new byte[8 * 1024];\r\n \t\tnew Random().nextBytes(buf);\r\n \t\tByteBuffer seedBuffer = ByteBuffer.wrap(buf);\r\n \t\tNetContext context = new SimpleNetContext();\r\n \t\tEchoSession session = new EchoSession();\r\n \t\tconnection = TcpNetFactory.INSTANCE.openClient(context, endpoint, session);\r\n \r\n \t\tRuntime.getRuntime().addShutdownHook(new Thread() {\r\n \t\t\t@Override\r\n \t\t\tpublic void run() {\r\n \t\t\t\ttry {\r\n \t\t\t\t\tconnection.close();\r\n \t\t\t\t} catch (IOException e) {\r\n \t\t\t\t\t// TODO Auto-generated catch block\r\n \t\t\t\t\te.printStackTrace();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t});\r\n \r\n \t\tfinal int loopTimeSec = 10;\r\n \t\tlong lastT = System.currentTimeMillis();\r\n \t\tconnection.sendBlocking(seedBuffer);\r\n \t\tlong seeded = seedBuffer.capacity();\r\n \t\tint loop = 1;\r\n \t\tlong lastRx = 0, lastTx = 0;\r\n \t\tfinal long start = System.currentTimeMillis();\r\n \r\n \t\twhile (connection.isConnected()) {\r\n \t\t\tlong sleepUntil = start + (loop * loopTimeSec * 1000L);\r\n \t\t\tThreadUtil.sleepUntilMs(sleepUntil);\r\n \r\n \t\t\tlong rx = session.getRx();\r\n \t\t\tlong tx = session.getTx();\r\n \t\t\tlong rxDiff = rx - lastRx;\r\n \t\t\tlong txDiff = tx - lastTx;\r\n \t\t\tlong diff = rxDiff + txDiff;\r\n \t\t\tlong now = System.currentTimeMillis();\r\n \t\t\tlong tDiff = now - lastT;\r\n\t\t\tdouble mbit = (diff * 8) / 10e6 / (tDiff / 1000f);\r\n\t\t\tdouble rxMb = (rxDiff / (2e20));\r\n\t\t\tdouble txMb = (txDiff / (2e20));\r\n \t\t\tSystem.out.printf(\"seed=%d, last %dsec rx=%.3fM, tx=%.3fM bytes => %.5f mbit/sec%n\", //\r\n \t\t\t\t\tseeded, loopTimeSec, rxMb, txMb, mbit);\r\n \t\t\tif (seeded < 512 * 1024) {\r\n \t\t\t\tSystem.out.println(\"seeding an additional \" + seedBuffer.capacity() + \" bytes into the echo chain\");\r\n \t\t\t\tseedBuffer.rewind();\r\n \t\t\t\tconnection.sendBlocking(seedBuffer);\r\n \t\t\t\tseeded += seedBuffer.capacity();\r\n \t\t\t}\r\n \t\t\t// if (rxDiff == 0 || txDiff == 0) {\r\n \t\t\t// session.forceWrite();\r\n \t\t\t// }\r\n \t\t\tloop++;\r\n \t\t\tlastRx = rx;\r\n \t\t\tlastTx = tx;\r\n \t\t\tlastT = now;\r\n \t\t}\r\n \t\t// TODO: save shutdown of clients\r\n \t\tSystem.exit(0);\r\n \t}",
"public void sendBack(SelectionKey key, String message) {\r\n\t\tsocketChannel = (SocketChannel) key.channel(); \r\n\t\tmessage += \"\\r\\n\";\r\n\t\tbuffer = CharBuffer.wrap(message);\r\n\t\twhile (buffer.hasRemaining()) {\r\n\t\t\ttry {\r\n\t\t\t\tsocketChannel.write(Charset.defaultCharset().encode(buffer));\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tLong x = System.nanoTime();\r\n\t\tserviceTime = x - pollTime;\r\n\t\tresponseTime = x - currentJob.queueEntranceTime;\r\n\t\ttimeInSystem = x - currentJob.timeOfArrival;\r\n\t\t\r\n\t\ttimes.add(myNumber + \"\\t\" + type + \"\\t\" + queueTime + \"\\t\" + workerTime +\"\\t\" + processingTime +\"\\t\" + serviceTime +\"\\t\" + responseTime +\"\\t\" + timeInSystem );\r\n\t\tnumOfRequests.incrementAndGet();\r\n\t\tmyNumOfRequests++;\r\n\t}",
"@Override\r\n\tpublic void send(JT808ProtocalPack message) throws Exception {\n\r\n\t}",
"private void bluetoothSendMsg(String s) {\n byte [] msgOnBuf;\n msgOnBuf = s.getBytes();\n try {\n outStream.write(msgOnBuf);\n } catch (IOException e) {\n Log.d(TAG,\"send message fail!\");\n }\n }",
"public static ChannelBuffer writeString(String msg) {\n\t\tChannelBuffer buffer = null;\n\t\ttry\n\t\t{\n\t\t\tChannelBuffer stringBuffer = STRING_ENCODER.encode(msg);\n\t\t\tif(null != stringBuffer){\n\t\t\t\tint length = stringBuffer.readableBytes();\n\t\t\t\tChannelBuffer lengthBuffer = ChannelBuffers.buffer(2);\n\t\t\t\tlengthBuffer.writeShort(length);\n\t\t\t\tbuffer = ChannelBuffers.wrappedBuffer(lengthBuffer,stringBuffer);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLOG.error(\"Error occurred while trying to write string to buffer: {}\",e);\n\t\t}\n\t\treturn buffer;\n\t}",
"@Override\n\tprotected void encode(ChannelHandlerContext ctx, Object msg, List<Object> out) throws Exception {\n\t\tif (msg instanceof Message) {\n\t\t\tout.add(msg);\n\t\t}\n\t\t\n\t\t/*\n\t\t * Look for the correct serializer and bamboozle it\n\t\t */\n\t\telse {\n\t\t\tSet<OutgoingMessageDefinition> definitions = repository.outgoingTypedDefinition(msg.getClass());\n\t\t\tif (definitions == null || definitions.size() == 0) {\n\t\t\t\tlogger.warn(\"no serializer found for {}\", msg.getClass().getName());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlogger.debug(\"sending message {} to {}\", msg.getClass().getName(), ctx.channel().remoteAddress());\n\t\t\t\tdefinitions.forEach(definition -> out.add(definition.getSerializer().serialize(msg, definition)));\n\t\t\t}\n\t\t}\n\t}",
"@Override\n protected void channelRead0(ChannelHandlerContext ctx, ByteBuf msg) {\n System.out.println(\"Client received: \" + ByteBufUtil.hexDump(msg.readBytes(msg.readableBytes())));\n }",
"public void generateAroundPlayer() {\n try {\n DataOutputStream dataOutputStream = new DataOutputStream(SixEngineClient.client.socket.getOutputStream());\n\n dataOutputStream.writeByte(5);\n dataOutputStream.writeInt(getChunkX());\n dataOutputStream.writeInt(getChunkY());\n dataOutputStream.writeInt(getChunkZ());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void sendACKPacket()\n{\n \n //the values are unpacked into bytes and stored in outBufScratch\n //outBufScrIndex is used to load the array, start at position 0\n \n outBufScrIndex = 0;\n \n outBufScratch[outBufScrIndex++] = Notcher.ACK_CMD;\n \n //the byte is placed right here in this method\n outBufScratch[outBufScrIndex++] = lastPacketTypeHandled;\n \n //send header, the data, and checksum\n sendByteArray(outBufScrIndex, outBufScratch);\n \n}",
"public void send(Message msg);",
"public ByteBuf writeBytes(byte[] src)\r\n/* 599: */ {\r\n/* 600:610 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 601:611 */ return super.writeBytes(src);\r\n/* 602: */ }",
"@Override\n public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {\n if (evt instanceof IdleStateEvent) {\n IdleState state = ((IdleStateEvent) evt).state();\n if (state == IdleState.WRITER_IDLE) {\n // write heartbeat to server\n //ctx.writeAndFlush(HEARTBEAT_SEQUENCE.duplicate());\n System.out.println(\"-----Send KeepAlive-----\");\n/* PacketProto.Packet.Builder builder = newBuilder();\n builder.setPacketType(PacketProto.Packet.PacketType.HEARTBEAT);\n PacketProto.Packet packet = builder.build();\n ctx.writeAndFlush(packet);*/\n ProtoMessage.ProtoMsg.Builder msg = ProtoMessage.ProtoMsg.newBuilder();\n msg.setType(ProtoHead.EMsgHead.KEEP_ALIVE_REQ);\n msg.setSequence(0);\n msg.setSessionId(1);\n ProtoMessage.Request.Builder req = ProtoMessage.Request.newBuilder();\n KeepAliveMsg.KeepAliveReq.Builder keepReq = KeepAliveMsg.KeepAliveReq.newBuilder();\n keepReq.setTime(111);\n req.setKeepAliveReq(keepReq);\n msg.setRequest(req);\n ctx.writeAndFlush(msg.build());\n }\n } else {\n super.userEventTriggered(ctx, evt);\n }\n }",
"public static ByteBuf getExpectedBuffer() {\n String msgHex = \"00 01 00 0b 00 00 00 0a 00 21 63 6f 6e 73 75 6d 65 72 2d 63 6f 6e 73 6f 6c 65 2d 63 \" +\n \"6f 6e 73 75 6d 65 72 2d 35 39 37 35 30 2d 31 ff ff ff ff 00 00 01 f4 00 00 00 01 03 \" +\n \"20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 0a 63 6f 64 65 63 2d 74 65 73 74 \" +\n \"00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff ff ff ff ff ff ff ff \" +\n \"00 10 00 00 00 00 00 00 00 00\";\n return TestUtils.hexToBinary(msgHex);\n }",
"public static void sendTestMessage (PrintWriter out) {\r\n\t\tString pack = \"0|test\";\r\n\t\tout.println(pack);\r\n\t}",
"void send(TransportPacket pkt, Address addr) throws CCommException, IllegalStateException;",
"public ChannelFuture writeOneInbound(Object msg) {\n/* 339 */ return writeOneInbound(msg, newPromise());\n/* */ }",
"LSend LSend(Token t, RoleNode self, MsgNode msg, RoleNode dst);",
"public void visit(SendBlock sb);",
"@Override\n protected String format(ChannelHandlerContext ctx, String eventName, Object arg) {\n if (arg instanceof ByteBuf) {\n return formatByteBuf(ctx, eventName, (ByteBuf) arg);\n } else if (arg instanceof ByteBufHolder) {\n return formatByteBufHolder(ctx, eventName, (ByteBufHolder) arg);\n } else {\n return formatSimple(ctx, eventName, arg);\n }\n }",
"void send(TransportPacket pkt) throws CCommException, IllegalStateException;",
"private <T extends QMessage> void sendTestMsg(T msg) {\n\n\t\ttry {\n\t\t\tString token = KeycloakUtils.getAccessToken(\"http://keycloak.genny.life\", \"genny\", \"genny\",\n\t\t\t\t\t\"056b73c1-7078-411d-80ec-87d41c55c3b4\", \"user1\", \"password1\");\n\t\t\tmsg.setToken(token);\n\n\t\t\t/* get the bridge url to publish the message to webcmd channel */\n\t\t\tString bridgetUrl = ENV_GENNY_BRIDGE_URL + \"/api/service?channel=webdata\";\n\n\t\t\tQwandaUtils.apiPostEntity(bridgetUrl, JsonUtils.toJson(msg), token);\n\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n public void channelRead0(ChannelHandlerContext ctx, String msg) throws Exception {\n System.err.println(\"来自client的信息:\" + msg);\n Gson gson = new Gson();\n UserInfo userInfo = gson.fromJson(msg, UserInfo.class);\n\n msg = \"用户名:\"+ userInfo.getUsername()+ \" 密码:\" + userInfo.getPassword() + \"----\" + ctx.channel().remoteAddress()+ \"----\" + msg;\n Log.d(\"tag\",msg);\n System.out.println(ctx.channel().id());\n ctx.writeAndFlush(\"1\\n\");\n //ctx.writeAndFlush(\"[\" + ctx.channel().remoteAddress() + \"] \" + msg + '\\n');\n\n }",
"public ByteBuf writeBytes(ByteBuf src, int srcIndex, int length)\r\n/* 593: */ {\r\n/* 594:604 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 595:605 */ return super.writeBytes(src, srcIndex, length);\r\n/* 596: */ }",
"public ChannelFuture writeOneOutbound(Object msg, ChannelPromise promise) {\n/* 432 */ if (checkOpen(true)) {\n/* 433 */ return write(msg, promise);\n/* */ }\n/* 435 */ return checkException(promise);\n/* */ }",
"void sendMessage(long queueId, byte[] content, int prio) throws IOException, MlmqException;",
"@Override\n\tpublic void messageReceived(ChannelHandlerContext ctx, MessageEvent e) {\n\t\ttransferredBytes.addAndGet(((ChannelBuffer) e.getMessage())\n\t\t\t\t.readableBytes());\n\t\tlogger.info(\"收到消息: \"+e.getMessage());\n\t\te.getChannel().write(e.getMessage());\n\t}",
"@Override\n public void serialize(ByteBuffer buf) {\n }",
"@Override\n public void completed(Integer result, AsynchronousSocketChannel channel ) {\n\n //ipaddress\n String ipAdr = \"\";\n try{\n\n //Print IPAdress\n ipAdr = channel.getRemoteAddress().toString();\n System.out.println(ipAdr);\n }catch(IOException e) {\n e.printStackTrace();\n }\n\n //if client is close ,return\n buf.flip();\n if (buf.limit() == 0) return;\n\n //Print Message\n String msg = getString(buf);\n\n //time\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss.SSS\");\n sdf.setTimeZone(TimeZone.getTimeZone(\"Asia/Taipei\"));\n System.out.println(sdf.format(new Date()) + \" \" + buf.limit() + \" client: \"+ ipAdr + \" \" + msg);\n\n //\n order ord = null;\n try{\n ord = ParseOrder(sdf.format(new Date()), msg, ipAdr);\n }catch(Exception ex){\n startRead( channel );\n return;\n }\n //2021/05/23 15:55:14.763,TXF,B,10000.0,1,127.0.0.1\n //2021/05/23 15:55:14.763,TXF,S,10000.0,1,127.0.0.1\n\n if (ord.BS.equals(\"B\")) {\n limit(ord, bid);\n }\n if (ord.BS.equals(\"S\")) {\n limit(ord, ask);\n }\n if (trade(bid, ask, match) == true){\n startWrite(clientChannel, \"Mat:\" + match.get(match.size()-1).sysTime + \",\" + match.get(match.size()-1).stockNo+\",\"+\n match.get(match.size()-1).BS+\",\"+match.get(match.size()-1).qty+\",\"+match.get(match.size()-1).price+\"\\n\");\n }\n\n //send to all \n startWrite(clientChannel, \"Ord:\" + getAllOrder(bid, ask)+\"\\n\");\n \n //bid size and ask size\n System.out.println(\"Blist:\" + bid.size() + \" Alist:\" + ask.size());\n\n // echo the message\n//------------------> //startWrite( channel, buf );\n \n //start to read next message again\n startRead( channel );\n }",
"private static String formatSimple(ChannelHandlerContext ctx, String eventName, Object msg) {\n String chStr = getChStr(ctx);\n String msgStr = String.valueOf(msg);\n StringBuilder buf = new StringBuilder(chStr.length() + 1 + eventName.length() + 2 + msgStr.length());\n return buf.append(chStr).append(' ').append(eventName).append(\": \").append(msgStr).toString();\n }"
]
| [
"0.66393805",
"0.6416308",
"0.6395942",
"0.6297845",
"0.6258418",
"0.6252253",
"0.61587906",
"0.6124228",
"0.60615295",
"0.595781",
"0.594827",
"0.5937317",
"0.5927167",
"0.58885336",
"0.5823905",
"0.5812819",
"0.5786172",
"0.57832146",
"0.578018",
"0.57645106",
"0.57451177",
"0.571657",
"0.5704904",
"0.5702361",
"0.5672587",
"0.56689584",
"0.565932",
"0.56403774",
"0.56373113",
"0.5620612",
"0.5618027",
"0.56118536",
"0.5556923",
"0.5551467",
"0.5543301",
"0.5537247",
"0.55090094",
"0.55057865",
"0.55048656",
"0.55033857",
"0.5498664",
"0.54983914",
"0.54979026",
"0.5487434",
"0.5483845",
"0.54811615",
"0.5481032",
"0.54694563",
"0.5467656",
"0.54657155",
"0.54611456",
"0.54602385",
"0.54546624",
"0.5447605",
"0.5437038",
"0.5412824",
"0.5412255",
"0.540813",
"0.53991807",
"0.5398935",
"0.5398579",
"0.5371392",
"0.5367949",
"0.53656507",
"0.53625524",
"0.5344935",
"0.5329095",
"0.532166",
"0.5321304",
"0.53187215",
"0.53124785",
"0.5306231",
"0.5294081",
"0.52749765",
"0.527017",
"0.5268598",
"0.52656084",
"0.5263409",
"0.52539855",
"0.5253982",
"0.52511495",
"0.5248116",
"0.523412",
"0.5229703",
"0.52181",
"0.5215036",
"0.52108514",
"0.5207504",
"0.5199779",
"0.5198541",
"0.5197255",
"0.5187249",
"0.5186185",
"0.51784146",
"0.51763225",
"0.5173072",
"0.5171015",
"0.5169763",
"0.51677364",
"0.51641613"
]
| 0.52608675 | 78 |
Used for collecting data about vitals (memory, cpu, etc.) when a transaction is active. | @ApiStatus.Internal
public interface ICollector {
void setup();
void collect(final @NotNull PerformanceCollectionData performanceCollectionData);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private SensorData collectMemoryInfo() throws SigarException {\n \n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Collecting Memory Utilization Information\");\n }\n SensorData data = new SensorData();\n \n Mem mem = sigar.getMem();\n \n data.add(SensorAttributeConstants.MemoryConstants.TOTAL_MEMORY, (mem.getTotal() / (1024 * 1024)));\n data.add(SensorAttributeConstants.MemoryConstants.FREE_MEMORY, (mem.getFree() / (1024 * 1024)));\n data.add(SensorAttributeConstants.MemoryConstants.MEM_ACTUAL_USED, (mem.getActualUsed() / (1024 * 1024)));\n \n return data;\n }",
"private void summarizeTimeslot ()\n {\n if (null == brokers) {\n // first time through\n brokers = new ArrayList<>();\n stats = new HashMap<>();\n\n data.print(\"Broker Name,\");\n data.print(\"Power Type,\");\n data.print(\"Customers,\");\n data.print(\"Usage (kWh),\");\n data.println(\"Income Gained\");\n\n // set up the maps of brokers, and stats by power type\n for (Broker broker : brokerRepo.findRetailBrokers())\n {\n brokers.add(broker);\n stats.put(broker, new HashMap<>());\n for (PowerType type : powerTypes)\n {\n StatsTracked theseStats = new StatsTracked();\n HashMap<PowerType, StatsTracked> map = stats.get(broker);\n map.put(type, theseStats);\n stats.put(broker, map);\n }\n }\n\n // store customer statistics\n\n }\n\n if (ttx.size() > 0) {\n // there are some signups and withdraws here\n for (TariffTransaction tx : ttx) {\n Broker broker = tx.getBroker();\n PowerType type = tx.getTariffSpec().getPowerType();\n HashMap<PowerType, StatsTracked> brokerMap = stats.get(broker);\n StatsTracked theseStats = brokerMap.get(type);\n if (tx.getTxType() == TariffTransaction.Type.CONSUME ||\n tx.getTxType() == TariffTransaction.Type.PRODUCE) {\n theseStats.updateUsage(tx.getKWh());\n theseStats.updateProfit(tx.getCharge());\n }\n else if (tx.getTxType() == TariffTransaction.Type.SIGNUP)\n theseStats.updateCustomers(tx.getCustomerCount());\n\n // reupdate the tracking...\n brokerMap.put(type, theseStats);\n stats.put(broker, brokerMap);\n }\n }\n ttx.clear();\n }",
"public interface TransactionStatisticService {\n\n boolean processTransaction(Transaction transaction);\n\n TransactionStatistic getSummaryTransactionStatistic();\n}",
"public Mono<Statistics> getStatistics(long now) {\n LOGGER.debug(\"Get statistcs of transaction with respect to system time {}\", now);\n return store.fetchStatistics(now);\n }",
"public void getSelectedTXInfo() {\r\n /** call selectedTx to get needed info about the tx selection **/\r\n selectedTx();\r\n /** call addSwitches to add possible options for tx selection **/\r\n addSwitches();\r\n /** call addTestLoads to add possible options for a test load **/\r\n addTestLoads();\r\n /** call addFilters() to add possible options for a test load **/\r\n addFilters();\r\n }",
"public HashMap<Integer, ArrayList<PerformanceTransaction>> getTransactions() {\n\t\t//return this.transactions;\n\t\treturn this.transactions;\n\t}",
"public VirtualMachinesStatistics getStatistics() {\n return statistics;\n }",
"Map retrievePreparedTransactions();",
"private void collectData() {\n this.collectContest();\n this.collectProblems();\n this.collectPreCollegeParticipants();\n this.collectObservers();\n }",
"private SensorData collectCPUUsageInfo() throws SigarException {\n \n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Collecting CPU Usage Information\");\n }\n SensorData data = new SensorData();\n \n CpuPerc cpuPerc = sigar.getCpuPerc();\n \n data.add(SensorAttributeConstants.CPUConstants.CPU_IDLE, (cpuPerc.getIdle() * 100));\n data.add(SensorAttributeConstants.CPUConstants.CPU_USAGE_USER, (cpuPerc.getUser() * 100));\n data.add(SensorAttributeConstants.CPUConstants.CPU_USAGE_SYSTEM, (cpuPerc.getSys() * 100));\n data.add(SensorAttributeConstants.CPUConstants.CPU_USAGE_TOTAL, (cpuPerc.getCombined() * 100));\n \n return data;\n }",
"public void printCurrentTransaction() {\n\t\tregister[registerSelected].printCurrentTransaction();\n\t}",
"private void cmdInfoProg() {\n long total = Runtime.getRuntime().totalMemory();\n long free = Runtime.getRuntime().freeMemory();\n NumberFormat nf = NumberFormat.getInstance();\n Log.println(\"(mem: \"\n + NumberFormat.getPercentInstance().format(\n (double) free / (double) total) + \" = \"\n + nf.format(free) + \" bytes free, \" + nf.format(total)\n + \" bytes total)\");\n }",
"private VoltTable[] getTransactionData(long interval, final long now) {\n ParameterSet parameters = new ParameterSet();\n parameters.setParameters((byte)interval, now);\n \n return this.executeOncePerSite(SysProcFragmentId.PF_txnData,\n SysProcFragmentId.PF_txnDataAggregator,\n parameters);\n }",
"Object getCurrentData();",
"public static void getMemoryUsage(){\r\n MemoryMeasurement actMemoryStatus = new MemoryMeasurement();\r\n //MemoryMeasurement.printMemoryUsage(actMemoryStatus);\r\n memoryUsageList.add(actMemoryStatus);\r\n }",
"@Override\r\n\tpublic Map<String, Integer> getActivityStatistic() {\n\t\tMap<String, Integer> result = new HashMap<String, Integer>();\r\n\t\tList<Activity> activities = activityDao.getAllActivities();\r\n\t\tfor(Activity activity:activities){\r\n\t\t\tresult.put(activity.getName(), activityRecordDao.getAttendCountById(activity.getId()));\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public SharedMemory infos();",
"private void collectMetricsInfo() {\n // Retrieve a list of all references to registered metric services\n ServiceReference[] metricsList = null;\n try {\n metricsList = bc.getServiceReferences(null, SREF_FILTER_METRIC);\n } catch (InvalidSyntaxException e) {\n logError(INVALID_FILTER_SYNTAX);\n }\n \n // Retrieve information about all registered metrics found\n if ((metricsList != null) && (metricsList.length > 0)) {\n \n for (int nextMetric = 0;\n nextMetric < metricsList.length;\n nextMetric++) {\n \n ServiceReference sref_metric = metricsList[nextMetric];\n MetricInfo metric_info = getMetricInfo(sref_metric);\n \n // Add this metric's info to the list\n if (metric_info != null) {\n registeredMetrics.put(\n metric_info.getServiceID(),\n metric_info);\n }\n }\n }\n else {\n logInfo(\"No pre-existing metrics were found!\");\n }\n }",
"public String reportTransaction() {\n String verb = type.equals(\"buy\") ? \"bought\" : \"sold\";\n return volume + \" stocks of \" + symbol + \" \" + verb + \" @\" + price +\n \" USD (total value \" + String.format(\"%.2f\", getTransactionAmount()) + \" USD).\";\n }",
"private final Map<String, String> memoryStats() {\n HashMap<String, String> map = new HashMap<String, String>();\r\n map.put(\"tableIndexChunkSize\", (!RAMIndex) ? \"0\" : Integer.toString(index.row().objectsize));\r\n map.put(\"tableIndexCount\", (!RAMIndex) ? \"0\" : Integer.toString(index.size()));\r\n map.put(\"tableIndexMem\", (!RAMIndex) ? \"0\" : Integer.toString((int) (index.row().objectsize * index.size() * kelondroRowCollection.growfactor)));\r\n return map;\r\n }",
"String showPreparedTransactions();",
"public static void createStatistics() {\n\t\t\n\t\tBookingVisitor visitor = new BookingVisitor();\n\t\tPaymentType paymentType = PaymentType.MONEYWALLET;\n\t\t\n\t\tBooking booking = new Booking();\n\t\t\n\t\tvisitor.visit(booking, paymentType);\n\t\t\n\t\tint countPayPal = visitor.getCountPayPal();\n\t\tint countGoogleWallet = visitor.getCountGoogleWallet();\n\t\tint countMoneyWallet = visitor.getCountMoneyWallet();\n\t\t\n\t\tSystem.out.println(\"Payment GermanBooking by PayPal: \" + countPayPal );\n\t\tSystem.out.println(\"Payment GermanBooking by GoogleWallet: \" + countGoogleWallet);\n\t\tSystem.out.println(\"Payment GermanBooking by MoneyWallet: \" + countMoneyWallet);\n\t}",
"@java.lang.Override\n public int getTransactionsCount() {\n return instance.getTransactionsCount();\n }",
"@Override\n\tpublic List<Transaction> getAllTransactions() { \n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction();\n\n\t\tQuery query = session.createQuery(\"from Transaction\");\n\t\tList<Transaction> expenses = query.list();\n\n\t\t/* commit */ \n\t\tsession.getTransaction().commit();\n\n\t\treturn expenses; \n\t}",
"private void gather(final Session s) throws Exception {\n\t\t//final MeasureHandler mHandler = Appctx.getBean(\"measurehandler\");\n\t\t//final List<CacheClusterBean> cache = s.createQuery(\n\t\t//\t\t\"from CacheClusterBean\").list();\n\t\t//for (final CacheClusterBean cluster : cache) {\n\t\t\t// if (!cluster.getLbStatus().endsWith(\"ready\")) {\n\t\t\t// logger.debug(\"Ignoring AC \" + cluster.getUserId() + \" LB \"\n\t\t\t// + cluster.getLoadBalancerName() + \" Status \"\n\t\t\t// + cluster.getLbStatus());\n\t\t\t// continue;\n\t\t\t// }\n\t\t\t// final long acid = cluster.getAccount().getId();\n\t\t\t// logger.debug(\"Gather AC \" + acid + \" Cluster \" +\n\t\t\t// cluster.getName());\n\t\t\t// final AccountBean acb = cluster.getAccount();\n\t\t\t// final AccountType ac = AccountUtil.toAccount(acb);\n\t\t\t//\n\t\t\t// final DimensionBean dim = CWUtil.getDimensionBean(s, acb.getId(),\n\t\t\t// \"CacheClusterId\", cluster.getName(), true);\n\t\t\t// final Set<DimensionBean> dims = new HashSet<DimensionBean>();\n\t\t\t// dims.add(dim);\n\t\t\t// BinLogDiskUsage Bytes\n\t\t\t// CPUUtilization Percent\n\t\t\t// DatabaseConnections Count\n\t\t\t// FreeableMemory Bytes\n\t\t\t// FreeStorageSpace Bytes\n\t\t\t// ReplicaLag Seconds\n\t\t\t// SwapUsage Bytes\n\t\t\t// ReadIOPS Count/Second\n\t\t\t// WriteIOPS Count/Second\n\t\t\t// ReadLatency Seconds\n\t\t\t// WriteLatency Seconds\n\t\t\t// ReadThroughput Bytes/Second\n\t\t\t// WriteThroughput Bytes/Second\n\n\t\t//}\n\t}",
"private void subscribeVariantData() {\n mProductDetailsViewModel.getVariants().observe(this, integerObjectHashMap -> {\n mUnitId = (String) integerObjectHashMap.get(ONE);\n mStoreId = (String) integerObjectHashMap.get(TWO);\n ArrayList<VariantsData> variantsData = (ArrayList<VariantsData>) integerObjectHashMap.get(\n THREE);\n mOffersListData = (PdpOfferData) integerObjectHashMap.get(FOUR);\n mAvailableCount = (Integer) integerObjectHashMap.get(FIVE);\n // mCartCount=(Integer)integerObjectHashMap.get(SIX);\n mAvailableCount = (Integer) integerObjectHashMap.get(FIVE);\n if (variantsData != null) {\n mVariantsData.clear();\n mVariantsData.addAll(variantsData);\n mPdpVariantsAdapter.notifyDataSetChanged();\n }\n });\n }",
"void dumpStats() {\n long wallTimeNanos = totalStopwatch.elapsed(TimeUnit.NANOSECONDS);\n long dbtime = 0;\n for (String name : methodCalls.keySet()) {\n long calls = methodCalls.get(name);\n long time = methodTotalTime.get(name);\n dbtime += time;\n long average = time / calls;\n double proportion = (time + 0.0) / (wallTimeNanos + 0.0);\n log.info(name + \" c:\" + calls + \" r:\" + time + \" a:\" + average + \" p:\" + String.format(\"%.2f\", proportion));\n }\n double dbproportion = (dbtime + 0.0) / (wallTimeNanos + 0.0);\n double hitrate = (hit + 0.0) / (hit + miss + 0.0);\n log.info(\"Cache size:\" + utxoCache.size() + \" hit:\" + hit + \" miss:\" + miss + \" rate:\"\n + String.format(\"%.2f\", hitrate));\n bloom.printStat();\n log.info(\"hasTxOut call:\" + hasCall + \" True:\" + hasTrue + \" False:\" + hasFalse);\n log.info(\"Wall:\" + totalStopwatch + \" percent:\" + String.format(\"%.2f\", dbproportion));\n String stats = db.getProperty(\"leveldb.stats\");\n System.out.println(stats);\n\n }",
"protected void showReservations() {\n storageDao.findAllRented()\n .forEach(System.out::println);\n }",
"private void collectCpuMemoryUsage(){\r\n\t\tHmDomain hmDomain = CacheMgmt.getInstance().getCacheDomainByName(\"home\");\r\n\t\tfloat cpuUsage = LinuxSystemInfoCollector.getInstance().getCpuInfo() * 100;\r\n\t\tfloat memoryUsage = 0;\r\n\t\ttry {\r\n\t\t\tlong count[] = LinuxSystemInfoCollector.getInstance().getMemInfo();\r\n\t\t\tif(count[0] != 0){\r\n\t\t\t\tmemoryUsage = ((float)(count[0] - count[1] - count[2] - count[3]) * 100 / count[0]);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tBeLogTools.error(HmLogConst.M_PERFORMANCE,\"calculate memory usage failure.\", e);\r\n\t\t}\r\n\t\tCpuMemoryUsage cmu = new CpuMemoryUsage();\r\n\t\tcmu.setCpuUsage(cpuUsage);\r\n\t\tcmu.setMemUsage(memoryUsage);\r\n\t\tcmu.setOwner(hmDomain);\r\n\t\tcmu.setTimeStamp((new Date()).getTime());\r\n\t\ttry {\r\n\t\t\tQueryUtil.createBo(cmu);\r\n\t\t} catch (Exception e) {\r\n\t\t\tBeLogTools.error(HmLogConst.M_PERFORMANCE,\"create CpuMemoryUsage failure.\", e);\r\n\t\t}\r\n\t}",
"@DOpt(type=DOpt.Type.DerivedAttributeUpdater)\n @AttrRef(value=\"reservations\")\n public void doReportQuery() throws NotPossibleException, DataSourceException {\n\n QRM qrm = QRM.getInstance();\n\n // create a query to look up Reservation from the data source\n // and then populate the output attribute (reservations) with the result\n DSMBasic dsm = qrm.getDsm();\n\n //TODO: to conserve memory cache the query and only change the query parameter value(s)\n Query q = QueryToolKit.createSearchQuery(dsm, Reservation.class,\n new String[]{Reservation.AttributeName_Status},\n new Expression.Op[]{Expression.Op.MATCH},\n new Object[]{status});\n\n Map<Oid, Reservation> result = qrm.getDom().retrieveObjects(Reservation.class, q);\n\n if (result != null) {\n // update the main output data\n reservations = result.values();\n\n // update other output (if any)\n numReservations = reservations.size();\n } else {\n // no data found: reset output\n resetOutput();\n }\n }",
"public PersistentStats getStats() {\n return _stats;\n }",
"@PlanBody\n public boolean body(){\n ICenterService ser = agent.getComponentFeature\n (IRequiredServicesFeature.class).searchService(ICenterService.class,RequiredServiceInfo.SCOPE_GLOBAL).get();\n\n ser.collectBallot(voter).addResultListener(new IResultListener<Boolean>() {\n @Override\n public void exceptionOccurred(Exception exception) {\n exception.printStackTrace();\n System.out.println(exception);\n }\n @Override\n public void resultAvailable(Boolean result) {\n System.out.println(voter.getId()+ \" submit result: \"+result);\n }\n });\n return true;\n }",
"@Override\n\tpublic void noOfTransactions() {\n\t\t\n\t}",
"Object[] getPendingTransactions(int count);",
"private void getTouchCount() {\n touchCountViewModel.getTouchCountPostData().observe(this, result -> {\n if (result != null) {\n if (result.status == Status.SUCCESS) {\n if (ItemFragment.this.getActivity() != null) {\n Utils.psLog(result.status.toString());\n }\n\n } else if (result.status == Status.ERROR) {\n if (ItemFragment.this.getActivity() != null) {\n Utils.psLog(result.status.toString());\n }\n }\n }\n });\n }",
"void getTvAttrib() {\n for (HDTV item : vendor) {\r\n System.out.println(\"Brand: \" + item.brandname + \" Size: \" + item.size);\r\n }\r\n\r\n }",
"public void getCosts() {\n\t}",
"private List<Number> setStatistics() {\n // the total waiting time for customers who have been served\n double totalWatingTime = 0;\n // the average waiting time for customers who have been served\n double aveWaitingTime = 0;\n // the number of customers served\n int numOfCusServed = 0;\n // the number of customers who left without being served\n int numOfCusLeft = 0;\n\n for (Event newEvent : this.eventsList) {\n // update number Of customer served\n if (newEvent instanceof ServeEvent) {\n numOfCusServed++;\n }\n // update the total waiting time\n if (newEvent instanceof WaitEvent) {\n double nextAvailableTime = newEvent.getCurrentServer().getNextAvailableTime().get();\n double customerArrivalTime = newEvent.getCustomer().getArrivalTime();\n double startTime = this.eventsList.stream()\n .filter(x -> (x instanceof ServeEvent)\n && (x.getCustomer().getId() == newEvent.getCustomer().getId()))\n .findFirst().get().getStartTime();\n double waitTime = startTime - customerArrivalTime;\n totalWatingTime += waitTime;\n }\n // update the number of customer left\n if (newEvent instanceof LeaveEvent) {\n numOfCusLeft++;\n }\n }\n\n // calculate the average waiting time\n if (numOfCusServed != 0) {\n aveWaitingTime = totalWatingTime / numOfCusServed;\n }\n\n return new ArrayList<>(Arrays.asList(aveWaitingTime, numOfCusServed, numOfCusLeft));\n }",
"public List<TransactionInfo> getAll() {\n return transactions;\n }",
"public CostInfo getCostInfo();",
"@Override\r\n\tpublic double showbalanceDao() {\n\t\t\r\n\t\treturn temp.getCustBal();\r\n\t}",
"@Override\r\n\tpublic void salaryAllocated() {\n\t\tSystem.out.println(\"Salary for manager 40000\");\r\n\t}",
"protected void storeCurrentValues() {\n }",
"public void logDeviceEnterpriseInfo() {\n Callback<OwnedState> callback = (result) -> {\n recordManagementHistograms(result);\n };\n\n getDeviceEnterpriseInfo(callback);\n }",
"public void getResults() {\n\t\tSystem.out.println(\"|V| : \" + g.getV());\n\t\tSystem.out.println(\"|E| : \" + g.getE());\n\t\tSystem.out.println(\"Max flow : \" + g.getVertex(sink).e);\n\t\tSystem.out.println(\"Run time : \" + (System.currentTimeMillis()-timeStart) + \" ms\"+\"\\n\");\n\t}",
"private void basketData() {\n basketViewModel.setBasketListObj(selectedShopId);\n basketViewModel.getAllBasketList().observe(this, resourse -> {\n if (resourse != null) {\n basketViewModel.basketCount = resourse.size();\n if (resourse.size() > 0) {\n setBasketMenuItemVisible(true);\n } else {\n setBasketMenuItemVisible(false);\n }\n }\n });\n }",
"private VoltTable[] getMemoryData(long interval, final long now) {\n ParameterSet parameters = new ParameterSet();\n parameters.setParameters((byte)interval, now);\n \n return this.executeOncePerSite(SysProcFragmentId.PF_nodeMemory,\n SysProcFragmentId.PF_nodeMemoryAggregator,\n parameters);\n }",
"List<String> getTransactionInfos() {\n\t\tList<String> result = new ArrayList<String>();\n\t\tfor (Transaction transaction : transactionLog.getTransactions()) {\n\t\t\tresult.add(transaction.toString());\n\t\t}\n\t\treturn result;\n\t}",
"public interface InstrumentedTransaction extends Transaction, UserDataStorage, DataSourceMember {\n\n /**\n * Returns a unique identifier for this transaction.\n */\n String getTransactionId();\n\n /**\n * Returns the metadata-aware ConnectionProvider that is being used for connections that resulted in this\n * transaction.\n */\n InstrumentedConnectionProvider getConnectionProvider();\n\n /**\n * Returns the timestamp when this transaction began, in nanoseconds since the Unix epoch. If this transaction\n * has not yet begun (from the perspective of the database server), then this method will return zero.\n */\n long getOpenedTimestampNanos();\n\n /**\n * Returns the duration in milliseconds that this transaction has been active. If the transaction object has been\n * created but the transaction has not yet begun, then this method will return <code>-1</code>.\n */\n long getDurationNanos();\n\n /**\n * Returns the Connection currently associated with this Transaction, if one has been leased already. If there is no\n * connection attached and connected, then this method will return <code>null</code> rather than forcing the\n * acquisition of one now.\n */\n InstrumentedConnection getConnection();\n\n /**\n * Attaches a single transaction listener instance to this transaction. Whenever this transaction performs any\n * operations, it will invoke callbacks on any attached listeners.\n */\n void addTransactionListener(TransactionListener listener);\n\n /**\n * Returns the optional user data object that may have been attached to this transaction.\n */\n Object getUserData();\n\n /**\n * Attaches a custom user data object to this transaction. This user data object will be removed automatically as\n * soon as the transaction is finished.\n */\n void setUserData(Object userData);\n}",
"private final void updateStatistics(){\r\n\t\tstatisticsText_.setLength(0); \t//reset\r\n\t\t\r\n\t\tRegion[][] regions = Map.getInstance().getRegions();\r\n\t\tVehicle[] vehicles;\r\n\t\tVehicle vehicle;\r\n\t\tint i, j, k;\r\n\t\tint activeVehicles = 0;\r\n\t\tint travelledVehicles = 0;\r\n\t\tint wifiVehicles = 0;\r\n\t\tlong messagesCreated = 0;\r\n\t\tlong IDsChanged = 0;\r\n\t\tdouble messageForwardFailed = 0;\r\n\t\tdouble travelDistance = 0;\r\n\t\tdouble travelTime = 0;\r\n\t\tdouble speed = 0;\r\n\t\tdouble knownVehicles = 0;\r\n\t\tfor(i = 0; i < regions.length; ++i){\r\n\t\t\tfor(j = 0; j < regions[i].length; ++j){\r\n\t\t\t\tvehicles = regions[i][j].getVehicleArray();\r\n\t\t\t\tfor(k = 0; k < vehicles.length; ++k){\r\n\t\t\t\t\tvehicle = vehicles[k];\r\n\t\t\t\t\tif(vehicle.getTotalTravelTime() > 0){\r\n\t\t\t\t\t\t++travelledVehicles;\r\n\t\t\t\t\t\ttravelDistance += vehicle.getTotalTravelDistance();\r\n\t\t\t\t\t\ttravelTime += vehicle.getTotalTravelTime();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(vehicle.isActive()){\r\n\t\t\t\t\t\t++activeVehicles;\r\n\t\t\t\t\t\tspeed += vehicle.getCurSpeed();\r\n\t\t\t\t\t\tif(vehicle.isWiFiEnabled()){\r\n\t\t\t\t\t\t\t++wifiVehicles;\r\n\t\t\t\t\t\t\tmessageForwardFailed += vehicle.getKnownMessages().getFailedForwardCount();\r\n\t\t\t\t\t\t\tknownVehicles += vehicle.getKnownVehiclesList().getSize();\r\n\t\t\t\t\t\t\tIDsChanged += vehicle.getIDsChanged();\r\n\t\t\t\t\t\t\tmessagesCreated += vehicle.getMessagesCreated();\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\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.currentTime\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(Renderer.getInstance().getTimePassed()));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.activeVehicles\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(activeVehicles));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageSpeed\")); //$NON-NLS-1$\r\n\t\tif(activeVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(speed/activeVehicles/100000*3600));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" km/h\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageTravelDistance\")); //$NON-NLS-1$\r\n\t\tif(travelledVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(travelDistance/travelledVehicles/100));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" m\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageTravelTime\")); //$NON-NLS-1$\r\n\t\tif(travelledVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(travelTime/travelledVehicles/1000));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" s\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.wifiVehicles\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(wifiVehicles));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageKnownVehicles\")); //$NON-NLS-1$\r\n\t\tif(wifiVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(knownVehicles/wifiVehicles));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.uniqueMessages\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(messagesCreated));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.failedMessages\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(messageForwardFailed));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.totalIDchanges\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(IDsChanged));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\t\r\n\t\tstatisticsTextArea_.setText(statisticsText_.toString());\r\n\t}",
"public static Transactions getTransactions() {\n return Transactions;\n }",
"@Override\n public void run() {\n final EMVData emvData1 = emvDataCache.get(transactionId);\n if (emvData1 != null) {\n emvDataCache.remove(transactionId);\n // get transaction from poynt service first\n try {\n getTransaction(transactionId, requestId, new IPoyntTransactionServiceListener.Stub() {\n @Override\n public void onResponse(final Transaction transaction, final String requestId, final PoyntError poyntError) throws RemoteException {\n // update in converge\n // let's create an AdjustTransactionRequest so we don't need to create multiple variations\n // of this method\n AdjustTransactionRequest adjustTransactionRequest = new AdjustTransactionRequest();\n adjustTransactionRequest.setEmvData(emvData1);\n\n final ElavonTransactionRequest request = convergeMapper.getTransactionUpdateRequest(\n transaction.getFundingSource().getEntryDetails(),\n transaction.getProcessorResponse().getRetrievalRefNum(),\n adjustTransactionRequest);\n convergeService.update(request, new ConvergeCallback<ElavonTransactionResponse>() {\n @Override\n public void onResponse(final ElavonTransactionResponse elavonResponse) {\n if (elavonResponse.isSuccess()) {\n Log.d(TAG, \"Successfully Captured EMV Data for: \" + transaction.getId());\n } else {\n Log.e(TAG, \"Failed to capture EMV Data for: \" + transaction.getId());\n }\n }\n\n @Override\n public void onFailure(final Throwable t) {\n Log.e(TAG, \"Failed to capture EMV Data for: \" + transaction.getId());\n }\n });\n }\n\n @Override\n public void onLoginRequired() throws RemoteException {\n Log.e(TAG, \"Failed to get transaction:\" + transactionId);\n }\n\n @Override\n public void onLaunchActivity(final Intent intent, final String s) throws RemoteException {\n Log.e(TAG, \"Failed to get transaction:\" + transactionId);\n }\n });\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n } else {\n Log.d(TAG, \"EMVData already captured for :\" + transactionId);\n }\n }",
"private void results() {\n\t\t// when the election is not closed,\n\t\ttry{\n\t\t\tMap<String,Integer> results = election.getResultsFromPolls();\n\t\t\t// when the election is closed,\n\n\t\t\tCollection<Integer> values = results.values();\n\t\t\tint totalVotes = 0;\n\n\t\t\tfor(Integer i:values){\n\t\t\t\ttotalVotes += i;\n\t\t\t}\n\t\t\tSystem.out.println(\"Current election results for all polling places.\");\n\t\t\tSystem.out.println(\"NAME PARTY VOTES %\");\n\t\t\tprintResultsHelper(results,totalVotes);\n\n\t\t}catch(UnsupportedOperationException uoe){\n\t\t\tSystem.out.println(\"The election is still open for votes.\");\n\t\t\tSystem.out.println(\"You must close the election before viewing results.\");\n\t\t}\n\t}",
"@java.lang.Override\n public int getTransactionsCount() {\n return transactions_.size();\n }",
"protected void onGetTankCapacity(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}",
"protected void getChargeInfo() {\n\t\tString c = extractNodeInfo(chargeCurNodePath);\n\t\tString v = extractNodeInfo(charegeVolNodepath);\n\t\tif(c != null && v != null ) {\n\t\t\tresult[2] = c;\n\t\t\tresult[3] = v;\n\t\t\tflag[1] = true;\n\t\t} else {\n\t\t\tflag[1] = false;\n\t\t}\n\t}",
"public void printInfo(){\n\t\tSystem.out.println(\"id : \" + id + \" label : \" + label);\n\t\tSystem.out.println(\"vms : \" );\n\t\tfor(VirtualMachine v : vms){\n\t\t\tv.printInfo();\n\t\t}\n\t}",
"public void trackAcquisition() {\n track(\"_acquisition\");\n }",
"@Override\n public int getCurrentRecordsProcessed() {\n return 0;\n }",
"public Double getTotalAvailable(){\n return totalAvailable;\n }",
"public Transaction(){\n\t\t\n\t\ttransactions = new HashMap<String, ArrayList<Products>>();\n\t}",
"public interface VirtualUsersMeasurement {\n\n\t/**\n\t * Measurement name.\n\t */\n\tString MEASUREMENT_NAME = \"virtualUsers\";\n\n\t/**\n\t * Tags.\n\t * \n\t * @author Alexander Wert\n\t */\n\tinterface Tags {\n\t\t/**\n\t\t * Node name field\n\t\t */\n\t\tString NODE_NAME = \"nodeName\";\n\n\t\tString TEST_NAME = \"testName\";\n\n\t\tString RUN_ID = \"runId\";\n\t}\n\n\t/**\n\t * Fields.\n\t * \n\t * @author Alexander Wert\n\t */\n\tinterface Fields {\n\t\t/**\n\t\t * Minimum active threads field.\n\t\t */\n\t\tString MIN_ACTIVE_THREADS = \"minActiveThreads\";\n\n\t\t/**\n\t\t * Maximum active threads field.\n\t\t */\n\t\tString MAX_ACTIVE_THREADS = \"maxActiveThreads\";\n\n\t\t/**\n\t\t * Mean active threads field.\n\t\t */\n\t\tString MEAN_ACTIVE_THREADS = \"meanActiveThreads\";\n\n\t\t/**\n\t\t * Started threads field.\n\t\t */\n\t\tString STARTED_THREADS = \"startedThreads\";\n\n\t\t/**\n\t\t * Finished threads field.\n\t\t */\n\t\tString FINISHED_THREADS = \"finishedThreads\";\n\t}\n}",
"private void printAllTransactions(){\n Set<Transaction> transactions = ctrl.getAllTransactions();\n transactions.stream().forEach(System.out::println);\n }",
"@Override\n\tpublic void execute() {\n\t\tSystem.out.println(\"==STATISTICS FOR THE RESTAURANT==\");\n\t\tSystem.out.println(\"Most used Ingredients:\");\n\t\tmanager.printIngredients();\n\t\tSystem.out.println(\"Most ordered items:\");\n\t\tmanager.printMenuItems();\n\t\tSystem.out.println(\"==END STATISTICS==\");\n\t}",
"public CommonStatistics() {\n totalSubmissions = 0;\n lateSubmissions = 0;\n normalSubmissions = 0;\n approvedItems = 0;\n rejectedItems = 0;\n totalPendingItems = 0;\n arrearsPendingItems = 0;\n thisMonthPendingItems = 0;\n deletedItems = 0;\n confirmationPrintedItems = 0;\n confirmationApprovalPendingItems = 0;\n confirmationApprovedItems = 0;\n }",
"public void reportQuantity() {\n\t\tlogger.debug(\"*** Product quantity report ***\");\n\t\tfor(String prodName: entities.keySet()) {\n\t\t\tProduct prod = (Product)entities.get(prodName);\n\t\t\tlogger.debug(String.format(\"Product: %-3s, quantity: %-5d\", prod.getName(), prod.getQuantity()));\t\t\t\n\t\t}\n\t\tlogger.debug(\"*** *** ***\");\n\t}",
"public void printAnalysis(){\n System.out.println(\"Product: \" + this.getName());\n System.out.println(\"History: \" + this.history());\n System.out.println(\"Largest amount of product: \" + this.inventoryHistory.maxValue());\n System.out.println(\"Smallest amount of product: \" + this.inventoryHistory.minValue());\n System.out.println(\"Average: \" + this.inventoryHistory.average());\n }",
"public void printTransactions() {\n for (int i = 0; i < transactions.size(); i++) {\n\t\t\tint indeks = i+1;\n\t\t\tSystem.out.println(\"Transactions \" + indeks + \": \" + transactions.get(i).getType() + \" \" + transactions.get(i).getAmount());\n\t\t}\n }",
"org.auvua.utils.protobuffer.AUVprotocol.AUVState.Telemetry getTelemetry();",
"public List<Integer> getAccessedTransaction() {\n return new ArrayList<Integer>(_accessedTransactions);\n }",
"private TSDBData getBillingModel(HashMap<String, ArrayList<String>> clientInstanceMap, InfluxDBClient dbClient) {\n logger.trace(\"BEGIN TSDBData sumUsage(HashMap<String, ArrayList<String>> clientInstanceMap, InfluxDBClient dbClient)\");\n ArrayList<TSDBData> UDRs = new ArrayList<TSDBData>();\n Iterator it = clientInstanceMap.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry pair = (Map.Entry) it.next();\n String clientId = pair.getKey().toString();\n ArrayList<String> instances = (ArrayList<String>) pair.getValue();\n for (String instance : instances) {\n //System.out.println(\"instanceid = \" + instance);\n //System.out.println(\"clientid = \" + clientId);\n String queryString = \"SELECT sum(usage) FROM UDR WHERE clientId='\" +\n clientId + \"' AND instanceId='\" + instance +\n \"' GROUP BY clientID,instanceID\";\n logger.trace(\"DATA TSDBData sumUsage(...): query=\" + queryString);\n // TSDBData[] lastEvent = dbClient.query(queryString);\n //sends the event to array\n //lastEvents.add(lastEvent[0]);\n }\n System.out.println(pair.getKey() + \" = \" + pair.getValue());\n it.remove(); // avoids a ConcurrentModificationException\n }\n logger.trace(\"END ArrayList<TSDBData> captureLastEvents(HashMap<String, ArrayList<String>> clientInstanceMap, InfluxDBClient dbClient)\");\n return UDRs.get(0);\n }",
"public Vector<Information> getInformation() {\n\t\t\tVector<Information> v = new Vector<Information>();\n\t\t\ttry {\n\t\t\t\tStatement stmt = conn.createStatement();\n\t\t\t\tResultSet rs = stmt\n\t\t\t\t\t\t.executeQuery(\"\");\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tint file_num = rs.getInt(1);\n\t\t\t\t\tString name = rs.getString(2);\n\t\t\t\t\tString reg = rs.getString(3);\n\t\t\t\t\tString make = rs.getString(4);\n\t\t\t\t\tString model = rs.getString(5);\n\t\t\t\t\tint drive = rs.getInt(6);\n\t\t\t\t\tboolean isAllocated = rs.getBoolean(7);\n\t\t\t\t\tInformation info = new Information(file_num, name, reg, make, model, drive, isAllocated);\n//\t\t\t\t\tCars cars = new Truck(reg, model, drive);\n\t\t\t\t\tv.add(info);\n\t\t\t\t}\n\t\t\t}\n\t\tcatch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn v;\n\t}",
"public String store() {\n\t\tloadAgent();\n\t\tResultMonitorFactoryInterface factory = myAgent\n\t\t\t\t.getResultMonitorFactory();\n\t\treturn factory.store(this);\n\t}",
"public String getLogisticsCost() {\n return logisticsCost;\n }",
"@Override\n\tpublic Map<Tag, Double> report() {\n\t\tMap<Tag,Double> result = new HashMap<>();\n\t\tbudget.getTags().stream()\n\t\t\t\t.forEach(t->result.put(t,ledger.getSingleTag(t.getID()).getTotalAmount()-budget.getExpected(t)));\n\t\treturn result;\n\t}",
"public VendingMachine(){\n\n inventory = new ArrayList<>();\n balance = new Coin();\n vending_balance = 0;\n validPurchase = false;\n }",
"public Double getTransaction() {\r\n return transaction;\r\n }",
"public long countAllReserveTransactions() throws MiddlewareQueryException;",
"@Override\n\tpublic List<VisitorDetails> findAllData() {\n\t\treturn repo.findAll();\n\t}",
"public interface IndexTransaction\n{\n\tpublic static final int STATUS_ACTIVE = 0;\n\n\tpublic static final int STATUS_COMMITTED = 3;\n\n\tpublic static final int STATUS_COMMITTING = 8;\n\n\tpublic static final int STATUS_MARKED_ROLLBACK = 1;\n\n\tpublic static final int STATUS_NO_TRANSACTION = 6;\n\n\tpublic static final int STATUS_PREPARED = 2;\n\n\tpublic static final int STATUS_PREPARING = 7;\n\n\tpublic static final int STATUS_ROLLEDBACK = 4;\n\n\tpublic static final int STATUS_ROLLING_BACK = 9;\n\n\tpublic static final int STATUS_UNKNOWN = 5;\n\n\tpublic static final String[] TRANSACTION_STATUS = { \"Created\", \"Marked for Rollback\",\n\t\t\t\"Prepared\", \"Committed\", \"Rolled Back\", \"Unknown\", \"No Transaction\",\n\t\t\t\"Preparing\", \"Committing\", \"Rolling Back\" };\n\n\tpublic static final boolean[] TRANSACTION_ACTIVE = { true, false, true, false, false,\n\t\t\tfalse, false, true, false, false };\n\n\t/**\n\t * Prepare to commit this transaction, all the work is done, but all the\n\t * listeners need to be ready and able to performa commit without failure\n\t */\n\tvoid prepare() throws IndexTransactionException;\n\n\t/**\n\t * Commit the transaction and make it available to others in the cluster\n\t * \n\t * @throws IndexTransactionException\n\t */\n\tvoid commit() throws IndexTransactionException;\n\n\t/**\n\t * @throws IndexTransactionException\n\t * if the transaction is not open\n\t */\n\tvoid rollback() throws IndexTransactionException;\n\n\t/**\n\t * @return\n\t */\n\tlong getTransactionId();\n\n\t/**\n\t * @throws IndexTransactionException\n\t */\n\tvoid close() throws IndexTransactionException;\n\n\t/**\n\t * get the transaction status\n\t * \n\t * @return\n\t */\n\tint getStatus();\n\n\t/**\n\t * get an Object from the transaction, that may have been placed in the\n\t * transaction by earlier phases.\n\t * \n\t * @param key\n\t * @return\n\t */\n\tObject get(String key);\n\n\t/**\n\t * Clear an object placed in the transaction\n\t * \n\t * @param key\n\t */\n\tvoid clear(String key);\n\n\t/**\n\t * Put an object into the transaction for use in later phases\n\t * \n\t * @param key\n\t * @param obj\n\t */\n\tvoid put(String key, Object obj);\n\n\t/**\n\t * @throws IndexTransactionException\n\t */\n\tvoid open() throws IndexTransactionException;\n\n}",
"public VatDetail[] getRetailExportVatSummaries() {\n POSLineItem[] items = compositePOSTransaction.getLineItemsArray();\n HashMap vatDetails = new HashMap();\n for (int idx = 0; idx < items.length; idx++) {\n //if(!((CMSItem)items[idx].getItem()).isConcessionItem() && !((CMSItem)items[idx].getItem()).getVatCode().equals(\"0\"))\n if (((CMSItem)items[idx].getItem()).getVatRate() != null\n && ((CMSItem)items[idx].getItem()).getVatRate().doubleValue() > 0) {\n int signMult = 1;\n if (items[idx] instanceof ReturnLineItem)\n signMult = -1;\n double rate = items[idx].getItem().getVatRate().doubleValue();\n if (vatDetails.get(((CMSItem)items[idx].getItem()).getVatRate()) == null) {\n VatDetail detail = new VatDetail(items[idx].getExtendedNetAmount().multiply(signMult)\n , items[idx].getExtendedVatAmount().multiply(signMult), rate\n , items[idx].getNetAmount().multiply(rate / (1 + rate)).multiply(signMult).round().\n multiply(items[idx].getQuantity().intValue()), items[idx].getQuantity().intValue());\n // to do: need a new vat service at item level rather than calcing right here, vatAmount = lineItemDetail.getNetAmount().multiply((1.0 - creditCardRatio * CREDIT_CARD_CHARGE_RATE) * rate / (1.0 + rate));\n vatDetails.put(items[idx].getItem().getVatRate(), detail);\n } else {\n VatDetail detail = (VatDetail)vatDetails.get(((CMSItem)items[idx].getItem()).getVatRate());\n detail.addCompositeAmount(items[idx].getExtendedNetAmount().multiply(signMult));\n detail.addVatAmount(items[idx].getExtendedVatAmount().multiply(signMult));\n detail.addOriginalVatAmount(items[idx].getNetAmount().multiply(rate / (1 + rate)).\n multiply(signMult).round().multiply(items[idx].getQuantity().intValue()));\n detail.addItemQty(items[idx].getQuantity().intValue());\n }\n }\n }\n return (VatDetail[])vatDetails.values().toArray(new VatDetail[0]);\n }",
"public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }",
"@Override\n public void startTx() {\n \n }",
"private static void JVMInfo() {\n System.out.println(\"Available processors (cores): \" +\n Runtime.getRuntime().availableProcessors());\n\n /* Total amount of free memory available to the JVM */\n System.out.println(\"Free memory (bytes): \" +\n Runtime.getRuntime().freeMemory());\n\n /* This will return Long.MAX_VALUE if there is no preset limit */\n long maxMemory = Runtime.getRuntime().maxMemory();\n /* Maximum amount of memory the JVM will attempt to use */\n System.out.println(\"Maximum memory (bytes): \" +\n (maxMemory == Long.MAX_VALUE ? \"no limit\" : maxMemory));\n\n /* Total memory currently in use by the JVM */\n System.out.println(\"Total memory (bytes): \" +\n Runtime.getRuntime().totalMemory());\n\n }",
"private void updateStatsSCE(Customer currentCustomer){\n\t\tupdateQueueSize();\n\n\t\t/*\n\t\t * @TODO Step 4.2 - set the currentCustomer.serviceEndTime\n\t\t * Hint: use this.getSimTime() to get the current Time\n\t\t */\n\t}",
"@Transactional\n public CommRes genVchProcess(CommReq commReq) {\n TradeAccountFactorBO tradeAccountFactorBO = new TradeAccountFactorBO();\n AccountMainMode accountMainMode = new AccountMainMode();\n accountMainMode.setFactors(tradeAccountFactorBO.getFactors());\n accountMainMode.setTrcode(tradeAccountFactorBO.getTrcode());\n\n\n AccountEvent accountEvent = new AccountEvent(accountMainMode, apolloConfig, selectAccModelProcess, genVchpRrocess);\n bossWorkerStatar.task.add(accountEvent);\n// ListenableFuture<List<AccountMainMode>> listListenableFuture = Futures.successfulAsList(accountEvent);\n CommRes commRes = new CommRes();\n commRes.setVchNo(accountMainMode.getVchBOS().get(0).getVchNo());\n commRes.setAcDate(accountMainMode.getVchBOS().get(0).getAcDate());\n return commRes;\n\n }",
"public void storeStats() throws Exception {\n logger.info(\"[WORKER-MONITOR] - Start store stats into file. TopologyId: \" + topologyId);\n\n logger.debug(\"------------------WORKER MONITOR SNAPSHOT START------------------\");\n logger.debug(\"Current InterNode Traffic is: \" + DataManager.getInstance().getCurrentInterNodeTraffic());\n logger.debug(\"This Topology current total load is: \" + DataManager.getInstance().getTotalLoad(topologyId));\n // 2018-07-23 add for simple logs\n /*\n if (taskMonitorList.size() != 0) {\n FileUtils.writeToFile(trafficFilename, taskMonitorList.get(0).getTaskId() + \" : \" + DataManager.getInstance().getCurrentInterNodeTraffic());\n }\n */\n FileUtils.writeToFile(Constants.TRAFFIC_DATA_FILE, taskMonitorList.get(0).getTaskId() + \" : \" + DataManager.getInstance().getCurrentInterNodeTraffic());\n\n // Output the threadToTaskMap\n logger.debug(\"Threads to Tasks association is: \");\n for (long threadId : threadToTaskMap.keySet()) {\n logger.debug(\" - \" + threadId + \": \" + threadToTaskMap.get(threadId));\n }\n\n logger.debug(\"Inter-Task Traffic Stats (tuples sent per time slot): \");\n for (TaskPair pair : trafficStats.keySet()) {\n logger.debug(\" - \" + pair.getSourceTaskId() + \" -> \" + pair.getDestinationTaskId() + \": \" + getTraffic(pair) + \" tuple/s [\" + Utils.collectionToString(trafficStats.get(pair)) + \"]\");\n // invoke DataManager function to store Traffic info. 2018-05-08\n DataManager.getInstance().storeTraffic(topologyId, pair.getSourceTaskId(), pair.getDestinationTaskId(), getTraffic(pair));\n }\n\n logger.debug(\"Load stats (CPU cycles consumed per time slot): \");\n long totalCPUCyclesPerSecond = 0;\n for (long threadId : loadStats.keySet()) {\n List<Long> threadLoadInfo = loadStats.get(threadId);\n totalCPUCyclesPerSecond += threadLoadInfo.get(threadLoadInfo.size() - 1) / timeWindowLength;\n logger.debug(\" - thread \" + threadId + \": \" + getLoad(threadId) + \" cycle/s [\" + Utils.collectionToString(threadLoadInfo) + \"]\");\n\n Executor executor = threadToTaskMap.get(threadId);\n // invoke DataMananger to store load info. 2018-05-08\n DataManager.getInstance().storeCpuLoad(topologyId, executor.getBeginTask(), executor.getEndTask(), getLoad(threadId));\n\n }\n long totalCPUCyclesAvailable = CPUInfo.getInstance().getTotalSpeed();\n double usage = ((double) totalCPUCyclesPerSecond / totalCPUCyclesAvailable) * 100; // int -> double\n logger.debug(\"Total CPU cycles consumed per second: \" + totalCPUCyclesPerSecond + \", Total available: \" + totalCPUCyclesAvailable + \", Usage: \" + usage + \"%\");\n\n // add from yitian 2018-04-29\n logger.debug(\"Output the TaskMonitorList: \");\n for (TaskMonitor monitor : taskMonitorList) {\n logger.debug(\"- ProcessId: \" + monitor.getProcessId() + \" -> threadId: \" + monitor.getThreadId() + \" -> taskId: \" + monitor.getTaskId());\n }\n\n // 2018-09-27 add load usage of each host(worker node)\n /*\n Map<String, String> hostCpuUsageList = DataManager.getInstance().getCpuUsageOfHost();\n for (String hostname : hostCpuUsageList.keySet()) {\n FileUtils.writeToFile(cpuUsageFilename, hostname + \" : \" + hostCpuUsageList.get(hostname));\n }\n */\n logger.debug(\"------------------WORKER MONITOR SNAPSHOT END------------------\");\n }",
"public interface StatisticsProvider {\n /**\n * Get total sum of transaction value for the time period.\n *\n * @return total sum of transaction value for the time period\n */\n double getSum();\n\n /**\n * Get the highest transaction value in the time period.\n *\n * @return the highest transaction value in the time period\n */\n double getMax();\n\n /**\n * Get the lowest transaction value in the time period.\n *\n * @return the lowest transaction value in the time period\n */\n double getMin();\n\n /**\n * Get total number of transactions happened in the time period.\n *\n * @return total number of transactions happened in the time period\n */\n long getCount();\n}",
"public interface MemoryInstrumentation {\n\n\n /**\n * Returns an <i>estimate</i> of the total bytes of memory that has been allocated by this instance. The return value is equal to the sum\n * of the values returned by {@link #memoryUsed()} and {@link #memoryUnused()}.\n * <p>\n * This value must be estimated because actual memory consumed is different for different CPU architectures and Java runtime implementations,\n * and possibly even on flags used to invoke the runtime.\n *\n * @return the estimated bytes of memory allocated by this instance\n */\n long memoryAllocated();\n\n\n /**\n * Returns an <i>estimate</i> of the total bytes of memory actually in use by this instance.\n * <p>\n * This value must be estimated because actual memory consumed is different for different CPU architectures and Java runtime implementations,\n * and possibly even on flags used to invoke the runtime.\n *\n * @return the estimated bytes of memory actually in use by this instance\n */\n long memoryUsed();\n\n\n /**\n * Returns an <i>estimate</i> of the total bytes of memory allocated, but not actually in use by this instance.\n * <p>\n * This value must be estimated because actual memory consumed is different for different CPU architectures and Java runtime implementations,\n * and possibly even on flags used to invoke the runtime.\n *\n * @return the estimated bytes of memory allocated but not in use by this instance\n */\n long memoryUnused();\n}",
"public void inventory() {\n\t\tList<Item> items = super.getItems();\n\n\t\tString retStr = \"Items: \";\n\t\tItem item;\n\t\tfor (int i = 0; i < items.size(); i++) {\n\t\t\titem = items.get(i);\n\t\t\tretStr += item.toString();\n\t\t\tif (i != items.size()-1)\n \t{\n\t\t\t\tretStr += \", \";\n \t}\n\t\t}\n\t\tretStr += \"\\nCapacity: \" + this.currentCapacity() + \"/\" + this.maxCapacity;\n\t\tSystem.out.println(retStr);\n\t}",
"public void info() {\n\t\tstate.info();\n\t}",
"@Override\n\tpublic boolean getReserveResults() {\n\t\treturn model.getReserveResults();\n\t}",
"ResourceUsage getMemoryInfoByDate(Long date) {\n return daoInterface.getMemoryInfoByDate(date);\n\n }",
"@Override\n\tpublic void scan(Transaction tx) {\n\n\t}",
"Transaction getCurrentTransaction();",
"public void status() {\n System.out.println(\"Nome: \" + this.getNome());\n System.out.println(\"Data de Nascimento: \" + this.getDataNasc());\n System.out.println(\"Peso: \" + this.getPeso());\n System.out.println(\"Altura: \" + this.getAltura());\n }",
"List<ResourceUsage> getLast30DaysMemoryInfo() {\n return daoInterface.getLast30DaysMemoryInfo();\n\n }",
"public void computeItemStats()\n\t{\n\t\tfor(Entry<String,Item> item: urgotItems.getItems().entrySet())\n\t\t{\n\t\t\t// Add every item stat value.\n\t\t\titem.getValue().addItemStats(urgot);\n\t\t}\n\t\t\n\t\tfor(Entry<String,Item> item: urgotItems.getItems().entrySet())\n\t\t{\n\t\t\t// Add passives after all stats have been added.\n\t\t\titem.getValue().applyPassive(urgot);\n\t\t}\n\t}",
"public interface Transaction {\n void startPurchase();\n void addTicket(int age, boolean isStudent);\n double finishPurchase();\n\n}",
"public Bag getStats(){\n\treturn stats;\n }",
"private void logCacheStatus() {\n if (!LOGGER.canLogAtLevel(LogLevel.VERBOSE)) {\n return;\n }\n\n final int size = cache.size();\n final int length = cache.getTotalLength();\n\n LOGGER.atVerbose()\n .addKeyValue(SIZE_KEY, size)\n .addKeyValue(TOTAL_LENGTH_KEY, length)\n .log(\"Cache entry added or updated. Total number of entries: {}; Total schema length: {}\",\n size, length);\n }"
]
| [
"0.5977158",
"0.5621389",
"0.5611818",
"0.5426879",
"0.5320323",
"0.5279283",
"0.52680254",
"0.52382857",
"0.5230239",
"0.5189296",
"0.51712644",
"0.517035",
"0.50738686",
"0.5070415",
"0.5069446",
"0.50520885",
"0.5034907",
"0.5007671",
"0.49975687",
"0.4996916",
"0.4995616",
"0.49924776",
"0.49832612",
"0.49732235",
"0.49650156",
"0.49553776",
"0.49529177",
"0.4927716",
"0.49202222",
"0.49101254",
"0.48998737",
"0.489499",
"0.4891762",
"0.4884916",
"0.48835954",
"0.4882147",
"0.48595375",
"0.48586982",
"0.4856637",
"0.48383075",
"0.48346186",
"0.48255798",
"0.48199692",
"0.481336",
"0.48109856",
"0.48100922",
"0.48027605",
"0.48009306",
"0.47962335",
"0.47952363",
"0.47945774",
"0.47943148",
"0.47872582",
"0.47669056",
"0.47658285",
"0.47591493",
"0.47577718",
"0.47550234",
"0.47501752",
"0.47492287",
"0.4743816",
"0.47415805",
"0.4734476",
"0.4727281",
"0.47268176",
"0.47263744",
"0.4725026",
"0.47243384",
"0.47238284",
"0.47216004",
"0.47206563",
"0.47188577",
"0.47186774",
"0.4718436",
"0.4715936",
"0.46992838",
"0.46930578",
"0.46880144",
"0.4682721",
"0.46800244",
"0.4677934",
"0.46732584",
"0.46720177",
"0.4667285",
"0.46672022",
"0.4662943",
"0.46589616",
"0.46577948",
"0.46542147",
"0.4653656",
"0.46440437",
"0.46426392",
"0.464146",
"0.46400887",
"0.4639632",
"0.4638669",
"0.46381426",
"0.46350116",
"0.46287",
"0.4624074",
"0.462406"
]
| 0.0 | -1 |
Getter del controlador de la vista. | public ControllerRegister getCr() {
return cr;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ConsultoresView getVista() {\n\t\treturn vista;\n\t}",
"public Controleur getControleur() {\n\t\treturn controleur;\n\t}",
"public NominaControlador getNominaControlador() {\n return nomina;\n }",
"public static CtrlObras getInstancia() {\r\n return unicaInstancia;\r\n }",
"public ObjetoVida getObjeto(){\r\n\t\treturn objeto;\r\n\t}",
"public Punto getCentro() {\r\n\treturn centro;\r\n}",
"public Ejercicio getEjercicio()\r\n/* 145: */ {\r\n/* 146:183 */ return this.ejercicio;\r\n/* 147: */ }",
"public int getConto() {\n return (Integer)this.getCampo(nomeConto).getValore();\n }",
"private ContenidoVideo getContenido() {\n\t\tif (rdbtnPelicula.isSelected() == true) {\n\t\t\treturn ContenidoVideo.PELICULA;\n\t\t} else if (rdbtnSerie.isSelected() == true) {\n\t\t\treturn ContenidoVideo.SERIE;\n\t\t} else\n\t\t\treturn ContenidoVideo.CORTO;\n\t}",
"public static int getContador() {\r\n\t\treturn contador;\r\n\t}",
"public int getCiclo() { return this.ciclo; }",
"public String getEtiqueta()\n/* 27: */ {\n/* 28:41 */ return this.etiqueta;\n/* 29: */ }",
"public CuentaContable getCuentaContable()\r\n/* 299: */ {\r\n/* 300:367 */ return this.cuentaContable;\r\n/* 301: */ }",
"public int getcontador(){\nreturn contador;}",
"public int getTipoAtaque(){return tipoAtaque;}",
"public ContaCorrente getContaCorrente() {\r\n return contaCorrente;\r\n }",
"public TipoComponenteController() {\r\n\t\ttipoComponenteVOs = ((TipoComponenteDTO)this.read()).getTipoComponenteVOs();\r\n\t}",
"@Override\n\tpublic String getObjetivo() {\n\t\treturn model.getObjetivo();\n\t}",
"public String getNivel()\r\n/* 249: */ {\r\n/* 250:278 */ return this.nivel;\r\n/* 251: */ }",
"@Override\n public String getModu() {\n return null;\n }",
"protected T getManusia(){\r\n return Manusia;\r\n }",
"public CuentaContable getCuentaContable()\r\n/* 78: */ {\r\n/* 79: 99 */ return this.cuentaContable;\r\n/* 80: */ }",
"public int getTransportista(){\n return this.transportista;\n }",
"public Parent getVista() {\n\t\treturn null;\n\t}",
"public java.lang.String getCodigo(){\n return localCodigo;\n }",
"public CuentaContable getCuentaContableCierre()\r\n/* 98: */ {\r\n/* 99:115 */ return this.cuentaContableCierre;\r\n/* 100: */ }",
"public int getTipoDocumento();",
"public Cliente getCliente() {\n return objCliente;\n }",
"public int getMotorista() {\n\t\treturn motorista;\n\t}",
"public String getTipo(){\r\n return Tipo;\r\n }",
"public ComponenteCosto getComponenteCosto()\r\n/* 68: */ {\r\n/* 69: 91 */ return this.componenteCosto;\r\n/* 70: */ }",
"public int getCodigo() {\r\n return Codigo;\r\n }",
"public String getAutorizacion()\r\n/* 134: */ {\r\n/* 135:226 */ return this.autorizacion;\r\n/* 136: */ }",
"public int getCodigo_producto() {\n return codigo_producto;\n }",
"@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}",
"public java.lang.String getObservacion(){\n return localObservacion;\n }",
"public abstract String getNomClasse();",
"public String getFicheiro()\r\n {\r\n return ficheiro;\r\n }",
"public ServicioDimensionContable getServicioDimensionContable()\r\n/* 255: */ {\r\n/* 256:318 */ return this.servicioDimensionContable;\r\n/* 257: */ }",
"public ControladorCoche() {\n\t}",
"Objet getObjetAlloue();",
"public String getCognome() {\r\n return cognome;\r\n }",
"public String getNombreLibro()\n {\n return nombre;\n }",
"String getEtiqueta();",
"public grupobbva.pe.com.EnlaceBBVA.Cabecera getCabecera() {\r\n return cabecera;\r\n }",
"public PanelInicio getInicio(){\n return inicio;\n }",
"public static Consola getConsola()\n\t{\n\t\tif( ConsolaTeclado.consola == null )\n\t\t\tConsolaTeclado.consola = new ConsolaTeclado();\n\t\t\n\t\treturn ConsolaTeclado.consola;\n\t}",
"@Override\n public String getNombre(){\n \n return nombreServicio;\n }",
"public int getcontador2(){\nreturn contador2;}",
"public int getId_servico() {\n return id_servico;\n }",
"public String getnome()\n {\n return this.nome;\n }",
"public String getClasse() {\n\t\treturn classe;\n\t}",
"public String tipoConta() {\n return \"Conta Comum\";\n }",
"public String getTitulo()\r\n {\r\n return titulo;\r\n }",
"public ValoresCalculo getValorCalculo()\r\n/* 88: */ {\r\n/* 89:107 */ return this.valorCalculo;\r\n/* 90: */ }",
"public CtrlFuncionario getCtrlF() {\r\n return this.ctrlFuncionario;\r\n }",
"public String getNome () { return this.nome; }",
"public String getTipo();",
"public String getTipo();",
"public int getCodigo() {\n return codigo;\n }",
"public int getCodigo() {\n return codigo;\n }",
"public int getCodigo() {\n return codigo;\n }",
"public int getCodigo() {\n return codigo;\n }",
"public int getCaixa() {\n\t\treturn controlador.getCaixa();\n\t}",
"public java.lang.String getOrigen(){\n return localOrigen;\n }",
"String getEmpresa() {\n return empresa; //To change body of generated methods, choose Tools | Templates.\n }",
"String getTitulo();",
"public List<Ejercicio> getListaEjercicio()\r\n/* 155: */ {\r\n/* 156:202 */ if (this.listaEjercicio == null) {\r\n/* 157:203 */ this.listaEjercicio = this.servicioEjercicio.obtenerListaCombo(\"nombre\", true, null);\r\n/* 158: */ }\r\n/* 159:205 */ return this.listaEjercicio;\r\n/* 160: */ }",
"public String getObservacion() {\n return observacion.get();\n }",
"public ServicioDimensionContable getServicioDimensionContableBean()\r\n/* 186: */ {\r\n/* 187:226 */ return this.servicioDimensionContable;\r\n/* 188: */ }",
"public int getID_Modelo() {\n return ID_Modelo;\n }",
"public String getNome(){\r\n return this.nome;\r\n }",
"public Modello getModello() {\r\n\t\treturn mod;\r\n\t}",
"public String getComentario () {\n return comentario;\n }",
"public String getNombreCliente() {;\n return( nombreCliente );\n }",
"public String getNombre()\r\n/* 17: */ {\r\n/* 18:41 */ return this.nombre;\r\n/* 19: */ }",
"public Carro getCarro() {\n return carro;\n }",
"public String getnombre(){\n return nombre;\n }",
"public String getInicio() {\n return inicio;\n }",
"public int getTipo() {\r\n return tipo;\r\n }",
"private ControleurAcceuil(){ }",
"public int getTipo() {\n return tipo;\n }",
"Documento getDocumento();",
"public String getNome(){\n return this.nome;\n }",
"public Genero getGenero()\r\n/* 143: */ {\r\n/* 144:261 */ return this.genero;\r\n/* 145: */ }",
"public String getEstablecimiento()\r\n/* 114: */ {\r\n/* 115:188 */ return this.establecimiento;\r\n/* 116: */ }",
"public String getModelo() {\n return Modelo;\n }",
"public String getModelo() {\n return Modelo;\n }",
"public String getNom();",
"public Mes getMesSeleccionado()\r\n/* 172: */ {\r\n/* 173:217 */ return this.mesSeleccionado;\r\n/* 174: */ }",
"public String getMenuno() {\r\n return menuno;\r\n }",
"public CajaGUI getCaja() {\n return caja;\n }",
"@Override\n public C get() {\n return content;\n }",
"public CtrlTelas getCtrlTelas() {\r\n return this.ctrlTelas;\r\n }",
"public biz.belcorp.www.canonico.ffvv.vender.TMotivoRechazo getMotivoRechazo(){\n return localMotivoRechazo;\n }",
"public CtrlAcesso getCtrlA() {\r\n return this.ctrlAcesso;\r\n }",
"public Vertice GetExtremoInicial(){\r\n return this.Vi;\r\n }",
"public Cliente getCliente() {\n return cliente;\n }",
"public CreadorComentario() {\n faceContext = FacesContext.getCurrentInstance();\n }",
"public ListaCuentaContableBean getListaCuentaContableBean()\r\n/* 319: */ {\r\n/* 320:383 */ return this.listaCuentaContableBean;\r\n/* 321: */ }",
"public String obtenModelo(){\r\n return this.modelo;\r\n }"
]
| [
"0.68009317",
"0.67215323",
"0.6657296",
"0.6645805",
"0.6612158",
"0.6570934",
"0.6531814",
"0.6524863",
"0.6474926",
"0.63967127",
"0.6390505",
"0.6347653",
"0.631316",
"0.62964344",
"0.6268372",
"0.62391496",
"0.62313414",
"0.62246436",
"0.6200649",
"0.6197067",
"0.618108",
"0.6179903",
"0.6173955",
"0.61676097",
"0.6161114",
"0.6149253",
"0.6147897",
"0.61392516",
"0.6137367",
"0.6134766",
"0.6130763",
"0.61138374",
"0.6109007",
"0.6108274",
"0.6103773",
"0.60975605",
"0.60867834",
"0.60859865",
"0.60802734",
"0.6075716",
"0.6061727",
"0.6045192",
"0.60385865",
"0.6035867",
"0.60293406",
"0.60158086",
"0.60144866",
"0.6013802",
"0.6005818",
"0.6005179",
"0.6004722",
"0.6003549",
"0.59946907",
"0.59913653",
"0.5986191",
"0.59789747",
"0.59748936",
"0.59742194",
"0.59742194",
"0.59741366",
"0.59741366",
"0.59741366",
"0.59741366",
"0.5970435",
"0.5970237",
"0.59691435",
"0.59581184",
"0.5953214",
"0.59523314",
"0.59463024",
"0.5945063",
"0.59447175",
"0.59415835",
"0.59396976",
"0.5939355",
"0.59361917",
"0.59350747",
"0.5932286",
"0.59318507",
"0.59222966",
"0.5916904",
"0.5916366",
"0.5913592",
"0.5913314",
"0.5905726",
"0.5903843",
"0.5900785",
"0.5900785",
"0.59001654",
"0.5898406",
"0.58979356",
"0.5896887",
"0.58968544",
"0.58915937",
"0.58902407",
"0.5888869",
"0.588564",
"0.58850324",
"0.58835846",
"0.5882821",
"0.58793014"
]
| 0.0 | -1 |
Metode que actualitza les grafiques de diasetmanames. | public void updateWindow() {
MatchDAO ma = new MatchDAO();
ArrayList<User> u = ma.getTopFiveMostMatchedUsers();
view.updateWindow(ma.getLastMonthMatches(), ma.getLastWeekMatches(), ma.getLastDayMatches(), u);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ApexCharts crearGraficagastosMesActual() {\n \tobtenerGastosDiariosMes();\n \t\n return ApexChartsBuilder.get()\n .withChart(ChartBuilder.get()\n .withType(Type.area)\n .withZoom(ZoomBuilder.get()\n .withEnabled(false)\n .build())\n .build())\n .withDataLabels(DataLabelsBuilder.get()\n .withEnabled(false)\n .build())\n .withStroke(StrokeBuilder.get().withCurve(Curve.straight).build())\n .withSeries(new Series<>(\"Gastos\",this.listadoGastosDiariosDiagrama))\n .withLabels(this.fechasDiagrama)\n .withYaxis(YAxisBuilder.get()\n .withOpposite(true).build())\n .withLegend(LegendBuilder.get().withHorizontalAlign(HorizontalAlign.left).build())\n .withColors(\"#D01E69\")\n .build();\n }",
"@Override\n\tpublic void dibujar(Graphics2D g) {\n\n\t\tif (contadorJugador == 0) {\n\t\t\tenemigos.add(enemigo1);\n\t\t\tenemigos.add(enemigo2);\n\t\t\t// Se volverian a generar los objetos\n\t\t\tConstantes.volverTodoCero();\n\t\t\tcontadorJugador++;\n\t\t}\n\t\tg.scale(Constantes.ESCALAX, Constantes.ESCALAY);\n\t\t\n\t\t// Importante\n\t\tmapa.dibujar(g);\n\t\tdibujarArmas(g);\n\t\t//\n\t\tjugador.dibujar(g);\n\t\tenemigo1.dibujar(g);\n\t\tenemigo2.dibujar(g);\n\t\tcasa1.dibujar(g);\n\t\tcasa2.dibujar(g);\n\t\tcasa3.dibujar(g);\n\t\tcasa4.dibujar(g);\n\t\tcasa5.dibujar(g);\n\t\tcasa6.dibujar(g);\n\n\t\ttry {\n\t\t\t// Esto sirve para que no dispare seguido es el contador que va aumentado hasta\n\t\t\t// el tiempo que tenga cada arma\n\t\t\tif (Tecla.esperarArma != ((Armas) Tecla.objetoElegido).esperaDisparo) {\n\t\t\t\tTecla.esperarArma++;\n\t\t\t}\n\t\t} catch (NullPointerException | ClassCastException e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\n\t\t// System.out.println(Tecla.esperarArma);\n\n\t\tMapa.paredAbajo = new Rectangle(Mapa.rectanguloAbx, Mapa.rectanguloAby, Constantes.ANCHOMAPA, 3);\n\t\tMapa.paredIzquierda = new Rectangle(Mapa.rectanguloIx, Mapa.rectanguloIy, 3, Constantes.ALTOMAPA);\n\t\tMapa.paredArriba = new Rectangle(Mapa.rectanguloAx, Mapa.rectanguloAy, Constantes.ANCHOMAPA, 3);\n\t\tMapa.paredDerecha = new Rectangle(Mapa.rectanguloDx, Mapa.rectanguloDy, 3, Constantes.ALTOMAPA);\n\t\t// ---\n\t\t// Prueba\n\t\t// ---\n\n\t\trecorrerArrayBalaMover(g);\n\n\t\tg.drawRect(Mapa.rectanguloAbx, Mapa.rectanguloAby, Constantes.ANCHOMAPA, 3);\n\t\tg.drawRect(Mapa.rectanguloAx, Mapa.rectanguloAy, 3, Constantes.ALTOMAPA);\n\t\tg.drawRect(Mapa.rectanguloDx, Mapa.rectanguloDy, 3, Constantes.ALTOMAPA);\n\t\tg.drawRect(Mapa.rectanguloIx, Mapa.rectanguloIy, Constantes.ANCHOMAPA, 3);\n\n\t}",
"public void carregar(DadosGrafico dados){\r\n \r\n }",
"protected void setGrades()\n\t{\n\t\tgradeNomes \t\t= new String[ this.getNumeroMaximoDeAluno() ];\n\t\tgradeNotas \t\t= new int[ this.getNumeroMaximoDeAluno() ];\n\t\tgradeConceitos \t= new int[ this.getNumeroMaximoDeAluno() ];\n\t}",
"private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}",
"public void Dios()\r\n {\r\n \tif(!dios)\r\n \t\tgrafico.cambiarA(0);\r\n \telse\r\n \t\tgrafico.cambiarA(1);\r\n dios=!dios;\r\n }",
"public boolean tieneRepresentacionGrafica();",
"private void obtenerGastosDiariosMes() {\n\t\t// Obtenemos las fechas actuales inicial y final\n\t\tCalendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n int diaFinalMes = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);\n\n\t\tList<Movimiento> movimientos = this.movimientoService.obtenerMovimientosFechaUsuario(idUsuario, LocalDate.of(LocalDate.now().getYear(),LocalDate.now().getMonthValue(),1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLocalDate.of(LocalDate.now().getYear(),LocalDate.now().getMonthValue(), diaFinalMes));\n\t\tList<Double> listaGastos = new ArrayList<Double>();\n\t\tList<String> listaFechas = new ArrayList<String>();\n\t\t\n\t\tDate fechaUtilizadaActual = null;\n\t\tdouble gastoDiario = 0;\n\t\t\n\t\tfor (Iterator iterator = movimientos.iterator(); iterator.hasNext();) {\n\t\t\tMovimiento movimiento = (Movimiento) iterator.next();\n\t\t\tif(fechaUtilizadaActual == null) { //Comprobamos si se acaba de entrar en el bucle para inicializar la fecha del movimiento\n\t\t\t\tfechaUtilizadaActual = movimiento.getFecha();\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Si hemos cambiado de fecha del movimiento se procede a guardar los datos recogidos\n\t\t\tif(!fechaUtilizadaActual.equals(movimiento.getFecha())) {\n\t\t\t\tlistaGastos.add(gastoDiario);\n\t\t\t\tlistaFechas.add(fechaUtilizadaActual.getDate()+\"/\"+Utils.getMonthForInt(fechaUtilizadaActual.getMonth()).substring(0, 3));\n\t\t\t\tgastoDiario = 0; // Reiniciamos el contador del gasto\n\t\t\t\tfechaUtilizadaActual = movimiento.getFecha(); // Almacenemos la fecha del nuevo gasto\n\t\t\t}\n\t\t\t\n\t\t\t// Si el movimiento que se ha realizado es un gasto lo sumamos al contador de gasto\n\t\t\tif(movimiento.getTipo().equals(TipoMovimiento.GASTO)) {\n\t\t\t\tgastoDiario += movimiento.getCantidad();\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Comprobamos si es el ultimo item del iterador y almacenamos sus datos\n\t\t\tif(!iterator.hasNext()) {\n\t\t\t\tlistaGastos.add(gastoDiario);\n\t\t\t\tlistaFechas.add(fechaUtilizadaActual.getDate()+\"/\"+Utils.getMonthForInt(fechaUtilizadaActual.getMonth()).substring(0, 3));\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tthis.listadoGastosDiariosDiagrama = new Double[listaGastos.size()];\n\t\tthis.listadoGastosDiariosDiagrama = listaGastos.toArray(this.listadoGastosDiariosDiagrama);\n\t\tthis.fechasDiagrama = new String[listaFechas.size()];\n\t\tthis.fechasDiagrama = listaFechas.toArray(this.fechasDiagrama);\n\t\t\n\t}",
"public void mostrarGrafo() {\n\t\tmatriz.mostrarMatriz();\n\t}",
"public String Dime_datos_generales() {\n\t\t\n\t\treturn \"la plataforma del veiculo tiene \"+ rueda+\" ruedas\"+\n\t\t\"\\nmide \"+ largo/1000+\" metros con un ancho de \"+ancho+\n\t\t\"cm\"+\"\\nun peso de platafrorma de \"+peso;\n\t}",
"public void setGiro( double gradosGiro ) {\r\n\t\t// De grados a radianes...\r\n\t\tmiGiro += gradosGiro;\r\n\t}",
"public JPanel getRepresentacionGrafica();",
"private void InicializaGrafo() {\n\t\t\n\t\tnumeroVertices = ruas.length + 1;\n\t\tgrafo = new Grafo(numeroVertices);\n\t\t\n\t\tfor (int i = 0; i < numeroVertices - 1; i++) {\n\t\t\t\n\t\t\tint u = ruas[i];\n\t\t\tint v = (i + 1);\n\t\t\t\n\t\t\tgrafo.AdicionaAresta(u, v);\n\t\t\t\n\t\t} // Fim for int i = 0\n\t\t\n\t}",
"public Map<String, RelacionFigure> getFiguras() {\n\t\treturn this.figures;\n\t}",
"@Override\n\tvoid geraDados() {\n\n\t}",
"private void agregarFantasma(Fantasma fantasma) {\n // TODO implement here\n }",
"private ApexCharts crearGraficoDonutGastosMesActualPorCategoria() {\n\t\tList<Categoria> listaCategorias = categoriaService.obtenerTodasCategorias();\n\t\t// Obtenemos los nombres de las categorias\n\t\tString[] labes = obtenerLabes(listaCategorias);\n\n\t\t// Obtenemos el valor del gasto por cada categoria\n\t\tDouble[] serie = obtenerMovimientos(listaCategorias);\n\t\t\n\t\t// Obtenemos colores aleatorios para cada fragmento del grafico\n\t\tString[] colors = obtenerColores(listaCategorias);\n\t\t\n\t\treturn ApexChartsBuilder.get()\n .withChart(ChartBuilder.get().withType(Type.donut).build())\n .withLegend(LegendBuilder.get()\n .withPosition(Position.right)\n .build())\n .withSeries(serie)\n .withResponsive(ResponsiveBuilder.get()\n .withBreakpoint(480.0)\n .build())\n .withLabels(labes)\n \t\t.withColors(colors)\n .build();\n\t}",
"public Espacio() {\n dib=new Dibujo(\"Simulacion de satelites\", 800,800);\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta();\n }",
"public interface DadosGerais extends IDataStruct {\n \n @Data(size=8)\n IString nmPrograma() ;\n \n @Data(size=50)\n IString dFunlPrg() ;\n \n @Data(size=10)\n IString zInicPrct() ;\n \n @Data(size=8)\n IString hInicPrct() ;\n \n @Data(size=10)\n IString zFimPrct() ;\n \n @Data(size=8)\n IString hFimPrct() ;\n \n @Data(size=50)\n IString xCteuAlig() ;\n \n }",
"private static void displayStat() {\n Collection<Zone> zones = Universe.getInstance().getCarte().getCarte().values();\r\n System.out.println(\"Nb de personnes créées : \" + Universe.getInstance().getCarte().getPopulation().size());\r\n\r\n\r\n System.out.println(\"Nb de personnes créées en mer : \" + getPopulationByTile(Zone.Tile.SEA));\r\n System.out.println(\"Nb de personnes créées en plaine : \" + getPopulationByTile(Zone.Tile.EARTH));\r\n System.out.println(\"Nb de personnes créées en foret : \" + getPopulationByTile(Zone.Tile.FOREST));\r\n System.out.println(\"Nb de personnes créées en ville : \" + getPopulationByTile(Zone.Tile.TOWN));\r\n\r\n System.out.println(\"---------------\");\r\n\r\n System.out.println(\"Surface mer : \" + getSurfaceByTile(zones, Zone.Tile.SEA));\r\n System.out.println(\"Surface plaine : \" + getSurfaceByTile(zones, Zone.Tile.EARTH));\r\n System.out.println(\"Surface foret : \" + getSurfaceByTile(zones, Zone.Tile.FOREST));\r\n System.out.println(\"Surface ville : \" + getSurfaceByTile(zones, Zone.Tile.TOWN));\r\n\r\n System.out.println(\"---------------\");\r\n\r\n System.out.println(\"Densité mer : \" + new Double(getPopulationByTile(Zone.Tile.SEA) / getSurfaceByTile(zones, Zone.Tile.SEA)));\r\n System.out.println(\"Densité plaine : \" + new Double(getPopulationByTile(Zone.Tile.EARTH)) / new Double(getSurfaceByTile(zones, Zone.Tile.EARTH)));\r\n System.out.println(\"Densité foret : \" + new Double(getPopulationByTile(Zone.Tile.FOREST)) / new Double(getSurfaceByTile(zones, Zone.Tile.FOREST)));\r\n System.out.println(\"Densité ville : \" + new Double(getPopulationByTile(Zone.Tile.TOWN)) / new Double(getSurfaceByTile(zones, Zone.Tile.TOWN)));\r\n\r\n System.out.println(\"---------------\");\r\n System.out.println(\"Surface mer deserte : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.SEA) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface plaine deserte : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.EARTH) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface foret deserte: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.FOREST) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface ville deserte: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.TOWN) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"---------------\");\r\n\r\n System.out.println(\"Surface mer habitée : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.SEA) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface plaine habitée : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.EARTH) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface foret habitée: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.FOREST) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface ville habitée: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.TOWN) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n }",
"private void actualizaEstadoMapa() {\n if(cambiosFondo >= 0 && cambiosFondo < 10){\n estadoMapa= EstadoMapa.RURAL;\n }\n if(cambiosFondo == 10){\n estadoMapa= EstadoMapa.RURALURBANO;\n }\n if(cambiosFondo > 10 && cambiosFondo < 15){\n estadoMapa= EstadoMapa.URBANO;\n }\n if(cambiosFondo == 15 ){\n estadoMapa= EstadoMapa.URBANOUNIVERSIDAD;\n }\n if(cambiosFondo > 15 && cambiosFondo < 20){\n estadoMapa= EstadoMapa.UNIVERSIDAD;\n }\n if(cambiosFondo == 20){\n estadoMapa= EstadoMapa.UNIVERSIDADSALONES;\n }\n if(cambiosFondo > 20 && cambiosFondo < 25){\n estadoMapa= EstadoMapa.SALONES;\n }\n\n }",
"private void graficarSenal() {\n\t\tpanelSenal.setDatosVoz(datosVoz);\n\t\tpanelSenal.setAccionGraficar(true);\n\t\t//panelSenal.setGraficarOnda(!panelSenal.getGraficarOnda());\n\t\tpanelSenal.setGraficarOnda(true);\n\t\tpanelSenal.setIntervalo((finterv*datosVoz.length)/panelSenal.getWidth());\n\t\tpanelSenal.setFactorEX(fex);\n\t\tpanelSenal.setFactorEY(fey);\n\t\tpanelSenal.setTY(0);\n\t\tpanelSenal.repaint(); \n\t\n\t}",
"public void dibujar(Graphics g){\n\t\tg2.setColor(Color.WHITE);\n\t\tfor ( int x =0; x < game.getAmountPersonajes() ;x++){\n\t\t\tRectangle2D.Double personaje =game.getPersonaje(x).getshape(); \n\t\t\t\n\t\t\ttemporal = game.getPersonaje(x).getImage().getImage();\n\t\t\tg.drawImage(temporal, (int)personaje.getX(), (int)(personaje.getY()), this);\n\t\t}\n\t\tfor ( int x =0; x < game.getAmountObjetivos() ;x++){\n\t\t\tRectangle2D.Double objetivo =game.getObjetivo(x).getShape(); \n\t\t\ttemporal = game.getObjetivo(x).getImage().getImage();\n\t\t\tg.drawImage(temporal, (int)objetivo.getX(), (int)(objetivo.getY()), this);\n\t\t}\n\t\tif (game.getCurrentSorpresa()!=null){\n\t\t\tRectangle2D.Double s =game.getCurrentSorpresa().getShape(); \n\t\t\ttemporal = game.getCurrentSorpresa().getImage().getImage();\n\t\t\tg.drawImage(temporal, (int)s.getX(), (int)(s.getY()), this);\t\t\t\n\t\t}\n\t\tif(game.getBloque().isActive() ){\n\t\t\tRectangle2D.Double s =game.getBloque().getShape(); \n\t\t\ttemporal = game.getBloque().getImage().getImage();\n\t\t\tg.drawImage(temporal, (int)s.getX(), (int)(s.getY()), this);\n\t\t}\n\t\t\n\t\tg2.setColor(new Color(100,221,23));\n\t\tg2.fill(game.getShapePelota(0));\n\t\n\t\n\t}",
"public void darCoordenadasIniciales() \r\n\t{\t\r\n\t\tint coordenadasX = 0;\r\n\t\tint coordenadasY = 1;\r\n\t\tint orientacion = 2;\r\n\t\t\r\n\t\tfor (int x = 0; x<palabras.size();x++) \r\n\t\t{\r\n\t\t\tpalabras.get(x).get(0).setX(Integer.parseInt(manejadorArchivos.getPalabras().get(coordenadasX)));\r\n\t\t\tpalabras.get(x).get(0).setY(Integer.parseInt(manejadorArchivos.getPalabras().get(coordenadasY)));\r\n\t\t\tpalabras.get(x).get(0).setOrientacion(manejadorArchivos.getPalabras().get(orientacion));\r\n\t\t\t\r\n\t\t\t coordenadasX = coordenadasX +4;\r\n\t\t\t coordenadasY = coordenadasY + 4;\r\n\t\t\t orientacion = orientacion + 4;\r\n\t\t}\r\n\t}",
"public void azzera() { setEnergia(0.0); }",
"private void inizializzazione()\n {\n //Costruzione della Istanza display\n display = new Display(titolo,larghezza,altezza);\n \n /*Viene aggiunto il nostro gestore degli input da tastiera\n * alla nostra cornice.*/\n display.getCornice().addKeyListener(gestoreTasti);\n display.getCornice().addMouseListener(gestoreMouse);\n display.getCornice().addMouseMotionListener(gestoreMouse);\n display.getTelaGrafica().addMouseListener(gestoreMouse);\n display.getTelaGrafica().addMouseMotionListener(gestoreMouse);\n \n //Codice temporaneo per caricare la nostra immagine nel nostro programma\n /*testImmagine = CaricatoreImmagini.caricaImmagini(\"/Textures/Runner Stickman.png\");*/\n \n //Inizializzazione dell'attributo \"foglio\". Gli viene passato come parametro \n //\"testImmagine\" contenente l'immagine del nostro sprite sheet.\n /*foglio = new FoglioSprite(testImmagine);*/\n \n /*Inizializzazione della classe Risorse.*/\n Risorse.inizializzazione();\n \n maneggiatore = new Maneggiatore(this);\n /*Inizializzazione Camera di Gioco*/\n camera = new Camera(maneggiatore,0,0);\n \n /*Inizializzazione degli stati di gioco.*/\n statoMenu = new StatoMenù(maneggiatore);\n Stato.setStato(statoMenu);\n }",
"@Override\r\n\tpublic void getRegimeAlimentaire() {\n\t\t\r\n\t}",
"public final void setDominio() {\r\n this.limite[0] = BigInteger.ZERO;\r\n this.limite[1] = this.primoGrande;\r\n }",
"public static Grafo criarGrafo() {/* Este método tem função de criar um grafo. */\r\n\t\tGrafo grafo = new Grafo();/* Aqui um grafo é criado */\r\n\t\t/*\r\n\t\t * Aqui são criados nós e em seguida adcionados a lista de nós do grafo\r\n\t\t * criado\r\n\t\t */\r\n\t\tgrafo.addNo(new No(\"n1\"));\r\n\t\tgrafo.addNo(new No(\"n2\"));\r\n\t\tgrafo.addNo(new No(\"n3\"));\r\n\t\tgrafo.addNo(new No(\"n4\"));\r\n\t\tgrafo.addNo(new No(\"n5\"));\r\n\r\n\t\t/*\r\n\t\t * Aqui as arestas são criadas e seus parâmetros para o método\r\n\t\t * construtor são passados. Os vértices que compõe cada aresta são\r\n\t\t * retiradas diretamente da lista de aresta do grafo.\r\n\t\t */\r\n\t\tAresta a1 = new Aresta(\"a1\", grafo.getNos().get(0), grafo.getNos().get(4), 1);\r\n\t\tAresta a2 = new Aresta(\"a2\",grafo.getNos().get(0), grafo.getNos().get(2), 2);\r\n\t\tAresta a3 = new Aresta(\"a3\",grafo.getNos().get(1), grafo.getNos().get(3), 4);\r\n\t\tAresta a4 = new Aresta(\"a4\",grafo.getNos().get(1), grafo.getNos().get(4), 4);\r\n\t\tAresta a5 = new Aresta(\"a5\",grafo.getNos().get(2), grafo.getNos().get(3), 3);\r\n\t\tAresta a6 = new Aresta(\"a6\",grafo.getNos().get(3), grafo.getNos().get(4), 1);\r\n\r\n\t\t/* As arestas são adcionadas a lista de arestas do grafo. */\r\n\t\tgrafo.addAresta(a1);\r\n\t\tgrafo.addAresta(a2);\r\n\t\tgrafo.addAresta(a3);\r\n\t\tgrafo.addAresta(a4);\r\n\t\tgrafo.addAresta(a5);\r\n\t\tgrafo.addAresta(a6);\r\n\r\n\t\treturn grafo;/* O grafo criado é retornado */\r\n\r\n\t}",
"public gui obtenerGrafica();",
"private void iniciarJogo(Dificuldade dificuldade) {\n\r\n\t\tswitch (dificuldade) {\r\n\t\tcase FACIL:\r\n\t\t\tthis.mapa = new MapaFacil();\r\n\t\t\tbreak;\r\n\t\tcase MEDIO:\r\n\t\t\tthis.mapa = new MapaMedio();\r\n\t\t\tbreak;\r\n\t\tcase DIFICIL:\r\n\t\t\tthis.mapa = new MapaDificil();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tthis.numeroBombas = mapa.getBombas();//SALVA O NUMERO DE BOMBAS\r\n\t\tthis.montarTela();//MONTA A TELA\r\n\r\n\t}",
"public void repartirGanancias() {\n\t\t \n\t\t System.out.println(\"JUGADORES EN GANANCIAS:\");\n\t\t for(int i = 0; i < idJugadores.length;i++) {\n\t\t\t System.out.println(\"idJugador [\"+i+\"] : \"+idJugadores[i]);\n\t\t }\n\t\t System.out.println(\"GANADORES EN GANANCIA\");\n\t\t for(int i = 0; i < ganador.size();i++) {\n\t\t\t System.out.println(\"Ganador [\"+i+\"] : \"+ganador.get(i));\n\t\t }\n\t\t if(ganador.size() >= 1) {\n\t\t\t for(int i = 0; i < idJugadores.length; i++) {\n\n\t\t\t\t if(contieneJugador(ganador, idJugadores[i])) {\n\t\t\t\t\t System.out.println(\"Entra ganador \"+idJugadores[i]);\n\t\t\t\t\t if(verificarJugadaBJ(manosJugadores.get(i))) {\n\t\t\t\t\t\t System.out.println(\"Pareja nombre agregado: \"+idJugadores[i]);\n\t\t\t\t\t\t parejaNombreGanancia.add(new Pair<String, Integer>(idJugadores[i],25));\n\t\t\t\t\t }else {\n\t\t\t\t\t\t System.out.println(\"Pareja nombre agregado --> \"+idJugadores[i]);\n\t\t\t\t\t\t parejaNombreGanancia.add(new Pair<String, Integer>(idJugadores[i],20));\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t } \n\t\t }else {\n\t\t\t System.out.println(\"no ganó nadie\");\n\t\t\t parejaNombreGanancia.add(new Pair<String, Integer>(\"null\",0));\n\t\t }\n\t }",
"public GestionGastosGenerales() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setResizable(false);\n this.setTitle(\"Gestión de Gastos Generales\");\n \n try{\n String query = \"SELECT convert(varchar, getdate(), 105) as FECHA\";\n String[] columnas = {\"FECHA\"};\n LinkedList<LinkedList<String>> fecha = Globales.baseDatos.select(query, columnas);\n if(fecha == null){\n throw new NoConectionDataBaseException(\"Error al conectarse con la base de datos: \" + Globales.baseDatos.getUltimoError());\n }\n if(fecha.size() <1){\n throw new NoConectionDataBaseException(\"Error al conectarse con la base de datos: No se encontraron datos de la fecha actual\");\n }\n String[] fechaArray = fecha.get(0).get(0).split(\"-\");\n if(fechaArray.length != 3){\n throw new NoTypeRequiredException(\"No se puede procesar la fecha obtenida de la base de datos\");\n }\n \n ano = Integer.parseInt(fechaArray[2]);\n \n mes = Integer.parseInt(fechaArray[1]);\n \n int contadorAnos = ano - anoInicial;\n String[] listaAnos = new String[contadorAnos + 1];\n listaAnos[0] = anoInicial.toString();\n \n for(int i = 0; i<contadorAnos;i++){\n Integer tempInt = anoInicial+(i+1);\n listaAnos[i+1] = tempInt.toString();\n }\n DefaultComboBoxModel anoModel = new DefaultComboBoxModel(listaAnos);\n anoCB.setModel(anoModel);\n \n DefaultComboBoxModel mesModel = new DefaultComboBoxModel(generarListaMeses(mes));\n mesCB.setModel(mesModel);\n \n anoCB.setSelectedIndex(anoCB.getItemCount()-1);\n mesCB.setSelectedIndex(mesCB.getItemCount()-1);\n \n //termina seccion de ajuste de fecha\n actualizarTabla();\n \n \n \n }\n catch(NoConectionDataBaseException e){\n JOptionPane.showMessageDialog(this, e.getMessage(), \"Error de conexión con la base de datos\", JOptionPane.ERROR_MESSAGE);\n \n }\n catch(NoTypeRequiredException e){\n JOptionPane.showMessageDialog(this, e.getMessage(), \"Error al guardar el registro\", JOptionPane.WARNING_MESSAGE);\n }\n }",
"public GestioneDomandeD() {\n this.daoDomande = null;\n this.daoPunteggi = null;\n this.daoDipendenti = null;\n this.gestionePunteggiD = null;\n this.gestioneLog = null;\n this.gestioneBadge = null;\n }",
"public static void afficherNombreDAnimaux() {\n\t System.out.println(\"**************************\");\n\t System.out.println(\"Il y a \" + totalNumber + \" animaux\");\n\t}",
"public GraficaVentas() {\n initComponents();\n categoriaMasVendidapanel.setVisible(false);\n marcaMasVendidapanel.setVisible(false);\n }",
"public void actualizarGrado() {\n \tGrado grado = new Grado();\n \tgrado.setIdGrado(7);\n \tgrado.setDescripcionSeccion(\"Secundaria\");\n \tgrado.setNumGrado(6);\n \tgrado.setDescripcionUltimoGrado(\"SI\");\n \tString respuesta = negocio.actualizarGrado(\"\", grado);\n \tSystem.out.println(respuesta);\n }",
"public void setGiro( double gradosGiro ) {\n\t\t// De grados a radianes...\n\t\tmiGiro = gradosGiro/180*Math.PI;\n\t\t// El giro en la pantalla es en sentido horario (inverso):\n\t\tmiGiro = -miGiro; // Cambio el sentido del giro\n\t\t// Y el gr·fico del coche apunta hacia arriba (en lugar de derecha OX)\n\t\tmiGiro = miGiro + Math.PI/2; // Sumo 90∫ para que corresponda al origen OX\n\t}",
"public String draaiGangkaart()\n {\n if (vrijeGangkaart.getOrientatie() == 4)\n {\n vrijeGangkaart.setOrientatie(1);\n } else\n {\n vrijeGangkaart.setOrientatie((vrijeGangkaart.getOrientatie() + 1));\n }\n\n return vrijeGangkaart.toString();\n }",
"public void dibujar() {\n if(fondoJuego1 != null) {\n fondoJuego1.dibujar(g);\n fondoJuego2.dibujar(g);\n if(fondoJuego2.getX()<=5) {\n juegoNuevo.dibujar(g);\n if(highLight.getPrioridad() == juegoNuevo.getPrioridad()) {\n tituloJuegoNuevo.dibujar(g);\n }\n continuar.dibujar(g);\n if(highLight.getPrioridad() == continuar.getPrioridad()) {\n tituloContinuar.dibujar(g);\n }\n regresar.dibujar(g);\n if(continuar.getY() <= 20) {\n if(highLight.getPrioridad() == regresar.getPrioridad()) {\n tituloRegresar.dibujar(g);\n }\n }\n highLight.dibujar(g);\n }\n }\n if(seleccion != null) {\n seleccion.g = this.g;\n seleccion.dibujar();\n }\n\tflushGraphics();\n }",
"public Map<Position, String> createGraphics(){\n\n Map<Position, String> justObjectGraphs = this.ALLObjects.stream()\n .collect(Collectors.toMap(MapObject::getPozycja, MapObject::getDrawSymbol) );\n\n Map<Position, String> emptyGraphs = this.getMapa().getEmptyPositions().stream()\n .collect(Collectors.toMap(poz -> poz , poz -> \" \") );\n\n Map<Position, String> wynik = new TreeMap<>();\n wynik.putAll(justObjectGraphs);\n wynik.putAll(emptyGraphs);\n\n return wynik;\n }",
"private Texture mapaAleatorio(int noAleatorio) {\n if (estadoMapa == EstadoMapa.RURAL){\n if(noAleatorio == 1){\n return texturaFondo1_1;\n }\n if(noAleatorio == 2){\n return texturaFondo1_2;\n }\n if(noAleatorio == 3){\n return texturaFondo1_3;\n }\n if(noAleatorio == 4){\n return texturaFondo1_4;\n }\n if(noAleatorio == 5){\n return texturaFondo1_5;\n }\n } else\n if (estadoMapa == EstadoMapa.URBANO) {\n if(noAleatorio == 1){\n return texturaFondo2_1;\n }\n if(noAleatorio == 2){\n return texturaFondo2_2;\n }\n if(noAleatorio == 3){\n return texturaFondo2_3;\n }\n if(noAleatorio == 4){\n return texturaFondo2_4;\n }\n if(noAleatorio == 5){\n return texturaFondo2_5;\n }\n } else if (estadoMapa == EstadoMapa.UNIVERSIDAD) {\n if(noAleatorio == 1){\n return texturaFondo3_1;\n }\n if(noAleatorio == 2){\n return texturaFondo3_2;\n }\n if(noAleatorio == 3){\n return texturaFondo3_3;\n }\n if(noAleatorio == 4){\n return texturaFondo3_4;\n }\n if(noAleatorio == 5){\n return texturaFondo3_5;\n }\n }else if (estadoMapa == EstadoMapa.SALONES) {\n if (noAleatorio == 1) {\n return texturaFondo4_1;\n }\n if (noAleatorio == 2) {\n return texturaFondo4_2;\n }\n if (noAleatorio == 3) {\n return texturaFondo4_3;\n }\n if (noAleatorio == 4) {\n return texturaFondo4_4;\n }\n if (noAleatorio == 5) {\n return texturaFondo4_5;\n }\n } else if (estadoMapa == EstadoMapa.RURALURBANO) { //Trancisiones\n return texturaRuralUrbano;\n } else if (estadoMapa == EstadoMapa.URBANOUNIVERSIDAD) {\n return texturaUrbanoUniversidad;\n } else if (estadoMapa == EstadoMapa.UNIVERSIDADSALONES) {\n return texturaUniversidadSalones;\n }\n return null;\n }",
"public Regras()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1100, 457, 1); \n prepare();\n if(MenuPrincipal.mundo == 1) //se o mundo anterior tiver sido MenuPrincipal\n som1 = MenuPrincipal.som2; //a música ficar com a mesma opção do mundo Menu Principal (a tocar ou sem som)}\n else if(MenuPrincipal.mundo == 3) //se o mundo anterior tiver sido MundoJogo\n som1 = MundoJogo.som3; //a música ficar com a mesma opção do mundo MundoJogo (a tocar ou sem som)\n imgsom2 = MenuPrincipal.imgsom1; //atualiza a imagem da coluna para ser igual à do mundo MenuPrincipal (mute/unmute)\n MenuPrincipal.mundo = 2; //atualizar 'mundo' para indicar que o mundo atual é o mundo Regras\n }",
"void initData() {\r\n\t\tthis.daVinci = new Artist(\"da Vinci\");\r\n\t\tthis.mona = new Painting(daVinci, \"Mona Lisa\");\r\n\t\t//this.lastSupper = new Painting(this.daVinci, \"Last Supper\");\r\n\t}",
"public void drawMap(Graphics g) {\r\n\t\tfor (UIElement field : fields.values())\r\n\t\t\tfield.draw(g);\r\n\r\n\t\tfor (UIElement stargate : stargates.values())\r\n\t\t\tstargate.draw(g);\r\n\t}",
"public void calcularGrados() {\n\t\tgrMax = 1;\n\t\tint temp;\n\t\tfor (int f = 0; f < cantNodos; f++) {\n\t\t\ttemp = 0;\n\t\t\tfor (int c = 0; c < cantNodos; c++) {\n\t\t\t\tif (getValor(f, c) == true)\n\t\t\t\t\ttemp++;\n\t\t\t}\n\t\t\tif (temp > grMax)\n\t\t\t\tgrMax = temp;\n\t\t}\n\t\tgrMin = grMax;\n\t\tfor (int f = 0; f < cantNodos; f++) {\n\t\t\ttemp = 0;\n\t\t\tfor (int c = 0; c < cantNodos; c++) {\n\t\t\t\tif (getValor(f, c) == true)\n\t\t\t\t\ttemp++;\n\t\t\t}\n\t\t\tif (temp < grMin)\n\t\t\t\tgrMin = temp;\n\t\t}\n\t\t\n\t}",
"public static void init()\n\t{\n\t\t\n\t\tu.creerGalaxie(\"VoieLactee\", \"spirale\", 0);\n\t\tu.creerEtoile(\"Soleil\", 0, 'F', u.getGalaxie(\"VoieLactee\")); //1\n\t\tu.creerObjetFroid(\"Terre\", 150000 , 13000 , 365 , u.getObjet(1)); //2\n\n\t\tu.creerObjetFroid(\"Lune\", 200 , 5000 , 30 , u.getObjet(2)); //3\n\n\t\tu.creerObjetFroid(\"Mars\", 200000 , 11000 , 750 , u.getObjet(1)); //4\n\n\t\tu.creerObjetFroid(\"Phobos\", 150 , 500 , 40 , u.getObjet(4)); //5\n\n\t\tu.creerObjetFroid(\"Pluton\", 1200000 , 4000 , 900 , u.getObjet(1)); //6\n\n\t\tu.creerEtoile(\"Sirius\", 2, 'B', u.getGalaxie(\"VoieLactee\")); //7\n\n\t\tu.creerObjetFroid(\"BIG-1\", 1000 , 50000 , 333 , u.getObjet(7)); //8\n\n\t\tu.creerGalaxie(\"M31\", \"lenticulaire\", 900000);\n\t\tu.creerEtoile(\"XS67\", 8, 'F', u.getGalaxie(\"M31\")); //9\n\t\tu.creerObjetFroid(\"XP88\", 160000 , 40000 , 400 , u.getObjet(9)); //10\n\t}",
"@Override\n\tpublic void girth() {\n\t\tSystem.out.println(this.name+\"的周长:\"+ (land1+land2+land3));\n\t}",
"public int getGanadas(){\n\t\treturn ganadas;\n\t}",
"public dame8()\n { this.setTitle(\"dame8\");\n creation_damier();\n damier.setPreferredSize(new Dimension(1000, 1000));\n damier.setBackground(Color.RED);\n\n\n damier.setLayout(Layout);\n\n\n\n/*\n placer_dame(3);\n placer_dame(14);\n placer_dame(18);\n placer_dame(31);\n placer_dame(33);\n placer_dame(44);\n placer_dame(48);\n placer_dame(61);\n*/\n\n //recherche_solution();\n\n\n\n //On ajoute le conteneur\n this.setContentPane(damier);\n this.setVisible(true);\n }",
"public void gastarDinero(double cantidad){\r\n\t\t\r\n\t}",
"public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}",
"private void nastavGraf() {\n barChart = (BarChart) findViewById(R.id.bargraph);\n\n ArrayList<BarEntry> barEntries = new ArrayList<>();\n ArrayList<String> theDates = new ArrayList<>();\n\n // ziskame zaznamy z tabuľky Steps a naplnime graf\n List<HashMap<String, String>> zoznam = mDatabaseHelper.getSteps();\n HashMap<String, String> mapa = new HashMap<>();\n for (int i = 0; i < zoznam.size(); i++) {\n if (i == 3) break;\n mapa = zoznam.get(i);\n theDates.add(mapa.get(\"datum\"));\n barEntries.add(new BarEntry(Float.parseFloat(mapa.get(\"kroky\")), i));\n }\n\n BarDataSet barDataSet = new BarDataSet(barEntries, \"Steps\");\n int redColorValue = Color.parseColor(\"#ff1744\");\n barDataSet.setColor(redColorValue);\n BarData theData = new BarData(theDates, barDataSet);\n\n barChart.setData(theData);\n barChart.getLegend().setEnabled(false);\n barChart.setDescription(null);\n }",
"public void afegirPosicio() {\n\t\tfor(int i=0; i<cal.length; ++i){\n\t\t\tcal[i] = new Dia(false);\n\t\t\tfor(int j=0; j<3; ++j) cal[i].getTorns()[j].setPosicio(i);\n\t\t}\n\t}",
"public VentanaFichaMedica() {\n initComponents(); \n setSize(1195, 545);\n setIcon();\n setLocationRelativeTo(null);\n setResizable(false);\n cargar(\"\");\n setTitle(\"LISTA DE FICHAS MÉDICAS\");\n inicar(); \n }",
"private void fillCalimiteiten()\n\t{\n\n\t\t_Calimiteiten[0] = new Calimiteit(new Brand(false), 80, 108, new actBlussen(true));\n\t\t_Calimiteiten[1] = new Calimiteit(new Brand(false), 557, 284, new actBlussen(true));\n\t\t_Calimiteiten[2] = new Calimiteit(new Brand(false), 557, 284, new actBlussen(true));\n\t\t_Calimiteiten[3] = new Calimiteit(new Brand(false), 557, 284, new actBlussen(true));\n\t\t_Calimiteiten[4] = new Calimiteit(new Brand(false), 415, 86, new actBlussen(true));\n\t\t_Calimiteiten[5] = new Calimiteit(new Evacuatie(false), 201, 590, new actZorg(true));\n\t\t_Calimiteiten[6] = new Calimiteit(new Evacuatie(false), 47, 669, new actZorg(true));\n\t\t_Calimiteiten[7] = new Calimiteit(new Evacuatie(false), 128, 666, new actZorg(true));\n\t\t_Calimiteiten[8] = new Calimiteit(new Evacuatie(false), 145, 601, new actZorg(true));\n\t\t_Calimiteiten[9] = new Calimiteit(new Evacuatie(false), 507, 540, new actZorg(true));\n\t\t_Calimiteiten[10] = new Calimiteit(new Autoongeluk(false), 280, 140, new actEhbo(true));\n\t\t_Calimiteiten[11] = new Calimiteit(new Autoongeluk(false), 395, 375, new actEhbo(true));\n\t\t_Calimiteiten[12] = new Calimiteit(new Autoongeluk(false), 305, 615, new actEhbo(true));\n\t\t_Calimiteiten[13] = new Calimiteit(new Elek_Brand(false), 275, 185, new actElectraBrand(true));\n\t\t_Calimiteiten[14] = new Calimiteit(new Elek_Brand(false), 460, 390, new actElectraBrand(true));\n\t\t_Calimiteiten[15] = new Calimiteit(new Elek_Brand(false), 155, 530, new actElectraBrand(true));\n\t\t_Calimiteiten[16] = new Calimiteit(new Overstroming(false), 240, 465, new actWaterpomp(true));\n\t\t_Calimiteiten[17] = new Calimiteit(new Overstroming(false), 425, 575, new actWaterpomp(true));\n\t\t_Calimiteiten[18] = new Calimiteit(new Overstroming(false), 415, 415, new actWaterpomp(true));\n\t\t_Calimiteiten[19] = new Calimiteit(new Rellen(false), 300, 115, new actStuurME(true));\n\t\t_Calimiteiten[20] = new Calimiteit(new Rellen(false), 265, 420, new actStuurME(true));\n\t\t_Calimiteiten[21] = new Calimiteit(new Rellen(false), 420, 635, new actStuurME(true));\n\t\t_Calimiteiten[22] = new Calimiteit(new Overval(false), 300, 350, new actArrest(true));\n\t\t_Calimiteiten[23] = new Calimiteit(new Overval(false), 450, 230, new actArrest(true));\n\t\t_Calimiteiten[24] = new Calimiteit(new Overval(false), 210, 200, new actArrest(true));\n\n\t\t/*\n\t\t * Hier zorgt hij ervoor dat er in de Actor class ook de gemaakte\n\t\t * calimiteit mee geeft.\n\t\t */\n\t\tfor (Calimiteit calimiteit : _Calimiteiten) {\n\t\t\tString actorStr = calimiteit.getActor().toString();\n\t\t\tactorStr = actorStr.substring(0, actorStr.indexOf(\"@\"));\n\n\t\t\tif (actorStr.equals(\"Brand\")) {\n\t\t\t\tBrand actor = (Brand) calimiteit.getActor();\n\t\t\t\tactor.setCalimiteit(calimiteit);\n\t\t\t}\n\t\t\telse if (actorStr.equals(\"Evacuatie\")) {\n\t\t\t\tEvacuatie actor = (Evacuatie) calimiteit.getActor();\n\t\t\t\tactor.setCalimiteit(calimiteit);\n\t\t\t}\n\t\t\telse if (actorStr.equals(\"Autoongeluk\")) {\n\t\t\t\tAutoongeluk actor = (Autoongeluk) calimiteit.getActor();\n\t\t\t\tactor.setCalimiteit(calimiteit);\n\t\t\t}\n\t\t\telse if (actorStr.equals(\"Elek_Brand\")) {\n\t\t\t\tElek_Brand actor = (Elek_Brand) calimiteit.getActor();\n\t\t\t\tactor.setCalimiteit(calimiteit);\n\t\t\t}\n\t\t\telse if (actorStr.equals(\"Overstroming\")) {\n\t\t\t\tOverstroming actor = (Overstroming) calimiteit.getActor();\n\t\t\t\tactor.setCalimiteit(calimiteit);\n\t\t\t}\n\t\t\telse if (actorStr.equals(\"Rellen\")) {\n\t\t\t\tRellen actor = (Rellen) calimiteit.getActor();\n\t\t\t\tactor.setCalimiteit(calimiteit);\n\t\t\t}\n\t\t\telse if (actorStr.equals(\"Overval\")) {\n\t\t\t\tOverval actor = (Overval) calimiteit.getActor();\n\t\t\t\tactor.setCalimiteit(calimiteit);\n\t\t\t}\n\t\t}\n\t}",
"public void novaIgra() {\r\n\t\tbroj_slobodnih = 16;\r\n\t\tfor(int i = 0 ; i < 4 ; i++)\r\n\t\t\tfor(int j = 0 ; j < 4 ; j++)\r\n\t\t\t\ttabela[i][j] = 0;\r\n\t\tpobjeda = false;\r\n\t\tigrajPoslijePobjede = false;\r\n\t\tgenerisiPolje();\r\n\t\tgenerisiPolje();\r\n\t}",
"public void creaAziendaAgricola(){\n\t\tCantina nipozzano = creaCantina(\"Nipozzano\");\t\n\t\tBotte[] bottiNipozzano = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiNipozzano.length; i++){\n\t\t\tbottiNipozzano[i] = creaBotte(nipozzano, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\t\t\n\t\tVigna mormoreto = creaVigna(\"Mormoreto\", 330, 25, EsposizioneVigna.sud, \"Terreni ricchi di sabbia, ben drenati. Discreta presenza di calcio. pH neutro o leggermente alcalino\");\n\t\tFilare[] filariMormoreto = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMormoreto.length;i++){\n\t\t\tfilariMormoreto[i] = creaFilare(mormoreto, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\t\n\t\tVigna montesodi = creaVigna(\"Montesodi\", 400, 20, EsposizioneVigna.sud_ovest, \"Arido e sassoso, di alberese, argilloso e calcareo, ben drenato, poco ricco di sostanza organica\");\n\t\tFilare[] filariMontesodi = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMontesodi.length;i++){\n\t\t\tfilariMontesodi[i] = creaFilare(montesodi, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t/*\n\t\t * CANTINA: POMINO - VIGNETO BENEFIZIO\n\t\t */\n\t\t\n\t\tCantina pomino = creaCantina(\"Pomino\");\n\t\tBotte[] bottiPomino = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiPomino.length; i++){\n\t\t\tbottiPomino[i] = creaBotte(pomino, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\n\t\tVigna benefizio = creaVigna(\"Benefizio\", 700, 9, EsposizioneVigna.sud_ovest, \"Terreni ricchi di sabbia, forte presenza di scheletro. Molto drenanti. Ricchi in elementi minerali. PH acido o leggermente acido.\");\n\t\tFilare[] filariBenefizio = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariBenefizio.length;i++){\n\t\t\tfilariBenefizio[i] = creaFilare(benefizio, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(nipozzano);\n\t\taziendaAgricolaDAO.saveLuogo(mormoreto);\n\t\taziendaAgricolaDAO.saveLuogo(montesodi);\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(pomino);\n\t\taziendaAgricolaDAO.saveLuogo(benefizio);\n\t\t\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Giulio d'Afflitto\"));\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Francesco Ermini\"));\n\n\t\t\n\t}",
"public void darCoordenadas() {\r\n\t\t\r\n\t\tfor(int x = 0; x<palabras.size(); x++) {\r\n\t\t\t\r\n\t\t\tif (palabras.get(x).get(0).getOrientacion().equals(\"V\")) {\r\n\t\t\t\tint coordenadaX = palabras.get(x).get(0).getX();\r\n\t\t\t\tint coordenadaY = palabras.get(x).get(0).getY();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 1; y < palabras.get(x).size(); y++) \r\n\t\t\t\t{\r\n\t\t\t\t\tcoordenadaY++;\r\n\t\t\t\t\tpalabras.get(x).get(y).setX(coordenadaX);\r\n\t\t\t\t\tpalabras.get(x).get(y).setY(coordenadaY);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (palabras.get(x).get(0).getOrientacion().equals(\"H\") ) {\r\n\t\t\t\t\r\n\t\t\t\tint coordenadaX = palabras.get(x).get(0).getX();\r\n\t\t\t\tint coordenadaY = palabras.get(x).get(0).getY();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 1; y < palabras.get(x).size(); y++) \r\n\t\t\t\t{\r\n\t\t\t\t\tcoordenadaX++;\r\n\t\t\t\t\tpalabras.get(x).get(y).setX(coordenadaX);\r\n\t\t\t\t\tpalabras.get(x).get(y).setY(coordenadaY);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void inicializarVariablesControlRonda() {\n\t\ttieneAs = new int[4];\n\t\tfor(int i=0;i<tieneAs.length;i++) {\n\t\t\ttieneAs[i]=0;\n\t\t}\n\t\tidJugadores = new String[3];\n\t\tvalorManos = new int[4];\n\t\t\n\t\tmazo = new Baraja();\n\t\tCarta carta;\n\t\tganador = new ArrayList<String>();\n\t\tapuestasJugadores = new int[3];\n\t\tmanoJugador1 = new ArrayList<Carta>();\n\t\tmanoJugador2 = new ArrayList<Carta>();\n\t\tmanoJugador3 = new ArrayList<Carta>();\n\t\tmanoDealer = new ArrayList<Carta>();\n\t\tparejaNombreGanancia = new ArrayList<Pair<String,Integer>>(); \n\t\t\n\t\t// gestiona las tres manos en un solo objeto para facilitar el manejo del hilo\n\t\tmanosJugadores = new ArrayList<ArrayList<Carta>>(4);\n\t\tmanosJugadores.add(manoJugador1);\n\t\tmanosJugadores.add(manoJugador2);\n\t\tmanosJugadores.add(manoJugador3);\n\t\tmanosJugadores.add(manoDealer);\n\t\t// reparto inicial jugadores 1 y 2\n\t\tfor (int i = 1; i <= 2; i++) {\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador1.add(carta);\n\t\t\tcalcularValorMano(carta, 0);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador2.add(carta);\n\t\t\tcalcularValorMano(carta, 1);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador3.add(carta);\n\t\t\tcalcularValorMano(carta, 2);\n\t\t}\n\t\t// Carta inicial Dealer\n\t\tcarta = mazo.getCarta();\n\t\tmanoDealer.add(carta);\n\t\tcalcularValorMano(carta, 3);\n\n\t\t\n\t}",
"private void createDefaultGalaxy(){\n milkyWay.setGalaxyColonies(37579321);\n milkyWay.setGalaxyPopulation(1967387132);\n milkyWay.setGalaxyFleets(237);\n milkyWay.setGalaxyStarships(34769);\n }",
"@Override\n public void paint(Graphics g){\n GraficasEstatus cantidad=new GraficasEstatus();\n super.paint(g);\n if(bandera==true){\n \n int nuevoingreso=cantidad.nuevoIngreso();\n int noreparado=cantidad.noReparado();\n int enrevision=cantidad.enRevision();\n int reparado=cantidad.reparado();\n int entregado=cantidad.entregado();\n int otro=cantidad.otro();\n \n int valormayor=mayorValor(nuevoingreso, noreparado, enrevision, reparado, entregado, otro);\n \n int ningreso=nuevoingreso*400/valormayor;\n int nreparados=noreparado*400/valormayor;\n int erevision=enrevision*400/valormayor;\n int reparados=reparado*400/valormayor;\n int entregados=entregado*400/valormayor;\n int otros=otro*400/valormayor;\n \n g.setColor(new Color(255,170,0));\n g.fillRect(100, 100, ningreso, 40);\n g.drawString(\"Nuevo ingreso\", 10, 118);\n g.drawString(\"Cantida \"+nuevoingreso, 10, 133);\n \n g.setColor(new Color(255,0,0));\n g.fillRect(100, 150, nreparados, 40);\n g.drawString(\"No reparados\", 10, 168);\n g.drawString(\"Cantida \"+noreparado, 10, 180);\n \n g.setColor(new Color(0,0,255));\n g.fillRect(100, 200, erevision, 40);\n g.drawString(\"En revision\", 10, 218);\n g.drawString(\"Cantida \"+enrevision, 10, 233);\n \n g.setColor(new Color(0,150,255));\n g.fillRect(100, 250, reparados, 40);\n g.drawString(\"Reparados\", 10, 268);\n g.drawString(\"Cantida \"+reparado, 10, 280);\n \n g.setColor(new Color(0,130,0));\n g.fillRect(100, 300, entregados, 40);\n g.drawString(\"Entregados\", 10, 318);\n g.drawString(\"Cantida \"+entregado, 10, 333);\n \n g.setColor(new Color(150,100,100));\n g.fillRect(100, 350, otros, 40);\n g.drawString(\"Otro\", 10, 368);\n g.drawString(\"Cantida \"+otro, 10, 380);\n \n }\n }",
"public Figure (){\n\t\tthis.simple = 0;\n\t\tthis.paire = 0;\n\t\tthis.berlan = 0;\n\t\tthis.carre = 0;\n\t}",
"protected abstract void narisi(Graphics2D g, double wPlatno, double hPlatno);",
"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 vaciarImagenGrande() {\n\t\tlabelImagenGrande.setIcon(null);\n\t\tlabelNombre.setText(\"\");\n\t\tlabelFecha.setText(\"\");\n\t\tlabelResolucion.setText(\"\");\n\t\tlabelPeso.setText(\"\");\n\t\tpanelImagenEtiquetas.removeAll();\n\t\tresultadosEste.revalidate();\n\t\tresultadosEste.repaint();\n\t\t//TODO comprobar si es necesario quitar la referencia de imagenTempActual\n\t\t\n\t}",
"@Override\n public void paintComponent(Graphics g){\n super.paintComponent(g);\n this.g2d = (Graphics2D) g;\n for (Casilla casilla : casillas) {\n if(casilla instanceof CasillaCentro){\n (new GCasillaCentro(casilla, numCasillasAspa)).dibujar(g2d);\n }else if(casilla instanceof CasillaSemicirculo){\n (new GCasillaSemicirculo(casilla, numCasillasAspa)).dibujar(g2d);\n }else if(casilla instanceof CasillaTriangulo){\n (new GCasillaTriangulo(casilla, numCasillasAspa)).dibujar(g2d);\n }else if(casilla instanceof CasillaPropia){\n (new GCasillaPropia(casilla, numCasillasAspa)).dibujar(g2d);\n }else{\n (new GCasillaNormal(casilla, numCasillasAspa)).dibujar(g2d);\n }\n }\n }",
"public void setGrafico(Grafico grafico) {\n this.grafico_comunicacao = grafico;\n }",
"public Gigamesh(int vel, int daño,String derecha, String izquierda,String arriba, String abajo, String ataca,String ataca2,String interact,String salta,int intervaloAtaque)\n {\n super(\"giga\",9,6,vel,daño,derecha,izquierda,arriba,abajo,ataca,ataca2,interact,salta,intervaloAtaque); \n \n }",
"private void actualizarFondo() {\n actualizaEstadoMapa();\n if (modificacionFondoBase == true && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE){\n moverFondo();\n } else if (modificacionFondoBase == false && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE ){\n texturaFondoBase= texturaFondo1_1;\n texturaFondoApoyo= texturaFondo1_2;\n moverFondo();\n }\n }",
"public void inicio(){\n d.display(\"Para un calcular conversiones de grados Farenheit y Celsius\\n\"\n + \"o viceversa\");\n //System.out.println(\"Para un nadaro que ha ganado medallas en 5 competencias\");\n }",
"private void drawScaleZones(boolean isGraduated){\n\n Log.e(TAG, \"init======isGraduated>>>>>\"+isGraduated );\n if(isGraduated){\n if(pathEffect == null){\n\n pathEffect = new PathDashPathEffect(mScaleZonePath, mScaleZonePadding,0, PathDashPathEffect.Style.ROTATE);\n }\n progressPaint.setPathEffect(pathEffect);\n }else {\n pathEffect = null;\n progressPaint.setPathEffect(null);\n }\n\n }",
"public HashMap<String, String> cargarValoresParametrosGeneralesPlantillasGrupos(){\n\t\tHashMap<String, String> valoresParametros = new HashMap<String, String>();\n//\t\ttry {\n\t\n//\t\tString cargofirmantepr =parametrosGeneralesService.getParametroGeneralByCodigo(\"CARPR\").getValor();\n//\t\tString nombrefirmantepr =parametrosGeneralesService.getParametroGeneralByCodigo(\"NOMBPR\").getValor();\n//\t\tString cargofirmanteresol =parametrosGeneralesService.getParametroGeneralByCodigo(\"CARRESOL\").getValor();\n//\t\tString nombrefirmanteresol =parametrosGeneralesService.getParametroGeneralByCodigo(\"NOMBRESOL\").getValor();\n//\t\tvaloresParametros.put(\"CARPR\", cargofirmantepr);\n//\t\tvaloresParametros.put(\"NOMBPR\", nombrefirmantepr);\n//\t\tvaloresParametros.put(\"CARRESOL\", cargofirmanteresol);\n//\t\tvaloresParametros.put(\"NOMBRESOL\", nombrefirmanteresol);\n//\t\t} catch (PersistenciaException e) {\n//\t\t\t// TODO Auto-generated catch block\n//\t\t\te.printStackTrace();\n//\t\t}\n\t\t\n\t\treturn valoresParametros;\n\t}",
"private void populaAula()\n {\n Aula aula = new Aula(\"Abdominal\", \"Aula que tem como objetivo o aumento da força e resistência muscular abdominal,\"\n + \" melhora da postura e diminuição das dores lombares, através de exercícios de resistência \"\n + \"muscular. Indicada para todos os níveis de condicionamento para iniciantes, intermediários e \"\n + \"avançados. DURAÇÃO 30'\", \"ab.jpg\");\n aulaDAO.insert(aula);\n\n aula = new Aula(\"Boxe\", \"Aula de condicionamento físico que utiliza a técnica e exercícios do boxe. Indicada para todos os níveis \"\n + \"de condicionamento para iniciantes, intermediários e avançados. DURAÇÃO 60'\", \"boxe.gif\");\n aulaDAO.insert(aula);\n\n aula = new Aula(\"Jiu Jitsu\", \"Aula com treinamento específico da modalidade\", \"jiujitsu.gif\");\n aulaDAO.insert(aula);\n\n aula = new Aula(\"Bike\", \"Aula que tem como objetivo o condicionamento cardiovascular, através de uma \"\n + \"periodização de treinamento específica da modalidade. Indicada para todos os níveis de condicionamento para \"\n + \"iniciantes, intermediários e avançados. DURAÇÃO 30', 45' E 60'\", \"bike.gif\");\n aulaDAO.insert(aula);\n }",
"public void afficherVariables() {\n System.out.println\r\n (\"Objet de type GrillePain avec variables d'instance année = \" +\r\n annee + \" et nbTranches = \" + nbTranches);\r\n }",
"public Factura4(){\n this.totalZapatos=0;\n this.totalZapatosNacional=0;\n this.totalZapatosArtesanal=0;\n\n }",
"public void setAnimaciones( ){\n\n int x= 0;\n Array<TextureRegion> frames = new Array<TextureRegion>();\n for(int i=1;i<=8;i++){\n frames.add(new TextureRegion(atlas.findRegion(\"demon01\"), x, 15, 16, 15));\n x+=18;\n }\n this.parado = new Animation(1 / 10f, frames);//5 frames por segundo\n setBounds(0, 0, 18, 15);\n\n }",
"public void UnDia()\n {\n int i = 0;\n for (i = 0; i < 6; i++) {\n for (int j = animales.get(i).size() - 1; j >= 0; j--) {\n\n if (!procesoComer(i, j)) {\n animales.get(i).get(j).destruir();\n animales.get(i).remove(j);\n } else {\n if (animales.get(i).size() > 0 && j < animales.get(i).size()) {\n\n if (animales.get(i).get(j).reproducirse()) {\n ProcesoReproducirse(i, j);\n }\n if (j < animales.get(i).size()) {\n if (animales.get(i).get(j).morir()) {\n animales.get(i).get(j).destruir();\n animales.get(i).remove(j);\n }\n }\n }\n }\n\n }\n }\n if (krill == 0) {\n Utilidades.MostrarExtincion(0, dia);\n }\n modificarKrill();\n modificarTemperatura();\n ejecutarDesastres();\n for (i = 1; i < animales.size(); i++) {\n if (animales.get(i).size() == 0 && !extintos.get(i)) {\n extintos.set(i, true);\n Utilidades.MostrarExtincion(i, dia);\n }\n }\n dia++;\n System.out.println(dia + \":\" + krill + \",\" + animales.get(1).size() + \",\" + animales.get(2).size() + \",\" + animales.get(3).size() + \",\" + animales.get(4).size() + \",\" + animales.get(5).size());\n }",
"public void initialisationGrille(){\n for(int i = 0; i < this.grille.length ; i++)\n {\n for(int j = 0 ; j < this.grille[i].length;j++)\n {\n this.grille[i][j] = \"0\";\n this.grilleObjectif[i][j] = \"0\";\n }\n }\n }",
"public static void main(String[] args) { \n /* Grafo grafo = new Grafo();\n \n No no;\n no = new No(\"1\");//0\n grafo.addNo(no);\n no = new No(\"2\");//1\n grafo.addNo(no);\n no = new No(\"3\");//2\n grafo.addNo(no);\n no = new No(\"4\");//3\n grafo.addNo(no);\n no = new No(\"5\");//4\n grafo.addNo(no);\n no = new No(\"6\");//5\n grafo.addNo(no);\n no = new No(\"7\");//6\n grafo.addNo(no);\n \n //Cria as arestas do nó\n \n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(1), 2);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(2), 5);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(3), 4);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(2), 2);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(4), 7);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(3), 1);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(4), 4);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(5), 3);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(5), 4);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(5), 1);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(6), 5);\n Aresta.inserirAresta(grafo.getNo(5), grafo.getNo(6), 7);\n \n No no;\n no = new No(\"SF\");//0\n grafo.addNo(no);\n no = new No(\"LA\");//1\n grafo.addNo(no);\n no = new No(\"D\");//2\n grafo.addNo(no);\n no = new No(\"C\");//3\n grafo.addNo(no);\n no = new No(\"A\");//4\n grafo.addNo(no);\n no = new No(\"B\");//5\n grafo.addNo(no);\n no = new No(\"NY\");//6\n grafo.addNo(no);\n no = new No(\"M\");//7\n grafo.addNo(no);\n \n \n //Cria as arestas do nó\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(1), 39);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(2), 89);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(3), 120);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(6), 210);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(2), 50);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(6), 170);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(3), 65);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(5), 79);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(6), 59);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(4), 99);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(6), 80);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(7), 70);\n Aresta.inserirAresta(grafo.getNo(5), grafo.getNo(6), 20);\n Aresta.inserirAresta(grafo.getNo(6), grafo.getNo(7), 66);*/\n \n Grafo grafo = GrafoAleatorioKruskal.gerar(1000, 10, 10, 100);\n //Gera a arvore geradora com custo minimo\n grafo.kruskal();\n \n //TESTE\n int teste = grafo.getNo(0).getConjunto();\n boolean answer = true;\n for(No n : grafo.getNos()){\n if (teste!= n.getConjunto()){\n answer = false;\n }\n }\n if(answer){\n System.out.println(\"Todos os nós pertecem ao mesmo conjunto\");\n }\n else{\n System.out.println(\"Deu erro\");\n }\n }",
"private void inicializarAnimaciones(Array<String> rutaAnimaciones) {\n\n aspectoBasico = new Sprite(new Texture(Gdx.files.internal(rutaAnimaciones.get(0))));\n\n for (int i = 1; i < 6; i++) {\n if (rutaAnimaciones.get(i).contains(\"D\"))\n texturasDerecha.add(new Sprite(new Texture(Gdx.files.internal(rutaAnimaciones.get(i)))));\n else\n texturasIzquierda.add(new Sprite(new Texture(Gdx.files.internal(rutaAnimaciones.get(i)))));\n }\n\n animacionDerecha = new Animation(0.75f, texturasDerecha);\n animacionIzquierda = new Animation(0.75f, texturasIzquierda);\n }",
"public void posicionar(int dia) {\n\n anguloConElSol = (anguloInicial + (velocidadEnGrados * dia * direccion));\n this.posicion.fijarPos(anguloConElSol, radio);\n }",
"public static void adicionaMap2() {\n\t\t\t\tcDebitos_DFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"dam\", new Integer[] { 6, 18 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"fiti\", new Integer[] { 19, 26 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"cartorio\", new Integer[] { 39, 76 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"valor\", new Integer[] { 77, 90 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\t\t\t\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"processo\", new Integer[] { 21, 34 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"data_Venc\", new Integer[] { 35, 46 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"tributos\", new Integer[] { 47, 60 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"historico\", new Integer[] { 61, 78 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"valor\", new Integer[] { 79, 90 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\r\n\r\n\t\t// No DAM ANO DATA VENC No. PROCESSO\r\n\t\t// No. PARCELAMENTO VALOR JUROS TOTAL\r\n\t\tcDebitos_JFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_JFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_JFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_JFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_JFlorianopolis.put(\"processo\", new Integer[] { 39, 55 });\r\n\t\tcDebitos_JFlorianopolis.put(\"nParcelamento\", new Integer[] { 55, 76 });\r\n\t\tcDebitos_JFlorianopolis.put(\"valor\", new Integer[] { 77, 104 });\r\n\t\tcDebitos_JFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_JFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t// DAM LIV/FOLHA/CERT. DATA INSC HISTORICO\r\n\t\t// INSCRICAO VALOR\r\n\r\n\t\tcDebitos_J1Florianopolis.put(\"dam\", new Integer[] { 1, 13 });\r\n\t\tcDebitos_J1Florianopolis.put(\"liv_Folha_Cert\", new Integer[] { 14, 34 });\r\n\t\tcDebitos_J1Florianopolis.put(\"data_Insc\", new Integer[] { 35, 46 });\r\n\t\tcDebitos_J1Florianopolis.put(\"historico\", new Integer[] { 47, 92 });\r\n\t\tcDebitos_J1Florianopolis.put(\"inscricao\", new Integer[] { 93, 119 });\r\n\t\tcDebitos_J1Florianopolis.put(\"valor\", new Integer[] { 120, 132 });\r\n\t\t\r\n\t\t\r\n\t\t// No DAM ANO DATA VENC HISTORICO PROCESSO VALOR JUROS TOTAL\r\n\t\tcDebitos_LFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_LFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_LFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_LFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_LFlorianopolis.put(\"historico\", new Integer[] { 39, 76 });\r\n\t\tcDebitos_LFlorianopolis.put(\"processo\", new Integer[] { 77, 91 });\r\n\t\tcDebitos_LFlorianopolis.put(\"valor\", new Integer[] { 92, 104 });\r\n\t\tcDebitos_LFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_LFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\r\n\t}",
"private void createMapOfFourthType() {\n\n this.typeOfMap=4;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.RED, true,0,0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, true,0,1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = null;\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.PURPLE, true,1,1);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.PURPLE, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = createSquare( ColorOfFigure_Square.GREY, true,2,0);\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.GREY, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, true,2,3);\n }",
"public void cambiarDificultad(){\r\n\t\tif (Menu.dificultad == \"facil\") {\r\n\t\t\tspeed = 10;\r\n\t\t\tspace = 350;\r\n\t\t}else if (Menu.dificultad == \"normal\") {\r\n\t\t\tspeed = 10;\r\n\t\t\tspace = 280;\r\n\t\t}else if (Menu.dificultad == \"dificil\") {\r\n\t\t\tspeed = 15 ;\r\n\t\t\tspace = 300;\r\n\t\t}else if (Menu.dificultad == \"Invertido\") {\r\n\t\t\tspeed = 10;\r\n\t\t\tspace = 280;\r\n\t\t}\r\n\t}",
"private void initGrille() {\n this.setLayout(new GridLayout(8, 8));\n Color backgroundColor = Color.WHITE;\n for (int i = 7; i >= 0; i--) {\n for (int j = 0; j < 8; j++) {\n CaseJeu c = new CaseJeu(j, i, backgroundColor, fenetre);\n if (j != 7) {\n backgroundColor = (backgroundColor.equals(Color.GRAY)) ? Color.WHITE : Color.GRAY;\n }\n this.add(c);\n }\n }\n }",
"public void setRaggio(double raggio){\n this.raggio = raggio;\n }",
"public void resolution() {\n\t\tLigneProposition essai = new LigneProposition(p.getNbTrou());\n\t\t\n\t\tfor(int i = 0; i < p.getNbTrou(); i++) {\n\t\t\tessai.setAt(i, 1 + (int)(Math.random() * ((p.getNbCouleur() -1))));\n\t\t}\n\t\t\n\t\tp.ajouterEssai(essai);\n\t}",
"public void estableixDades (String idMetge, String contrasenyaMetge, String pathP12Metge, GestorInterRemot gestor, pfcHistorialGuiMetge pfcHistorialGuiMetge ) {\n \n this.ncolMetge = idMetge;\n this.contrasenyaMetge = contrasenyaMetge;\n this.pathP12Metge = pathP12Metge;\n this.metge = new Metge ( this.ncolMetge, this.contrasenyaMetge, this.pathP12Metge );\n this.gestor = gestor; \n this.pfcHistorialGuiMetge = pfcHistorialGuiMetge;\n \n estableixLlistatPacientsModel();\n \n }",
"public void agregarMedico(String nombre, String nit, int dpi,double salario, int colegiado, boolean especialista){\r\n Medico med = new Medico();\r\n med.setMedico(nombre, nit, dpi, salario,colegiado, especialista);\r\n medicosenfermeras.add(med);\r\n }",
"private void dibujarReina(Graphics g) {\n\t\tint x = (fila - 1) * 50 + 10;\r\n\t\tint y = (columna - 1) * 50 + 40;\r\n\t\tg.drawLine(x + 5, y + 45, x + 45, y + 45);\r\n\t\tg.drawLine(x + 5, y + 45, x + 5, y + 5);\r\n\t\tg.drawLine(x + 45, y + 45, x + 45, y + 5);\r\n\t\tg.drawLine(x + 5, y + 35, x + 45, y + 35);\r\n\t\tg.drawLine(x + 5, y + 5, x + 15, y + 20);\r\n\t\tg.drawLine(x + 15, y + 20, x + 25, y + 5);\r\n\t\tg.drawLine(x + 25, y + 5, x + 35, y + 20);\r\n\t\tg.drawLine(x + 35, y + 20, x + 45, y + 5);\r\n\t\tg.drawOval(x + 20, y + 20, 10, 10);\r\n\t}",
"public Grafico getGrafico() {\n return this.grafico_comunicacao;\n }",
"private void dibujarFondo() {\n\t\t\n\t\tgrilla.setBackground(new Background(new BackgroundFill(Color.LIGHTGREEN, null, null)));\n\t\tgrilla.setBorder(crearBorde());\n\t\tgrilla.setPadding(new Insets(10));\n\t\tgrilla.setCenterShape(true);\n\t\t\n\t\tpanel.setCenter(grilla);\n\t}",
"public logicaEnemigos(){\n\t\t//le damos una velocidad inicial al enemigo\n\t\tsuVelocidad = 50;\n\t\tsuDireccionActual = 0.0;\n\t\tposX = 500 ;\n\t\tposY = 10;\n\t}",
"public void actualiza(){\r\n //pregunto si se presiono una tecla de dirección\r\n if(bTecla) {\r\n int iX = basPrincipal.getX();\r\n int iY = basPrincipal.getY();\r\n if(iDir == 1) {\r\n iY -= getHeight() / iMAXALTO;\r\n }\r\n if(iDir == 2) {\r\n iX += getWidth() / iMAXANCHO;\r\n }\r\n if(iDir == 3) {\r\n iY += getHeight() / iMAXALTO;\r\n }\r\n if(iDir == 4) {\r\n iX -= getWidth() / iMAXANCHO;\r\n }\r\n //limpio la bandera\r\n bTecla = false;\r\n \r\n //asigno posiciones en caso de no salirme\r\n if(iX >= 0 && iY >= 0 && iX + basPrincipal.getAncho() <= getWidth()\r\n && iY + basPrincipal.getAlto() <= getHeight()) {\r\n basPrincipal.setX(iX);\r\n basPrincipal.setY(iY);\r\n } \r\n }\r\n \r\n //Muevo los chimpys\r\n for(Base basChimpy : lklChimpys) {\r\n basChimpy.setX(basChimpy.getX() - iAceleracion);\r\n }\r\n \r\n //Muevo los diddys\r\n for(Base basDiddy : lklDiddys) {\r\n basDiddy.setX(basDiddy.getX() + iAceleracion);\r\n }\r\n\r\n }",
"public void leerPlanesDietas();",
"public Map<Integer, DefMazmorra>getMapaMazmoras()\n {\n if(null==this.mapaMazmoras)\n this.mapaMazmoras=CargadorRecursos.cargaMapaMazmorras();\n \n \n //Comprobacion:\n for(Map.Entry<Integer, DefMazmorra>maz: mapaMazmoras.entrySet())\n Gdx.app.log(\"DEF_MAZMORRA:\", \"\"+maz.getKey()+\":\"+maz.getValue());\n \n \n return this.mapaMazmoras;\n }",
"@Override\n\tpublic void update(int dia) {\n\t\tSystem.out.println(\"Este es el alumno 1 y el día del examen es:\" + dia);\n\t}",
"public void atacar() {\n texture = new Texture(Gdx.files.internal(\"recursos/ataques.png\"));\n rectangle=new Rectangle(x,y,texture.getWidth(),texture.getHeight());\n tmp = TextureRegion.split(texture, texture.getWidth() / 4, texture.getHeight() / 4);\n switch (jugadorVista) {\n case \"Derecha\":\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[2][b];\n animation = new Animation((float) 0.1, regions);\n tiempo = 0f;\n }\n break;\n case \"Izquierda\":\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[3][b];\n animation = new Animation((float) 0.1, regions);\n tiempo = 0f;\n }\n break;\n case \"Abajo\":\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[0][b];\n animation = new Animation((float) 0.1, regions);\n tiempo = 0f;\n }\n break;\n case \"Arriba\":\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[1][b];\n animation = new Animation((float) 0.1, regions);\n tiempo = 0f;\n }\n break;\n }\n }",
"public JPMetaDados() {\n initComponents();\n postgresElicitedBases = FacadePostgresElicitedBases.getPostgresElicitedBases();\n// MetodosUtil.setCombo(jCSGBD);\n jCSGBD.addItemListener(new ComboListener(this));\n }",
"private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }"
]
| [
"0.61312634",
"0.6114104",
"0.603885",
"0.60340756",
"0.5906346",
"0.5899672",
"0.5851416",
"0.58287174",
"0.5699585",
"0.56766856",
"0.5652215",
"0.5650832",
"0.5634479",
"0.5630941",
"0.5618612",
"0.5596362",
"0.556166",
"0.5546005",
"0.5495739",
"0.5470844",
"0.5458256",
"0.54516006",
"0.54465127",
"0.54179037",
"0.54172164",
"0.5392634",
"0.538665",
"0.53720176",
"0.5343314",
"0.534054",
"0.53394634",
"0.5325633",
"0.5320744",
"0.53106576",
"0.5310216",
"0.53052425",
"0.530199",
"0.52987826",
"0.52832454",
"0.52831775",
"0.5278127",
"0.5277379",
"0.5277253",
"0.52733725",
"0.5249079",
"0.5246799",
"0.52150697",
"0.5213798",
"0.52086675",
"0.5205534",
"0.5204265",
"0.5200758",
"0.5200154",
"0.51972294",
"0.5191966",
"0.5190171",
"0.51895815",
"0.51737255",
"0.5173246",
"0.51716197",
"0.5148863",
"0.5147702",
"0.5140417",
"0.5130832",
"0.5130803",
"0.51287085",
"0.5122939",
"0.5121725",
"0.51212156",
"0.5120261",
"0.51147944",
"0.51108754",
"0.51108336",
"0.5108512",
"0.51082176",
"0.51081884",
"0.51053923",
"0.51039016",
"0.50953794",
"0.5090331",
"0.50875515",
"0.50843304",
"0.5083548",
"0.5082376",
"0.5081784",
"0.5079855",
"0.50796455",
"0.50793093",
"0.50759465",
"0.50728893",
"0.5069492",
"0.5065875",
"0.5063606",
"0.50610113",
"0.50595385",
"0.50593334",
"0.50548375",
"0.50396246",
"0.50359255",
"0.50326604",
"0.502664"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onResume() {
super.onResume();
updateUserAcount();
showMainBottom();
MobclickAgent.onPageStart("MyMainFragment");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
GET USER BY ID OR CREATE | @ApiMethod(name = "user.getOrCreate",
path = "user/getOrCreate",
httpMethod = HttpMethod.GET)
public User getOrCreateUser(
HttpServletRequest request,
@Named("id") String id,
@Nullable @Named("name") String name
) throws UnauthorizedException {
Util.verifyClientKey(request);
// fetch user
Key<User> key = Key.create(User.class, id);
User user = ObjectifyService.ofy().load().key(key).now();
// if user does not exist, create and save
if (user == null) {
user = new User(id, name);
ObjectifyService.ofy().save().entity(user).now();
}
return user;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"User getUserById(int id);",
"User getUser(Long id);",
"User getUserById(Long id);",
"User getUserById(Long id);",
"public User getUserById(Long id) throws Exception;",
"@Override\r\n\tpublic User getUserById(int id) {\n\t\treturn userMapper.selById(id);\r\n\t}",
"public User getUser(Integer id)\n\t{\n\t\t// Create an user -1 for when it isn't in the list\n\t\tUser searchUser = new User();\n\t\t// Index: User's position in the list\n\t\tint index = this.getUserById(id.intValue());\n\t\t// If the user is in the list execute the action\n\t\tif(index != -1)\n\t\t{\n\t\t\tsearchUser = this.usersList.get(index);\n\t\t}\n\t\t\n\t\treturn searchUser;\n\t}",
"public UserTO getUser (String id);",
"User get(Key id);",
"public User getSpecificUser(String username);",
"public User findUserById(int id);",
"public User read(String id);",
"User getUser(String userId);",
"public User getUser(Long userId);",
"@Override\r\n\tpublic User getUserByID(int id) {\n\t\treturn userMapper.getUserByID(id);\r\n\t}",
"public User getUserById(Long userId);",
"User findUserById(int id);",
"UserInfo getUserById(Integer user_id);",
"@Override\r\n\tpublic User user(int id) {\r\n\t\tMap<String,String> map = getOne(SELECT_USERS+ WHERE_ID, id);\r\n\t\tif(map!= null){\r\n\t\t\treturn IMappable.fromMap(User.class, map);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic User getUserById(int id) {\n\t\treturn userDao.getUserById(id);\n\t}",
"User get(int userId) throws UserNotFoundException, SQLException;",
"@Override\n\tpublic User getUser(int id) {\n\t\treturn userRepository.findById(id);\n\t}",
"public User getUser(Integer id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic AppUser getUserById(int id) {\n\t\tAppUser user = store.get(id);\n return user;\n\t\t\n\t}",
"User getUser(User user) ;",
"@Override\n\tpublic User selectUserById(int id) {\n\t\tUser user = null;\n\t\ttry {\n\t\t\tuser = (User) client.queryForObject(\"selectUserById\", id);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn user;\n\n\t}",
"public abstract User getUserById(int id) throws UserNotFoundException;",
"public User getUser(int id) {\n\t\treturn null;\n\t}",
"public User getUser(int id){\n \n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n User user = null;\n try {\n tx = session.beginTransaction();\n\n // Add restriction to get user with username\n Criterion emailCr = Restrictions.idEq(id);\n Criteria cr = session.createCriteria(User.class);\n cr.add(emailCr);\n user = (User)cr.uniqueResult();\n tx.commit();\n } catch (HibernateException e) {\n if (tx != null)\n tx.rollback();\n log.fatal(e);\n } finally {\n session.close();\n }\n return user;\n }",
"UserDetails get(String id);",
"User findUserById(Long id) throws Exception;",
"public User getUserById(String id){\n\t\tUser e;\n\t\tfor (int i = 0 ; i < users.size() ; i++){\n\t\t\te = users.get(i);\n\t\t\tif (e.getId().equals(id))\n\t\t\t\treturn e;\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic User getUserById(int id) {\n\t\treturn null;\n\t}",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"public static User findUserById(int id) {\n\n User user = null;\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findUserById = \"SELECT * FROM public.member \"\n + \"WHERE id = '\" + id + \"'\";\n\n PreparedStatement stmt = DBConnection.prepare(findUserById);\n\n try {\n ResultSet rs = stmt.executeQuery();\n while(rs.next()) {\n user = load(rs);\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n if(user != null) {\n targetUser = userIdentityMap.get(user.getId());\n if(targetUser == null) {\n userIdentityMap.put(user.getId(), user);\n return user;\n }\n else\n return targetUser;\n }\n return user;\n }",
"User getUser();",
"User getUser();",
"private User getUser(Long id) {\n\t\tEntityManager mgr = getEntityManager();\n\t\tUser user = null;\n\t\ttry {\n\t\t\tuser = mgr.find(User.class, id);\n\t\t} finally {\n\t\t\tmgr.close();\n\t\t}\n\t\treturn user;\n\t}",
"UUID getUserId(String userName) throws UserNotFoundException;",
"public User getUser(String id) {\n return repository.getUser(id).get(0);\n }",
"public User getUser(long id){\n User user = userRepository.findById(id);\n if (user != null){\n return user;\n } else throw new UserNotFoundException(\"User not found for user_id=\" + id);\n }",
"public User getUserData(String id);",
"SysUser selectByPrimaryKey(Long userId);",
"java.lang.String getUserIdOne();",
"public Person getUserById(int id);",
"User find(long id);",
"@Override\n\tpublic User getOne(Integer id) {\n\t\treturn userDao.getOne(id);\n\t}",
"Integer getUserId();",
"public User getById(@NotBlank String id){\n System.out.println(\"Sukses mengambil data User.\");\n return null;\n }",
"String getUserId();",
"String getUserId();",
"@Override\n\tpublic PrpUser getUserById(Integer id) {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic UserTO getUser(String id) {\n\t\treturn null;\r\n\t}",
"public static User selectById(int id) {\n User user = new User();\n\n try (PreparedStatement ps = DBConnection.getConnection().prepareStatement(GET_BY_ID)){\n ps.setInt(1, id);\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n user.setUserId(rs.getInt(\"User_ID\"));\n user.setUserName(rs.getString(\"User_Name\"));\n user.setPassword(rs.getString(\"Password\"));\n user.setDateCreated(rs.getObject(\"Create_Date\", LocalDateTime.class));\n user.setCreatedBy(rs.getString(\"Created_By\"));\n user.setLastUpdate(rs.getTimestamp(\"Last_Update\"));\n user.setLastUpdatedBy(rs.getString(\"Last_Updated_By\"));\n //\n }\n } catch (SQLException err) {\n err.printStackTrace();\n }\n\n return user;\n }",
"public User getUserById(int id) {\n System.out.println(id + this.userDao.selectId(id).getUsername());\n\n return this.userDao.selectId(id);\n }",
"User findUser(String userId);",
"@Override\r\n public IUser getUserByUserId(String id)\r\n {\r\n EntityManager em = getEntityManager();\r\n\r\n try\r\n {\r\n return em.find(User.class, id);\r\n }\r\n finally\r\n {\r\n em.close();\r\n }\r\n }",
"public User getUserById(String id) {\n // return userRepo.findById(id);\n\n return null;\n }",
"BaseUser selectByPrimaryKey(String userId);",
"public PrototypeUser getUserById(Long id) {\n\t\treturn userDao.findById(id);\r\n\t}",
"@Override\n\tpublic User getUserById(String id) {\n\t\tUser user = null;\n\t\tConnection connection = null;\n\t\ttry{\n\t\t\tconnection = BaseDao.getConnection();\n\t\t\tuser = userMapper.getUserById(connection,id);\n\t\t}catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\tuser = null;\n\t\t}finally{\n\t\t\tBaseDao.closeResource(connection, null, null);\n\t\t}\n\t\treturn user;\n\t}",
"@Override\r\n\tpublic User findByIdUser(Integer id) {\n\t\treturn userReposotory.findById(id).get();\r\n\t}",
"Optional<User> findUser(int id) throws ServiceException;",
"@Override\r\n\tpublic User getById(Integer id) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic LocalUser get(int id) {\n\t\treturn userDao.get(id);\r\n\t}",
"public User user(long id) {\n\t\tOptional<User> user = repository.findById(id);\n\n\t\tif (user.isPresent()) {\n\t\t\treturn user.get();\n\t\t} else {\n\t\t\tthrow new NotFoundException(\"User com o Id: \" + id + \" não encontrado em nossa base de dados!\");\n\t\t}\n\n\t}",
"public Users getUser(Integer id) {\r\n\t\treturn usDao.findById(id, true);\r\n\r\n\t}",
"User getPassedUser();",
"public User getUser(String id) {\n\t\treturn null;\r\n\t}",
"public User getUserById(int id) {\n\t\treturn userDao.getUserById(id);\r\n\t}",
"GroupUser getGroupUserById(String id);",
"public User getUserByID(long id)throws SQLException, ClassNotFoundException ;",
"public User findById(Long id){\n return userRepository.findOne(id);\n }",
"static User create(int id){\n return Users.isMyID(id) ? new LoggedUser(id) : new User(id);\n }",
"public User getUser(String name);",
"public User getUser(String name);",
"public User selectByPrimaryKey(Long id) {\r\n User key = new User();\r\n key.setId(id);\r\n User record = (User) getSqlMapClientTemplate().queryForObject(\"spreader_tb_user.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }",
"public User selectoneuser(int id) {\n\t\tUser user = null;\n\t\tuser = new User();\n\t\tSystem.out.println(\"Userdao的id=\" + id);\n\t\tConnection conn = null;\n\t\tString sql = \"select * from users where id=\" + id;\n\t\tResultSet rs = null;\n\t\ttry {\n\t\t\tconn = ConnectDB.getconnect();\n\t\t\tPreparedStatement pstmt = conn.prepareStatement(sql);\n\t\t\trs = pstmt.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tuser.setId(rs.getInt(\"id\"));\n user.setUsername(rs.getString(\"username\"));\n user.setPassword(rs.getString(\"password\"));\n user.setPhonenumber(rs.getString(\"phonenumber\"));\n user.setEmail(rs.getString(\"email\"));\n\t\t\t}\n\t\t\tpstmt.close();\n\t\t\tconn.close();\n\t\t\treturn user;\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"bookdao查询当前id结果失败\");\n\t\t}\n\t\treturn user;\n\t}",
"public User findById(Long id);",
"private User findById(String id) {\n User result = new NullUserOfDB();\n for (User user : this.users) {\n if (user.getId().equals(id)) {\n result = user;\n break;\n }\n }\n return result;\n }",
"User getOne(long id) throws NotFoundException;",
"long getUserId();",
"long getUserId();",
"User findOne(Long id);",
"User getUserInformation(Long user_id);",
"User findById(Long id);",
"User getUser(boolean autocreate);",
"Optional<JUser> readById(Long id);",
"public User getUser(String id){\n \t\t// execute query\n \t\tString query = \"SELECT * FROM users WHERE id = '\" + id + \"'\";\n \t\tResultSet rs = getResult(query);\n \t\t\n \t\t// check if result is empty\n \t\ttry {\n \t\t\tif(rs.next() == false) return null;\n \t\t} catch (SQLException e) {e.printStackTrace();}\n \t\t\n \t\t// otherwise create user with query result\n \t\tString hash = null;\n \t\tboolean isAdmin = false;\n \t\ttry {\n \t\t\thash = rs.getString(\"hash\");\n \t\t} catch (SQLException e) {e.printStackTrace();}\n \t\t\n \t\ttry {\n \t\t\tisAdmin = rs.getBoolean(\"isAdmin\");\n \t\t} catch (SQLException e) {e.printStackTrace();}\n \t\t\n \t\tString image = \"\";\n \t\ttry {\n \t\t\timage = rs.getString(\"image_url\");\n \t\t} catch (SQLException e) {e.printStackTrace();}\n \t\t\n \t\treturn new User(id, hash, isAdmin, this, image);\t\t\n \t}",
"public UserInformation findInformationById(int id);",
"public static User findUser(int id) {\r\n return null;\r\n }",
"public MetaUser getMetaUser(int iUser);",
"public User getUserById(int userId) {\n return this.userDao.selectByPrimaryKey(userId); \r\n }",
"@Override\n public TechGalleryUser getUser(final Long id) throws NotFoundException {\n TechGalleryUser userEntity = userDao.findById(id);\n // if user is null, return a not found exception\n if (userEntity == null) {\n throw new NotFoundException(i18n.t(\"No user was found.\"));\n } else {\n return userEntity;\n }\n }",
"public Utilisateur getUser(int id) {\n Utilisateur user = null;\n SQLiteDatabase db = this.getReadableDatabase(); // On veut lire dans la BD\n Cursor cursor = db.query(TABLE_USER, new String[]{USER_ID,\n USER_NOM, USER_AGE, USER_SEX}, USER_ID + \"=?\",\n new String[]{String.valueOf(id)}, null, null, null, null);\n if (cursor != null && cursor.getCount()>0) {\n cursor.moveToFirst();\n user = new Utilisateur(cursor.getInt(0), cursor.getString(1), cursor.getString(2),\n cursor.getString(3));\n }\n cursor.close();\n db.close(); // Fermer la connexion\n// Retourner l'user\n return user;\n }",
"Long getUserId();",
"User loadUser(int id) throws DataAccessException;",
"People getObjUser();",
"@Override\n public User getUserById(int userId) {\n return this.userDao.selectByPrimaryKey(userId);\n }"
]
| [
"0.7899673",
"0.78777534",
"0.77472377",
"0.77472377",
"0.7457936",
"0.73470485",
"0.73140407",
"0.7312003",
"0.73078233",
"0.729448",
"0.728994",
"0.72625595",
"0.7253129",
"0.72451067",
"0.7242964",
"0.72419596",
"0.72377753",
"0.7220429",
"0.72023255",
"0.71993047",
"0.7196921",
"0.7186076",
"0.7180948",
"0.71642625",
"0.71641654",
"0.71639764",
"0.7150786",
"0.713875",
"0.7136392",
"0.71219814",
"0.71195906",
"0.7117989",
"0.710908",
"0.7106184",
"0.7106184",
"0.7106184",
"0.7099721",
"0.70994085",
"0.70994085",
"0.7090764",
"0.7090691",
"0.7087536",
"0.7085246",
"0.7084359",
"0.7077975",
"0.70739686",
"0.70700765",
"0.7064276",
"0.70604813",
"0.70586896",
"0.70583224",
"0.70542794",
"0.70542794",
"0.702885",
"0.7022971",
"0.7021053",
"0.70200133",
"0.7019555",
"0.70043314",
"0.70021796",
"0.6996269",
"0.69919574",
"0.698702",
"0.69856757",
"0.6960538",
"0.69531053",
"0.6952518",
"0.69494414",
"0.69443816",
"0.69350106",
"0.69338405",
"0.69305104",
"0.6929946",
"0.69283086",
"0.6923336",
"0.6920905",
"0.69163",
"0.69163",
"0.69132006",
"0.69067323",
"0.6901552",
"0.6884087",
"0.6884077",
"0.6881558",
"0.6881558",
"0.68798196",
"0.6877903",
"0.68692106",
"0.68638384",
"0.68618566",
"0.68617344",
"0.6860086",
"0.685954",
"0.6854282",
"0.685342",
"0.6853051",
"0.68529975",
"0.68498105",
"0.68494713",
"0.6846339",
"0.6844101"
]
| 0.0 | -1 |
ADD OR DELETE BOOKMARK | @ApiMethod(name = "user.update.bookmark",
path = "user/update/bookmark",
httpMethod = HttpMethod.PUT)
public User addBookmark(
HttpServletRequest request,
@Named("id") String id,
@Named("dealId") Long dealId,
@Named("add") Boolean add
) throws NotFoundException, UnauthorizedException {
Util.verifyClientKey(request);
Key<User> key = Key.create(User.class, id);
User user = ObjectifyService.ofy().load().key(key).now();
if (user == null)
throw new NotFoundException("User not found");
// add or delete the bookmark
if (add) {
// add deal id to bookmarks
user.getBookmarks().add(dealId);
} else {
// remove deal id from bookmarks
user.getBookmarks().remove(dealId);
}
// update user
ObjectifyService.ofy().save().entity(user).now();
return user;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addMark (Mark mark)\r\n {\r\n marks.add(mark);\r\n }",
"private void addMarkData(MarkData markData, MobileResponse mobileResponse) {\n //markData.saySomethingTextArea.getValue()\n ItemHolder itemHolder = mobileResponse.getItemHolder();\n GWT.log(\"adding itemholder \" + itemHolder.getId());\n if (markData.replyItemHolder != null) {\n markData.replyItemHolder.getChildrenItemHolders().add(itemHolder);\n } else {\n if (markData.expandData.locationResult.getItemHolders() == null) {\n markData.expandData.locationResult.setItemHolders(new ArrayList<ItemHolder>());\n }\n markData.expandData.locationResult.getItemHolders().add(itemHolder);\n }\n }",
"public void createMarksheet() {\n }",
"public void mark();",
"private void StatusBookmarks(){\n\t\tif(myDb.getAllRowsFavour().getCount()==0){\n\t\t\t\n\t\t\tRelativeLayout relative=(RelativeLayout) findViewById(R.id.mylayoutbookmark);\n\t\t\tmyText=new TextView(this);\n\t\t\tmyText.setTextColor(R.style.txtinLsViewSociaty);\n\t\t\tmyText.setText(\"Hiện tại bạn chưa thêm Bookmarks vào.\");\n\t\t\t\n\t\t\trelative.addView(myText);\n\t\t}\n\t}",
"private Bookmarks() {}",
"public\n BioterrainMarker() {\n\t\tmarker = new BioterrainMarkerDb();\n\t\tisNew = true;\n }",
"@Element \n public void setMark(String mark) {\n this.mark = mark;\n }",
"public void saveBorrowings() {\n\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tif(!stock.isBookmarked()){\n\t\t\t\t\t\t\tToast.makeText(StockListActivity.this, stock.getStockCode().toString()+\" added to Watchlist \",Toast.LENGTH_SHORT).show\n\n\t();\n\t\t\t\t\t\t\tstock.setBookmarked(true);\n\t\t\t\t\t\t\taddToWatchlist(stock);\n\t\t\t\t\t\t\tiButton.setImageResource(R.drawable.bookmark_yes);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tToast.makeText(StockListActivity.this, stock.getStockCode().toString()+\" removed from Watchlist \",Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\tstock.setBookmarked(false);\n\t\t\t\t\t\t\tremoveFromWatchlist(stock);\n\t\t\t\t\t\t\tiButton.setImageResource(R.drawable.bookmark_no);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\tpublic String saveBatch(List<Familybranch> record, Model m, BindingResult b) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n public void onClick(View v) {\n\n local_bookmarkOperation(v.getContext(), bean, holder.mBookmarkButton, position);\n\n }",
"public void setMark(int mark) {\n\t\tthis.mark = mark;\n\t}",
"public void add(int x, int y, String l)\n {\n if( r != null )\n {\n r.append(String.format(\"Commit @ [%d, %d, %s];\", x, y, l));\n r.flush();\n }\n }",
"private boolean MARK(Marker m) {\r\n if (look > 0) return true;\r\n if (marked > in) throw new Error(\"marked \" + marked + \" in \" + in);\r\n if (marked < in) {\r\n markers.clear();\r\n marked = in;\r\n }\r\n markers.add(m);\r\n return true;\r\n }",
"public void clearMark()\n {\n mark = false;\n }",
"void saveBookMark(){\n File dotFile = new File( bmFile);\n FileWriter fw;\n BufferedWriter bw;\n PrintWriter pw;\n String str;\n\n // open dotFile\n try{\n // if there is not dotFile, create new one\n fw = new FileWriter( dotFile );\n bw = new BufferedWriter( fw );\n pw = new PrintWriter( bw );\n //write\n for(int i=0;i<MAX_BOOKMARK;i++){\n str = miBookMark[i].getText();\n pw.println(str);\n }\n pw.close();\n bw.close();\n fw.close();\n }catch(IOException e){\n }\n }",
"int getMark();",
"@Override\n\tpublic void savePengdingWaybill(List<WaybillPendingEntity> pendingList) {\n\t\t\n\t}",
"public void MarkForDeletion();",
"void save(Bill bill);",
"public void mark() {\r\n\t\tmark = cursor;\r\n\t}",
"public void mark()\n {\n mark = true;\n }",
"public void setMarkNum(Integer markNum) {\n this.markNum = markNum;\n }",
"public void setDelmark(Integer delmark) {\n this.delmark = delmark;\n }",
"public String getMark() {\r\n return mark;\r\n }",
"public void addMark(int row, int col, char mark) {\n\t\t\n\t\ttheBoard[row][col] = mark;\n\t\tmarkCount++;\n\t}",
"public void mark(Marker m) {\n\t\tmark = m;\n\t}",
"interface Add {\n @InputDetail\n default void inputDetail() {\n mandatory(bookmark().name());\n mandatory(bookmark().value());\n }\n /**\n * The added bookmark.\n *\n * @author Oved Ourfali <[email protected]>\n * @date 12 Dec 2016\n * @status added\n */\n @In @Out Bookmark bookmark();\n }",
"void addInBookNo(Object newInBookNo);",
"void add(Note note);",
"public void setMark(String mark) {\r\n this.mark = mark == null ? null : mark.trim();\r\n }",
"void addNote(int x, int y);",
"public void mark(int x, int y) {\n\t\tcoveredMap[x][y] = SIGN_MARK;\n\t\tnettleToMark--;\n\t\tfor (int i = 0; i < unknown.size(); i++) {\n\t\t\tif (unknown.get(i)[0] == x && unknown.get(i)[1] == y) {\n\t\t\t\tunknown.remove(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public void markDirty()\n {\n }",
"@Override\n\tpublic void marks() {\n\t\t\n\t}",
"public void addBookmarks(ActionEvent event) throws IOException{\n bookmarkTxt();\n }",
"public void setMark(Float mark) {\n this.mark = mark;\n }",
"@Override\n public int save( Mention obj ) {\n return 0;\n }",
"public void mark() {\r\n\t\tthis.markedStack.addLast(this.value);\r\n\t}",
"public void addMark(int mark, int moduleNumber)\n {\n if((moduleNumber == 1) && (mark <=100))\n {\n moduleProgramming.giveMark(mark);\n totalCredits += Module.CREDIT;\n }\n else if((moduleNumber == 2) && (mark <=100))\n {\n moduleWeb.giveMark(mark);\n totalCredits += Module.CREDIT;\n }\n else if((moduleNumber == 3) && (mark <=100))\n {\n moduleDigitalTech.giveMark(mark);\n totalCredits += Module.CREDIT;\n }\n else if((moduleNumber == 4) && (mark <=100))\n {\n moduleCompArchitecture.giveMark(mark);\n totalCredits += Module.CREDIT;\n }\n else\n {\n System.out.println(\"The marks awarded must be less than 100\");\n }\n }",
"public void changeMark() {\n marked = !marked;\n }",
"@Writer\n int insert(LuckyBag record);",
"@Override\n\tpublic Marker addMarker() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Integer mark() {\n\t\treturn mark;\n\t}",
"public void deleteMarker(DBMarker marker)\n\t{\n\t\tMarker locationMarker = markerHashTable.get(marker);\n\t\tlocationMarker.remove();\n\t}",
"public void setMark\n (int r, int c,\n Mark mark);",
"private void insertBookmarkWithFootnote(final DocumentBuilder builder, final String bookmarkName,\n final String bookmarkText, final String footnoteText) {\n builder.startBookmark(bookmarkName);\n builder.write(bookmarkText);\n builder.insertFootnote(FootnoteType.FOOTNOTE, footnoteText);\n builder.endBookmark(bookmarkName);\n builder.writeln();\n }",
"int insert(SmsCleanBagLine record);",
"public void addMarkerToPref(Marker marker){\n parseClient.pushFavLoc(marker);\n latLngs.add(marker.getPosition());\n locationNames.add(marker.getTitle());\n saveMarkerPrefs();\n }",
"com.microsoft.schemas.xrm._2011.contracts.Label addNewLabel();",
"public Boat insertBoat(Boat boat);",
"public CommandMark(int[] id){\n\tthis.id = id;\n }",
"void addHadithBookNo(Object newHadithBookNo);",
"public void deleteBookmark (long bookmarkId) throws BookMarkException;",
"public void editDataInCommit(String alias, ArrayList<String> nameForManipulator, ArrayList<Integer> nameIndicator, ArrayList<String> descriptions, ArrayList<Integer> descriptionsIndicator,\n ArrayList<LocalDate> createDate, ArrayList<Integer> createIndicator,\n boolean release, int instanceCount, int countIndicator, boolean exist, int id) {\n Commit commit = dataModel.getCommit(id);\n dataModel.addDataToCommit(commit, alias, nameForManipulator, nameIndicator, descriptions, descriptionsIndicator, createDate, createIndicator, release, instanceCount, countIndicator, exist);\n }",
"@Override\r\n\tpublic void saveBatchBusiMemberInfo(List<BusiMemberInfo> busiMemberInfoLs) {\n\t\tbusiMemberInfoDao.addBacth(busiMemberInfoLs);\r\n\t}",
"StockLossMarkerType createStockLossMarkerType();",
"public boolean setMarkAt(Symbol symbol, int boardIndex, int markIndex) throws IllegalArgumentException;",
"public void mo8740a(BookmarkId bookmarkId) {\n }",
"public Integer getMarkNum() {\n return markNum;\n }",
"ISlot add(ISlot newEntry);",
"public void removeKanjiBookmarkList(List<KanjiDto> dtos, final CallBackListener<Boolean> callBack) {\n close();\n ContentResolver cr = mContext.getContentResolver();\n DaoAsyncQueryHandler queryHandler = new DaoAsyncQueryHandler(cr);\n\n\n queryHandler.setOnUpdateCompleteListener(new DaoAsyncQueryHandler.OnUpdateCompleteListener() {\n @Override\n public void onUpdateComplete(int var1, int var2) {\n if (var2 > 0) {\n callBack.onSuccess(true);\n } else {\n callBack.onSuccess(false);\n }\n }\n });\n\n StringBuilder sb = new StringBuilder(\"id IN (\");\n for (KanjiDto dto : dtos) {\n sb.append(\"'\").append(dto.kid).append(\"'\").append(\",\");\n }\n sb.append(\")\");\n String selection =sb.toString().replace(\",)\", \")\");\n\n ContentValues contentValues = new ContentValues();\n contentValues.put(\"is_bookmarked\", BookmarkEnum.IS_NOT_BOOKMARKED.toString());\n\n queryHandler.startUpdate(0, null, KanjiContentProvider.KANJI_URI, contentValues, selection, null);\n\n }",
"public int getMark() {\n return mark_;\n }",
"private void fillDrawMark(Graphics2D graphic, Point point, Mark mark, int size,\n double rotation, Feature feature) {\n fillDrawMark(graphic, point.getX(), point.getY(), mark, size, rotation, feature);\n }",
"@Override\n public void onClick(View v) {\n if (deletedContentModel != null && deletedContentModel.getBean() != null) {\n premium_updateBookmarkFavLike(null, null, context,\n deletedPosition, deletedContentModel.getBean(), \"dislike\");\n CleverTapUtil.cleverTapBookmarkFavLike(context, articleId, mFrom, \"UNDO\");\n }\n }",
"public void addNewBenificiary() {\n\t\t\tsetColBankCode(null);\n\t\t\tsetCardNumber(null);\n\t\t\tsetPopulatedDebitCardNumber(null);\n\t\t\tsetApprovalNumberCard(null);\n\t\t\tsetRemitamount(null);\n\t\t\tsetColAuthorizedby(null);\n\t\t\tsetColpassword(null);\n\t\t\tsetApprovalNumber(null);\n\t\t\tsetBooAuthozed(false);\n\t\t\tbankMasterList.clear();\n\t\t\tlocalbankList.clear();// From View V_EX_CBNK\n\t\t\tlstDebitCard.clear();\n\n\t\t\t// to fetch All Banks from View\n\t\t\t//getLocalBankListforIndicatorFromView();\n\t\t\tlocalbankList = generalService.getLocalBankListFromView(session.getCountryId());\n\n\t\t\tList<BigDecimal> duplicateCheck = new ArrayList<BigDecimal>();\n\t\t\tList<ViewBankDetails> lstofBank = new ArrayList<ViewBankDetails>();\n\t\t\tif (localbankList.size() != 0) {\n\t\t\t\tfor (ViewBankDetails lstBank : localbankList) {\n\t\t\t\t\tif (!duplicateCheck.contains(lstBank.getChequeBankId())) {\n\t\t\t\t\t\tduplicateCheck.add(lstBank.getChequeBankId());\n\t\t\t\t\t\tlstofBank.add(lstBank);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsetBankMasterList(lstofBank);\n\t\t\tsetBooRenderSingleDebit(true);\n\t\t\tsetBooRenderMulDebit(false);\n\t\t}",
"void addDeprecatedBookNo(Object newDeprecatedBookNo);",
"public void setMark( String newMark )\n\t\t{\n\t\t\tmark = newMark; // set mark of square\n\t\t\trepaint(); //repaint square\n\t\t}",
"public int getMark() {\n return mark_;\n }",
"@Override\n public void undo() {\n node.toggleBoundaryMarker();\n }",
"public Builder setMark(int value) {\n \n mark_ = value;\n onChanged();\n return this;\n }",
"@Override\r\n\tprotected void onBoDelete() throws Exception {\n\t\tsuper.onBoDelete();\r\n\t\t// 修改按钮属性\r\n\t\tif(myaddbuttun){\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(true);\r\n\t\t\tmyaddbuttun=true;\r\n\t\t\t// 转到卡片面,实现按钮的属性转换\r\n\t\t\tgetBillUI().setCardUIState();\r\n\t\t\tsuper.onBoReturn();\r\n\t\t}else{\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(false);\r\n\t\t\tmyaddbuttun=false;\r\n\t\t\t// 转到卡片面,实现按钮的属性转换\r\n\t\t\tgetBillUI().setCardUIState();\r\n\t\t\tsuper.onBoReturn();\r\n\t\t}\r\n\t}",
"@Element \n public String getMark() {\n return mark;\n }",
"public void removeBtn(){\r\n\t\t\r\n\t\tWorkflowEntry entryToBeRemoved = (WorkflowEntry) tableView.getSelectionModel().getSelectedItem();\r\n\t\t\r\n\t\tdata.remove(entryToBeRemoved);\r\n\t\t\r\n\t}",
"@Override\n\tpublic void saveBankingDetail(BankingDetail baningDetail) {\n\t\t\n\t}",
"@Override\n public void onClick(View view) {\n db.restoreDeletedItem(name, group_id, tally, actual_index);\n items = db.groupItemsToHashmap(group_id);\n adapter.restore_item(deletedItem, deletedIndex);\n adapter.notifyDataSetChanged();\n drawbars();\n }",
"public int getMark() {\n\t\treturn mark;\n\t}",
"@Override\n public void onBindViewHolder(final MyHolder holder, int position) {\n\n String imgName = houses.get(position).getImg();\n holder.img.setImageBitmap(string_toImage(imgName));\n //binding data to views\n holder.posTxt.setText(c.getString(R.string.money_sign)+houses.get(position).getPos());\n holder.nameTxt.setText(houses.get(position).getName());\n\n\n if(houses.get(position).getBookmarked()==null) { //if bookmark is null, this is a new object and its defualt is now set to false\n houses.get(position).setBookmarked(false);\n }\n //chcking bool bookmark value set as bookmarked_house or unbookmarked_hosue image\n if(houses.get(position).getBookmarked()) {\n holder.bookmarkbutton.setImageResource(R.drawable.bookmarked_vector);\n }else {\n holder.bookmarkbutton.setImageResource(R.drawable.unbookmarked_vector);\n }\n\n //click listener from custom ItemCLickListener\n holder.setItemClickListener(new ItemClickListener() {\n @Override\n public void onItemClick(View v, int pos) {\n switch (v.getId()) {\n case R.id.contactButton://saving email and phone to go to messages page\n savePreferences(\"phone_number\",houses.get(pos).getPhone());\n BottomNavigationView bottomNavigationView = (BottomNavigationView) ((AppCompatActivity)c).findViewById(R.id.bottom_bar);\n bottomNavigationView.setSelectedItemId(R.id.m);\n final Fragment messageFrag = new Message_page();\n ((AppCompatActivity)c).getSupportFragmentManager().beginTransaction().setReorderingAllowed(true)\n .replace(R.id.fragmentContent, messageFrag, null).addToBackStack(null).commit();\n break;\n case R.id.bookmarkButton://setting bookmark true or not, with database writes and reads\n\n if(houses.get(pos).getBookmarked()) {\n //if currently true, set to false set image as unbookmarked\n refBookmarkedHouses.child(\"userHouses\").child(houses.get(pos).getName()).child(\"bookmarked\").setValue(false);\n holder.bookmarkbutton.setImageResource(R.drawable.unbookmarked_vector);\n //then remove from bookmarks\n refBookmarkedHouses.child(\"userBookmarkedHouses\").child(houses.get(pos).getName()).removeValue();\n\n }else {\n //if currently false, set to true and set image as bookmarked\n refBookmarkedHouses.child(\"userHouses\").child(houses.get(pos).getName()).child(\"bookmarked\").setValue(true);\n holder.bookmarkbutton.setImageResource(R.drawable.bookmarked_vector);\n //then add to bookmarks\n House p = new House(houses.get(pos).getName(), houses.get(pos).getPos(),houses.get(pos).getImg(),houses.get(pos).getPhone(),true);\n refBookmarkedHouses.child(\"userBookmarkedHouses\").child(houses.get(pos).getName()).setValue(p);\n\n }\n break;\n } //end of switch statement\n }\n\n });//end of item click listener aka button functionality\n\n }",
"int insert(MemberFav record);",
"public void createMarker(DBMarker marker)\n\t{\n\t\t//Call get location function\n Location location = getLocation();\n \n //If location is not null, create a marker at the location and draw a line from that location to lat:0 long:0\n if (location != null)\n {\n \t//Get current location and create a LatLng object\n \tLatLng currentLocation = new LatLng(location.getLatitude(), location.getLongitude());\n \tMarker locationMarker = map.addMarker(new MarkerOptions().position(currentLocation));\n \t\n \t//Create a new GPS object to attach to the marker\n \tGPS gpsObject = new GPS();\n \tgpsObject.latitude = location.getLatitude();\n \tgpsObject.longitude = location.getLongitude();\n \tgpsObject.time = location.getTime();\n \tmarker.gps = gpsObject;\n \n \t//Add the marker to the list of markers and HashTable\n \tmarkerList.add(marker);\n \tmarkerHashTable.put(marker, locationMarker);\n }\n else\n {\n \t//Create alert when location fails\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Location not found.\");\n builder.setTitle(\"Error\");\n builder.setNeutralButton(\"Close\", null);\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n\t}",
"int insert(BPBatchBean record);",
"@Override\n\tpublic String updateBatch(List<Familybranch> record, Model m, BindingResult b) throws Exception {\n\t\treturn null;\n\t}",
"public void setMark(Vector2 tilePosition, BoardGroundMark.GroundMarkType markType)\n {\n BoardTile tile = getTile(tilePosition);\n if(tile != null) tile.setMark(markType);\n }",
"void commit( boolean onSave );",
"@NonNull\n Completable addBookmarkList(@NonNull List<HistoryItem> bookmarkItems);",
"private boolean markButton( int i, String mark ) {\n\tif ( button[i].getText( ).equals( \"\" ) ) {\n\t button[i].setText( mark );\n\t button[i].setEnabled( false );\n\t return true;\n\t}\n\treturn false;\n }",
"public void add(Mention mention, int sentenceOffset);",
"@Override\n\tpublic void saveUserBookmark(String userName, String bookMark, boolean isNew)\n\t\t\tthrows Exception {\n\n\t}",
"@Override\n\tpublic String save(Familybranch record, BindingResult b, Model m, HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\t\treturn null;\n\t}",
"static public void deleteSubjectMark(Integer subjectMarkID){\n\t Session session = HibernateUtil.getSessionFactory().openSession();\n\t Transaction tx = null;\n\t try{\n\t tx = session.beginTransaction();\n\t SubjectMark subjectMark = (SubjectMark)session.get(Teacher.class, subjectMarkID); \n\t session.delete(subjectMark); \n\t tx.commit();\n\t }catch (HibernateException e) {\n\t if (tx!=null) tx.rollback();\n\t e.printStackTrace(); \n\t }finally {\n\t session.close(); \n\t }\n\t }",
"public void addMarks(int mark, int moduleNumber)\n {\n if(moduleNumber == 1)\n {\n module1.awardMark(mark);\n if (mark >=40) credits += 15;\n }\n else if(moduleNumber == 2)\n {\n module2.awardMark(mark);\n if (mark >=40) credits += 15;\n }\n else if(moduleNumber == 3)\n {\n module3.awardMark(mark);\n if (mark >=40) credits += 15;\n }\n else if(moduleNumber == 4)\n {\n module4.awardMark(mark);\n if (mark >=40) credits += 15;\n }\n\n }",
"public void updateKanjiBookmark(KanjiDto dto, boolean bookmarkFlg, final CallBackListener<Boolean> callBack) {\n ContentResolver cr = mContext.getContentResolver();\n DaoAsyncQueryHandler queryHandler = new DaoAsyncQueryHandler(cr);\n ContentValues contentValues = new ContentValues();\n if (bookmarkFlg) {\n contentValues.put(\"is_bookmarked\", BookmarkEnum.IS_BOOKMARKED.toString());\n } else {\n contentValues.put(\"is_bookmarked\", BookmarkEnum.IS_NOT_BOOKMARKED.toString());\n }\n\n queryHandler.setOnUpdateCompleteListener(new DaoAsyncQueryHandler.OnUpdateCompleteListener() {\n @Override\n public void onUpdateComplete(int var1, int var2) {\n if (var2 > 0) {\n callBack.onSuccess(true);\n } else {\n callBack.onSuccess(false);\n }\n }\n });\n\n String selection =\"id='\" + dto.kid + \"'\";\n queryHandler.startUpdate(0, null, KanjiContentProvider.KANJI_URI, contentValues, selection, null);\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry addNewDebts();",
"public void addFromClipboard() { genericClipboard(SetOp.ADD); }",
"Long addWayBill(WayBill wayBill);",
"int insert(ItemStockDO record);",
"int insert(ItemStockDO record);",
"@Service\n@Area(\"Infrastructure\")\npublic interface BookmarksService {\n /**\n * Adding a new bookmark.\n *\n * Example of adding a bookmark:\n *\n * [source]\n * ----\n * POST /ovirt-engine/api/bookmarks\n * ----\n *\n * [source,xml]\n * ----\n * <bookmark>\n * <name>new_example_vm</name>\n * <value>vm: name=new_example*</value>\n * </bookmark>\n * ----\n *\n * @author Oved Ourfali <[email protected]>\n * @date 12 Dec 2016\n * @status added\n */\n interface Add {\n @InputDetail\n default void inputDetail() {\n mandatory(bookmark().name());\n mandatory(bookmark().value());\n }\n /**\n * The added bookmark.\n *\n * @author Oved Ourfali <[email protected]>\n * @date 12 Dec 2016\n * @status added\n */\n @In @Out Bookmark bookmark();\n }\n\n /**\n * Listing all the available bookmarks.\n *\n * Example of listing bookmarks:\n *\n * [source]\n * ----\n * GET /ovirt-engine/api/bookmarks\n * ----\n *\n * [source,xml]\n * ----\n * <bookmarks>\n * <bookmark href=\"/ovirt-engine/api/bookmarks/123\" id=\"123\">\n * <name>database</name>\n * <value>vm: name=database*</value>\n * </bookmark>\n * <bookmark href=\"/ovirt-engine/api/bookmarks/456\" id=\"456\">\n * <name>example</name>\n * <value>vm: name=example*</value>\n * </bookmark>\n * </bookmarks>\n * ----\n *\n * The order of the returned bookmarks isn't guaranteed.\n *\n * @author Oved Ourfali <[email protected]>\n * @date 12 Dec 2016\n * @status added\n */\n interface List extends Follow {\n /**\n * The list of available bookmarks.\n *\n * @author Oved Ourfali <[email protected]>\n * @date 12 Dec 2016\n * @status added\n */\n @Out Bookmark[] bookmarks();\n\n /**\n * Sets the maximum number of bookmarks to return. If not specified all the bookmarks are returned.\n */\n @In Integer max();\n }\n\n /**\n * A reference to the service managing a specific bookmark.\n *\n * @author Oved Ourfali <[email protected]>\n * @date 12 Dec 2016\n * @status added\n */\n @Service BookmarkService bookmark(String id);\n}",
"public void updateMarks() {\n this.marks.addAll(thisTurnMarks);\n thisTurnMarks.clear();\n if(game != null)\n game.notifyUpdateMarks(this);\n }",
"public void drawMark(int x, int y, Color color)\n {\n \tg.setColor(color);\n g.fillRect(x * xScale, y * yScale, xScale-1, yScale-1);\n }"
]
| [
"0.6120059",
"0.5895801",
"0.5711287",
"0.56351167",
"0.54403985",
"0.54019845",
"0.5380113",
"0.5376154",
"0.53233594",
"0.53220177",
"0.5282545",
"0.5280236",
"0.52581495",
"0.5200817",
"0.51988125",
"0.5190946",
"0.5182007",
"0.51815486",
"0.5160247",
"0.5117075",
"0.510895",
"0.5108327",
"0.51039433",
"0.5096368",
"0.5052846",
"0.50525",
"0.5049018",
"0.50417763",
"0.503959",
"0.5030063",
"0.50263596",
"0.5022931",
"0.50137967",
"0.50096524",
"0.5000316",
"0.49935377",
"0.49874532",
"0.49819168",
"0.49759242",
"0.49616528",
"0.49489495",
"0.4946469",
"0.49020043",
"0.48977163",
"0.48950982",
"0.48942688",
"0.48906043",
"0.48856357",
"0.4877314",
"0.48708457",
"0.48643538",
"0.48609814",
"0.48530817",
"0.4849541",
"0.48348632",
"0.48270503",
"0.48192143",
"0.48163345",
"0.4809089",
"0.48030943",
"0.47980952",
"0.47939715",
"0.47909304",
"0.47900563",
"0.4786659",
"0.47795093",
"0.47755137",
"0.4775115",
"0.47728026",
"0.4770479",
"0.476726",
"0.47567543",
"0.4756146",
"0.475603",
"0.47557816",
"0.4754755",
"0.47547042",
"0.47538185",
"0.47511205",
"0.4719067",
"0.4713609",
"0.47122252",
"0.4701522",
"0.46948987",
"0.4687455",
"0.46857202",
"0.4682971",
"0.4677242",
"0.4673825",
"0.46729857",
"0.46723145",
"0.46701396",
"0.466934",
"0.46651113",
"0.46645814",
"0.46508443",
"0.46507353",
"0.46507353",
"0.46488208",
"0.4647531",
"0.46448955"
]
| 0.0 | -1 |
Constructor (parse the string and fill the hashmap) | public BodyParser(String body) {
this._map = new HashMap<>();
for (String keyVal : body.split("&")) {
String[] keyValArray = keyVal.split("=");
if (keyValArray.length == 2) {
this._map.put(keyValArray[0], keyValArray[1]);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private HashMap parseMap(String localData){\n int localPointer = 0;\n HashMap temp = new HashMap();\n char c = localData.charAt(localPointer++);\n while (c != '}'){\n String entry = \"\";\n entry_loop :\n while (c != '}'){\n switch (c){\n case ',' :\n c = localData.charAt(localPointer++);\n break entry_loop;\n case '{' :\n String tempEntry = this.getFull(localData.substring(localPointer),0);\n entry += tempEntry;\n localPointer += tempEntry.length();\n break ;\n case '[' :\n String tempEntry2 = this.getFull(localData.substring(localPointer),1);\n entry += tempEntry2;\n localPointer += tempEntry2.length();\n break ;\n default :\n entry += c;\n break ;\n }\n c = localData.charAt(localPointer++);\n }\n entry = entry.trim();\n String[] entryArray = entry.split(\":\",2);\n String key = entryArray[0].trim();\n String value = entryArray[1].trim();\n Object keyObj = null;\n Object valueObj = null;\n\n switch (this.getDataType(key.trim())){\n case String:\n keyObj = key.trim().replace(\"\\\"\",\"\");\n break ;\n case Integer:\n keyObj = Long.parseLong(key.trim());\n break ;\n case Float:\n keyObj = Float.parseFloat(key.trim());\n break ;\n case Boolean:\n keyObj = Boolean.parseBoolean(key.trim());\n break ;\n case Map:\n keyObj = this.parseMap(key.trim());\n break ;\n case List:\n keyObj = this.parseList(key.trim());\n }\n\n switch (this.getDataType(value.trim())){\n case String:\n valueObj = value.trim().replace(\"\\\"\",\"\");\n break ;\n case Integer:\n valueObj = Long.parseLong(value.trim());\n break ;\n case Float:\n valueObj = Float.parseFloat(value.trim());\n break ;\n case Boolean:\n valueObj = Boolean.parseBoolean(value.trim());\n break ;\n case Map:\n valueObj = this.parseMap(value.trim());\n break ;\n case List:\n valueObj = this.parseList(value.trim());\n }\n temp.put(keyObj,valueObj);\n }\n return temp;\n }",
"private void init(String command) {\n if (command == null) throw new IllegalArgumentException(\"Empty command\");\n this.raw = command;\n\n String[] data = this.raw.split(\" \");\n this.map = new HashMap<>();\n for ( int i = 0; i < data.length; i++) {\n map.put( Index.values()[i], data[i] );\n }\n }",
"public Parse(String str)\r\n {\r\n super(str);\r\n }",
"public static MimeTransferEncoding parseString(String s) {\n\t\t// Initially I tried to fill the map in the constructor, but I got a\n\t\t// compiler error about not being able to access a static variable from\n\t\t// within an \"initializer\" (apparently referring to the constructor).\n\t\tif (map == null) {\n\t\t\tinitializeMap();\n\t\t}\n\n\t\treturn map.get(s);\n\t}",
"public Record(String line)\t// create a record from a line\n\t{\n\t\tint i;\n\t\trecordMap = new HashMap<>(); \n\t\tStringTokenizer st = new StringTokenizer(line, DELIMITER);\n\n\t\tfor (i=0; i < NUMBER_OF_FIELDS; i++)\n\t\t{\n\t\t\trecordMap.put(i, new Field(FIELD_TYPES[i], FIELD_LABELS[i], st.nextToken()));\n\t\t}\t\t\n\t}",
"public Parser() {\n\t\tpopulateMaps();\n\t}",
"public StrStrMap() {\n }",
"public void parse(String string) {\n\t\t\n\t}",
"@Ponder2op(\"create:\")\n\tpublic HashInspector(String aString) {\n\t\tinitialise(aString);\n\t}",
"public Packman(String str) {\r\n\t\tString[] fields = str.split(\",\");\r\n\t\tType = fields[0].charAt(0);\r\n\t\tID = Integer.parseInt(fields[1]);\r\n\t\tLocation = new LatLonAlt(fields[2] + \",\" + fields[3] + \",\" + fields[4]);\r\n\t\tSpeed = Double.parseDouble(fields[5]);\r\n\t\tRadius = Double.parseDouble(fields[6]);\r\n\t\tInitTime = new Date().getTime();\r\n\t}",
"public void loadClusterInfoString(String inputStr, String delimiter, String subDelimiter)\n\t{\n\t\tm_numericValueList = new HashMap<Integer, PDF_Features>();\n\t\tm_nominalValueList = new HashMap<Integer, HashMap<String,Double>>();\n\t\t\n\t\tString tokens[] = inputStr.split(delimiter);\n\t\t\n\t\tm_clusterId = Integer.parseInt(tokens[0]);\n\t\t\n\t\tfor(int i=1; i<tokens.length; i++)\n\t\t{\n\t\t\tint attrIndex = Integer.parseInt(tokens[i++]);\n\t\t\tString attrValue = tokens[i];\n\t\t\t\n\t\t\tString subTokens[] = attrValue.split(subDelimiter);\n\n if(CommonMethods.isNumeric(subTokens[0]))\n\t\t\t{\n\t\t\t\tPDF_Features value = new PDF_Features();\n\t\t\t\tvalue.average = Double.parseDouble(subTokens[0]);\n\t\t\t\tvalue.variance = Double.parseDouble(subTokens[1]);\n\n m_numericValueList.put(attrIndex, value);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tHashMap<String, Double> valueMap = new HashMap<String, Double>();\n\t\t\t\tfor(int k=0; k<subTokens.length; k++)\n\t\t\t\t{\n\t\t\t\t\tString subKey = subTokens[k++];\n\t\t\t\t\tdouble subValue = Double.parseDouble(subTokens[k]);\n\t\t\t\t\tvalueMap.put(subKey, subValue);\n\t\t\t\t}\n\t\t\t\tm_nominalValueList.put(attrIndex, valueMap);\n\t\t\t}\n\t\t}\n\t}",
"public RuleMap(){\n rules = new HashMap<Character, String>();\n }",
"public static Map<String,String> StringtoMap(String str){\n\t\tMap<String,String> map = new LinkedHashMap<String,String>();\n\n\t\ttry {\n\t\t\tDocument document = DocumentHelper.parseText(str);\n\t\t\tElement root = document.getRootElement();\n\t\t\tList<Element> elementList = root.elements();\n\t\t\tfor(Element e : elementList){\n\t\t\t\tmap.put(e.getName(), e.getText());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn map;\n\t}",
"public abstract void fromString(String s, String context);",
"public Position(final String str) throws NumberFormatException,\n\t\t\tPositionOutOfTheMapException {\n\t\tthis(new Integer(str.split(\".\")[0]).intValue(), new Integer(\n\t\t\t\tstr.split(\".\")[1]).intValue());\n\t}",
"@SuppressWarnings(\"rawtypes\")\n\tpublic static Map stringToMap(String params) {\n\t\tMap<String, String> map = new HashMap<String, String>();\n\n\t\tif (params == null) {\n\t\t\tSystem.out.println(\"\");\n\n\t\t} else {\n\t\t\tString[] arr = params.split(\",\");\n\t\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\t\tString key = arr[i].substring(0, arr[i].indexOf(\":\"));\n\t\t\t\tString value = arr[i].substring(arr[i].indexOf(\":\") + 1);\n\t\t\t\tmap.put(key, value);\n\t\t\t}\n\t\t}\n\t\treturn map;\n\t}",
"public FMap(String rute) {\n super(rute);\n init(rute);\n }",
"private static Map<String, String> generateDataMap(String dataString) {\n dataString = strManager.removeString(dataString, \" \");\n dataString = strManager.removeString(dataString, \"\\\\+\");\n String[] dataSet = dataString.split(\",\", -1);\n\n Map<String, String> dataMap = new HashMap<String, String>();\n\n for (int i = 2; i < dataSet.length; i++) {\n String[] d = dataSet[i].split(\"=\", -1);\n String transducer = d[0];\n String value = strManager.removeUnits(d[1]);\n\n dataMap.put(transducerNames.get(transducer), value);\n }\n dataMap = addLocation(dataMap);\n\n return dataMap;\n }",
"public Map(Dimension dim, String mapStr) {\r\n\t\tthis.dim = dim;\r\n\t\tinitiateMap();\r\n\t\tstringToMap(mapStr);\r\n\t}",
"public StringParser(String str) {\n this.str = str;\n currentPosition = 0;\n maxPosition = str == null ? 0 : str.length();\n }",
"public Slogan (String str)\n\t{\n\t\tpharse = str; //This can replace str \n\t\tcount++; //Don't forget iterate count variable here\n\t}",
"public static Map<String, String> stringToHashtable(String file) {\r\n if (file == null) {\r\n return null;\r\n }\r\n\r\n String sansComments = eraseComments(file);\r\n int pos = 0, count = sansComments.length();\r\n Map<String, String> retval = new HashMap<String, String>();\r\n\r\n // Split the file, line by line, into key/value pairs\r\n while (pos < count) {\r\n int eol = offsetToEOL(sansComments, pos);\r\n int next = offsetToNextLine(sansComments, pos);\r\n if (eol > 0) {\r\n String line = sansComments.substring(pos, pos + eol);\r\n StringTokenizer st = new StringTokenizer(line, \"=\");\r\n String key = st.nextToken();\r\n String value = \"\";\r\n if (st.hasMoreTokens()) {\r\n value = st.nextToken();\r\n }\r\n\r\n // Place scalar values in the hashtable directly\r\n // otherwise break comma separated ones into Vectors.\r\n // If they can be, items are inserted as Doubles, failing\r\n // that, as Strings.\r\n // int comma = value.indexOf(\",\");\r\n // if (comma == -1) {\r\n // try {\r\n // retval.put(key, new Double(value));\r\n // } catch (NumberFormatException nfe) {\r\n retval.put(key, value);\r\n // } // endtry\r\n // } else {\r\n // Vector<Comparable> v = new Vector<Comparable>();\r\n // StringTokenizer values = new StringTokenizer(value, \",\");\r\n // while (values.hasMoreTokens()) {\r\n // String s = values.nextToken();\r\n // try {\r\n // v.addElement(new Double(s));\r\n // } catch (NumberFormatException nfe) {\r\n // v.addElement(s.trim());\r\n // } // endtry\r\n // } // endwhile\r\n // retval.put(key, v);\r\n // } // endif\r\n } // endif\r\n pos += next;\r\n } // endwhile\r\n\r\n return retval;\r\n }",
"public Map<String, String> decode(String s) {\n String[] keyValuePairs = s.split(\"&\");\n\n //creating tab 2D tab for separating key from value\n String[][] keyAndValue = new String[keyValuePairs.length][2];\n\n //iterating through the tab to split \"key=value\" pairs into 2D tab as [[key, value], [key, value]]\n for (int i = 0; i <= keyValuePairs.length - 1; i++) {\n //splitting \"key=value\" pairs into 2D tab as [[key, value], [key, value]]\n keyAndValue[i] = keyValuePairs[i].split(\"=\");\n //adding [[key, value], [key, value]] to the map\n for (int j = 0; j <= keyAndValue.length - 1; j++) {\n keyValuesMap.put(keyAndValue[i][0], keyAndValue[i][1]);\n }\n }\n return keyValuesMap;\n }",
"public static Map<String, String> strToMap(String str) {\n return strToMap(str, \"|\", false);\n }",
"public abstract T parse(String str);",
"public Mapping setMap( String theString) {\n\t\tmyMap = new StringDt(theString); \n\t\treturn this; \n\t}",
"@Override\n\tpublic function initFromString(String s) {\n\t\treturn null;\n\t}",
"public abstract Object parseRecord(String input);",
"public GongDomObject(String string) throws ParserConfigurationException, InvalidTagException, SAXException, IOException {\r\n super(string);\r\n }",
"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 abstract T parse(String s);",
"private void init() {\n this.sentences = new HashMap<>();\n\n String kapHeader = this.kapFormatter.getFormattedKapHeader();\n Scanner scanner = new Scanner(kapHeader);\n scanner.useDelimiter(\"\\n\");\n String currentSentence = null;\n\n while (scanner.hasNext()) {\n currentSentence = scanner.next();\n String key = currentSentence.substring(0, currentSentence.indexOf(\"/\"));\n String sentenceWithoutToken = currentSentence.substring(currentSentence.indexOf(\"/\") + 1, currentSentence.length());\n\n if (!this.sentences.containsKey(key)) {\n List<String> values = new ArrayList<>();\n this.sentences.put(key, values);\n }\n\n List<String> mapList = this.sentences.get(key);\n mapList.add(sentenceWithoutToken);\n }\n scanner.close();\n }",
"public ArgumentsParser(String... args) {\n this.arguments = new HashMap<>(args.length);\n this.args = Arrays.copyOf(args, args.length);\n }",
"protected AGG_State( String s )\n {\n name = s;\n nameHash.put( s, this );\n intValue = index;\n intHash.put( new Integer( intValue ), this );\n }",
"private void fromString(String serverInfoString) {\n\t\tif (serverInfoString != null && !serverInfoString.isEmpty()) {\n\t\t\tString[] tokens = serverInfoString.split(\" \");\n\t\t\tif (tokens.length == 3) {\n\t\t\t\tsetServerName(tokens[0]);\n\t\t\t\tsetAddress(tokens[1]);\n\t\t\t\tsetPort(Integer.parseInt(tokens[2]));\n\t\t\t} else\n\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\"Config file is not formatted as expected. near \"\n\t\t\t\t\t\t\t\t+ serverInfoString);\n\n\t\t}\n\n\t}",
"public ValueMap(final String keyValuePairs, final String delimiter)\n\t{\n\t\tsuper();\n\n\t\tint start = 0;\n\t\tint equalsIndex = keyValuePairs.indexOf('=');\n\t\tint delimiterIndex = keyValuePairs.indexOf(delimiter, equalsIndex);\n\t\tif (delimiterIndex == -1)\n\t\t{\n\t\t\tdelimiterIndex = keyValuePairs.length();\n\t\t}\n\t\twhile (equalsIndex != -1)\n\t\t{\n\t\t\tif (delimiterIndex < keyValuePairs.length())\n\t\t\t{\n\t\t\t\tint equalsIndex2 = keyValuePairs.indexOf('=', delimiterIndex + 1);\n\t\t\t\tif (equalsIndex2 != -1)\n\t\t\t\t{\n\t\t\t\t\tdelimiterIndex = keyValuePairs.lastIndexOf(delimiter, equalsIndex2);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tdelimiterIndex = keyValuePairs.length();\n\t\t\t\t}\n\t\t\t}\n\t\t\tString key = keyValuePairs.substring(start, equalsIndex);\n\t\t\tString value = keyValuePairs.substring(equalsIndex + 1, delimiterIndex);\n\t\t\tadd(key, value);\n\t\t\tif (delimiterIndex < keyValuePairs.length())\n\t\t\t{\n\t\t\t\tstart = delimiterIndex + 1;\n\t\t\t\tequalsIndex = keyValuePairs.indexOf('=', start);\n\t\t\t\tif (equalsIndex != -1)\n\t\t\t\t{\n\t\t\t\t\tdelimiterIndex = keyValuePairs.indexOf(delimiter, equalsIndex);\n\t\t\t\t\tif (delimiterIndex == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tdelimiterIndex = keyValuePairs.length();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tequalsIndex = -1;\n\t\t\t}\n\t\t}\n\t}",
"public StringDictionaryBase(final String id) {\n\t\tsuper(id);\n\t}",
"private static Map<Character, Integer> createKey(String subString) {\n Map map = new HashMap<Character, Integer>();\n for (int i = 0; i < subString.length(); i++) {\n Character c = subString.charAt(i);\n\n if (map.containsKey(c)) {\n int count = (int) map.get(c);\n map.put(c, ++count);\n } else {\n map.put(c, 1);\n }\n }\n return map;\n }",
"public Affettatore(String str) {\n this (str, \" \\t\\n\\r\\f\");\n }",
"public Metadata(String _JSONString) {\n mJSONObject = new JSONObject();\n mJSONObject = (JSONObject) JSONValue.parse(_JSONString);\n\n // TODO: Maybe raise a 'malformed json string exception'\n if (mJSONObject == null) {\n \tLOGGER.info(\"Invalid JSON String received. new object was created, but its NULL.\");\n }\n }",
"public Point(String str) {\n String[] parsed = str.substring(1,-1).split(\" \");\n setName(parsed[0]);\n setX(Integer.parseInt(parsed[1]));\n setY(Integer.parseInt(parsed[2]));\n }",
"public GridSection(StringInputStream input) throws EOFException,\n IOException {\n\n config = new MapConfiguration();\n\n // TODO Recognize either corner point or structured Eclipse grid format\n config.putString(\"type\", \"EclipseMesh\");\n\n parse(input);\n\n }",
"public static HashMap<String, ArrayList<String>> parseKeyValueList(String keySpliter, String strToParse) {\r\n\t\treturn parseKeyValueList (keySpliter, null, \"\\n\", strToParse);\r\n\t}",
"public void load(String input) {\r\n\r\n String raw = input.replaceAll(\"[()\\\\s-]+\", \"\").trim();\r\n String[] arr = raw.split(\";\");\r\n String name = \"\";\r\n double number = 0;\r\n\r\n for (String str : arr) {\r\n try {\r\n number += Double.parseDouble(str);\r\n } catch (NumberFormatException e) {\r\n name += str;\r\n }\r\n }\r\n table.hash(name, number);\r\n\r\n }",
"@Override\n\tpublic function initFromString(String s) {\n\t\treturn new Monom(s);\n\t}",
"private void toMap(String cycle) {\n for (int i = 0; i < cycle.length() - 1; i++) {\n Integer input = _alphabet.toInt(cycle.charAt(i));\n Integer output = _alphabet.toInt(cycle.charAt(i + 1));\n _map.put(input, output);\n }\n Integer i = _alphabet.toInt(cycle.charAt(cycle.length() - 1));\n Integer o = _alphabet.toInt(cycle.charAt(0));\n _map.put(i, o);\n }",
"private HashMap<String, String> generateHashMapFromStringList(String...strings) throws Exception {\n\n\t\tif(strings.length % 2 != 0)\n\n\t\t\tthrow InvalidStringListException;\n\n\t\tHashMap<String, String> map = new HashMap<String, String>();\n\n\t\tfor(int i = 0; i < strings.length; i += 2) // Each key will be i, with the following becoming its value\n\n\t\t\tmap.put(strings[i], strings[i + 1]);\n\n\t\treturn map;\n\t}",
"public void mo23089a(String str) {\n mo23090a(str, (Map<String, String>) new HashMap<String,String>());\n }",
"public StringParser() {\n this(ParserOptions.DEFAULT);\n }",
"public void initialilzeMapEntry(String file){\n\t\tmap.put(file, new LinkedList<HashMap<Integer, Integer>>());\n\t}",
"public interface CacheConfigurationParser {\n\n\tMap<String, CacheConfigurationEntry> parseEntries(String[] entries);\n\n\tCacheConfigurationEntry parseEntry(String entry);\n}",
"public Map(String inputFile) throws MapException, IOException, GraphException{\n\t\t\n\t\tthis.testLine = \"Luka<3<3\";\t\t\t// initiate testline to a string that will not be seen from input\n\t\tthis.changeCount = -1;\t\t\t\t// initiate the change counter used for recursive calls in other methods\n\t\tthis.input = inputFile;\t\t\t\t// set the input file\n\t\tthis.S = new Stack<Node>();\t\t\t// initiate the stack storing a path\n\t\t\n\t\t// make a file and make sure it exists, throw an exception otherwise\n\t\tFile inputFileTest = new File(this.input);\n\t\tif(!inputFileTest.exists()){\n\t\t\tthrow new MapException(\"File attempting to be input does not exist.\");\n\t\t}\n\t\t\t\t\n\t\t// create a buffered reader of the file\n\t\tBufferedReader inputScan = new BufferedReader(new FileReader(inputFileTest));\n\t\t\n\t\tint count = 0;\n\t\tString s;\t\t\t\t// 1st string for parsing\n\t\tString s2 = null;\t\t// 2nd string for parsing\n\t\t\n\t\t// loop through the first 4 lines of the input to parse necessary data\n\t\twhile (count < 4){\n\t\t\t\n\t\t\t//read a line of the file\n\t\t\ts = inputScan.readLine();\n\t\t\tcount++;\n\t\t\t\n\t\t\t//set width based on number on 2nd line\n\t\t\tif (count == 2){\n\t\t\t\tthis.width = Integer.parseInt(s.trim());\n\t\t\t}\n\t\t\t\n\t\t\t//set height based on number on 3nd line\n\t\t\tif (count == 3){\n\t\t\t\tthis.height = Integer.parseInt(s.trim());\n\t\t\t}\n\t\t\t\n\t\t\t//set changes based on number on 4th line\n\t\t\tif (count == 4){\n\t\t\t\tthis.changes = Integer.parseInt(s.trim());\n\t\t\t}\n\t\t}\n\t\t//create a graph based on width and height\n\t\tthis.graph = new Graph(this.width * this.height);\n\t\t\n\t\tint countNode = -1; \t\t\t\t// int to count the number of the node in the graph (corresponds to Node name)\n\t\t\n\t\t// read 2 lines of the file and store them in separate variables as long as it is not the end of the file\n\t\ts = inputScan.readLine();\n\t\tif (s!=null){\n\t\t\ts2 = inputScan.readLine();\n\t\t}\n\t\t\n\t\t// loop as long as there is 1 line to parse\n\t\twhile (s!=null){\n\t\t\t// prepare 2 string readers to use to parse both strings (if both exist, only 1 if not)\n\t\t\tStringReader in = new StringReader(s);\n\t\t\tStringReader in2 = null;\n\t\t\tif (s2!=null){\n\t\t\t\tin2 = new StringReader(s2);\n\t\t\t}\n\t\t\tint j = 0;\t\t\t\t\t\t\t// used to store int representation of characters in string 1\n\t\t\tint k = 0;\t\t\t\t\t\t\t// used to store int representation of characters in string 2\n\t\t\tint stringLength = s.length();\t\t// length of the strings (should be equal if input is valid)\n\t\t\t\n\t\t\t//loop through parsing the strings as long as they have characters to parse\n\t\t\twhile (j != -1){\n\t\t\t\tj = in.read();\n\t\t\t\tif(s2!=null){\n\t\t\t\t\tk = in2.read();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// break out of loop if end of string is reached\n\t\t\t\tif (j == -1){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tchar c = (char)j;\t\t\t\t// currently parsed char of string 1\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * If the parsed character of string 1 is a 0, then increment the currentNode counter\n\t\t\t\t * and set the start of the path equal to the currentNode. If the second string's parsed\n\t\t\t\t * character is not white space and the second string exists, insert an edge between the\n\t\t\t\t * currentNode, and the node in the same position of the next line with the busLine value\n\t\t\t\t * of the second string's parsed character.\n\t\t\t\t */\n\t\t\t\tif (c == '0'){\n\t\t\t\t\tcountNode++;\n\t\t\t\t\tthis.start = countNode;\n\t\t\t\t\tif (s2 !=null && (char)k != ' '){\n\t\t\t\t\t\tthis.graph.insertEdge(this.graph.getNode(countNode), this.graph.getNode(countNode+((stringLength+1)/2)), Character.toString((char)k));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * If the parsed character of string 1 is a 1, then increment the currentNode counter\n\t\t\t\t * and set the end of the path equal to the currentNode. If the second string's parsed\n\t\t\t\t * character is not white space and the second string exists, insert an edge between the\n\t\t\t\t * currentNode, and the node in the same position of the next line with the busLine value\n\t\t\t\t * of the second string's parsed character.\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\telse if (c == '1'){\n\t\t\t\t\tcountNode++;\n\t\t\t\t\tthis.end = countNode;\n\t\t\t\t\tif (s2 !=null && (char)k != ' '){\n\t\t\t\t\t\tthis.graph.insertEdge(this.graph.getNode(countNode), this.graph.getNode(countNode+((stringLength+1)/2)), Character.toString((char)k));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * If the parsed character of string 1 is a +, then increment the currentNode counter.\n\t\t\t\t * If the second string's parsed character is not white space and the second string \n\t\t\t\t * exists, insert an edge between the currentNode, and the node in the same position \n\t\t\t\t * of the next line with the busLine value of the second string's parsed character.\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\telse if (c == '+'){\n\t\t\t\t\tcountNode++;\n\t\t\t\t\tif (s2 !=null && (char)k != ' '){\n\t\t\t\t\t\tthis.graph.insertEdge(this.graph.getNode(countNode), this.graph.getNode(countNode+((stringLength+1)/2)), Character.toString(((char)k)));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// If the parsed character of string 1 is white space, do nothing.\n\t\t\t\telse if (c == ' '){\n\t\t\t\t\t// do nothing\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * If the parsed character of string 1 is any other character, then it is a busLine name\n\t\t\t\t * and thus add an edge with this as the busLine connecting the currentNode and the node\n\t\t\t\t * immediately following. \n\t\t\t\t */\n\t\t\t\t\n\t\t\t\telse{\n\t\t\t\t\tthis.graph.insertEdge(this.graph.getNode(countNode), this.graph.getNode(countNode+1), Character.toString(c));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t// get the next lines if they exist\n\t\t\tif (s2!=null){\n\t\t\t\ts = inputScan.readLine();\n\t\t\t\tif (s!=null){\n\t\t\t\t\ts2 = inputScan.readLine();\n\t\t\t\t}\n\t\t\t} else{\n\t\t\t\ts = null;\n\t\t\t}\n\t\t\t// close the string readers\n\t\t\tin.close();\n\t\t\tif (in2!=null){\n\t\t\t\tin2.close();\n\t\t\t}\n\t\t}\n\t\t// close the buffered reader\n\t\tinputScan.close();\n\t}",
"void Create(){\n map = new TreeMap<>();\r\n\r\n // Now we split the words up using punction and spaces\r\n String wordArray[] = wordSource.split(\"[{ \\n\\r.,]}}?\");\r\n\r\n // Now we loop through the array\r\n for (String wordArray1 : wordArray) {\r\n String key = wordArray1.toLowerCase();\r\n // If this word is not present in the map then add it\r\n // and set the word count to 1\r\n if (key.length() > 0){\r\n if (!map.containsKey(map)){\r\n map.put(key, 1);\r\n }\r\n else {\r\n int wordCount = map.get(key);\r\n wordCount++;\r\n map.put(key, wordCount);\r\n }\r\n }\r\n } // end of for loop\r\n \r\n // Get all entries into a set\r\n // I think that before this we just have key-value pairs\r\n entrySet = map.entrySet();\r\n \r\n }",
"public static TableId parse(String str) {\n return parse(str, true);\n }",
"public void init(String inputFile) \n\t{\t\t\n\t\tif (instance != null)\n\t\t{\n\t\t\ttry {\n\t\t\t\ts = new Scanner(new FileReader(inputFile));\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"\\nnot a valid inputFile\");\n\t\t\t}\n\t\t\t//load mapping of reserved words and special symbols\n\t\t\tLoadCoreValues();\n\t\t\tinstance = new Tokenizer();\n\t\t}\n\t}",
"public DateParser(String dateAndTimeString) {\n this.dateAndTimeString = dateAndTimeString;\n }",
"private TreeMap<String,Element> parseObject() {\r\n \r\n TreeMap<String,Element> object=new TreeMap<>();//create hashed map \r\n \r\n char chr=next();//consume first character\r\n assert chr=='{';//assert first character is open curly bracket\r\n while (chr!='}') {//until closing bracket found\r\n \r\n switch (peek()) {//switch on next character\r\n case ' ':\r\n case '\\t':\r\n case '\\n':\r\n case '\\r': chr=next(); //discard whitespace\r\n break;\r\n case '\"': String key=parseString();//parse key\r\n while (peek()<=' ') next();//skip whitespace\r\n chr=next();//consume the next character\r\n if (chr!=':') throw new RuntimeException(\"Invalid syntax : \"+context());//must be havin a giraffe?\r\n while (peek()<=' ') next();//skip whitespace\r\n switch (peek()) {//switch on the next character in key value pair\r\n case '\"': object.put(key, new ScalarElement(Element.STRING,parseString()));//parse string value\r\n break;\r\n case '-':\r\n case '0':\r\n case '1':\r\n case '2':\r\n case '3':\r\n case '4':\r\n case '5':\r\n case '6':\r\n case '7':\r\n case '8':\r\n case '9': object.put(key, new ScalarElement(Element.NUMBER,parseNumber()));//parse number value\r\n break;\r\n case 'f':\r\n case 't': object.put(key, new ScalarElement(Element.BOOLEAN,parseBoolean()));//parse boolean value\r\n break;\r\n case 'n': object.put(key, new ScalarElement(Element.NULL,parseNull()));//parse null value\r\n break;\r\n case '[': object.put(key, new ArrayElement(parseArray()));//parse array value \r\n break;\r\n case '{': object.put(key, new ObjectElement(parseObject()));//parse object value\r\n break;\r\n default : throw new RuntimeException(\"Invalid syntax : \"+context());//we have a problem houston\r\n };//switch on the next character in key value pair\r\n break;\r\n case ',': chr=next();//consume comma character\r\n break;\r\n case '}': chr=next();//consume close bracket character\r\n break;\r\n default : throw new RuntimeException(\"Invalid syntax : \"+context());//gone pete tong\r\n }//switch on next character\r\n \r\n }//until closing bracket found \r\n \r\n return object;//happy days\r\n \r\n }",
"public ParkingInfo(String record) {\n String[] parsing = record.split(\" \");\n this.time = parsing[0];\n this.carNumber = parsing[1];\n this.inOrOut = parsing[2].equals(\"IN\");\n }",
"private HashMap<String, StringBuilder> parseTags(String str) {\n\n\t\tHashMap<String, StringBuilder> fieldMap = new HashMap<String, StringBuilder>();\n\n\t\tfor (int i = 0; i < fieldNames.length; i++) {\n\n\t\t\tfieldMap.put(fieldNames[i], new StringBuilder(\"\"));\n\n\t\t}\n\n\t\tString[][] content = new String[fieldNames.length][];\n\n\t\tfor (int i = 0; i < fieldNames.length; i++) {\n\n\t\t\tcontent[i] = StringUtils.substringsBetween(str, \"<\" + fieldNames[i]\n\t\t\t\t\t+ \">\", \"</\" + fieldNames[i] + \">\");\n\t\t}\n\n\t\tfor (int i = 0; i < content.length; i++) {\n\n\t\t\tStringBuilder temp = new StringBuilder(\" \");\n\t\t\tif (content[i] != null) {\n\n\t\t\t\tfor (int j = 0; j < content[i].length; j++) {\n\n\t\t\t\t\ttemp.append(content[i][j]);\n\n\t\t\t\t\tif (content[i].length - 1 > j)\n\t\t\t\t\t\ttemp.append(\" \");\n\t\t\t\t}\n\n\t\t\t\tfieldMap.put(fieldNames[i], temp);\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn fieldMap;\n\t}",
"private void parse(String str) {\n if (str == null) {\n throw new IllegalArgumentException(\"Empty job execution instruction found!\");\n }\n String[] parts = str.split(\" \");\n if (parts.length == 1) {\n parseSpecial(str);\n } else if (parts.length == 5) {\n try {\n setMinutes(parseMinutes(parts[0].trim().toLowerCase()));\n setHours(parseHours(parts[1].trim().toLowerCase()));\n setDaysOfMonth(parseDaysOfMonth(parts[2].trim().toLowerCase()));\n setMonths(parseMonths(parts[3].trim().toLowerCase()));\n setDaysOfWeek(parseDaysOfWeek(parts[4].trim().toLowerCase()));\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"Schedule \" + str + \" is malformed:\" + e.getMessage());\n }\n } else {\n throw new IllegalArgumentException(\"Schedule \" + str + \" is malformed!\");\n }\n }",
"public final void mo56359a(String str, Map<Object, Object> map) {\n C7573i.m23587b(str, \"key\");\n C7573i.m23587b(map, \"map\");\n this.f56253a.mo55881a(str, C7577n.m23626f(map));\n }",
"public static HashMap GetTypeMapFromProtocolString(String protocolString, int[] startIndex, int[] endIndex)\n {\n endIndex[0] = protocolString.indexOf(\"\\\"\", startIndex[0] + 1);\n HashMap tbl = new HashMap();\n String token = protocolString.substring(startIndex[0], (endIndex[0]));\n\n if (token.equals(\"__dictionary\"))\n {\n startIndex[0] = endIndex[0] + 1;\n endIndex[0] = protocolString.indexOf(\"\\\"\", endIndex[0] + 1);\n int dicCount = Integer.parseInt(protocolString.substring(startIndex[0], (endIndex[0])));\n\n for (int i = 0; i < dicCount; i++)\n {\n startIndex[0] = endIndex[0] + 1;\n endIndex[0] = protocolString.indexOf(\"\\\"\", endIndex[0] + 1);\n String key = protocolString.substring(startIndex[0], (endIndex[0]));\n\n startIndex[0] = endIndex[0] + 1;\n endIndex[0] = protocolString.indexOf(\"\\\"\", endIndex[0] + 1);\n\n // If value to be stored is _dictionary then call the function recursively other wise its an attribute\n String value = protocolString.substring(startIndex[0], (endIndex[0]));\n\n if (value.equals(\"__dictionary\"))\n {\n HashMap temp = new HashMap();\n temp = GetTypeMapFromProtocolString(protocolString, startIndex, endIndex);\n tbl.put(key, temp);\n }\n else\n {\n tbl.put(key, value);\n }\n }\n }\n return tbl;\n }",
"static public GCode fromString(String str) {\n int c = str.indexOf('(');\n if(c != -1) {\n str = str.substring(0,c-1);\n } \n String[] parts = str.split(\" \");\n GCode g = new GCode(parts[0]);\n // parse args\n for(int i=1; i < parts.length; i++) {\n String arg = parts[i].substring(0,1);\n if(parts[i].length() == 1) {\n g.arg(arg);\n } else {\n String value = parts[i].substring(1);\n g.arg(arg, value); \n }\n }\n return g;\n }",
"private static HashMap<String, String> parseArgs(String... args)\n {\n final HashMap<String, String> map = new HashMap();\n //TODO convert args to map\n String lastArg = null;\n for (String string : args)\n {\n //Store new arg\n if (string.startsWith(\"-\"))\n {\n lastArg = string.trim().replaceFirst(\"-\", \"\");\n if (lastArg.contains(\"=\"))\n {\n String[] split = lastArg.split(\"=\");\n lastArg = split[0];\n map.put(lastArg, split[1].replace(\"\\\\\\\"\", \"\"));\n continue;\n }\n map.put(lastArg, null);\n }\n else\n {\n //Store arg value, or append value\n String v = map.get(lastArg);\n if (v == null)\n {\n v = string;\n }\n else\n {\n v += \",\" + string;\n }\n map.put(lastArg, v);\n }\n }\n return map;\n }",
"public static HashMap<String, ArrayList<String>> parseKeyValueList(String keySpliter,String valueSpliter, String strToParse) {\r\n\t\treturn parseKeyValueList (keySpliter, valueSpliter, \"\\n\", strToParse);\r\n\t}",
"Map(String input) {\n row = 0;\n col = 0;\n\n String line;\n Scanner fin = null;\n try\n {\n fin = new Scanner(new File(input));\n }\n catch (FileNotFoundException x)\n {\n System.out.println(\"Error: \" + x);\n System.exit(0);\n }\n // Take first line and get mapLength and mapHeight. Initialize map array\n line = fin.nextLine();\n String[] temp = line.split(\" \");\n maxR = Integer.parseInt(temp[0].toString());\n maxC = Integer.parseInt(temp[1].toString());\n map = new String[maxR][maxC];\n\n for(int j = 0; j < maxR; j++) {\n line = fin.nextLine();\n for(int i = 0; i < maxC; i++){\n map[j][i] = (line.charAt(i)) + \"\";\n }\n }\n }",
"void parseMap(String mapData)\n {\n try {\n \n StringTokenizer\tst = new StringTokenizer(mapData);\n \n int\t\tsizeX, sizeY;\n int\t\tx = 0;\n int\t\ty = 0;\n int\t\te;\n char\tt;\n \n // Get the size of the map\n sizeX = Integer.parseInt(st.nextToken());\n sizeY = Integer.parseInt(st.nextToken());\n \n map = new MUXMap(sizeX, sizeY);\n \n // Loop thru each line\n while (st.hasMoreTokens())\n {\n String\t\t\tthisLine = st.nextToken();\n \n // Think the map is over if we hit this thing\n if (thisLine.equals(\"-1\") || thisLine.startsWith(\"-1 \"))\n break;\n \n for (x = 0; x < sizeX * 2; x+=2)\n {\n // Get terrain and elevation, then set the data in the map\n t = thisLine.charAt(x);\n e = Character.digit(thisLine.charAt(x + 1), 10);\n map.setHex(x/2, y, t, e);\n }\n \n // One more line down in y\n y++;\n } \n } catch (Exception e) {\n System.out.println(\"Error: readMap: \" + e);\n }\n \n }",
"public MyHashMap() {\n\n }",
"public static String variable(String str)\n {\n\t\tint i=0;\n\t\tint state=1;\n\t\t/*\n\t\t\tif state ==1 then trim and add to hashmap;\n\t\t\tif state==2 then replace that string with corresponding value\n\t\t*/\n\t\t//System.out.println(\"Str is\\n\"+str);\n\t\tString part1=\"\";\n\t\tString part2=\"\";\n\t\tHashMap<String, String> map = new HashMap<>();\n\t\twhile(i<str.length()){\n\t\t\tchar ch=str.charAt(i);\n\t\t\tif(ch=='{'){\n\t\t\t\tstate=2;\n\t\t\t}\n\t\t\tif(ch=='}'){\n\t\t\t\tstate=1;\n\t\t\t}\n\t\t\tif(ch=='$'){\n\t\t\t\tif(state==1){\n\t\t\t\t\tpart1=\"\";\n\t\t\t\t\twhile(i<str.length()&&ch!=';'){\n\t\t\t\t\t\tpart1+=ch;\n\t\t\t\t\t\tch=str.charAt(++i);\n\t\t\t\t\t}\n\t\t\t\t\tString [] arrOfStr = part1.split(\":\", 2); \n\t\t\t\t\tmap.put(arrOfStr[0].trim(),arrOfStr[1].trim());\n\t\t\t\t}\n\t\t\t\tif(state==2){\n\t\t\t\t\tpart2=\"\";\n\t\t\t\t\tint end3 = 0;\n\t\t\t\t\tint start3 = i;\n\t\t\t\t\twhile(i<str.length()&&ch!=';'){\n\t\t\t\t\t\tpart2+=ch;\n\t\t\t\t\t\tch=str.charAt(++i);\n\t\t\t\t\t\tend3 = i;\n\t\t\t\t\t}\n\t\t\t\t\tpart2=part2.trim();\n\t\t\t\t\t if (map.containsKey(part2)) \n\t\t\t\t\t{\tString a = map.get(part2);\n\t\t\t\t\t\t\n\t\t\t\t\t\tString s1 = str.substring(0,start3);\n\t\t\t\t\t\ts1 = s1 + a;\n\t\t\t\t\t\ts1 = s1 + str.substring(end3);\n\t\t\t\t\t\t//System.out.println(\"\\n S1 is \\n\"+s1);\n\t\t\t\t\t\tstr = s1;\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\telse\n\t\t\t\ti++;\t\t\t\n\t\t}\n \n //System.out.println(str);\n\t\t// System.out.println(\"------------------------------------------------------------\");\n // System.out.println(\"\\nAnswer is\");\n\t\t str = str.replaceAll(\"\\\\$.*?;\",\"\");\n\t\t //System.out.println(str);\n\t\t return str;\n }",
"public Pair(String unparsed, K parsed)\n {\n this.unparsed = unparsed;\n this.parsed = parsed;\n }",
"public Node(String st) {\n\n\t\tst = st.replaceAll(\"\\\\s\",\"\");\n\t\tString[] row = st.split(\",\");\n\t\tsplithorizon = false;\n\t\tlinks = new ArrayList<Link>();\n\t\troutingTable = new ArrayList<ArrayList<Integer>>();\n\t\troutingTable.add(new ArrayList<Integer>());\n\t\troutingTable.add(new ArrayList<Integer>());\n\t\troutingTable.add(new ArrayList<Integer>());\n\t\t\n\t\tid = Integer.parseInt(row[0]);\n\n\t\tfor (int i = 1; i < row.length; i++) {\n\t\t\tString[] cost_dest = row[i].split(\":\");\n\t\t\tint destination = Integer.parseInt(cost_dest[0]);\n\t\t\tint cost = Integer.parseInt(cost_dest[1]);\n\t\t\tif (destination == id) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\troutingTable.get(0).add(destination);\n\t\t\troutingTable.get(1).add(cost);\n\t\t\tif (cost < 0) {\n\t\t\t\troutingTable.get(2).add(-1);\n\t\t\t} else {\n\t\t\t\tLink link = new Link(destination, cost);\n\t\t\t\tlinks.add(link);\n\t\t\t\troutingTable.get(2).add(destination); \n\t\t\t}\n\t\t}\n\t}",
"public Incident(String str) throws MalformedIncidentException {\n\n // Null/Empty check\n if (str == null || str.length() == 0) {\n throw new MalformedIncidentException(\"The incident was \" + ((str == null) ? \"a null\" : \"an empty\") + \" string.\");\n }\n\n // Is the input the right size?\n String[] components = str.split(\",\");\n if(components.length != 17) {\n throw new MalformedIncidentException(str + \"\\n(There were not 17 CSV columns)\");\n }\n\n // Bind properties to object\n try {\n\n this.coordinates = new Coordinates(Double.parseDouble(components[15]), Double.parseDouble(components[1]));\n this.date = new DateTime(PDDConfig.getInstance().PhillyCrimeDataDateFormat.parse(components[5]));\n this.code = Integer.parseInt(components[11]);\n this.description = components[12];\n\n } catch (NumberFormatException nfe) {\n throw new MalformedIncidentException(str + \"\\n(One of the numbers/coordinates could not be parsed).\" + nfe.getLocalizedMessage());\n } catch (ParseException pe) {\n throw new MalformedIncidentException(str + \"\\n(The date was not supplied in the correct format. The date string was \" + components[5] + \".\");\n }\n }",
"public final void zzj(String str) {\n HashMap zzk = zzk(str);\n if (zzk != null) {\n this.zzsp = (Long) zzk.get(0);\n this.zzsq = (Long) zzk.get(1);\n this.zzsr = (Long) zzk.get(2);\n this.zzfr = (Long) zzk.get(3);\n this.zzfp = (Long) zzk.get(4);\n this.zzss = (Long) zzk.get(5);\n this.zzst = (Long) zzk.get(6);\n this.zzsu = (Long) zzk.get(7);\n this.zzfw = (Long) zzk.get(8);\n this.zzfv = (Long) zzk.get(9);\n this.zzsv = (Long) zzk.get(10);\n }\n }",
"public ValueMap(final String keyValuePairs)\n\t{\n\t\tthis(keyValuePairs, \",\");\n\t}",
"protected final Object fromStringImpl(String string)\n throws TypeValueException {\n int y, m, d;\n try {\n y = Integer.parseInt(string.substring(0, 4));\n m = Integer.parseInt(string.substring(4, 6));\n d = Integer.parseInt(string.substring(6, 8));\n } catch (NumberFormatException nfe) {\n\n // Should never happen, since isValidValueImpl(String) will have been\n // called\n throw new TypeValueException(this, string);\n }\n\n // Check that the values are in the correct range\n return new Value(y, m, d);\n }",
"public static Map<String, String> strToMap(String str, boolean trim) {\n return strToMap(str, \"|\", trim);\n }",
"public Row(String pegstring){\n\t\titems = new ArrayList<Peg>();\n\t\t//parse row string, create peg object and add to items array\n\t\tfor (int i = 0; i < pegstring.length();i++){\n\n\t\t\titems.add(new Peg(pegstring.charAt(i)));\n\n\t\t}// end for\n\n\t}",
"public RepositoryParser() {\n pageElementsMap = new HashMap<String, Map<String, PageElement>>();\n }",
"public InfoHash createInfoHash(String data) throws IllegalArgumentException {\n byte[] d = DataHelper.getASCII(data);\n if (d.length != InfoHash.LENGTH)\n throw new IllegalArgumentException(\"bad infohash length \" + d.length);\n return _hashCache.get(d);\n }",
"public DNode(String s) {\n\t\tString[] parts = s.split(\" @ \");\n\t\tString[] params = parts[0].split(\", \");\n\t\tthis.key = Integer.parseInt(params[0]);\n\t\tthis.location = new Point3D(params[1]);\n\t\tthis.weight = Double.parseDouble(params[2]);\n\t\tthis.info = params[3];\n\t\tthis.tag = Integer.parseInt(params[4]);\n\n\t\tif (parts.length > 1) {\n\t\t\tString[] edges = parts[1].split(\" # \");\n\t\t\tfor (String string : edges) {\n\t\t\t\tDEdge e = new DEdge(string);\n\t\t\t\tif (e.getSrc() == getKey())\n\t\t\t\t\tput(e.getDest(), e);\n\t\t\t\telse\n\t\t\t\t\tthrow new RuntimeException(\"Edge src is \" + e.getSrc() + \" but source node key is \" + getKey());\n\t\t\t}\n\t\t}\n\t}",
"public StringInputSource(String s) {\n _index = 0;\n _input = s;\n }",
"public void createIDMap()\n {\n IDMap = new HashMap<>();\n idFile.open(\"idpassword.txt\");\n String line = idFile.getNextLine();\n\n\n\n while(line!=null) {\n String[] fields = line.split(\",\");\n IDMap.put(fields[0], fields[1]);\n\n line = idFile.getNextLine();\n\n }\n\n }",
"public QueueEntry(String playerName, String string) {\n this(playerName, string, null, EntryType.STRING);\n }",
"protected AGG_State( String s, int i )\n {\n name = s;\n nameHash.put( s, this );\n intValue = i;\n intHash.put( new Integer( intValue ), this );\n }",
"public static Config parseString(String s) {\n return parseString(s, ConfigParseOptions.defaults());\n }",
"public void parseString(String str) {\r\n\t\t\tint spaceAt = str.indexOf(' ');\r\n\r\n\t\t\tsrcService_ = str.substring(0, spaceAt);\r\n\t\t\tdestService_ = str.substring(spaceAt + 1);\r\n\t\t}",
"public static Map<String, String> strToMap(String str, String delim, boolean trim) {\n return strToMap(str, delim, trim, null);\n\n }",
"protected abstract SimpleType doParseString(String s);",
"public Tag(String str) {\n\t}",
"public Scanner(String inString)\n {\n in = new BufferedReader(new StringReader(inString));\n eof = false;\n getNextChar();\n }",
"@Override\n\tpublic Map<String, Integer> parseWordCountMap(String text, List<String> delimeter) {\n\t\treturn new HashMap<>();\n\t}",
"public final void mo55881a(String str, Map<String, String> map) {\n C7573i.m23587b(str, \"key\");\n C7573i.m23587b(map, \"map\");\n this.f56257a.mo56359a(str, (Map) map);\n }",
"public void init(String rawInfo) {\n try {\n destination = setValue(\"Destination\", rawInfo);\n vehicleNumber = Integer.parseInt(setValue(\"VehicleNo\", rawInfo));\n longitude = Double.parseDouble(setValue(\"Longitude\", rawInfo));\n latitude = Double.parseDouble(setValue(\"Latitude\", rawInfo));\n direction = setValue(\"Direction\", rawInfo);\n } catch (IllegalStateException e) {\n // This happens if the init string is in an invalid format. Set all members to their\n // default values.\n destination = \"null\";\n vehicleNumber = -1;\n longitude = 0.0;\n latitude = 0.0;\n direction = \"West\";\n }\n }",
"public parser(Scanner s) {super(s);}",
"public State(String fromString)\n {\n// Metrics.increment(\"State count\");\n //...\n }",
"@Override\n public void init(HashMap<String, Object> map) {\n this.title = (String) map.get(\"title\");\n this.url = (String) map.get(\"url\");\n }",
"public static Map<String, String> strToMap(String str, String delim, boolean trim, String pairsSeparator) {\n if (UtilValidate.isEmpty(str)) {\n return null;\n }\n Map<String, String> decodedMap = new HashMap<>();\n List<String> elements = split(str, delim);\n pairsSeparator = pairsSeparator == null ? \"=\" : pairsSeparator;\n\n for (String s: elements) {\n\n List<String> e = split(s, pairsSeparator);\n if (e.size() != 2) {\n continue;\n }\n String name = e.get(0);\n String value = e.get(1);\n if (trim) {\n if (name != null) {\n name = name.trim();\n }\n if (value != null) {\n value = value.trim();\n }\n }\n\n try {\n if (value != null && name != null) {\n decodedMap.put(URLDecoder.decode(name, \"UTF-8\"), URLDecoder.decode(value, \"UTF-8\"));\n }\n } catch (UnsupportedEncodingException e1) {\n Debug.logError(e1, MODULE);\n }\n }\n return decodedMap;\n }",
"public UriParser(String uri) {\n try {\n checkedParse(uri);\n\n } catch (URISyntaxException e) {\n throw new RuntimeException(e);\n }\n }",
"public GPSParser(String HEX) {\n this.HEX = HEX;\n converter = new Converter();\n }",
"void queueStringInit(String s) {\r\n String[] stringArray = s.split(\"\");\r\n for (int i = 0; i < stringArray.length; i++) {\r\n queue.add(Integer.parseInt(stringArray[i]));\r\n }\r\n }"
]
| [
"0.6405455",
"0.61295336",
"0.60878783",
"0.6060897",
"0.5998621",
"0.5866844",
"0.58580464",
"0.5837838",
"0.5820203",
"0.5819253",
"0.5814641",
"0.58038116",
"0.58003193",
"0.57767516",
"0.5752659",
"0.568636",
"0.5656058",
"0.56321216",
"0.56170356",
"0.5591652",
"0.55802995",
"0.5540806",
"0.5512347",
"0.55104303",
"0.549883",
"0.54773134",
"0.5458215",
"0.5449933",
"0.54141665",
"0.53993994",
"0.53804785",
"0.53708816",
"0.53382415",
"0.53378004",
"0.5327738",
"0.532441",
"0.5310404",
"0.529896",
"0.5286743",
"0.5284176",
"0.5273587",
"0.526985",
"0.52613324",
"0.5258697",
"0.52564573",
"0.5243179",
"0.5239315",
"0.5233476",
"0.52115905",
"0.51777333",
"0.5172539",
"0.5170894",
"0.5161571",
"0.5160775",
"0.5156477",
"0.5152373",
"0.51465404",
"0.5140348",
"0.51310146",
"0.5130065",
"0.5128569",
"0.5127821",
"0.5118124",
"0.5116633",
"0.5115811",
"0.51146275",
"0.51126915",
"0.5112108",
"0.5104198",
"0.51008207",
"0.509759",
"0.50945485",
"0.5089803",
"0.50838625",
"0.50787807",
"0.50750315",
"0.50550675",
"0.50524956",
"0.5048544",
"0.50474954",
"0.50423735",
"0.5028066",
"0.5012883",
"0.5012789",
"0.5006419",
"0.50057256",
"0.5002577",
"0.5000912",
"0.49997914",
"0.49980792",
"0.49952367",
"0.4979701",
"0.49778515",
"0.49759397",
"0.49753582",
"0.49733278",
"0.49676538",
"0.49651608",
"0.4964814",
"0.49648112"
]
| 0.58787006 | 5 |
Return a string by the key "key" | public String get(String key) {
return this._map.get(key);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getString(String key);",
"String getString(String key);",
"private String getString(String key) {\n return key;\r\n }",
"String get(Integer key);",
"public String getString(String key)\n {\n return getString(key, null);\n }",
"final String get(String key) {\n return get(key,null);\n }",
"public String getAsString(String key) {\n return entries.getProperty(key);\n }",
"String getString( String key, String def);",
"public String getString(String key) {\r\n String value = (String) keyvaluepairs.get(key.toLowerCase());\r\n return value == null ? \"\" : value;\r\n }",
"String getString(String key) throws KeyValueStoreException;",
"public String format(String key) {\r\n return getString(key);\r\n }",
"public String getString(String key) {\n Object value = get(key);\n return ((value instanceof String) ? (String)value : \"\");\n }",
"public String get(String key) {\n return getData().get(key);\n }",
"public String str(String key) throws AgentBuilderRuntimeException {\n\t\treturn getString(key);\n\t}",
"public String getString(String key) {\n return (String) commandData.get(key);\n }",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"public String getString(Keys key) {\n\t\treturn getString(key, null);\n\t}",
"public String getString(@NonNull final String key) {\n return getString(key, null);\n }",
"public static String s(String key) {\n\t\treturn RES.getString(key);\n\t}",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"public String get (String key)\n {\n // if this string is tainted, we don't translate it, instead we\n // simply remove the taint character and return it to the caller\n if (key.startsWith(TAINT_CHAR)) {\n return key.substring(1);\n }\n \n String msg = getResourceString(key);\n return (msg != null) ? msg : key;\n }",
"Object get(String key);",
"Object get(String key);",
"public String get(String key) {\n return this.map.get(key);\n }",
"public String get(String key) {\n return mMap.get(key);\n }",
"public String Str(String key) throws AgentBuilderRuntimeException {\n\t\treturn getString(key);\n\t}",
"public Object get(String key);",
"String getValue(String type, String key);",
"public String get(String key) {\n Node pos = find(key);\n if (pos == null) {\n return null;\n } else {\n return pos.pairStringString.getValue();\n }\n }",
"public String get(int key){\n\t\treturn(hashMap[key]);\t\t\n\t}",
"public String getString(final String key) {\r\n return messages.getString(key);\r\n }",
"public String get(String key) {\n String lowerCaseKey = validateAndGetLowerCaseKey(key);\n\n if(map.containsKey(lowerCaseKey)) {\n return map.get(lowerCaseKey);\n }\n\n return Strings.EMPTY;\n }",
"public String getString(String key)\r\n {\r\n debug(\"getString(\" + key + \") - retrieving Key...\");\r\n String value = null;\r\n try\r\n {\r\n value = getResourceBundle().getString(key);\r\n }\r\n catch (MissingResourceException e)\r\n {\r\n System.out.println(\"java.util.MissingResourceException: \" + \"Couldn't find value for: \" + key);\r\n }\r\n if (value == null)\r\n {\r\n value = \"Could not find resource: \" + key + \" \";\r\n }\r\n debug(\"getString(\" + key + \") - value ==> \" + value);\r\n debug(\"getString(\" + key + \") - retrieving Key...Done\");\r\n return value;\r\n }",
"@Override\n public String getString(String key) {\n return getStringFromBundle(key, BASE_STRING) + \" \" + random.nextInt(RANDOM_INT_BOUND);\n }",
"String key();",
"public String getString(String key) {\n\t\tString sp = internal.getProperty(key);\n\t\tif (sp == null) {\n\t\t\tsp = (String) getDefault(key);\n\t\t}\n\t\treturn sp;\n\t}",
"public static String getString(String key) {\n try {\n return RESOURCE_BUNDLE.getString(key); // Devuelve una entrada de la tabla \n } catch (MissingResourceException e) {\n return '!' + key + '!';\n }\n }",
"String getSettingByKey(String key);",
"public String getString(String key) throws AgentBuilderRuntimeException {\n\t\tif (!extContainsKey(key))\n\t\t\tthrow new AgentBuilderRuntimeException(\n\t\t\t\t\t\"Dictionary does not contain key \\\"\" + key + \"\\\"\");\n\t\treturn (String) extGet(key);\n\t}",
"private String keyAsString(Map map, String key) {\n Object value = map.get(key);\n return (value != null) ? value.toString() : null;\n }",
"public static String getString(String key) {\n\t\tif (rb == null)\n\t\t\treinit();\n\n\t\tif (rb.containsKey(key)) {\n\t\t\treturn rb.getString(key);\n\t\t} else {\n\t\t\tLOG.warning(String.format(PermMessages._loc_noval, key));\n\t\t\treturn no_value;\n\t\t}\n\t}",
"@Override\n\t\t\tpublic String get(String key) {\n\t\t\t\treturn null;\n\t\t\t}",
"public String getKV(String key) throws Exception;",
"public String getKey();",
"public String getKey();",
"public String getKey();",
"public String getKey();",
"public String getParameterString(String key) {\n return this.getParameter(key);\n }",
"public String get(String key) {\n\t\tif (fileData.containsKey(key)) {\n\t\t\treturn fileData.get(key);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Couldn't find \" + key);\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public static String getData(String key){\n\t\treturn new String(KeyStorage.memStore.getOrDefault(key.getBytes(), nonexists.getBytes()));\n\t}",
"public String get(String key) {\n\t\t//get this file's text\n\t\tString text = FileIO.read(this.getPath());\n\t\tString value = null;\n\t\ttry {\n\t\t\t//try matching the pattern: key : value\\n \n\t\t\tPattern pattern = Pattern.compile(key+\" : (.*?)\\n\");\n\t\t\t\n\t\t\tMatcher matcher = pattern.matcher(text);\n\t\t\tmatcher.find();\n\t\t\t\n\t\t\t//get the value\n\t\t\tvalue = matcher.group(1);\n\t\t\t\n\t\t}catch(Exception e) {/*do nothing*/}\n\t\t\n\t\treturn value;\n\t}",
"private static String getString(String key) {\r\n\t\treturn ConfmlFeatureEditorPlugin.INSTANCE.getString(key);\r\n\t}",
"public String getString(String key) {\n return mPref.getString(key, null);\n }",
"public abstract T get(String key);",
"public static String get(String key) {\n Jedis jedis = null;\n String rtn = null;\n try {\n jedis = getJedis();\n rtn = jedis.get(key);\n } catch (Exception e) {\n\n jedispool.returnBrokenResource(jedis);\n } finally {\n returnResource(jedispool, jedis);\n }\n return rtn;\n }",
"T get(@NonNull String key);",
"Object get(Object key);",
"protected abstract Object _get(String key);",
"public Object getQuiet(String key);",
"protected String get(String key)\n {\n // if this string is tainted, we don't translate it, instead we\n // simply remove the taint character and return it to the caller\n if (MessageUtil.isTainted(key))\n {\n return MessageUtil.untaint(key);\n }\n try\n {\n return _msgs.getString(key);\n }\n catch (MissingResourceException mre)\n {\n log.warning(\"Missing translation message '\" + key + \"'.\");\n return key;\n }\n }",
"abstract public String getKey();",
"public static String getString(final String key) {\n\t\ttry {\n\t\t\treturn ResourceBundle.getBundle(\"gradebookng\", getUserPreferredLocale()).getString(key);\n\t\t} catch (final MissingResourceException e) {\n\t\t\treturn '!' + key + '!';\n\t\t}\n\t}",
"String get(int partitionID, String key);",
"static public String getEjsString(String key) {\r\n\t\ttry {\r\n\t\t\treturn ejsRes.getString(key);\r\n\t\t} catch (Exception exc) {\r\n\t\t\texc.printStackTrace();\r\n\t\t\treturn key;\r\n\t\t}\r\n\t}",
"static private String getRawString(String key) {\n try {\n return _resources.getString(key);\n } catch (MissingResourceException mre) {\n return \"Missing resource for: \" + key;\n }\n }",
"public String lookup(String key){\n Node N;\n N = findKey(root, key);\n return ( N == null ? null : N.item.value );\n }",
"Object getKey();",
"T get(String key);",
"public String get(String key) {\n return this.properties.getProperty(key);\n }",
"public V get(String key);",
"public String get(String key) {\n if (key == null) {\n LOGGER.warning(\"Tried to use a null key on get()\");\n return null;\n }\n\n if (mJSONObject == null)\n return null;\n\n return mJSONObject.get(key).toString();\n }",
"@SuppressWarnings(\"unused\")\n private static String getKeyString(Key key)\n {\n return Base64.encode(key.getEncoded());\n }",
"public static String valueOf(String key) {\n try {\n if (!getInstance().containsKey(key)) {\n return \"\";\n } else {\n return getInstance().getProperty(key);\n }\n } catch (FileNotFoundException e) {\n System.err.println(\"Couldn't find \" + PROPERTIES_FILE);\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"public static String getString(String key) {\r\n\t\ttry {\r\n\t\t\treturn resourceBundle.getString(key);\r\n\t\t} catch (MissingResourceException e) {\r\n\t\t\tlogger.error(\"Unable to find key \" + key);\r\n\t\t\treturn '!' + key + '!';\r\n\t\t}\r\n\t}",
"public static String lookup(String baseName, String key)\r\n {\r\n return lookup(baseName, key, null, null, null);\r\n }",
"public String getPropiedad(String key) {\n\t\tString out = \"\";\n\n\t\treturn out;\n\t}",
"String getString(String key, String defaultValue);",
"String getString(String key, String defaultValue);",
"public String getString(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null || value.value == null)\n\t\t\treturn null;\n\t\tif(value.type != ValueType.STRING)\n\t\t\tthrow new JsonTypeException(value.value.getClass(), String.class);\n\t\treturn (String)value.value;\n\t}",
"String get(String key) {\n return settings.get(key);\n }",
"public String hget(final String key, final String field) {\n return hget(key, field, 0);\n }",
"public Object get(String key) {\n \t\treturn this.get(null, key);\n \t}",
"public String getString(String key, String defaultValue);"
]
| [
"0.85143554",
"0.8424409",
"0.8303758",
"0.75205195",
"0.7473921",
"0.7432816",
"0.74128085",
"0.7351963",
"0.73495215",
"0.725843",
"0.7165077",
"0.71633184",
"0.7136558",
"0.7130857",
"0.71023506",
"0.7008432",
"0.7008432",
"0.7008432",
"0.7008432",
"0.7008432",
"0.7008432",
"0.7006115",
"0.70019627",
"0.6991255",
"0.6986752",
"0.6986752",
"0.6986752",
"0.6986752",
"0.6986752",
"0.6986752",
"0.6986752",
"0.6986752",
"0.6986752",
"0.6986752",
"0.6986752",
"0.6986752",
"0.6986752",
"0.69613254",
"0.695335",
"0.695335",
"0.6941225",
"0.689117",
"0.6880451",
"0.68715477",
"0.6839756",
"0.6820455",
"0.67938155",
"0.67927253",
"0.67552835",
"0.671114",
"0.67004025",
"0.669024",
"0.6683578",
"0.6678124",
"0.6649347",
"0.6636659",
"0.66118157",
"0.6593054",
"0.65844667",
"0.65688103",
"0.6545006",
"0.6545006",
"0.6545006",
"0.6545006",
"0.654224",
"0.65364474",
"0.65313506",
"0.65202445",
"0.651823",
"0.65131474",
"0.650406",
"0.6499452",
"0.64916253",
"0.6488415",
"0.64801997",
"0.64489496",
"0.6443216",
"0.6438801",
"0.6435336",
"0.6429648",
"0.64271915",
"0.64265895",
"0.64213943",
"0.64052606",
"0.6403575",
"0.64014035",
"0.63928807",
"0.63899547",
"0.6379722",
"0.63739663",
"0.63561624",
"0.6350635",
"0.6343475",
"0.63381284",
"0.63381284",
"0.6324886",
"0.63226515",
"0.6313042",
"0.63031316",
"0.63002706"
]
| 0.66254306 | 56 |
The getter for the hashmap | public HashMap<String, String> getMap() {
return _map;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String[] get()\n {\n return hashmap;\n }",
"public HashMap<String, String> getHashMap() {\n\t\treturn this.hashMap;\n\t}",
"public java.util.Map getMap()\n {\n return __m_Map;\n }",
"public HashMap<String, Object> getHashMap() {\n return JsonSerializable.toMap(this.propertyBag);\n }",
"@Override\n public HashMap<String, String> get_hashMap() {\n HashMap<String, String> temp = super.get_hashMap();\n\n temp.put(TAG.TYPE, String.valueOf(this.type));\n temp.put(TAG.SIZE, String.valueOf(this.size));\n temp.put(TAG.TAG, this.tag);\n temp.put(TAG.SPEED_BURROW, String.valueOf(this.burrow_speed));\n temp.put(TAG.SPEED_CLIMBING, String.valueOf(this.climbing_speed));\n temp.put(TAG.SPEED_FLYING, String.valueOf(this.flying_speed));\n temp.put(TAG.SPEED_SWIMMING, String.valueOf(this.swimming_speed));\n\n temp.put(TAG.CHALLENGE_RATING, String.valueOf(this.challenge_rating));\n temp.put(TAG.SENSES_VECTOR, String.valueOf(this.senses));\n temp.put(TAG.EXPERIENCE_POINTS, String.valueOf(this.experience_points));\n\n return temp;\n }",
"public Map<String, Long> getHashes() {\n\t\t\treturn hashes;\n\t\t}",
"public Map<String, Counter> getMap(){\n\t\treturn map;\n\t}",
"public int hashCode()\n {\n return getMap().hashCode();\n }",
"public Map<Diff<K>, Diff<V>> getMap() {\r\n return map;\r\n }",
"@Override\n public Map<String, Class> getDictionary() {\n synchronized (mapper) {\n LinkedHashMap<String, Class> dictionary = new LinkedHashMap<>();\n mapper.fillDictionary(null, dictionary);\n return dictionary;\n }\n }",
"@UnsupportedAppUsage\n public Map<String, Object> getMap() {\n return this.mMap;\n }",
"public final HashMap<Integer, T> getData() {\n\t\treturn this.data;\n\t}",
"public HashMap getMetaData() ;",
"public HashMap<String, Object> getKeyValues()\n\t{\n\t\treturn this.keyValues;\n\n\t}",
"public HashMap<HLID, ArrayList<HLID>> getMapping() {\n\t\treturn mapping;\n\t\t// HashMap<HLActivity, ArrayList<HLActivity>> returnHashMap = new\n\t\t// HashMap<HLActivity,ArrayList<HLActivity>>();\n\t\t// // TODO Anne: check and remove\n\t\t// //Iterator<Entry<HLTransition, ArrayList<HLTransition>>> it =\n\t\t// mapping.entrySet().iterator();\n\t\t// Iterator<Entry<String, ArrayList<String>>> it =\n\t\t// mapping.entrySet().iterator();\n\t\t// while (it.hasNext()) {\n\t\t// Entry entry = it.next();\n\t\t// HLActivity castKey = (HLActivity) entry.getKey();\n\t\t// ArrayList<HLActivity> castValue = (ArrayList<HLActivity>)\n\t\t// entry.getValue();\n\t\t// returnHashMap.put(castKey, castValue);\n\t\t// }\n\t\t// return returnHashMap;\n\t}",
"java.util.Map<java.lang.Integer, java.lang.Integer>\n getInfoMap();",
"public final Map<String, Object> getInternalMap() {\n\t\treturn values;\n\t}",
"public String getMap() { \n\t\treturn getMapElement().getValue();\n\t}",
"public HashMap getBookMap(){\n\t\treturn bookMap;\n\t}",
"public HashMap<Long, String> getData() {\n\t\treturn data;\n\t}",
"public java.util.Map<java.lang.Integer, java.lang.Integer> getInfoMap() {\n return internalGetInfo().getMap();\n }",
"public java.util.Map<java.lang.Integer, java.lang.Integer> getInfoMap() {\n return internalGetInfo().getMap();\n }",
"public Map getMap() {\n\t\treturn this.map;\n\t}",
"public Map<String, String> getData() {\n if (data == null) data = new HashMap<>();\n return data;\n }",
"@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }",
"public Map<String, IHyperEdge> getHyperEdgeMap() {\n\n return Collections.unmodifiableMap(hyperEdgeMap);\n }",
"public java.util.Map<java.lang.String, java.lang.String> getTagsMap() {\n return internalGetTags().getMap();\n }",
"public String get(int key){\n\t\treturn(hashMap[key]);\t\t\n\t}",
"public IDictionary getDictionary(){\n \treturn dict;\n }",
"public Map<String, ?> getUrlMap()\r\n/* 27: */ {\r\n/* 28: 93 */ return this.urlMap;\r\n/* 29: */ }",
"public HashMap<String,SupplyNode> getMap(){\n return t;\n }",
"@Override\n public List<IMapData<Integer, String>> getHashMapData() {\n List<IMapData<Integer, String>> data = new ArrayList<>();\n\n data.add(this.getHashMapData1());\n data.add(this.getHashMapData2());\n\n return data;\n }",
"@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getPropertiesMap() {\n return internalGetProperties().getMap();\n }",
"public Map<Integer, Employee> getEmployeemap(){\r\n\t\treturn employee;\r\n\t}",
"public java.util.Map<java.lang.String, java.lang.String> getTagsMap() {\n return internalGetTags().getMap();\n }",
"public HashMap<String, String> getResultHashMap() {\n\t\treturn this.hashMap;\n\t}",
"public Map<String, Object> getInfo();",
"@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getPropertiesMap() {\n return internalGetProperties().getMap();\n }",
"public HashMap<String, HashMap<String, String>> getFeatureInfoHashMap() {\n return featureInfoHashMap;\n }",
"public Map<String, String> getValueData(){\n\t\treturn valueCache;\n\t}",
"protected Map createPropertiesMap() {\n return new HashMap();\n }",
"public V get(Object key) { return _map.get(key); }",
"protected SortedMap getSortedMap() {\n/* 65 */ return (SortedMap)this.map;\n/* */ }",
"public Map getProperties();",
"private Map<String, List<String>> getDictionary() {\n\t\tMap<String, List<String>> dictMap = dictionary.getMultiValueDict();\n\t\treturn dictMap;\n\t}",
"@Override\n\t\tpublic List<? extends MyHashMap.Entry<K, V>> getEntries() {\n\t\t\treturn e;\n\t\t}",
"@Override\n public Map<String, String> get() {\n\n Map<String, String> hugoMap = Maps.newHashMap();\n try {\n final CSVParser parser = new CSVParser(this.reader, CSVFormat.TDF.withHeader());\n for (CSVRecord record : parser) {\n\n hugoMap.put(record.get(0), record.get(1));\n }\n\n } catch (IOException e) {\n log.error(e.getMessage());\n e.printStackTrace();\n }\n return hugoMap;\n }",
"@Override\n\tpublic V get(Object key) {\n\t\treturn map.get(key);\n\t}",
"public Map<Employee,String> getPerformancemap(){\r\n\t\treturn performance;\r\n\t}",
"public Dictionary getDictionary() {\n return dictionary;\n }",
"public Map<String, Object> getInfoMap()\n {\n Map<String, Object> paramMap = new HashMap<String, Object>();\n this.putInMap(paramMap);\n return paramMap;\n }",
"@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {\n return internalGetLabels().getMap();\n }",
"@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {\n return internalGetLabels().getMap();\n }",
"public static Map<String, String> getMapping() {\r\n\t\treturn data.get();\r\n\t}",
"public Map<String, Object> getInfoMap() {\n\t\tMap<String, Object> paramMap = new HashMap<String, Object>();\n\t\tthis.putInMap(paramMap);\n\t\treturn paramMap;\n\t}",
"public HashMap<Integer, ArrayList<String>> getInfo() {\n\t\treturn infoList;\n\t}",
"@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {\n return internalGetLabels().getMap();\n }",
"@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {\n return internalGetLabels().getMap();\n }",
"public HashMap getDatos() {\r\n return datos;\r\n }",
"public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() {\n return internalGetMetadata().getMap();\n }",
"public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() {\n return internalGetMetadata().getMap();\n }",
"public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() {\n return internalGetMetadata().getMap();\n }",
"public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() {\n return internalGetMetadata().getMap();\n }",
"public HashMap<String, NeonValue> getMap();",
"public int sizeOfMap(){return size;}",
"public int[][] giveMap(){\n\t\treturn map;\n\t}",
"private IMapData<Integer, String> getHashMapData1() {\n List<IKeyValueNode<Integer, String>> creationData = new ArrayList<>();\n List<IKeyValueNode<Integer, String>> data = new ArrayList<>();\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 }",
"public Map<String, Object> getTagMap();",
"@Override\n\tpublic int hashCode() {\n\t\treturn getKey() != null ? getKey().hashCode() : 0;\n\t}",
"public MapBean getMapBean() {\n return theMap;\n }",
"@Override\n\t\tpublic int hashCode() {\n\t\t\treturn countMap.hashCode();\n\t\t}",
"public MultiValueMap<String, String> getMap() {\r\n\t\tMultiValueMap<String, String> map = new LinkedMultiValueMap<String, String>();\r\n\t\t\r\n\t\tif(this.country != null) \t\tmap.add(\"country\", this.getCountry().getValue());\r\n\t\tif(this.operation != null) \t\tmap.add(\"operation\", this.getOperation().getValue());\r\n\t\tif(this.propertyType != null) \tmap.add(\"propertyType\", this.getPropertyType().getValue());\r\n\t\tif(this.center != null) \t\tmap.add(\"center\", this.getCenter().getCoordinates());\r\n\t\tif(this.locale != null) \t\tmap.add(\"locale\", this.getLocale().getValue());\r\n\t\tif(this.distance != null) \t\tmap.add(\"distance\", this.getDistance().toString());\r\n\t\tif(this.locationId != null) \tmap.add(\"locationId\", this.getLocationId().getValue());\r\n\t\tif(this.maxItems != null) \t\tmap.add(\"maxItems\", this.getMaxItems().toString());\r\n\t\tif(this.numPage != null) \t\tmap.add(\"numPage\", this.getNumPage().toString());\r\n\t\tif(this.maxPrice != null) \t\tmap.add(\"maxPrice\", this.getMaxPrice().toString());\r\n\t\tif(this.sinceDate != null) \t\tmap.add(\"sinceDate\", this.getSinceDate().getValue());\r\n\t\tif(this.order != null) \t\t\tmap.add(\"order\", this.getOrder().getValue());\r\n\t\tif(this.sort != null) \t\t\tmap.add(\"sort\", this.getSort().getValue());\r\n\t\tif(this.adIds != null) {\r\n\t\t\tfor(Integer id: adIds) {\r\n\t\t\t\tmap.add(\"adIds\", id.toString());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(this.hasMultimedia != null) \tmap.add(\"hasMultimedia\", this.getHasMultimedia().toString());\r\n\t\t\r\n\t\treturn map;\r\n\t}",
"public static HashMap<String, Shelter> getMap() {\n return shelters;\n }",
"public GameMap map() {\n\t\treturn map;\n\t}",
"private HashMap pc() {\n if (_pcache == null) {\n _pcache = new HashMap(13);\n }\n return _pcache;\n }",
"public HashMap<String, String> getProperties() {\n return (HashMap<String, String>) properties.clone();\n }",
"public final Map<K, V> b() {\n return this.f24654d;\n }",
"public Map<Entity, Integer> computeHyponymCountMap()\r\n\t{\n\t\treturn null;\r\n\t}",
"public boolean isHashMap();",
"public Pair get()\n {\n return this.MapItr.element;\n }",
"@Override\n\tpublic Map<String, String> get(int id) {\n\t\treturn null;\n\t}",
"public Map<Integer, State> getMyStateMap() { return myStateMap; }",
"public Map<String, Object> getData() {\n\t\treturn this.data;\n\t}",
"@Updatable\n public Map<String, String> getTags() {\n if (tags == null) {\n tags = new HashMap<>();\n }\n return tags;\n }",
"public String getHash()\n\t{\n\t\tif(isModified) generateHash();\n\t\treturn hash;\n\t}",
"@Override\n\t\tpublic int hashCode()\n\t\t{\n\t\t\treturn key.hashCode() * 31 + value.hashCode();\n\t\t}",
"public JSONObject<String, Object> getObjectMap() {\n return objectMap;\n }",
"public Map<Integer, TimesBean> getTimes() {\n/* 15 */ return this.times;\n/* */ }",
"public COSDictionary getCOSDictionary() {\n/* 62 */ return this.dictionary;\n/* */ }",
"@Override\r\n\tpublic Account getAccountHashmap(String accnum) {\n\t\treturn dataMap.get(accnum);\r\n\t}",
"public Map<K,V> getMap() {\n Map<K,V> results = new HashMap<K,V>(valueMap.size());\n\n synchronized(theLock) {\n for (Map.Entry<K,CacheableObject> entry : valueMap.entrySet()) {\n if (! isExpired(entry.getValue())) {\n results.put(entry.getKey(), entry.getValue().cachedObject);\n }\n }\n }\n\n return results;\n }",
"public static void getHashMapValues() {\n\t\tMap<Integer, String> map = createHashMap();\n\t\t\n\t\t//Get value from key.\n\t\tSystem.out.println(\"Map value for key 1: \" + map.get(1));\n\n\t\t\n\t\t//2. using custom object as key\n\t\tMap<Account, String> accountMap = createAccountMap();\n\t\t\n\t\tAccount account = new Account(\"John\", 1, 100);\n\t\t\n\t\tSystem.out.println(\"**********Get value from Map:*********** \");\n\t\tSystem.out.println(\"Map Value for key as Account: \"\n\t\t\t\t+ accountMap.get(account));\n\t}",
"java.util.Map<java.lang.String, java.lang.String>\n getPropertiesMap();",
"@java.lang.Override\n public com.google.protobuf.ByteString getHash() {\n return hash_;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getHash() {\n return hash_;\n }",
"public Map method_6439() {\r\n return this.field_6226;\r\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getHash() {\n return hash_;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getHash() {\n return hash_;\n }",
"protected Map<String, T> getDatumCache() {\n\t\treturn datumCache;\n\t}",
"@Override\n\tpublic java.util.Map<java.util.Locale, java.lang.String> getTitleMap() {\n\t\treturn _scienceApp.getTitleMap();\n\t}"
]
| [
"0.7692518",
"0.75371003",
"0.71066076",
"0.7033904",
"0.7028141",
"0.69072354",
"0.68699497",
"0.68427336",
"0.68287283",
"0.67129946",
"0.66996485",
"0.6678766",
"0.6673351",
"0.6664916",
"0.6652811",
"0.6645902",
"0.66318095",
"0.6626901",
"0.6603383",
"0.6580536",
"0.6578437",
"0.6564101",
"0.655479",
"0.65274805",
"0.6474314",
"0.64562804",
"0.6445753",
"0.64375734",
"0.6437441",
"0.64305764",
"0.64206433",
"0.64161503",
"0.6396685",
"0.6391321",
"0.6389255",
"0.63873076",
"0.63854796",
"0.63782775",
"0.6376195",
"0.63646716",
"0.63619065",
"0.6359417",
"0.63384694",
"0.6337996",
"0.63359195",
"0.6329747",
"0.6314496",
"0.62948817",
"0.62743354",
"0.62731576",
"0.624293",
"0.6238861",
"0.6238861",
"0.623567",
"0.6231037",
"0.62276024",
"0.62275857",
"0.62275857",
"0.62231183",
"0.6192965",
"0.6192965",
"0.6192488",
"0.6192488",
"0.6189428",
"0.61880505",
"0.6186118",
"0.61853397",
"0.618081",
"0.61804175",
"0.61794966",
"0.616898",
"0.616449",
"0.6162231",
"0.6157398",
"0.6152273",
"0.612829",
"0.6124391",
"0.61195457",
"0.6118133",
"0.61098796",
"0.6106456",
"0.6102643",
"0.6102551",
"0.6076198",
"0.6074891",
"0.606432",
"0.6060464",
"0.6057154",
"0.6055749",
"0.60535693",
"0.6049866",
"0.6047998",
"0.60450464",
"0.60427326",
"0.60427326",
"0.604064",
"0.60385615",
"0.60385615",
"0.60357004",
"0.6033192"
]
| 0.7461898 | 2 |
Disposition for an attachment is used to write out the attachment headers excluding the ContentType header. | protected void sendDispositionHeader(OutputStream out) throws IOException
{
String dispositionHeader = createHeadersAsDisposition();
if ( AeUtil.notNullOrEmpty(dispositionHeader) )
out.write(EncodingUtil.getAsciiBytes(dispositionHeader));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AttachmentBuilder disposition(String theDisposition) {\n \t\tthis.disposition = theDisposition;\n \t\treturn this;\n \t}",
"String getContentDisposition();",
"public String getContentDisposition() {\n return this.contentDisposition;\n }",
"public String getContentDisposition() {\n return contentdisposition;\n }",
"private String createHeadersAsDisposition()\r\n {\r\n StringBuffer buff = new StringBuffer();\r\n boolean first = true;\r\n for (Iterator iterator = getHeaders().entrySet().iterator(); iterator.hasNext();)\r\n {\r\n Map.Entry header = (Map.Entry)iterator.next();\r\n String hName = (String)header.getKey();\r\n if ( !hName.equalsIgnoreCase(AeMimeUtil.CONTENT_TYPE_ATTRIBUTE) )\r\n {\r\n if ( first )\r\n first = false;\r\n else\r\n buff.append(CRLF);\r\n buff.append(hName).append(\": \").append((String)header.getValue()); //$NON-NLS-1$/\r\n }\r\n }\r\n return buff.toString();\r\n }",
"public javax.sip.header.ContentDispositionHeader\n getContentDisposition() {\n return (ContentDispositionHeader)\n this.getHeader(ContentDispositionHeader.NAME);\n }",
"public ContentDisposition getContentDisposition() {\n return contentDisposition;\n }",
"public String getContentDisposition() throws Exception {\r\n if (externalUrl != null) {\r\n AmazonS3URI s3Uri = DirectUtils.getS3Uri(externalUrl);\r\n if (s3Uri != null) {\r\n return \"attachment; filename=\\\"submission-\" + submission.getId() + \"-\" + DirectUtils.getS3FileKey(externalUrl) + \"\\\"\";\r\n }\r\n return \"attachment; filename=\\\"submission-\" + submission.getId() + \"-\" + DirectUtils.getFileNameFromUrl(externalUrl) + \"\\\"\";\r\n }\r\n\r\n if (contest.getProjectHeader().getProjectCategory().getId() == ContestType.COPILOT_POSTING.getId()) {\r\n // it's copilot posting, append user handle to each file in the copilot posting submission\r\n Resource[] resources = contest.getResources();\r\n long userId = 0;\r\n for (Resource r : resources) {\r\n if (r.getId() == submission.getUpload().getOwner()) {\r\n userId = Long.parseLong(r.getProperty(\"External Reference ID\"));\r\n break;\r\n }\r\n }\r\n return \"attachment; filename=\\\"submission-\" + getUserService().getUserHandle(userId) + \"-\" +\r\n uploadedFile.getRemoteFileName()\r\n + \"\\\"\";\r\n } else {\r\n return \"attachment; filename=\\\"submission-\" + submission.getId() + \"-\" + uploadedFile.getRemoteFileName()\r\n + \"\\\"\";\r\n }\r\n }",
"public void setContentDisposition\n (ContentDispositionHeader contentDispositionHeader) {\n this.setHeader( contentDispositionHeader);\n \n }",
"public ContentDispositionType type() {\n return this.value();\n }",
"@Override\r\n public String getCustomContentDisposition() {\r\n return FilenameUtils.getName(this.imagePath);\r\n }",
"public void setAttachmentHeader(String filename)\n\t{\n\t\tsetHeader(\"Content-Disposition\", \"attachment\"\n\t\t\t\t+ ((!Strings.isEmpty(filename)) ? (\"; filename=\\\"\" + filename + \"\\\"\") : \"\"));\n\t}",
"public ShareFileHttpHeaders setContentDisposition(String contentDisposition) {\n this.contentDisposition = contentDisposition;\n return this;\n }",
"@Test\r\n public void test_setContentDisposition_Accuracy() {\r\n instance.setContentDisposition(\"a\");\r\n assertEquals(\"incorrect value after setting\", \"a\", instance.getContentDisposition());\r\n }",
"private String extractFileName(Part part) {\n\nString contentDisp = part.getHeader(\"content-disposition\");\n\nString[] items = contentDisp.split(\";\");\n\nfor (String s : items) {\n\nif (s.trim().startsWith(\"filename\")) {\n\nreturn s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\n\n}\n\n}\n\nreturn \"\";\n\n}",
"@Override\r\n\tpublic String getContentType() {\r\n\t\treturn attachmentType;\r\n\t}",
"private void getFileName() {\n\t\tHeader contentHeader = response.getFirstHeader(\"Content-Disposition\");\n\t\tthis.filename = null;\n\t\tif (contentHeader != null) {\n\t\t\tHeaderElement[] values = contentHeader.getElements();\n\t\t\tif (values.length == 1) {\n\t\t\t\tNameValuePair param = values[0].getParameterByName(\"filename\");\n\t\t\t\tif (param != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfilename = param.getValue();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (this.filename == null) {\n\t\t\tthis.filename = url.substring(url.lastIndexOf(\"/\") + 1);\n\t\t}\n\t}",
"private String extractFileName(Part part) {\r\n\t\tString contentDisp = part.getHeader(\"content-disposition\");\r\n\t\tString[] items = contentDisp.split(\";\");\r\n\t\tfor (String s : items) {\r\n\t\t\tif (s.trim().startsWith(\"filename\")) {\r\n\t\t\t\treturn s.substring(s.indexOf(\"=\") + 2, s.length()-1);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}",
"public static String createContentDisposition(String value, String filename) {\n try {\n return String.format(\"%s;filename=\\\"%2$s\\\"; filename*=UTF-8''%2$s\", value, encodeURI(filename));\n }\n catch (UnsupportedEncodingException e) {\n throw new FacesException(e);\n }\n }",
"public String extractFileName(Part part) {\r\n\t\tString contentDisp = part.getHeader(\"content-disposition\");\r\n\t\tString[] items = contentDisp.split(\";\");\r\n\t\tfor (String s : items) {\r\n\t\t\tif (s.trim().startsWith(\"filename\")) {\r\n\t\t\t\treturn s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}",
"private String extractFileName(Part part) {\n String contentDisp = part.getHeader(\"content-disposition\");\n String[] items = contentDisp.split(\";\");\n for (String s : items) {\n if (s.trim().startsWith(\"filename\")) {\n return s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\n }\n }\n return \"\";\n }",
"private String extractFileName(Part part) {\n String contentDisp = part.getHeader(\"content-disposition\");\n String[] items = contentDisp.split(\";\");\n for (String s : items) {\n if (s.trim().startsWith(\"filename\")) {\n return s.substring(s.indexOf(\"=\") + 2, s.length()-1);\n }\n }\n return \"\";\n }",
"public static String getFileName(Part part) {\n final String partHeader = part.getHeader(\"content-disposition\");\n for (String content : part.getHeader(\"content-disposition\").split(\";\")) {\n if (content.trim().startsWith(\"filename\")) {\n return content.substring(content.indexOf('=') + 1).trim()\n .replace(\"\\\"\", \"\");\n }\n }\n return \"\";\n }",
"private String extractFileName(Part part) {\r\n\t\tString contentDisp = part.getHeader(\"content-disposition\");\r\n\t\tString[] items = contentDisp.split(\";\");\r\n\t\tfor (String s : items) {\r\n\t\t\tif (s.trim().startsWith(\"filename\")) {\r\n\t\t\t\treturn s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public static ContentDisposition parse(final String text) {\n return ContentDispositionHeaderParser.parseContentDisposition(text);\n }",
"@Test\r\n public void test_getContentDisposition_Accuracy() {\r\n assertEquals(\"incorrect default value\", null, instance.getContentDisposition());\r\n instance.setContentDisposition(\"a\");\r\n assertEquals(\"incorrect value after setting\", \"a\", instance.getContentDisposition());\r\n }",
"private String extractFileName(final Part part) {\n\t\tfinal String contentDisp = part.getHeader(\"content-disposition\");\n\t\tfinal String[] items = contentDisp.split(\";\");\n\t\tfor (final String s : items) {\n\t\t\tif (s.trim().startsWith(\"filename\")) {\n\t\t\t\treturn s.substring(s.indexOf(\"=\") + 2, s.length()-1);\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}",
"default String getContentType() {\n return \"application/octet-stream\";\n }",
"public void setContentDispositionFormData(String name, String filename)\r\n/* 162: */ {\r\n/* 163:245 */ Assert.notNull(name, \"'name' must not be null\");\r\n/* 164:246 */ StringBuilder builder = new StringBuilder(\"form-data; name=\\\"\");\r\n/* 165:247 */ builder.append(name).append('\"');\r\n/* 166:248 */ if (filename != null)\r\n/* 167: */ {\r\n/* 168:249 */ builder.append(\"; filename=\\\"\");\r\n/* 169:250 */ builder.append(filename).append('\"');\r\n/* 170: */ }\r\n/* 171:252 */ set(\"Content-Disposition\", builder.toString());\r\n/* 172: */ }",
"public String getAttachment() {\n return attachment;\n }",
"private String extractFileName(Part part) {\n\t String contentDisp = part.getHeader(\"content-disposition\");\r\n\t String[] items = contentDisp.split(\";\");\r\n\t for (String s : items) {\r\n\t if (s.trim().startsWith(\"filename\")) {\r\n\t // C:\\file1.zip\r\n\t // C:\\Note\\file2.zip\r\n\t String clientFileName = s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\r\n\t clientFileName = clientFileName.replace(\"\\\\\", \"/\");\r\n\t int i = clientFileName.lastIndexOf('/');\r\n\t // file1.zip\r\n\t // file2.zip\r\n\t return clientFileName.substring(i + 1);\r\n\t }\r\n\t }\r\n\t return null;\r\n\t }",
"@Override\n\tpublic String getContentType(String filename) {\n\t\treturn null;\n\t}",
"public boolean isAttachment() {\n return isAttachment;\n }",
"protected String getContentType()\n {\n if (fullAttachmentFilename == null)\n {\n return null;\n }\n String ext = FilenameUtils.getExtension(fullAttachmentFilename);\n if (ext == null)\n {\n return null;\n }\n if (ext.equalsIgnoreCase(\"pdf\"))\n {\n return \"application/pdf\";\n } else if (ext.equalsIgnoreCase(\"zip\"))\n {\n return \"application/zip\";\n } else if (ext.equalsIgnoreCase(\"jpg\"))\n {\n return \"image/jpeg\";\n\n } else if (ext.equalsIgnoreCase(\"jpeg\"))\n {\n return \"image/jpeg\";\n\n } else if (ext.equalsIgnoreCase(\"html\"))\n {\n return \"text/html\";\n\n } else if (ext.equalsIgnoreCase(\"png\"))\n {\n return \"image/png\";\n\n } else if (ext.equalsIgnoreCase(\"gif\"))\n {\n return \"image/gif\";\n\n }\n log.warn(\"Content type not found for file extension: \" + ext);\n return null;\n }",
"java.lang.String getMimeType();",
"java.lang.String getMimeType();",
"public java.lang.String getAttachmentName() {\n return attachmentName;\n }",
"public String getAttachmentName() {\n\t\treturn attachmentName;\n\t}",
"public AttachmentType getAttachmentType() {\n\t\treturn attachmentType;\n\t}",
"public Object getAttachment() {\n\treturn attachment;\n }",
"private String extractFileName(Part part) {\n\t\tString contentDisp = part.getHeader(\"content-disposition\");\n\t\tString[] items = contentDisp.split(\";\");\n\t\tfor (String s : items) {\n\t\t\tif (s.trim().startsWith(\"filename\")) {\n\t\t\t\t// C:\\file1.zip\n\t\t\t\t// C:\\Note\\file2.zip\n\t\t\t\tString clientFileName = s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\n\t\t\t\tclientFileName = clientFileName.replace(\"\\\\\", \"/\");\n\t\t\t\tint i = clientFileName.lastIndexOf('/');\n\t\t\t\t// file1.zip\n\t\t\t\t// file2.zip\n\t\t\t\treturn clientFileName.substring(i + 1);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private String extractFileName(Part part) {\n\t\tString contentDisp = part.getHeader(\"content-disposition\");\n\t\tString[] items = contentDisp.split(\";\");\n\t\tfor (String s : items) {\n\t\t\tif (s.trim().startsWith(\"filename\")) {\n\t\t\t\t// C:\\file1.zip\n\t\t\t\t// C:\\Note\\file2.zip\n\t\t\t\tString clientFileName = s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\n\t\t\t\tclientFileName = clientFileName.replace(\"\\\\\", \"/\");\n\t\t\t\tint i = clientFileName.lastIndexOf('/');\n\t\t\t\t// file1.zip\n\t\t\t\t// file2.zip\n\t\t\t\treturn clientFileName.substring(i + 1);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public Object getAttachment() {\n\t\treturn attachment;\n\t}",
"public AutoDispositionsDto(AutoDispositions disposition) {\n value = disposition.getValue();\n time = disposition.getTime();\n description = disposition.getDescription();\n idAccount = disposition.getAccount().getIdAccounts();\n username = disposition.getUser().getUsername();\n }",
"@NotNull\n String getMimeType();",
"private void setContentType(HttpServletResponse response, Format format) {\r\n switch (format) {\r\n case html:\r\n case htmlfragment:\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n break;\r\n case kml:\r\n response.setContentType(\"application/vnd.google-earth.kml+xml;charset=UTF-8\");\r\n response.setHeader(\"Content-Disposition\",\"attachment; filename=\\\"document.kml\\\"\");\r\n break;\r\n case json:\r\n response.setContentType(\"application/json;charset=UTF-8\");\r\n response.setHeader(\"Content-disposition\", \"attachment; filename=\\\"document.json\\\"\");\r\n break;\r\n case pjson:\r\n\t response.setContentType(\"text/plain;charset=UTF-8\");\r\n\t break; \r\n default:\r\n case xml:\r\n response.setContentType(\"text/xml;charset=UTF-8\");\r\n break;\r\n }\r\n}",
"public String getExportMimeType(){\n return \"text/plain\";\n }",
"@Override\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype,\n long contentLength) {\n }",
"public String getMimeType();",
"@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}",
"String getMimeType();",
"@GET\n @ApiOperation(value = \"Download a process' attachment\", response = File.class)\n @javax.ws.rs.Path(\"/{id}/attachment/{name:.*}\")\n @Produces(MediaType.APPLICATION_OCTET_STREAM)\n public Response downloadAttachment(@ApiParam @PathParam(\"id\") UUID instanceId,\n @PathParam(\"name\") @NotNull @Size(min = 1) String attachmentName) {\n\n ProcessEntry processEntry = processManager.assertProcess(instanceId);\n assertProcessAccess(processEntry, \"attachment\");\n PartialProcessKey processKey = new ProcessKey(processEntry.instanceId(), processEntry.createdAt());\n\n // TODO replace with javax.validation\n if (attachmentName.endsWith(\"/\")) {\n throw new ConcordApplicationException(\"Invalid attachment name: \" + attachmentName, Status.BAD_REQUEST);\n }\n\n String resource = path(Constants.Files.JOB_ATTACHMENTS_DIR_NAME, attachmentName);\n assertResourceAccess(processEntry, resource);\n\n Optional<Path> o = stateManager.get(processKey, resource, src -> {\n try {\n Path tmp = IOUtils.createTempFile(\"attachment\", \".bin\");\n try (OutputStream dst = Files.newOutputStream(tmp)) {\n IOUtils.copy(src, dst);\n }\n return Optional.of(tmp);\n } catch (IOException e) {\n throw new ConcordApplicationException(\"Error while exporting an attachment: \" + attachmentName, e);\n }\n });\n\n if (!o.isPresent()) {\n return Response.status(Status.NOT_FOUND).build();\n }\n\n Path tmp = o.get();\n\n return Response.ok((StreamingOutput) out -> {\n try (InputStream in = Files.newInputStream(tmp)) {\n IOUtils.copy(in, out);\n } finally {\n Files.delete(tmp);\n }\n }).build();\n }",
"protected void deleteAttachmentFile()\n {\n try\n {\n if (deleteAttachmentAfterSend && fullAttachmentFilename != null)\n {\n File attFile = new File(fullAttachmentFilename);\n if (log.isDebugEnabled())\n {\n log.debug(\"Delete attachment file: \" + attFile.getCanonicalPath());\n }\n attFile.delete();\n }\n } catch (Exception e)\n {\n log.warn(\"Unable to delete \" + fullAttachmentFilename + \" : \" + e.getMessage());\n }\n }",
"public String getMimeType() {\n return null;\n }",
"public String getMimeType() {\n return null;\n }",
"@Override\n public String getFilename()\n {\n return \"\";\n }",
"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 }",
"String getFileMimeType();",
"public java.lang.Long getAttachmentId() {\n return attachmentId;\n }",
"public boolean transmitFileNameInMimeHeader() {\n return this.transmitFileNameInMimeHeader;\n }",
"public abstract AttachmentPart createAttachmentPart();",
"public void download(HttpServletResponse response) throws IOException {\n\t\tString f;\n\t\tif (this.filename != null) {\n\t\t\tFile file = new File(this.filepath);\n\t\t\tif (!file.exists()) {\n\t\t\t\tthrow new IOException(\"file does not exit:\" + filename);\n\t\t\t} else {\n\t\t\t\tf = toUtf8String(filename);\n\t\t\t\tresponse.setContentType(\"application/x-msdownload\");\n\t\t\t\tresponse.setContentLength((int) file.length());\n\t\t\t\tresponse.setHeader(\"Content-Disposition\", \"attachment;\"\n\t\t\t\t\t\t+ \" filename=\" + f);\n\t\t\t\twrite(response.getOutputStream());\n\t\t\t}\n\t\t}\n\t}",
"public CodeableConcept dischargeDisposition() {\n return getObject(CodeableConcept.class, FhirPropertyNames.PROPERTY_DISCHARGE_DISPOSITION);\n }",
"static protected void printStream(HttpServletRequest request, \r\n\t\t\t\t\t\t\t\t\t HttpServletResponse response, \r\n\t\t\t\t\t\t\t\t\t InputStream input, \r\n\t\t\t\t\t\t\t\t\t int contentLength,\r\n\t\t\t\t\t\t\t\t\t String fileName,\r\n\t\t\t\t\t\t\t\t\t String contentType) throws IOException {\r\n\t\tresponse.reset();\r\n\t\tresponse.setContentLength(contentLength);\r\n\t\tresponse.setContentType(contentType);\r\n\t\tresponse.setHeader(\"Content-Disposition\",\r\n\t\t\t\t\"inline; filename=\" + fileName+ \";\");\r\n\r\n\t\tServletOutputStream output=response.getOutputStream();\r\n\t\tIOUtils.copy(input, output);\r\n\t\t\r\n\t\toutput.flush();\r\n\t\tinput.close();\r\n\t\toutput.close();\r\n\t}",
"public String getFilename() {\n\t\treturn fileName;\n\t}",
"@Override\n\tpublic Attachment getAttachment(RepositoryModel repository, long ticketId, String filename) {\n\t\treturn null;\n\t}",
"public String getFilename()\r\n\t{\r\n\t\treturn _filename; \r\n\t}",
"public String getMimeType() {\n return mimeType;\n }",
"public String getMimeType() {\n return mimeType;\n }",
"public String getMimeType() {\r\n return mimeType;\r\n }",
"public String getFinalFileName()\r\n\t{\r\n\t\treturn this.getFileName() + this.getFileFormat();\r\n\t}",
"public String getFilename() {\n\treturn(filename);\n }",
"public String getFilename(){\n\t\treturn filename;\n\t}",
"public String getFilename(){\n\t\treturn filename;\n\t}",
"@Override\n public void onSaveAttachment(AttachmentViewInfo attachment) {\n\n getAttachmentController(attachment).saveAttachment();\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}",
"private ContentDisposition(final ContentDispositionType type, final Map<ContentDispositionParameterName<?>, Object> parameters) {\n super(type, parameters);\n }",
"public String getFilename()\r\n\t{\r\n\t\treturn filename;\r\n\t}",
"@Override\n protected void onHandleIntent(Intent intent) {\n String urlPath = intent.getStringExtra(URL);\n String fileName = intent.getStringExtra(FILENAME);\n String timetable = intent.getStringExtra(TIMETABLE);\n mTimetable = intent.getParcelableExtra(TIMETABLE_OBJECT);\n\n try{\n\n File SDCardRoot = Environment.getExternalStorageDirectory();\n File wallpaperDirectory = new File(SDCardRoot.getPath()+\"/FGC/\");\n wallpaperDirectory.mkdirs();\n\n File file = new File(SDCardRoot+\"/FGC/\",fileName+\".pdf\");\n\n Intent tempIntent = new Intent(Intent.ACTION_VIEW);\n tempIntent.setDataAndType(Uri.fromFile(file), \"application/pdf\");\n tempIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n PendingIntent pIntent = PendingIntent.getActivity(this, 0, tempIntent, 0);\n\n // build notification\n // the addAction re-use the same intent to keep the example short\n NotificationCompat.Builder n = new NotificationCompat.Builder(this)\n .setContentTitle(getString(R.string.downloading))\n .setContentText(getString(R.string.downloading_timetable)+\" \"+timetable)\n .setSmallIcon(R.drawable.fgclogo)\n .setContentIntent(pIntent)\n .setAutoCancel(true)\n .setOngoing(true);\n\n\n NotificationManager notificationManager =\n (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n\n notificationManager.notify(id, n.build());\n\n URL url = new URL(urlPath);\n\n HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();\n\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n\n\n FileOutputStream fileOutput = new FileOutputStream(file);\n\n InputStream inputStream = urlConnection.getInputStream();\n\n int totalSize = urlConnection.getContentLength();\n\n int downloadedSize = 0;\n\n byte[] buffer = new byte[1024];\n int bufferLength = 0;\n\n int tempValue=0;\n int increment = totalSize/20;\n while ( (bufferLength = inputStream.read(buffer)) > 0 ) {\n fileOutput.write(buffer, 0, bufferLength);\n downloadedSize += bufferLength;\n\n if(tempValue < downloadedSize){\n tempValue+=increment;\n n.setProgress(totalSize, downloadedSize, false);\n notificationManager.notify(id, n.build());\n }\n }\n\n fileOutput.close();\n\n n.setContentText(getString(R.string.download_finished))\n .setProgress(0, 0, false)\n .setOngoing(false)\n .setContentIntent(pIntent);\n notificationManager.notify(id, n.build());\n\n publishResults(fileName, file);\n } catch (IOException f){\n f.printStackTrace();\n\n Toast.makeText(this, getString(R.string.download_error), Toast.LENGTH_SHORT).show();\n }\n\n }",
"public String getMimeType() {\n return mimeType;\n }",
"private String getMimeType(String aFilename) {\n String extension = aFilename.substring(aFilename.length() - 3, aFilename.length()).toUpperCase();\n\n if (extension.equals(\"AMR\")) {\n return \"audio/AMR\";\n }\n //DuongNT add\n if (extension.equals(\"WAV\")) {\n return \"audio/X-WAV\";\n } else {\n return \"audio/midi\";\n }\n }",
"protected void prepareHTTPResponse( String reportId, String entryName, HttpServletRequest request,\n HttpServletResponse response )\n {\n if ( isGenerateContentDisposition( reportId, null, request ) )\n {\n String contentDisposition = getContentDisposition( entryName );\n if ( StringUtils.isNotEmpty( contentDisposition ) )\n {\n response.setHeader( HttpHeaderUtils.CONTENT_DISPOSITION_HEADER, contentDisposition.toString() );\n }\n }\n\n // Disable HTTP response cache\n if ( isDisableHTTPResponCache() )\n {\n disableHTTPResponCache( response );\n }\n }",
"public String getFilename() {\r\n return filename;\r\n }",
"public String getContentType() {\r\n return mFile.getContentType();\r\n }",
"public String getFileContentType() {\r\n return (String) getAttributeInternal(FILECONTENTTYPE);\r\n }",
"public static String getFilename(String pathfilename){\r\n\t\tString nameOfTheFile=pathfilename;\r\n\t\tboolean contentDisposition = false;\r\n\t\tString fileName;\r\n\t\tString parts[];\r\n\t\ttry {\r\n\t\t\tURL urlObj = new URL(pathfilename);\r\n\t\t\tURLConnection con = urlObj.openConnection();\r\n\t\t\tif(con.getHeaderField(\"Content-Disposition\")!=null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tparts = con.getHeaderField(\"Content-Disposition\").split(\"filename=\");\r\n\t\t\t\t\tnameOfTheFile = parts[1].replace(\"\\\"\", \"\");\r\n\t\t\t\t\tcontentDisposition=true;\r\n\t\t\t\t} catch (Exception e) {e.printStackTrace();}\r\n\t\t\t}\r\n\t\t\tif (contentDisposition==false){\r\n\t\t\t\t\tString urlPath = urlObj.getPath();\r\n\t\t\t\t\tif (!urlPath.endsWith(\"/\") && !urlPath.isEmpty()) {\r\n\t\t\t\t\t\tfileName = urlPath.substring(urlPath.lastIndexOf('/')+1).split(\":\")[0].trim();\r\n\t\t\t\t\t} else if (urlPath.endsWith(\"/\") && urlPath.length()>21){\r\n\t\t\t\t\t\tfileName = urlPath.substring(urlPath.lastIndexOf('/')-20).split(\"/\")[0].split(\":\")[0].trim();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfileName = \"index\" + urlObj.getHost();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString ext = con.getContentType();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\text = ext.substring(ext.lastIndexOf('/')+1).split(\";\")[0];\r\n\t\t\t\t\t} catch (Exception e) {ext = null;}\r\n\t\t\t\t\tif(ext!=null && !ext.equals(\"unknown\")) {\r\n\t\t\t\t\t\tif (!fileName.matches(\"[a-zA-Z0-9]*[.][a-zA-Z]+\")) {\r\n\t\t\t\t\t\t\tnameOfTheFile = fileName+\".\"+ext;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tnameOfTheFile = fileName;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch(Exception e) {e.printStackTrace();}\r\n\t\treturn nameOfTheFile;\r\n\t}",
"@Override\n public String getFilename() {\n if (workflowMeta == null) {\n return null;\n }\n return workflowMeta.getFilename();\n }",
"private void addAttachment(MimeMultipart multipart, String filePath, String contentType) throws MessagingException,\n IOException {\n\n MimeBodyPart part = new MimeBodyPart();\n File file = new File(filePath);\n try (InputStream fin = new FileInputStream(file)) {\n part.setDisposition(ATTACHMENT);\n part.setFileName(file.getName());\n DataHandler dataHandler = new DataHandler(new EmailAttachmentDataSource(file.getName(), fin, contentType));\n part.setDataHandler(dataHandler);\n part.setHeader(CONTENT_TYPE_HEADER, dataHandler.getContentType());\n part.setHeader(CONTENT_TRANSFER_ENCODING_HEADER, this.contentTransferEncoding);\n multipart.addBodyPart(part);\n }\n }",
"@Override\n\tprotected String getExportFileType() {\n\t\treturn null;\n\t}",
"@Override\n public void serveDownload(ServletContext context, HttpServletResponse response, Download download)\n throws IOException {\n File file = FileUtility.getFromDrive(download);\n\n if (file != null) {\n try (FileInputStream inStream = new FileInputStream(file)) {\n String mimeType = context.getMimeType(file.getAbsolutePath());\n if (mimeType == null) {\n // set to binary type if MIME mapping not found\n mimeType = \"application/octet-stream\";\n }\n\n // modifies response\n response.setContentType(mimeType);\n response.setContentLength((int) file.length());\n\n // forces download\n String headerKey = \"Content-Disposition\";\n String headerValue = String.format(\"attachment; filename=\\\"%s\\\"\", download.getFilename());\n response.setHeader(headerKey, headerValue);\n\n // obtains response's output stream\n OutputStream outStream = response.getOutputStream();\n\n byte[] buffer = new byte[4096];\n int bytesRead = -1;\n\n while ((bytesRead = inStream.read(buffer)) != -1) {\n outStream.write(buffer, 0, bytesRead);\n }\n }\n }\n }",
"public String getFilename() {\n return filename;\n }",
"public String getFilename() {\n return filename;\n }",
"public final void mT__231() throws RecognitionException {\n try {\n int _type = T__231;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:229:8: ( 'attachment' )\n // InternalMyDsl.g:229:10: 'attachment'\n {\n match(\"attachment\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public void addAttachment(DocumentItemType type, Date date, String title, String href) {\n addAttachment(type, date, title, null, null, href);\n }",
"ResponseEntity<?> deleteAttachment(String attachmentId);",
"public String getAttachmentPath() {\n\t\treturn attachmentPath;\n\t}",
"public String getMimeType() {\n return mimeType;\n }",
"public String getFilename() {\n\t\treturn filename;\n\t}",
"public String getFilename() {\n\t\treturn filename;\n\t}",
"public String getFilename() {\n\t\treturn filename;\n\t}"
]
| [
"0.7284899",
"0.7232507",
"0.70603424",
"0.6980467",
"0.69652957",
"0.6822903",
"0.67522436",
"0.6719538",
"0.6693921",
"0.633064",
"0.63267696",
"0.6313625",
"0.6195252",
"0.5539163",
"0.54132783",
"0.53759396",
"0.5344604",
"0.5309453",
"0.5303415",
"0.5279587",
"0.52558666",
"0.5249862",
"0.5244069",
"0.52420396",
"0.5229704",
"0.52256745",
"0.5152842",
"0.5125832",
"0.5072556",
"0.4995485",
"0.4849983",
"0.48226237",
"0.48174918",
"0.47921592",
"0.47691792",
"0.47691792",
"0.4745097",
"0.47380367",
"0.4730293",
"0.47199416",
"0.47164136",
"0.47164136",
"0.4691937",
"0.46861494",
"0.46783325",
"0.4672523",
"0.4649397",
"0.4644231",
"0.46427944",
"0.45481226",
"0.45478415",
"0.45208317",
"0.45200053",
"0.45191687",
"0.45191687",
"0.45067087",
"0.45036766",
"0.44996586",
"0.44902706",
"0.4489982",
"0.4484318",
"0.443247",
"0.44324026",
"0.44123784",
"0.44092098",
"0.43836674",
"0.43800992",
"0.4378373",
"0.4378373",
"0.43728566",
"0.43687764",
"0.4355536",
"0.43545103",
"0.43545103",
"0.43450058",
"0.4339592",
"0.43387127",
"0.4334738",
"0.4315328",
"0.43135408",
"0.43054366",
"0.43037006",
"0.42983395",
"0.42982265",
"0.42976952",
"0.42965892",
"0.42918426",
"0.42914987",
"0.42912742",
"0.42905778",
"0.42864853",
"0.42864853",
"0.42847076",
"0.42730048",
"0.42717582",
"0.42678463",
"0.42662403",
"0.4262003",
"0.4262003",
"0.4262003"
]
| 0.7047772 | 3 |
Create headers as disposition, this is a bit tricky and in effect, extends the HttpClient multipart mechanism. | private String createHeadersAsDisposition()
{
StringBuffer buff = new StringBuffer();
boolean first = true;
for (Iterator iterator = getHeaders().entrySet().iterator(); iterator.hasNext();)
{
Map.Entry header = (Map.Entry)iterator.next();
String hName = (String)header.getKey();
if ( !hName.equalsIgnoreCase(AeMimeUtil.CONTENT_TYPE_ATTRIBUTE) )
{
if ( first )
first = false;
else
buff.append(CRLF);
buff.append(hName).append(": ").append((String)header.getValue()); //$NON-NLS-1$/
}
}
return buff.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setContentDisposition\n (ContentDispositionHeader contentDispositionHeader) {\n this.setHeader( contentDispositionHeader);\n \n }",
"String getContentDisposition();",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String,String> params = new HashMap<String, String>();\n\n params.put(\"Content-Type\", \"multipart/form-data; boundary=\" + BOUNDARY+\"; charset=utf-8\");\n return params;\n }",
"protected void sendDispositionHeader(OutputStream out) throws IOException\r\n {\r\n String dispositionHeader = createHeadersAsDisposition();\r\n if ( AeUtil.notNullOrEmpty(dispositionHeader) )\r\n out.write(EncodingUtil.getAsciiBytes(dispositionHeader));\r\n }",
"public ShareFileHttpHeaders setContentDisposition(String contentDisposition) {\n this.contentDisposition = contentDisposition;\n return this;\n }",
"public void setContentDispositionFormData(String name, String filename)\r\n/* 162: */ {\r\n/* 163:245 */ Assert.notNull(name, \"'name' must not be null\");\r\n/* 164:246 */ StringBuilder builder = new StringBuilder(\"form-data; name=\\\"\");\r\n/* 165:247 */ builder.append(name).append('\"');\r\n/* 166:248 */ if (filename != null)\r\n/* 167: */ {\r\n/* 168:249 */ builder.append(\"; filename=\\\"\");\r\n/* 169:250 */ builder.append(filename).append('\"');\r\n/* 170: */ }\r\n/* 171:252 */ set(\"Content-Disposition\", builder.toString());\r\n/* 172: */ }",
"public String getContentDisposition() throws Exception {\r\n if (externalUrl != null) {\r\n AmazonS3URI s3Uri = DirectUtils.getS3Uri(externalUrl);\r\n if (s3Uri != null) {\r\n return \"attachment; filename=\\\"submission-\" + submission.getId() + \"-\" + DirectUtils.getS3FileKey(externalUrl) + \"\\\"\";\r\n }\r\n return \"attachment; filename=\\\"submission-\" + submission.getId() + \"-\" + DirectUtils.getFileNameFromUrl(externalUrl) + \"\\\"\";\r\n }\r\n\r\n if (contest.getProjectHeader().getProjectCategory().getId() == ContestType.COPILOT_POSTING.getId()) {\r\n // it's copilot posting, append user handle to each file in the copilot posting submission\r\n Resource[] resources = contest.getResources();\r\n long userId = 0;\r\n for (Resource r : resources) {\r\n if (r.getId() == submission.getUpload().getOwner()) {\r\n userId = Long.parseLong(r.getProperty(\"External Reference ID\"));\r\n break;\r\n }\r\n }\r\n return \"attachment; filename=\\\"submission-\" + getUserService().getUserHandle(userId) + \"-\" +\r\n uploadedFile.getRemoteFileName()\r\n + \"\\\"\";\r\n } else {\r\n return \"attachment; filename=\\\"submission-\" + submission.getId() + \"-\" + uploadedFile.getRemoteFileName()\r\n + \"\\\"\";\r\n }\r\n }",
"public javax.sip.header.ContentDispositionHeader\n getContentDisposition() {\n return (ContentDispositionHeader)\n this.getHeader(ContentDispositionHeader.NAME);\n }",
"private HttpHeaders getHttpHeader(String authToken, boolean setContentType, Optional<Map> headerInformation, boolean setFormData) {\n HttpHeaders headers = new HttpHeaders();\n headers.set(\"Authorization\",authToken);\n\n if(null != headerInformation && headerInformation.isPresent()){\n Map headerInformationToSet = headerInformation.get();\n headerInformationToSet.forEach((k, v) -> {\n headers.set(k.toString(), v.toString());\n });\n }\n\n if(setFormData){\n headers.setContentType(MediaType.MULTIPART_FORM_DATA);\n }\n\n if(setContentType) {\n headers.setContentType(MediaType.APPLICATION_JSON);\n headers.add(\"Accept\", MediaType.APPLICATION_JSON_VALUE);\n }\n return headers;\n }",
"public HttpRequest a(String str, String str2, String str3) throws IOException {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"form-data; name=\\\"\");\n stringBuilder.append(str);\n if (str2 != null) {\n stringBuilder.append(\"\\\"; filename=\\\"\");\n stringBuilder.append(str2);\n }\n stringBuilder.append('\\\"');\n f(\"Content-Disposition\", stringBuilder.toString());\n if (str3 != null) {\n f(\"Content-Type\", str3);\n }\n return f((CharSequence) \"\\r\\n\");\n }",
"@Override\r\n public String getCustomContentDisposition() {\r\n return FilenameUtils.getName(this.imagePath);\r\n }",
"public String getContentDisposition() {\n return contentdisposition;\n }",
"public String getContentDisposition() {\n return this.contentDisposition;\n }",
"public AttachmentBuilder disposition(String theDisposition) {\n \t\tthis.disposition = theDisposition;\n \t\treturn this;\n \t}",
"public ContentDisposition getContentDisposition() {\n return contentDisposition;\n }",
"public static ContentDisposition parse(final String text) {\n return ContentDispositionHeaderParser.parseContentDisposition(text);\n }",
"private void generateHeader() throws IOException {\r\n\t\tcharset = Charset.forName(encoding);\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\t//first line\r\n\t\tsb.append(\"HTTP/1.1 \");\r\n\t\tsb.append(statusCode);\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(statusText);\r\n\t\tsb.append(\"\\r\\n\");\r\n\t\t\r\n\t\t//second line\r\n\t\tsb.append(\"Content-type: \");\r\n\t\tsb.append(mimeType);\r\n\t\tif (mimeType.startsWith(\"text/\")) {\r\n\t\t\tsb.append(\" ;charset= \");\r\n\t\t\tsb.append(encoding);\r\n\t\t}\r\n\t\tsb.append(\"\\r\\n\");\r\n\t\t\r\n\t\t//third line\r\n\t\tif (contentLength > 0) {\r\n\t\t\tsb.append(\"Content-Length: \");\r\n\t\t\tsb.append(contentLength);\r\n\t\t\tsb.append(\"\\r\\n\");\r\n\t\t}\r\n\t\t\r\n\t\t//fourth line\r\n\t\tgetOutputCookies(sb);\r\n\t\tsb.append(\"\\r\\n\");\r\n\t\t\r\n\t\toutputStream.write(sb.toString().getBytes(Charset.forName(\"ISO_8859_1\")));\r\n\t\t\r\n\t\theaderGenerated = true;\r\n\t}",
"protected void updateHeaders() throws MessagingException {\n/* 121 */ super.updateHeaders();\n/* 122 */ MimeBodyPart.setEncoding(this, this.encoding);\n/* */ }",
"public ShareFileHttpHeaders() {}",
"protected MimeBodyPart createMimeBodyPart(InternetHeaders headers, byte[] content) throws MessagingException {\n/* 1201 */ return new MimeBodyPart(headers, content);\n/* */ }",
"public void setAttachmentHeader(String filename)\n\t{\n\t\tsetHeader(\"Content-Disposition\", \"attachment\"\n\t\t\t\t+ ((!Strings.isEmpty(filename)) ? (\"; filename=\\\"\" + filename + \"\\\"\") : \"\"));\n\t}",
"private final String getFileHeader(int index, String bound,\n @SuppressWarnings(\"unused\")\n int chunkPart) throws JUploadException {\n String filenameEncoding = this.uploadPolicy.getFilenameEncoding();\n String mimetype = this.filesToUpload[index].getMimeType();\n String uploadFilename = this.filesToUpload[index]\n .getUploadFilename(index);\n StringBuffer sb = new StringBuffer();\n \n String form = this.uploadPolicy.getFormdata();\n if (null != form)\n sb.append(addFormVariables(bound, form));\n sb.append(addPostVariable(bound, \"mimetype[]\", mimetype));\n sb.append(addPostVariable(bound, \"pathinfo[]\",\n this.filesToUpload[index].getDirectory()));\n sb.append(addPostVariable(bound, \"relpathinfo[]\",\n this.filesToUpload[index].getRelativeDir()));\n \n // boundary.\n sb.append(bound).append(\"\\r\\n\");\n \n // Content-Disposition.\n sb.append(\"Content-Disposition: form-data; name=\\\"\").append(\n this.filesToUpload[index].getUploadName(index)).append(\n \"\\\"; filename=\\\"\");\n if (filenameEncoding == null) {\n sb.append(uploadFilename);\n } else {\n try {\n this.uploadPolicy.displayDebug(\"Encoded filename: \"\n + URLEncoder.encode(uploadFilename, filenameEncoding),\n 99);\n sb.append(URLEncoder.encode(uploadFilename, filenameEncoding));\n } catch (UnsupportedEncodingException e) {\n this.uploadPolicy\n .displayWarn(e.getClass().getName() + \": \"\n + e.getMessage()\n + \" (in UploadFileData.getFileHeader)\");\n sb.append(uploadFilename);\n }\n }\n sb.append(\"\\\"\\r\\n\");\n \n // Line 3: Content-Type.\n sb.append(\"Content-Type: \").append(mimetype).append(\"\\r\\n\");\n \n // An empty line to finish the header.\n sb.append(\"\\r\\n\");\n return sb.toString();\n }",
"private String construct_http_header(int return_code, int file_type) {\n String s = \"HTTP/1.1 \";\n //you probably have seen these if you have been surfing the web a while\n switch (return_code) {\n case 200:\n s = s + \"200 OK\";\n break;\n case 400:\n s = s + \"400 Bad Request\";\n break;\n case 403:\n s = s + \"403 Forbidden\";\n break;\n case 404:\n s = s + \"404 Not Found\";\n break;\n case 500:\n s = s + \"500 Internal Server Error\";\n break;\n case 501:\n s = s + \"501 Not Implemented\";\n break;\n }\n\n s = s + \"\\r\\n\"; //other header fields,\n s = s + \"Connection: close\\r\\n\"; //we can't handle persistent connections\n s = s + \"Server: SimpleHTTPtutorial v0\\r\\n\"; //server name\n\n //Construct the right Content-Type for the header.\n //This is so the browser knows what to do with the\n //file, you may know the browser dosen't look on the file\n //extension, it is the servers job to let the browser know\n //what kind of file is being transmitted. You may have experienced\n //if the server is miss configured it may result in\n //pictures displayed as text!\n switch (file_type) {\n //plenty of types for you to fill in\n case 0:\n break;\n case 1:\n s = s + \"Content-Type: image/jpeg\\r\\n\";\n break;\n case 2:\n s = s + \"Content-Type: image/gif\\r\\n\";\n case 3:\n s = s + \"Content-Type: application/x-zip-compressed\\r\\n\";\n default:\n s = s + \"Content-Type: text/html\\r\\n\";\n break;\n }\n\n ////so on and so on......\n s = s + \"\\r\\n\"; //this marks the end of the httpheader\n //and the start of the body\n //ok return our newly created header!\n return s;\n }",
"public abstract HttpHeaders headers();",
"RequestHeaders headers();",
"public void prepareData() throws Exception {\n for (int i = 0; i < this.f4804b.length; i++) {\n try {\n byte[] readFile = FileUtil.readFile(this.f4804b[i]);\n addPart(new String[]{String.format(\"Content-Disposition: form-data; name=\\\"%s_%d\\\"; filename=\\\"%s_%d.jpg\\\"\", new Object[]{this.f4803a, Integer.valueOf(i), this.f4803a, Integer.valueOf(i)}), \"Content-Type: image/webp\", String.format(\"Content-Length: %d\", new Object[]{Integer.valueOf(readFile.length)})}, readFile);\n } catch (IOException e) {\n }\n }\n }",
"public MultiPart(File content, String controlName, String mimeType, Map<String, String> headers, String charset,\n\t\t\tString fileName) {\n\t\tthis.content = content;\n\t\tthis.controlName = controlName;\n\t\tthis.mimeType = mimeType;\n\t\tthis.headers = headers;\n\t\tthis.charset = charset;\n\t\tthis.fileName = fileName;\n\t}",
"public MultiPart(){}",
"private void decodeMultipartFormData(String boundary, String encoding, ByteBuffer fbuf,\n\t\t\t\tMap<String, String> parms, Map<String, String> files) throws ResponseException {\n\t\t\ttry {\n\t\t\t\tint[] boundary_idxs = getBoundaryPositions(fbuf, boundary.getBytes());\n\t\t\t\tif (boundary_idxs.length < 2) {\n\t\t\t\t\tthrow new ResponseException(Response.Status.BAD_REQUEST,\n\t\t\t\t\t\t\t\"BAD REQUEST: Content type is multipart/form-data but contains less than two boundary strings.\");\n\t\t\t\t}\n\n\t\t\t\tbyte[] part_header_buff = new byte[MAX_HEADER_SIZE];\n\t\t\t\tfor (int bi = 0; bi < boundary_idxs.length - 1; bi++) {\n\t\t\t\t\tfbuf.position(boundary_idxs[bi]);\n\t\t\t\t\tint len = (fbuf.remaining() < MAX_HEADER_SIZE) ? fbuf.remaining()\n\t\t\t\t\t\t\t: MAX_HEADER_SIZE;\n\t\t\t\t\tfbuf.get(part_header_buff, 0, len);\n\t\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\t\tnew ByteArrayInputStream(part_header_buff, 0, len),\n\t\t\t\t\t\t\tCharset.forName(encoding)), len);\n\n\t\t\t\t\tint headerLines = 0;\n\t\t\t\t\t// First line is boundary string\n\t\t\t\t\tString mpline = in.readLine();\n\t\t\t\t\theaderLines++;\n\t\t\t\t\tif (mpline == null || !mpline.contains(boundary)) {\n\t\t\t\t\t\tthrow new ResponseException(Response.Status.BAD_REQUEST,\n\t\t\t\t\t\t\t\t\"BAD REQUEST: Content type is multipart/form-data but chunk does not start with boundary.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tString part_name = null, file_name = null, content_type = null;\n\t\t\t\t\t// Parse the reset of the header lines\n\t\t\t\t\tmpline = in.readLine();\n\t\t\t\t\theaderLines++;\n\t\t\t\t\twhile (mpline != null && mpline.trim().length() > 0) {\n\t\t\t\t\t\tMatcher matcher = CONTENT_DISPOSITION_PATTERN.matcher(mpline);\n\t\t\t\t\t\tif (matcher.matches()) {\n\t\t\t\t\t\t\tString attributeString = matcher.group(2);\n\t\t\t\t\t\t\tmatcher = CONTENT_DISPOSITION_ATTRIBUTE_PATTERN\n\t\t\t\t\t\t\t\t\t.matcher(attributeString);\n\t\t\t\t\t\t\twhile (matcher.find()) {\n\t\t\t\t\t\t\t\tString key = matcher.group(1);\n\t\t\t\t\t\t\t\tif (\"name\".equalsIgnoreCase(key)) {\n\t\t\t\t\t\t\t\t\tpart_name = matcher.group(2);\n\t\t\t\t\t\t\t\t} else if (\"filename\".equalsIgnoreCase(key)) {\n\t\t\t\t\t\t\t\t\tfile_name = matcher.group(2);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmatcher = CONTENT_TYPE_PATTERN.matcher(mpline);\n\t\t\t\t\t\tif (matcher.matches()) {\n\t\t\t\t\t\t\tcontent_type = matcher.group(2).trim();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmpline = in.readLine();\n\t\t\t\t\t\theaderLines++;\n\t\t\t\t\t}\n\t\t\t\t\tint part_header_len = 0;\n\t\t\t\t\twhile (headerLines-- > 0) {\n\t\t\t\t\t\tpart_header_len = scipOverNewLine(part_header_buff, part_header_len);\n\t\t\t\t\t}\n\t\t\t\t\t// Read the part data\n\t\t\t\t\tif (part_header_len >= len - 4) {\n\t\t\t\t\t\tthrow new ResponseException(Response.Status.INTERNAL_ERROR,\n\t\t\t\t\t\t\t\t\"Multipart header size exceeds MAX_HEADER_SIZE.\");\n\t\t\t\t\t}\n\t\t\t\t\tint part_data_start = boundary_idxs[bi] + part_header_len;\n\t\t\t\t\tint part_data_end = boundary_idxs[bi + 1] - 4;\n\n\t\t\t\t\tfbuf.position(part_data_start);\n\t\t\t\t\tif (content_type == null) {\n\t\t\t\t\t\t// Read the part into a string\n\t\t\t\t\t\tbyte[] data_bytes = new byte[part_data_end - part_data_start];\n\t\t\t\t\t\tfbuf.get(data_bytes);\n\t\t\t\t\t\tparms.put(part_name, new String(data_bytes, encoding));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Read it into a file\n\t\t\t\t\t\tString path = saveTmpFile(fbuf, part_data_start, part_data_end\n\t\t\t\t\t\t\t\t- part_data_start, file_name);\n\t\t\t\t\t\tif (!files.containsKey(part_name)) {\n\t\t\t\t\t\t\tfiles.put(part_name, path);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tint count = 2;\n\t\t\t\t\t\t\twhile (files.containsKey(part_name + count)) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfiles.put(part_name + count, path);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tparms.put(part_name, file_name);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (ResponseException re) {\n\t\t\t\tthrow re;\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new ResponseException(Response.Status.INTERNAL_ERROR, e.toString());\n\t\t\t}\n\t\t}",
"private static void setContentTypeHeader(HttpResponse response, File file) {\n\t\tresponse.headers().set(HttpHeaderNames.CONTENT_TYPE, HttpHeaderValues.APPLICATION_OCTET_STREAM);\r\n\t}",
"public ContentDispositionType type() {\n return this.value();\n }",
"private void doMultipartFormDataPostRequest(String token, String url, byte[] fileData, String filename) throws Exception {\n\n\n CloseableHttpClient client = HttpClients.createDefault();\n\n try {\n HttpPost httpPost = new HttpPost(getBaseUrl() + url );\n httpPost.setHeader(\"X-Authentication\", token);\n\n\n MultipartEntityBuilder multipartBuilder = MultipartEntityBuilder.create();\n\n if (fileData == null || fileData.length <= 0) {\n throw new MfilesOperationException(\"The byte array must not be null\");\n }\n\n if (StringUtils.isBlank(filename)) {\n throw new MfilesOperationException( \"Filename must not be blank or null...\" );\n }\n\n File tempDir = FileUtils.getTempDirectory();\n String reversedFilename = StringUtils.reverse(filename);\n //get the first '.'\n int dotIndex = reversedFilename.indexOf('.');\n String extension = reversedFilename.substring(0, (dotIndex + 1));\n extension = StringUtils.reverse(extension);\n\n //Generate a random string to append to the name of the file\n //We do this to prevent a situation whereby multiple users\n //upload files that have the same name and extension.\n String tempFileName = filename.substring(0, filename.length() - extension.length()) + \"_\" + System.currentTimeMillis();\n\n tempFileName += extension;\n\n final File fileToUpload = new File(tempDir + File.separator + tempFileName);\n\n try {\n FileUtils.writeByteArrayToFile(fileToUpload, fileData);\n }catch(Exception ex) {\n LOG.error(\"An exception occurred while writing byte array data to the file for upload\", ex);\n throw new MfilesOperationException(ex.getMessage());\n } finally {\n\n }\n\n final FileBody fileBody = new FileBody(fileToUpload);\n\n multipartBuilder.addPart(\"file\", fileBody);\n\n //OR\n //multipartBuilder.addBinaryBody(\"file\", file, ContentType.APPLICATION_OCTET_STREAM, \"file.ext\");\n\n org.apache.http.HttpEntity multipart = multipartBuilder.build();\n httpPost.setEntity(multipart);\n\n System.out.println(\"executing file upload request \" + httpPost.getRequestLine());\n\n CloseableHttpResponse response = client.execute(httpPost);\n try {\n System.out.println(\"----------------------------------------\");\n System.out.println(\"---------Response from server-----------\");\n System.out.println(response.getStatusLine());\n System.out.println(\"----------------------------------------\");\n\n org.apache.http.HttpEntity resEntity = response.getEntity();\n if (resEntity != null) {\n BufferedReader br = new BufferedReader(new InputStreamReader(resEntity.getContent()));\n String output = null;\n\n while ((output = br.readLine()) != null) {\n System.out.println(output);\n }\n }\n\n EntityUtils.consume(resEntity);\n\n } finally {\n response.close();\n }\n } finally {\n client.close();\n }\n }",
"private static HttpMessage createMessage(\n String paramContent, String fileName, String contentType, String fileParamContent) {\n HttpMessage message = createBaseMessage();\n StringBuilder bodySb = new StringBuilder(320);\n bodySb.append(\"--------------------------d74496d66958873e\").append(CRLF);\n bodySb.append(\"Content-Disposition: form-data; name=\\\"person\\\"\").append(CRLF);\n bodySb.append(CRLF);\n bodySb.append(paramContent).append(CRLF);\n bodySb.append(\"--------------------------d74496d66958873e\").append(CRLF);\n bodySb.append(\"Content-Disposition: form-data; name=\\\"somefile\\\"; filename=\\\"\")\n .append(fileName)\n .append(\"\\\"\")\n .append(CRLF);\n bodySb.append(\"Content-Type: \").append(contentType).append(CRLF);\n bodySb.append(CRLF);\n bodySb.append(fileParamContent).append(CRLF);\n bodySb.append(\"--------------------------d74496d66958873e--\").append(CRLF);\n message.setRequestBody(bodySb.toString());\n return message;\n }",
"public static String createContentDisposition(String value, String filename) {\n try {\n return String.format(\"%s;filename=\\\"%2$s\\\"; filename*=UTF-8''%2$s\", value, encodeURI(filename));\n }\n catch (UnsupportedEncodingException e) {\n throw new FacesException(e);\n }\n }",
"private void createHeaders(WritableSheet sheet)\r\n\t\t\tthrows WriteException {\n\t\taddHeader(sheet, 0, 0, reportProperties.getProperty(\"header1\"));\r\n\t\taddHeader(sheet, 1, 0, reportProperties.getProperty(\"header2\"));\r\n\t\taddHeader(sheet, 2, 0, reportProperties.getProperty(\"header3\"));\r\n\t\taddHeader(sheet, 3, 0, reportProperties.getProperty(\"header4\"));\r\n\t\t\r\n\r\n\t}",
"public abstract AttachmentPart createAttachmentPart();",
"public MimeMultipart(String subtype) {\n/* 179 */ String boundary = UniqueValue.getUniqueBoundaryValue();\n/* 180 */ ContentType cType = new ContentType(\"multipart\", subtype, null);\n/* 181 */ cType.setParameter(\"boundary\", boundary);\n/* 182 */ this.contentType = cType.toString();\n/* */ }",
"public HttpRequest m() throws IOException {\n if (this.g) {\n this.f.a(\"\\r\\n--00content0boundary00\\r\\n\");\n } else {\n this.g = true;\n d(\"multipart/form-data; boundary=00content0boundary00\").l();\n this.f.a(\"--00content0boundary00\\r\\n\");\n }\n return this;\n }",
"@Override\n protected void prepareHttpConnection(HttpURLConnection conn) throws CommandException {\n super.prepareHttpConnection(conn);\n if (!command.dirDeploy) {\n conn.setRequestProperty(\"Content-Type\",\n \"multipart/form-data; boundary=\" + multipartBoundary);\n }\n }",
"private String extractFileName(Part part) {\n\nString contentDisp = part.getHeader(\"content-disposition\");\n\nString[] items = contentDisp.split(\";\");\n\nfor (String s : items) {\n\nif (s.trim().startsWith(\"filename\")) {\n\nreturn s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\n\n}\n\n}\n\nreturn \"\";\n\n}",
"private ContentDisposition(final ContentDispositionType type, final Map<ContentDispositionParameterName<?>, Object> parameters) {\n super(type, parameters);\n }",
"public static CloseableHttpResponse sendChunk(DigestInputStream dis, int size, String method, URI uri, String filename, String mimeType,\n CloseableHttpClient http, boolean inProgress) throws Exception {\n byte[] chunk = readChunk(dis, size);\n String md5 = new String(Hex.encodeHex(dis.getMessageDigest().digest()));\n HttpUriRequest request = RequestBuilder.create(method).setUri(uri).setConfig(RequestConfig.custom()\n /*\n * When using an HTTPS-connection EXPECT-CONTINUE must be enabled, otherwise buffer overflow may follow\n */\n .setExpectContinueEnabled(true).build()) //\n .addHeader(\"Content-Disposition\", String.format(\"attachment; filename=%s\", filename)) //\n .addHeader(\"Content-MD5\", md5) //\n .addHeader(\"Packaging\", BAGIT_URI) //\n .addHeader(\"In-Progress\", Boolean.toString(inProgress)) //\n .setEntity(new ByteArrayEntity(chunk, ContentType.create(mimeType))) //\n .build();\n CloseableHttpResponse response = http.execute(addXAuthorizationToRequest(request));\n // System.out.println(\"Response received.\");\n return response;\n }",
"private HttpHeaders getHeaders(String contentType) {\n HttpHeaders httpHeaders = new HttpHeaders();\n httpHeaders.set(WebConstants.CONTENT_TYPE, WebConstants.TEXT_PLAIN_UTF8);\n return httpHeaders;\n }",
"public abstract void addMimeHeader(String name, String value);",
"public ServerResponse<T> sendRequestWithMultiHeaders(Map<String, String[]> httpHeaders)\n {\n HttpUriRequest request = getHttpUriRequest();\n request.setHeader(HttpHeader.CONTENT_TYPE_HEADER, HttpHeader.SCIM_CONTENT_TYPE);\n addHeaderToRequest(scimHttpClient.getScimClientConfig().getHttpHeaders(), httpHeaders, request);\n if (scimHttpClient.getScimClientConfig().getBasicAuth() != null)\n {\n request.setHeader(HttpHeader.AUTHORIZATION,\n scimHttpClient.getScimClientConfig().getBasicAuth().getAuthorizationHeaderValue());\n }\n HttpResponse response = scimHttpClient.sendRequest(request);\n return toResponse(response);\n }",
"private void buildPart(DataOutputStream dataOutputStream, byte[] fileData, String fileName) throws IOException {\n dataOutputStream.writeBytes(twoHyphens + boundary + lineEnd);\n dataOutputStream.writeBytes(\"Content-Disposition: form-data; name=\\\"image\\\"; filename=\\\"\" + fileName + \"\\\"\" + lineEnd);\n // dataOutputStream.writeBytes(\"Content-Type: image/jpeg\" + lineEnd);\n dataOutputStream.writeBytes(lineEnd);\n\n ByteArrayInputStream fileInputStream = new ByteArrayInputStream(fileData);\n int bytesAvailable = fileInputStream.available();\n\n int maxBufferSize = 1024 * 1024;\n int bufferSize = Math.min(bytesAvailable, maxBufferSize);\n byte[] buffer = new byte[bufferSize];\n\n // read file and write it into form...\n int bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n\n while (bytesRead > 0) {\n dataOutputStream.write(buffer, 0, bufferSize);\n bytesAvailable = fileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n }\n dataOutputStream.writeBytes(lineEnd);\n }",
"public MultipartMimeContentImpl(ContentTypeHeader contentTypeHeader) {\n this.multipartMimeContentTypeHeader = contentTypeHeader;\n this.boundary = contentTypeHeader.getParameter(BOUNDARY);\n\n }",
"@Test\n public void headers() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.acceptFrame();// PING\n\n peer.sendFrame().headers(false, 3, TestUtil.headerEntries(\"a\", \"android\"));\n peer.sendFrame().headers(false, 3, TestUtil.headerEntries(\"c\", \"c3po\"));\n peer.sendFrame().ping(true, 1, 0);\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"b\", \"banana\"), true);\n connection.writePingAndAwaitPong();// Ensure that the HEADERS has been received.\n\n Assert.assertEquals(Headers.of(\"a\", \"android\"), stream.takeHeaders());\n Assert.assertEquals(Headers.of(\"c\", \"c3po\"), stream.takeHeaders());\n // verify the peer received what was expected\n MockHttp2Peer.InFrame synStream = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream.type);\n MockHttp2Peer.InFrame ping = peer.takeFrame();\n Assert.assertEquals(TYPE_PING, ping.type);\n }",
"private static MessageHeader createMetaHeader(byte[] meta) {\n\t\tObject[] iov;\n\t\tif(meta != null) {\n\t\t\tiov = new Object[2];\n\t\t\tiov[0] = meta;\n\t\t\tiov[1] = JALP_BREAK_STR;\n\t\t} else {\n\t\t\tiov = new Object[1];\n\t\t\tiov[0] = JALP_BREAK_STR;\n\t\t}\n\n\t\tMessageHeader mh = new MessageHeader();\n\t\tmh.setIov(iov);\n\n\t\treturn mh;\n\t}",
"private void addFilesToWriter()\n throws Exception {\n Set<Map.Entry<String, Map.Entry<String, byte[]>>> set = files.entrySet();\n for (Map.Entry<String, Map.Entry<String, byte[]>> me : set) {\n writer.append(\"--\" + boundary).append(LINE_FEED);\n writer.append(\n \"Content-Disposition: form-data; name=\\\"\" + me.getKey()\n + \"\\\"; filename=\\\"\" + me.getValue().getKey() + \"\\\"\")\n .append(LINE_FEED);\n writer.append(\n \"Content-Type: \"\n + URLConnection.guessContentTypeFromName(me.getValue().getKey()))\n .append(LINE_FEED);\n writer.append(LINE_FEED);\n writer.flush();\n\n outputStream.write(me.getValue().getValue(), 0, me.getValue().getValue().length);\n outputStream.flush();\n\n writer.append(LINE_FEED);\n writer.flush();\n }\n }",
"public void setContentTypeHeader(HttpResponse response, String filename) {\r\n //determine filetype by checking filename ending (filetype\r\n String[] splitarray = filename.split(\"\\\\.\");\r\n String filetype = splitarray[splitarray.length-1];\r\n //hardcoded types for all used files, if needed add other filetypes here\r\n switch (filetype) {\r\n case \"js\":\r\n response.headers().set(HttpHeaders.Names.CONTENT_TYPE, \"application/javascript\");\r\n break;\r\n case \"css\":\r\n response.headers().set(HttpHeaders.Names.CONTENT_TYPE, \"text/css\");\r\n break;\r\n case \"ico\":\r\n response.headers().set(HttpHeaders.Names.CONTENT_TYPE, \"image/x-icon\");\r\n break;\r\n default:\r\n response.headers().set(HttpHeaders.Names.CONTENT_TYPE, \"text/html\");\r\n break;\r\n }\r\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\",\"application/x-www-form-urlencoded\");\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\",\"application/x-www-form-urlencoded\");\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\",\"application/x-www-form-urlencoded\");\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\",\"application/x-www-form-urlencoded\");\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\",\"application/x-www-form-urlencoded\");\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\",\"application/x-www-form-urlencoded\");\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\",\"application/x-www-form-urlencoded\");\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\",\"application/x-www-form-urlencoded\");\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\",\"application/x-www-form-urlencoded\");\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\",\"application/x-www-form-urlencoded\");\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\",\"application/x-www-form-urlencoded\");\n return params;\n }",
"boolean isMultiPart();",
"HttpClientRequest addHeader(CharSequence name, CharSequence value);",
"public void setRequestHeaders(Header[] requestHeaders);",
"protected void addDynamicHeaders() {\n }",
"private void addParametersToWriter() {\n Set<Map.Entry<String, String>> set = params.entrySet();\n for (Map.Entry<String, String> me : set) {\n writer.append(\"--\" + boundary).append(LINE_FEED);\n writer.append(\"Content-Disposition: form-data; name=\\\"\" + me.getKey() + \"\\\"\")\n .append(LINE_FEED);\n writer.append(\"Content-Type: text/plain; charset=\" + super.charset).append(\n LINE_FEED);\n writer.append(LINE_FEED);\n writer.append(me.getValue()).append(LINE_FEED);\n writer.flush();\n }\n }",
"@Test\r\n public void test_setContentDisposition_Accuracy() {\r\n instance.setContentDisposition(\"a\");\r\n assertEquals(\"incorrect value after setting\", \"a\", instance.getContentDisposition());\r\n }",
"private HttpRequest applyMultipartDataTo(HttpRequest httpRequest, Report report) {\n httpRequest.part(\"report[identifier]\", report.getIdentifier());\n if (report.getFiles().length == 1) {\n Fabric.getLogger().d(\"CrashlyticsCore\", \"Adding single file \" + report.getFileName() + \" to report \" + report.getIdentifier());\n return httpRequest.part(\"report[file]\", report.getFileName(), \"application/octet-stream\", report.getFile());\n }\n int n = 0;\n File[] arrfile = report.getFiles();\n int n2 = arrfile.length;\n int n3 = 0;\n do {\n Object object = httpRequest;\n if (n3 >= n2) return object;\n object = arrfile[n3];\n Fabric.getLogger().d(\"CrashlyticsCore\", \"Adding file \" + ((File)object).getName() + \" to report \" + report.getIdentifier());\n httpRequest.part(\"report[file\" + n + \"]\", ((File)object).getName(), \"application/octet-stream\", (File)object);\n ++n;\n ++n3;\n } while (true);\n }",
"private byte[] generateHeader() {\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tsb.append(PROTOCOL_TAG);\n\t\tsb.append(' ');\n\t\tsb.append(statusCode);\n\t\tsb.append(' ');\n\t\tsb.append(statusText);\n\t\tsb.append(LINE_SEPARATOR);\n\t\tsb.append(CONTENT_TYPE_TAG);\n\t\tsb.append(' ');\n\t\t\n\t\tif (mimeType != null && mimeType.startsWith(MIME_TYPE_CHARSET_NEEDED)) {\n\t\t\tsb.append(mimeType);\n\t\t\tsb.append(MIME_TYPE_CHARSET_ADDON);\n\t\t\tsb.append(encoding);\n\t\t} else {\n\t\t\tsb.append(mimeType);\n\t\t}\n\t\tsb.append(LINE_SEPARATOR);\n\n\t\tif (contentLength != null) {\n\t\t\tsb.append(CONTENT_LENGTH_ADDON);\n\t\t\tsb.append(contentLength);\n\t\t\tsb.append(LINE_SEPARATOR);\n\t\t}\n\n\t\tfor (var cookie : outputCookies) {\n\t\t\tsb.append(cookieOutput(cookie));\n\t\t\tsb.append(LINE_SEPARATOR);\n\t\t}\n\t\tsb.append(LINE_SEPARATOR);\n\t\treturn sb.toString().getBytes(Charset.forName(DEFAULT_HEADER_CHARSET_NAME));\n\t}",
"protected void prepareHTTPResponse( String reportId, String entryName, HttpServletRequest request,\n HttpServletResponse response )\n {\n if ( isGenerateContentDisposition( reportId, null, request ) )\n {\n String contentDisposition = getContentDisposition( entryName );\n if ( StringUtils.isNotEmpty( contentDisposition ) )\n {\n response.setHeader( HttpHeaderUtils.CONTENT_DISPOSITION_HEADER, contentDisposition.toString() );\n }\n }\n\n // Disable HTTP response cache\n if ( isDisableHTTPResponCache() )\n {\n disableHTTPResponCache( response );\n }\n }",
"private static void addAdditionalHttpHeaders(Request.Builder requestBuilder) {\n for (Map.Entry<String, String> entry : Parley.getInstance().getNetwork().headers.entrySet()) {\n String name = entry.getKey();\n String value = entry.getValue();\n\n requestBuilder.addHeader(name, value);\n }\n }",
"synchronized void insertDispositionRange(long transferId, boolean role, boolean settled, Object newOutcome) {\n List<DispositionRange> dispositionRanges;\n if (role) {\n if (senderDispositionRanges == null) {\n senderDispositionRanges = new LinkedList<>();\n }\n dispositionRanges = senderDispositionRanges;\n }\n else {\n if (receiverDispositionRanges == null) {\n receiverDispositionRanges = new LinkedList<>();\n }\n dispositionRanges = receiverDispositionRanges;\n }\n addDisposition(transferId, settled, newOutcome, dispositionRanges);\n }",
"protected synchronized void updateHeaders() throws MessagingException {\n/* 417 */ parse();\n/* 418 */ for (int i = 0; i < this.parts.size(); i++) {\n/* 419 */ ((MimeBodyPart)this.parts.elementAt(i)).updateHeaders();\n/* */ }\n/* */ }",
"private static void addAdditionalHttpHeaders(LazyHeaders.Builder requestBuilder) {\n for (Map.Entry<String, String> entry : Parley.getInstance().getNetwork().headers.entrySet()) {\n String name = entry.getKey();\n String value = entry.getValue();\n\n requestBuilder.addHeader(name, value);\n }\n }",
"abstract Function<Multipart.FileInfo, play.libs.streams.Accumulator<ByteString, Http.MultipartFormData.FilePart<A>>> createFilePartHandler();",
"private static byte[] createHeader(int payloadLen, int psecret, int step, int studentID) {\n\t\tbyte[] header = new byte[ServerValuesHolder.HEADER_LENGTH];\n\t\tbyte[] payloadLen_b = new byte[4];\n\t\tbyte[] psecret_b = new byte[4];\n\t\tbyte[] step_b = new byte[2];\n\t\tbyte[] studentID_b = new byte[2];\n\t\t\n\t\t//convert to byte[]\n\t\tpayloadLen_b=ByteBuffer.allocate(4).putInt(payloadLen).array();\n\t\tpsecret_b=ByteBuffer.allocate(4).putInt(psecret).array();\n\t\tstep_b=ByteBuffer.allocate(4).putInt(step).array();\n\t\tstudentID_b=ByteBuffer.allocate(4).putInt(studentID).array();\n\t\t\n\t\t//copy to header\n\t\tSystem.arraycopy(payloadLen_b, 0, header, 0, 4);\n\t\tSystem.arraycopy(psecret_b, 0, header, 4, 4);\n\t\tSystem.arraycopy(step_b, 2, header, 8, 2);\n\t\tSystem.arraycopy(studentID_b, 2, header, 10, 2);\n\t\t\n\t\treturn header;\n\t}",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"content-type\", \"application/json\");\n params.put(\"cache-control\", \"no-cache\");\n\n return params;\n }",
"@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"content-type\", \"application/json\");\n params.put(\"cache-control\", \"no-cache\");\n\n return params;\n }",
"static public String postFile(String url, String userid, String fieldName, File textFile) throws Exception {\r\n // String param = \"value\";\r\n // File textFile = new File(\"/path/to/file.txt\");\r\n // File binaryFile = new File(\"/path/to/file.bin\");\r\n String boundary = Long.toHexString(System.currentTimeMillis()); // Just\r\n // generate\r\n // some\r\n // unique\r\n // random\r\n // value.\r\n String CRLF = \"\\r\\n\"; // Line separator required by multipart/form-data.\r\n\r\n URLConnection connection = new URL(url).openConnection();\r\n connection.setDoOutput(true);\r\n connection.setRequestProperty(\"Content-Type\", \"multipart/form-data; boundary=\" + boundary);\r\n PrintWriter writer = null;\r\n try {\r\n String charset = \"ISO-8859-1\"; // was ISO-8859-1\r\n OutputStream output = connection.getOutputStream();\r\n writer = new PrintWriter(new OutputStreamWriter(output, charset), true); // true\r\n // =\r\n // autoFlush,\r\n // important!\r\n\r\n // Send text file.\r\n writer.append(\"--\" + boundary).append(CRLF);\r\n writer.append(\"Content-Disposition: form-data; name=\\\"\" + fieldName + \"\\\"; filename=\\\"\" + textFile.getName() + \"\\\"\").append(CRLF);\r\n writer.append(\"Content-Type: text/plain; charset=\" + charset).append(CRLF);\r\n writer.append(CRLF).flush();\r\n BufferedReader reader = null;\r\n try {\r\n reader = new BufferedReader(new InputStreamReader(new FileInputStream(textFile), charset));\r\n for (String line; (line = reader.readLine()) != null;) {\r\n writer.append(line).append(CRLF);\r\n }\r\n } finally {\r\n if (reader != null)\r\n try {\r\n reader.close();\r\n } catch (IOException logOrIgnore) {\r\n }\r\n }\r\n\r\n // Send normal param.\r\n\r\n writer.append(\"--\" + boundary).append(CRLF);\r\n writer.append(\"Content-Disposition: form-data; name=\\\"user\\\"\").append(CRLF);\r\n writer.append(\"Content-Type: text/plain; charset=\" + charset).append(CRLF);\r\n writer.append(CRLF);\r\n writer.append(userid).append(CRLF).flush();\r\n\r\n writer.flush();\r\n\r\n /*\r\n * // Send binary file. writer.append(\"--\" + boundary).append(CRLF);\r\n * writer.append(\r\n * \"Content-Disposition: form-data; name=\\\"binaryFile\\\"; filename=\\\"\" +\r\n * binaryFile.getName() + \"\\\"\").append(CRLF); writer.append(\r\n * \"Content-Type: \" + URLConnection.guessContentTypeFromName\r\n * (binaryFile.getName())).append(CRLF); writer.append(\r\n * \"Content-Transfer-Encoding: binary\").append(CRLF);\r\n * writer.append(CRLF).flush(); InputStream input = null; try { input =\r\n * new FileInputStream(binaryFile); byte[] buffer = new byte[1024]; for\r\n * (int length = 0; (length = input.read(buffer)) > 0;) {\r\n * output.write(buffer, 0, length); } output.flush(); // Important! Output\r\n * cannot be closed. Close of writer will close output as well. } finally\r\n * { if (input != null) try { input.close(); } catch (IOException\r\n * logOrIgnore) {} } writer.append(CRLF).flush(); // CRLF is important! It\r\n * indicates end of binary boundary.\r\n */\r\n\r\n // End of multipart/form-data.\r\n writer.append(\"--\" + boundary + \"--\").append(CRLF);\r\n writer.append(CRLF).flush(); // CRLF is important! It indicates end\r\n // of binary boundary.\r\n\r\n byte[] data;\r\n InputStream in = null;\r\n in = new BufferedInputStream(connection.getInputStream());\r\n ByteArrayOutputStream bos = new ByteArrayOutputStream(16384);\r\n try {\r\n\r\n int BUFFER_SIZE = 16384;\r\n byte[] tmp = new byte[BUFFER_SIZE];\r\n int ret;\r\n while ((ret = in.read(tmp)) > 0) {\r\n bos.write(tmp, 0, ret);\r\n }\r\n } catch (IOException e) {\r\n Logging.logError(e);\r\n }\r\n\r\n data = bos.toByteArray();\r\n log.info(\"read {} bytes\", data.length);\r\n\r\n String s = new String(data);\r\n log.info(s);\r\n try {\r\n in.close();\r\n } catch (IOException e) {\r\n // don't care\r\n }\r\n\r\n return s;\r\n\r\n } finally {\r\n if (writer != null)\r\n writer.close();\r\n }\r\n }",
"private void addFilesInRequestEntity(MultipartEntity reqEntity) {\n if (filePath_image != null && filePath_image.length > 0) {\n\n for (int i = 0; i < filePath_image.length; i++) {\n if (filePath_image[i] != null) {\n File file = new File(filePath_image[i]);\n\n FileBody fileBodyVideo = new FileBody(file);\n reqEntity.addPart(keyForUploadFileImage + i, fileBodyVideo);\n System.out.println(keyForUploadFileImage + i + \" RestClient: File \" + file);\n }\n }\n }\n if (filePath_video != null && filePath_video.length() > 0) {\n File file = new File(filePath_video);\n\n FileBody fileBodyVideo = new FileBody(file);\n reqEntity.addPart(keyForUploadFileVideo, fileBodyVideo);\n System.out.println(keyForUploadFileVideo + \" RestClient: File \" + file);\n }\n }",
"private HttpEntity<?> setTokenToHeaders() {\n HttpHeaders headers = new HttpHeaders();\n headers.set(\"Authorization\", this.token.getToken_type() + \" \" + this.token.getAccess_token());\n headers.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));\n return new HttpEntity<>(null, headers);\n }",
"Header createHeader();",
"public String[] getHeaders(){\n String[] headers={\"Owner Unit ID\",\"Origin Geoloc\",\"Origin Name\",\"Number of Assets\",};\n return headers;\n }",
"public static String uploadUseFormFile(String toUrl, File[] files, String[] names) {\r\n\t\tString end = \"\\r\\n\";\r\n\t\tString twoHyphens = \"--\";\r\n\t\tString boundary = \"*****jerry2\";\r\n\t\t\r\n\t\tHttpURLConnection conn = null;\r\n\t\tInputStream is = null;\r\n\t\tDataOutputStream ds = null;\t\t\r\n\t\ttry {\r\n\t\t\tURL url = new URL(toUrl);\r\n\t\t\tconn = (HttpURLConnection) url.openConnection();\r\n\t\t\tconn.setDoOutput(true);\r\n\t\t\tconn.setDoInput(true);\r\n\t\t\tconn.setChunkedStreamingMode(0);\r\n\t\t\tconn.setRequestMethod(\"POST\");\r\n\t\t\tconn.setRequestProperty(\"Connection\", \"Keep-Alive\");\r\n\t\t\tconn.setRequestProperty(\"Charset\", \"UTF-8\");\r\n\t\t\tconn.setRequestProperty(\"Content-length\", String.valueOf(getLength(files)));\r\n\t\t\tconn.setRequestProperty(\"Content-type\", \"multipart/form-data; boundary=\"+boundary);\r\n\t\t\t/*\t\t\t\r\n\t\t\tContent-type: multipart/form-data; boundary=AaB03x\r\n\t\t\t--AaB03x\r\n\t content-disposition: form-data; name=\"pics\"; filename=\"file1.txt\"\r\n\t Content-Type: text/plain\r\n\r\n\t ... contents of file1.txt ...\r\n\t --AaB03x--\r\n\t */\r\n\t\t\tds = new DataOutputStream(conn.getOutputStream());\r\n\t\t\tfor (int i = 0; i < files.length; i++) {\r\n\t\t\t\tis = new FileInputStream(files[i]);\r\n\t\t\t\tds.writeBytes(twoHyphens + boundary + end);\r\n\t\t\t\tds.writeBytes(\"content-disposition: form-data; name=\\\"\"+names[i]+\"\\\"; filename=\\\"\"+files[i].getName()+\"\\\"\"+end);\r\n\t\t\t\tds.writeBytes(end);\r\n\t\t\t\tbyte[] buf = new byte[128];\r\n\t\t\t\tint len = -1;\r\n\t\t\t\twhile ((len=is.read(buf)) != -1)\r\n\t\t\t\t\tds.write(buf, 0, len);\r\n\t\t\t\tds.writeBytes(end);\r\n\t\t\t}\r\n\t\t\tds.writeBytes(twoHyphens + boundary + twoHyphens + end);\r\n\t\t\tds.flush();\r\n\t\t\t\r\n\t\t\t//response\r\n\t\t\tSystem.out.println(\"code=\"+conn.getResponseCode()+\",msg=\"+conn.getResponseMessage());\r\n\t\t\treturn getContent(conn.getInputStream());\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t} finally{\r\n\t\t\ttry {\r\n\t\t\t\tif (is != null)\r\n\t\t\t\t\tis.close();\r\n\t\t\t\tif (ds != null)\r\n\t\t\t\t\tds.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tconn.disconnect();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public abstract void setMimeHeader(String name, String value);",
"protected InternetHeaders createInternetHeaders(InputStream is) throws MessagingException {\n/* 1184 */ return new InternetHeaders(is);\n/* */ }",
"public Header[] generateHeaders(HttpMessage httpRequest) {\n Iterator<Map.Entry<String, String>> it = petition.getHeadersMap()\n .entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<String, String> e = (Entry<String, String>) it.next();\n String key = e.getKey();// URLEncoder.encode(e.getKey());\n String value = e.getValue();// URLEncoder.encode(e.getValue());\n httpRequest.addHeader(key, value);\n }\n return httpRequest.getAllHeaders();\n\n }",
"@Test\n\tpublic void test_incorrect_headers_in_CSV() throws Exception {\n\n\t\tString fileName = \"sample.csv\";\n\t\tMockMultipartFile file = new MockMultipartFile(\"file\", fileName, \"text/csv\",\n\t\t\t\t(\"name, emailId, contactNumber, street, state,city, country\\r\\n\"\n\t\t\t\t\t\t+ \"testname, [email protected], 9876543210, testStreet, testCity, testState, testCountry\\r\\n\")\n\t\t\t\t\t\t\t\t.getBytes());\n\n\t\tMockMultipartHttpServletRequestBuilder multipartRequest = MockMvcRequestBuilders\n\t\t\t\t.multipart(\"/api/v1/client/upload-csv\");\n\n\t\tmockMvc.perform(multipartRequest.file(file).header(\"userId\", 12)).andExpect(status().is4xxClientError())\n\t\t\t\t.andExpect(jsonPath(\"$.message\", is(\"File not CSV or CSV Headers Do not match required format\")));\n\n\t}",
"public abstract Builder headers(String... paramVarArgs);",
"public static ContentType createContentType(String mimeType) {\r\n\t\tif (mimeType == null) {\r\n\t\t\treturn MIMEConstants.CONTENT_TYPE_NOT_SET;\r\n\t\t}\r\n\t\tint slashPos = mimeType.indexOf(MIMEConstants.SEPARATOR);\r\n\t\tif ((slashPos < 1) || (slashPos == (mimeType.length() - 1))) {\r\n\t\t\treturn new ContentType(null, null, contentToFileExtension(mimeType), null);\r\n\t\t}\r\n\r\n\t\tString type = mimeType.substring(0, slashPos);\r\n\t\tString subtype;\r\n\t\tint semicolonPos = mimeType.indexOf(\";\", slashPos + 1);\r\n\t\tif (semicolonPos < 0) {\r\n\t\t\tsubtype = mimeType.substring(slashPos + 1).trim();\r\n\t\t} else {\r\n\t\t\tsubtype = mimeType.substring(slashPos + 1, semicolonPos).trim();\r\n\t\t}\r\n\r\n\t\tContentType result = new ContentType(type, subtype, contentToFileExtension(mimeType));\r\n\r\n\t\tString tmp;\r\n\t\tint quotePosStart;\r\n\t\tint quotePosEnd;\r\n\t\twhile (semicolonPos > 0) {\r\n\t\t\tint nextSemicolonPos = mimeType.indexOf(\";\", semicolonPos + 1);\r\n\t\t\tif (nextSemicolonPos > 0) {\r\n\r\n\t\t\t\ttmp = mimeType.substring(semicolonPos + 1, nextSemicolonPos);\r\n\r\n\t\t\t\tquotePosStart = checkQuotation(tmp);\r\n\t\t\t\tif (quotePosStart > 0) {\r\n\t\t\t\t\tquotePosEnd = searchQuotationEnd(mimeType.substring(semicolonPos + 1), quotePosStart + 1) + semicolonPos + 2;\r\n\t\t\t\t\taddParameter(mimeType.substring(semicolonPos + 1, quotePosEnd), result);\r\n\t\t\t\t\tsemicolonPos = mimeType.indexOf(\";\", quotePosEnd);\r\n\t\t\t\t} else {\r\n\t\t\t\t\taddParameter(tmp, result);\r\n\t\t\t\t\tsemicolonPos = nextSemicolonPos;\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\taddParameter(mimeType.substring(semicolonPos + 1), result);\r\n\t\t\t\tsemicolonPos = -1;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}",
"private static void initializeResponse(String contentType, String header){\r\n\t\t // Initialize response.\r\n\t response.reset(); // Some JSF component library or some Filter might have set some headers in the buffer beforehand. We want to get rid of them, else it may collide.\r\n\t response.setContentType(contentType); // Check http://www.iana.org/assignments/media-types for all types. Use if necessary ServletContext#getMimeType() for auto-detection based on filename.\r\n\t response.setHeader(\"Content-disposition\", header); // The Save As popup magic is done here. You can give it any filename you want, this only won't work in MSIE, it will use current request URL as filename instead.\r\n\r\n\t}",
"protected Map<String, String> getRequiredResponseHeaders()\n {\n if (requiredHttpHeaders != null)\n {\n return requiredHttpHeaders;\n }\n if (scimHttpClient.getScimClientConfig().getExpectedHttpResponseHeaders() != null)\n {\n return scimHttpClient.getScimClientConfig().getExpectedHttpResponseHeaders();\n }\n Map<String, String> requiredHttpHeaders = new HashMap<>();\n requiredHttpHeaders.put(HttpHeader.CONTENT_TYPE_HEADER, HttpHeader.SCIM_CONTENT_TYPE);\n return requiredHttpHeaders;\n }",
"private void appendCanonicalizedHeaders(HttpRequest request, StringBuilder toSign) {\n Set<String> headers = new TreeSet<String>(request.getHeaders().keySet());\n for (String header : headers) {\n if (header.startsWith(\"x-emc-\")) {\n // Convert all header names to lowercase.\n toSign.append(header.toLowerCase()).append(\":\");\n // For headers with values that span multiple lines, convert them into one line by\n // replacing any\n // newline characters and extra embedded white spaces in the value.\n for (String value : request.getHeaders().get(header)) {\n value = Utils.replaceAll(value, TWO_SPACE_PATTERN, \" \");\n value = Utils.replaceAll(value, NEWLINE_PATTERN, \"\");\n toSign.append(value).append(' ');\n }\n toSign.deleteCharAt(toSign.lastIndexOf(\" \"));\n // Concatenate all headers together, using newlines (\\n) separating each header from the\n // next one.\n toSign.append(\"\\n\");\n }\n }\n // There should be no terminating newline character at the end of the last header.\n if (toSign.charAt(toSign.length() - 1) == '\\n')\n toSign.deleteCharAt(toSign.length() - 1);\n }",
"public static Map<String, String> getHeaders() {\n if (headers == null) {\n headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"X-Custom-Header\", \"application/json\");\n }\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }",
"@Override\n public Map<String, String> getHeaders() {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }",
"private HttpHeaders getHeaders() {\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));\n\t\treturn headers;\n\t}",
"public void setContentType(String ctString) {\n/* */ BasicHeader basicHeader;\n/* 126 */ Header h = null;\n/* 127 */ if (ctString != null) {\n/* 128 */ basicHeader = new BasicHeader(\"Content-Type\", ctString);\n/* */ }\n/* 130 */ setContentType((Header)basicHeader);\n/* */ }"
]
| [
"0.6204145",
"0.5843664",
"0.57724315",
"0.576777",
"0.5673398",
"0.5604109",
"0.5295021",
"0.5287984",
"0.5283784",
"0.52718556",
"0.5267355",
"0.52598536",
"0.5170832",
"0.515066",
"0.50742346",
"0.50573164",
"0.50097394",
"0.4894773",
"0.4885394",
"0.48811477",
"0.48411867",
"0.48299894",
"0.4803453",
"0.47715682",
"0.4767695",
"0.47559342",
"0.4750662",
"0.47374418",
"0.47254235",
"0.47203606",
"0.47133648",
"0.4704211",
"0.4684815",
"0.4652788",
"0.4641212",
"0.4596353",
"0.45431462",
"0.45412004",
"0.452583",
"0.45196572",
"0.4514798",
"0.45126474",
"0.4509859",
"0.4504324",
"0.44603574",
"0.44585624",
"0.43988046",
"0.43951207",
"0.43891484",
"0.4381508",
"0.43806615",
"0.43797433",
"0.43797433",
"0.43797433",
"0.43797433",
"0.43797433",
"0.43797433",
"0.43797433",
"0.43797433",
"0.43797433",
"0.43797433",
"0.43797433",
"0.43709484",
"0.43691954",
"0.43674266",
"0.435068",
"0.43226635",
"0.43178976",
"0.43103382",
"0.4309253",
"0.43087044",
"0.43068695",
"0.430511",
"0.43020967",
"0.4293239",
"0.42915037",
"0.42821905",
"0.42802843",
"0.42802843",
"0.42768693",
"0.42516708",
"0.42512637",
"0.4246217",
"0.42279458",
"0.4220842",
"0.42158112",
"0.42099947",
"0.4203065",
"0.42025828",
"0.4196277",
"0.41930816",
"0.4182672",
"0.4179017",
"0.41721082",
"0.4170123",
"0.41671896",
"0.41671896",
"0.41671896",
"0.41656423",
"0.41640443"
]
| 0.7184018 | 0 |
Convenience method to extract the Charset=... from a content type header. strips enclosing quotes, for example charset="utf8" and charset=utf8 both yield utf8 | protected static String parseCharset(String aContentType)
{
if ( AeUtil.isNullOrEmpty(aContentType) )
return null;
StringTokenizer outer = new StringTokenizer(aContentType, ";", false); //$NON-NLS-1$
StringTokenizer inner = null;
String element = null;
String charset = null;
int startIndex = 0;
int stopIndex = 0;
while (outer.hasMoreTokens())
{
element = outer.nextToken();
inner = new StringTokenizer(element, "=", false); //$NON-NLS-1$
if ( inner.countTokens() == 2 )
{
if ( inner.nextToken().trim().equalsIgnoreCase("charset") ) //$NON-NLS-1$
{
charset = inner.nextToken();
// strip quotes
if ( charset.startsWith(QUOTE) )
{
startIndex = 1;
stopIndex = (charset.length() > 0) ? charset.length() - 1 : 0;
}
else
{
startIndex = 0;
stopIndex = charset.length();
}
if ( startIndex != 0 || stopIndex != charset.length() )
{
charset = charset.substring(startIndex, stopIndex);
}
return charset;
}
}
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Optional<String> charset() {\n return body.contentType()\n .flatMap(\n h -> {\n String[] parts = SPLIT_CHARSET.split(h, 2);\n if (parts.length > 1) {\n String charset = parts[1];\n return Optional.of(charset.trim());\n } else {\n return Optional.empty();\n }\n });\n }",
"public String getContentCharset() {\n\t\tString ct = header.getContentType();\n\t\treturn Streams.getCharsetFromContentTypeString(ct);\n\t}",
"public static String detectCharset( HttpResponse response ) {\n\t\tif ( response != null && response.containsHeader( \"Content-Type\" ) ) {\n\t\t\tHeader[] headers = response.getHeaders( \"Content-Type\" );\n\t\t\tfor ( int i = 0 ; i < headers.length ; i++ ) {\n\t\t\t\tString headerinfo = headers[i].getValue();\n\t\t\t\tString charset = StringUtils.extractFirst( headerinfo, \"charset=([^;]+)\", 1 );\n\t\t\t\tif ( charset != null && charset.length() > 0 ) {\n\t\t\t\t\treturn charset;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public String getResponseCharset()\r\n {\r\n Header header = httpMethod.getResponseHeader( \"Content-Type\" );\r\n if( header != null )\r\n {\r\n for( HeaderElement headerElement : header.getElements() )\r\n {\r\n NameValuePair parameter = headerElement.getParameterByName( \"charset\" );\r\n if( parameter != null )\r\n return parameter.getValue();\r\n }\r\n }\r\n \r\n Header contentEncodingHeader = httpMethod.getResponseHeader( \"Content-Encoding\" );\r\n if( contentEncodingHeader != null )\r\n {\r\n try\r\n {\r\n String value = contentEncodingHeader.getValue();\r\n if( CompressionSupport.getAvailableAlgorithm( value ) == null )\r\n {\r\n new String( \"\" ).getBytes( value );\r\n return value;\r\n }\r\n }\r\n catch( Exception e )\r\n {\r\n }\r\n }\r\n \r\n return null;\r\n }",
"public static String getCharsetFromContentType(final String type) throws MessagingException\r\n\t{\r\n\t\tif (!type.isNullOrEmpty())\r\n\t\t{\r\n\t\t\tint start = type.indexOf(EmailConstants.CHARSET_PREFIX);\r\n\t\t\tif (start > 0)\r\n\t\t\t{\r\n\t\t\t\tstart += EmailConstants.CHARSET_PREFIX.length();\r\n\t\t\t\tfinal int offset = type.indexOf(\" \", start);\r\n\t\t\t\tif (offset > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\treturn type.substring(start, offset);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\treturn type.substring(start);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"protected static String getContentCharSet(Header contentheader) {\n LOG.trace(\"enter getContentCharSet( Header contentheader )\");\n String charset = null;\n if (contentheader != null) {\n try {\n HeaderElement values[] = contentheader.getValues();\n // I expect only one header element to be there\n // No more. no less\n if (values.length == 1) {\n NameValuePair param = values[0].getParameterByName(\"charset\");\n if (param != null) {\n // If I get anything \"funny\" \n // UnsupportedEncondingException will result\n charset = param.getValue();\n }\n }\n } catch (HttpException e) {\n LOG.error(e);\n }\n }\n if (charset == null) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Default charset used: \" + HttpConstants.DEFAULT_CONTENT_CHARSET);\n }\n charset = HttpConstants.DEFAULT_CONTENT_CHARSET;\n }\n return charset;\n }",
"String getCharset();",
"public String getCharSet()\n\t{\n\t\tParameterParser parser = new ParameterParser();\n\t\tparser.setLowerCaseNames(true);\n\t\t// Parameter parser can handle null input\n\t\tMap<?, ?> params = parser.parse(getContentType(), ';');\n\t\treturn (String)params.get(\"charset\");\n\t}",
"public static String getCharSet(String contentType) {\r\n\t\tString charSet = null;\r\n\t\tif (contentType != null && !contentType.isEmpty()) {\r\n\t\t\tString[] tokens = contentType.split(SEMI_COLON);\r\n\t\t\tif (tokens.length > 1) {\r\n\t\t\t\tString encodingType = tokens[1];\r\n\t\t\t\tint index = encodingType.indexOf(EQUALS);\r\n\t\t\t\tif (index != -1) {\r\n\t\t\t\t\tcharSet = encodingType.substring(index + 1,\r\n\t\t\t\t\t\t\tencodingType.length());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn charSet;\r\n\t}",
"private Charset getCharset(ResponseBody body) {\n MediaType contentType = body.contentType();\n return contentType != null ? contentType.charset(Util.UTF_8) : Util.UTF_8;\n }",
"public static String getContentType(InputStream is) throws IOException {\n\n String encoding = \"UTF-8\"; //default\n\n\n // cerca se il documento specifica un altro encoding\n if (is != null) {\n StringBuilder sb = new StringBuilder();\n String line;\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));//\"UTF-8\"));\n while ((line = reader.readLine()) != null) { //CRASHA\n sb.append(line).append(\"\\n\");\n if ((sb.toString().contains(\"<?\") && sb.toString().contains(\"?>\")) && sb.toString().contains(\"encoding=\")) {\n\n Pattern p = Pattern.compile(\".*<\\\\?.*encoding=.(.*).\\\\?>.*\", Pattern.DOTALL);\n\n Matcher matcher = p.matcher(sb.toString());\n\n if (matcher.matches()) {\n encoding = matcher.group(1);\n }\n\n break;\n }\n }\n\n }\n\n return encoding;\n }",
"public String getContentType() {\n\t\tString ct = header.getContentType();\n\t\treturn Strings.substringBefore(ct, ';');\n\t}",
"private Charset getResponseCharset(NetworkResponse response) {\n String charset = HttpHeaderParser.parseCharset(response.headers);\n try {\n return Charset.forName(charset);\n } catch (UnsupportedCharsetException e) {\n return Charset.forName(\"UTF-8\");\n }\n }",
"public static String getContentTypeCharset(\n final Response response,\n final String defaultCharset) {\n return Optional.ofNullable(response.headers())\n .map(it -> it.get(CONTENT_TYPE))\n .flatMap(it -> it.stream()\n .findFirst())\n .map(it -> getContentTypeCharset(it, defaultCharset))\n .orElse(defaultCharset);\n }",
"public String detectContentCharset() throws IOException {\n\t\tString cs = getContentCharset();\n\t\tif (!Charsets.isSupportedCharset(cs)) {\n\t\t\tcs = CharDetects.detectCharset(getContent());\n\t\t\tif (!Charsets.isSupportedCharset(cs)) {\n\t\t\t\tcs = Charsets.UTF_8;\n\t\t\t}\n\t\t}\n\t\treturn cs;\n\t}",
"public String getRequestCharSet() {\n return getContentCharSet(getRequestHeader(\"Content-Type\"));\n }",
"public String getResponseCharSet() {\n return getContentCharSet(getResponseHeader(\"Content-Type\"));\n }",
"public List<Charset> getAcceptCharset()\r\n/* 107: */ {\r\n/* 108:174 */ List<Charset> result = new ArrayList();\r\n/* 109:175 */ String value = getFirst(\"Accept-Charset\");\r\n/* 110:176 */ if (value != null)\r\n/* 111: */ {\r\n/* 112:177 */ String[] tokens = value.split(\",\\\\s*\");\r\n/* 113:178 */ for (String token : tokens)\r\n/* 114: */ {\r\n/* 115:179 */ int paramIdx = token.indexOf(';');\r\n/* 116: */ String charsetName;\r\n/* 117: */ String charsetName;\r\n/* 118:181 */ if (paramIdx == -1) {\r\n/* 119:182 */ charsetName = token;\r\n/* 120: */ } else {\r\n/* 121:185 */ charsetName = token.substring(0, paramIdx);\r\n/* 122: */ }\r\n/* 123:187 */ if (!charsetName.equals(\"*\")) {\r\n/* 124:188 */ result.add(Charset.forName(charsetName));\r\n/* 125: */ }\r\n/* 126: */ }\r\n/* 127: */ }\r\n/* 128:192 */ return result;\r\n/* 129: */ }",
"private HttpHeaders getHeaders(String contentType) {\n HttpHeaders httpHeaders = new HttpHeaders();\n httpHeaders.set(WebConstants.CONTENT_TYPE, WebConstants.TEXT_PLAIN_UTF8);\n return httpHeaders;\n }",
"private void setContentType(String contentType) throws IOException {\n if (localEncoding !=\"\"){ return; } // Don't change Encoding Twice\n StringTokenizer tok = new StringTokenizer(contentType,\";\");\n if (tok.countTokens()<2){ return;}\n tok.nextToken();\n String var = tok.nextToken(\"=\");\n if (var.length()<1){ return; }\n if (var.charAt(0)==';'){ var = var.substring(1); }\n int j=0;\n for(int i=0; i<var.length();i++){\n if (var.charAt(i)==' '){ j++;} else { break;}\n }\n var = var.substring(j);\n if (!var.equalsIgnoreCase(\"charset\")){ return;}\n String charSet = tok.nextToken();\n if (charSet.equals(characterEncoding)){ return; } // Already correct Encoding\n if (inputStream == null){\n throw new IOException(\"HTML Parser called with Reader cannot change Encoding\");\n }\n if (! (inputStream instanceof OpenByteArrayInputStream) ){\n throw new IOException(\"HTML Parser not called with OpenByteArrayInputStream\");\n }\n OpenByteArrayInputStream obais = (OpenByteArrayInputStream) inputStream;\n byte[] buf = obais.getBuffer();\n int length = obais.getLength();\n int offset = obais.getOffset();\n reader.close();\n obais.close();\n obais = new OpenByteArrayInputStream(buf,offset,length);\n inputStream = obais;\n try {\n reader = new BufferedReader(new InputStreamReader(obais,charSet),1024);\n } catch (UnsupportedEncodingException e){\n Logging.warning(\"Unknown charset \"+charSet+\" parsing with default ISO-8859-1 charSet\");\n System.err.println(\"Unknown charset \"+charSet+\" parsing with default ISO-8859-1 charSet\");\n reader = new BufferedReader(new InputStreamReader(obais),1024);\n charSet = \"iso-8859-1\";\n }\n Logging.info(\"Changed Encoding to \"+charSet);\n System.err.println(\"Changed Encoding to \"+charSet);\n reset();\n characterEncoding = charSet;\n localEncoding = charSet;\n // We will restart reading the file from the beginning\n return;\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: */ }",
"String getContentEncoding();",
"public\t ContentType getContentTypeHeader()\n { return (ContentType) this.getHeader(ContentTypeHeader.NAME);}",
"public String getCharset() {\n\t\treturn charset;\n\t}",
"public static String getCharSet(HttpResponse argOriginResponse) {\r\n\t\tString contentType = null;\r\n\t\tHeader header = argOriginResponse\r\n\t\t\t\t.getFirstHeader(HttpConstants.CONTENT_TYPE);\r\n\t\tif (header != null) {\r\n\t\t\tcontentType = header.getValue();\r\n\t\t}\r\n\t\treturn getCharSet(contentType);\r\n\t}",
"public Header getContentEncoding() {\n/* 89 */ return this.contentEncoding;\n/* */ }",
"Charset getEncoding();",
"public static String getCharSet(HttpServletRequest argClientRequest) {\r\n\t\tString charSet = null;\r\n\t\tif (argClientRequest.getContentType() != null\r\n\t\t\t\t&& argClientRequest.getContentType().length() > 0) {\r\n\t\t\tString contentType = argClientRequest.getContentType();\r\n\t\t\tcharSet = getCharSet(contentType);\r\n\t\t}\r\n\t\treturn charSet;\r\n\t}",
"public Optional<String> contentType() {\n return body.contentType()\n .map(\n h -> {\n if (h.contains(\";\")) {\n return h.substring(0, h.indexOf(';')).trim();\n } else {\n return h.trim();\n }\n });\n }",
"String getStringCharset() {\n\t\treturn this.charset;\n\t}",
"public Charset getCharset() {\r\n\t\treturn myCharset;\r\n\t}",
"com.yoti.api.client.spi.remote.proto.ContentTypeProto.ContentType getContentType();",
"public String getContentType() {\n return getHeader(\"Content-Type\");\n }",
"public void setContentType(String ctString) {\n/* */ BasicHeader basicHeader;\n/* 126 */ Header h = null;\n/* 127 */ if (ctString != null) {\n/* 128 */ basicHeader = new BasicHeader(\"Content-Type\", ctString);\n/* */ }\n/* 130 */ setContentType((Header)basicHeader);\n/* */ }",
"public default String getCharset() {\n return Constants.CHARSET_UTF8;\n }",
"void prepareMetaTag()\r\n\t{\r\n\t\tstr = replaceStringIgnoreCase(str, \"charset=iso-8859-1\", \"\");\r\n\t\tstr = replaceStringIgnoreCase(str, \"charset=windows-1252\", \"\");\r\n\t\tstr = replaceStringIgnoreCase(str, \"charset=windows-1258\", \"\");\r\n\t\tstr = replaceStringIgnoreCase(str, \"charset=us-ascii\", \"\");\r\n\t\tstr = replaceStringIgnoreCase(str, \"charset=x-user-defined\", \"\");\r\n\t\tstr = replaceStringIgnoreCase(str,\r\n\t\t\t\t\"<meta http-equiv=Content-Type content=\\\"text/html; \\\">\", \"\");\r\n\t\tstr = replaceStringIgnoreCase(str,\r\n\t\t\t\t\"<meta http-equiv=Content-Type content=\\\"text/html;\\\">\", \"\");\r\n\t\tstr = replaceStringIgnoreCase(str,\r\n\t\t\t\t\"<meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; \\\">\",\r\n\t\t\t\t\"\");\r\n\t\tstr = replaceStringIgnoreCase(str,\r\n\t\t\t\t\"<meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;\\\">\", \"\");\r\n\t\tstr = replaceStringIgnoreCase(str, \"<head>\",\r\n\t\t\t\t\"<head><meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=UTF-8\\\">\");\r\n\t}",
"public java.lang.String getContentType() {\n java.lang.Object ref = contentType_;\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 contentType_ = s;\n return s;\n }\n }",
"public void setContentType(Header contentType) {\n/* 114 */ this.contentType = contentType;\n/* */ }",
"String getContentType();",
"String getContentType();",
"String getContentType();",
"public void setContentEncoding(String ceString) {\n/* */ BasicHeader basicHeader;\n/* 155 */ Header h = null;\n/* 156 */ if (ceString != null) {\n/* 157 */ basicHeader = new BasicHeader(\"Content-Encoding\", ceString);\n/* */ }\n/* 159 */ setContentEncoding((Header)basicHeader);\n/* */ }",
"public static String getContentType(HttpServletRequest argClientRequest) {\r\n\t\tString mimeType = null;\r\n\t\tif (argClientRequest.getContentType() != null\r\n\t\t\t\t&& argClientRequest.getContentType().length() > 0) {\r\n\t\t\tString contentType = argClientRequest.getContentType();\r\n\t\t\tString[] tokens = contentType.split(SEMI_COLON);\r\n\t\t\tmimeType = tokens[0];\r\n\t\t}\r\n\t\treturn mimeType;\r\n\t}",
"public static String getMimeType(String contentType) {\r\n\t\tString mimeType = null;\r\n\t\tif (contentType != null && !contentType.isEmpty()) {\r\n\t\t\t// FIXME If SemiColon Is Not Present\r\n\t\t\tString[] tokens = contentType.split(SEMI_COLON);\r\n\t\t\tif (tokens.length > 0) {\r\n\t\t\t\tmimeType = tokens[0];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn mimeType;\r\n\t}",
"public String getContentEncoding() {\n\t\treturn header.getContentEncoding();\n\t}",
"public java.lang.String getContentType() {\n java.lang.Object ref = contentType_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n contentType_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getContentTypeHeaderValue() {\n return contentTypeHeaderValue;\n }",
"public String getContentType() {\r\n try {\r\n ContentType newCtype = new ContentType(super.getContentType());\r\n ContentType retCtype = new ContentType(cType.toString());\r\n retCtype.setParameter(\"boundary\", newCtype.getParameter(\"boundary\"));\r\n return retCtype.toString();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return \"null\";\r\n }",
"public Charset getPreferredCharset();",
"public static String getContentType(HttpResponse argOriginResponse) {\r\n\t\tString mime = null;\r\n\t\tHeader header = argOriginResponse\r\n\t\t\t\t.getFirstHeader(HttpConstants.CONTENT_TYPE);\r\n\t\tif (header != null) {\r\n\t\t\tmime = header.getValue();\r\n\t\t\tint semiColonIndex = mime.indexOf(HttpConstants.SEMI_COLON);\r\n\t\t\tif (semiColonIndex != -1) {\r\n\t\t\t\tmime = mime.substring(0, semiColonIndex);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn mime;\r\n\t}",
"public String getDefaultCharset() {\n/* 359 */ return this.charset;\n/* */ }",
"public String getContent(ContentType type) throws IOException {\n String charset = type.getCharset();\n \n if(charset == null) {\n charset = \"UTF-8\";\n }\n return body.getContent(charset);\n }",
"public CharSequence getContentType() {\n return contentType;\n }",
"public void setContentEncoding(Header contentEncoding) {\n/* 143 */ this.contentEncoding = contentEncoding;\n/* */ }",
"public com.google.protobuf.ByteString\n getContentTypeBytes() {\n java.lang.Object ref = contentType_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n contentType_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"private static String guessAppropriateEncoding(CharSequence contents) {\n\t\tfor (int i = 0; i < contents.length(); i++) {\n\t\t\tif (contents.charAt(i) > 0xFF) {\n\t\t\t\treturn \"UTF-8\";\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private static String guessAppropriateEncoding(CharSequence contents) {\n\t\tfor (int i = 0; i < contents.length(); i++) {\n\t\t\tif (contents.charAt(i) > 0xFF) {\n\t\t\t\treturn \"UTF-8\";\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@AutoEscape\n\tpublic String getContentType();",
"public static String getContentType(String filename) {\n return getTika().detect(filename);\n }",
"public static String getContentString( HttpRequestHeaderInfo header, String url, String charset ) throws URISyntaxException, IOException {\n\t\treturn new String( getContentBytes( header, url ), charset );\n\t}",
"public com.google.protobuf.ByteString\n getContentTypeBytes() {\n java.lang.Object ref = contentType_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n contentType_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Charset getCharset() {\n\t\treturn this.charset;\n\t}",
"public static String getContentType(String name){\n\t\tString contentType = \"\";\n\t\tif(name.endsWith(\".html\")){\n\t\t\tcontentType = \"text/html\";\n\t\t}else if(name.endsWith(\".txt\")){\n\t\t\tcontentType = \"text/plain\";\n\t\t}else if(name.endsWith(\".gif\")){\n\t\t\tcontentType = \"image/gif\";\n\t\t}else if(name.endsWith(\".jpg\")){\n\t\t\tcontentType = \"image/jpeg\";\n\t\t}else if(name.endsWith(\".png\")){\n\t\t\tcontentType = \"image/png\";\n\t\t}\n\t\treturn contentType;\n\t}",
"MimeType mediaType();",
"String getEncoding();",
"public static String guessAppropriateEncoding(CharSequence contents) {\n for (int i = 0; i < contents.length(); i++) {\n if (contents.charAt(i) > 0xFF) {\n return \"UTF-8\";\n }\n }\n return null;\n }",
"public static String getCompression(HttpServletRequest req) {\n String encoding = req.getHeader(HttpHeaders.ACCEPT_ENCODING);\n if (null != encoding) {\n if (BaseFileServlet.GZIP_PATTERN.matcher(encoding).find()) {\n return \"gzip\";\n //} else if (BR_PATTERN.matcher(encoding).find()) {\n // return \"br\";\n }\n }\n return \"none\";\n }",
"public String getContentType();",
"public String getContentType();",
"public String getContenttype() {\n return contenttype;\n }",
"public String getContenttype() {\n return contenttype;\n }",
"com.google.protobuf.ByteString getMimeTypeBytes();",
"private String getContentType(String sHTTPRequest) {\n String sContentType = \"Content-Type: \";\n\n // update based on file extension or if response starts with HTML/URL\n String sFileExtension = getFileExtension(sHTTPRequest);\n if (sFileExtension.equalsIgnoreCase(\".html\") || sFileExtension.equalsIgnoreCase(\".htm\")) {\n sContentType += \"text/html\";\n } else if (sFileExtension.equalsIgnoreCase(\".txt\")) {\n sContentType += \"text/plain\";\n } else if (sFileExtension.equalsIgnoreCase(\".pdf\")) {\n sContentType += \"application/pdf\";\n } else if (sFileExtension.equalsIgnoreCase(\".png\")) {\n sContentType += \"image/png\";\n } else if (sFileExtension.equalsIgnoreCase(\".jpeg\") || sFileExtension.equalsIgnoreCase(\".jpg\")) {\n sContentType += \"image/jpeg\";\n } else {\n sContentType += \"text/html\"; // default response\n }\n\n // return final content type\n return sContentType;\n }",
"public static String getContentEncoding(URL url) throws IOException {\n String encoding = null;\n HttpURLConnection conn = null;\n try {\n conn = (HttpURLConnection) url.openConnection();\n encoding = conn.getContentEncoding();\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n return encoding;\n }",
"public String getContentType() {\n return getProperty(Property.CONTENT_TYPE);\n }",
"public static String getMimeTypeWithParameters(ContentType contentType) {\r\n\t\tSimpleStringBuilder retval = Toolkit.getInstance().createSimpleStringBuilder();\r\n\t\tretval.append(contentType.getType());\r\n\t\tretval.append(MIMEConstants.SEPARATOR);\r\n\t\tretval.append(contentType.getSubtype());\r\n\r\n\t\tIterator iter = contentType.getParameterEntries();\r\n\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tEntry entry = (Entry) iter.next();\r\n\t\t\tretval.append(\";\").append(entry.getKey()).append('=').append(entry.getValue());\r\n\t\t}\r\n\r\n\t\treturn retval.toString();\r\n\t}",
"public String getDeclaredEncoding();",
"public void setCharset(String string) {\n\t\t\r\n\t}",
"public static ContentType parseFromString(String s)\n\t{\n\t\tfor (ContentType type : values())\n\t\t{\n\t\t\tif (type.toString().equalsIgnoreCase(s))\n\t\t\t\treturn type;\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"java.lang.String getMimeType();",
"java.lang.String getMimeType();",
"@Override\n\tpublic String getContentType()\n\t{\n\t\treturn contentType;\n\t}",
"public String getDefaultCharset() {\n return this.charset;\n }",
"public String getContentType() {\n return contentType;\n }",
"public String getTransferEncodingHeaderValue() {\n return transferEncodingHeaderValue;\n }",
"public java.lang.String getContentType() {\n return contentType;\n }",
"String getContentType(String fileExtension);",
"public String getContenttype() {\n\t\treturn contenttype;\n\t}",
"private static byte[] getWriteBytes(String contentType) {\n \treturn contentType.startsWith(\"text\") ? (contentType+\"; charset=UTF-8\").getBytes() : contentType.getBytes();\n }",
"int getContentTypeValue();",
"public String getContentType(String arg0) {\n\t\treturn null;\n\t}",
"public String getContentEncoding() {\n return contentEncoding;\n }",
"protected JsonEncoding getJsonEncoding(MediaType contentType)\n/* */ {\n/* 401 */ if ((contentType != null) && (contentType.getCharset() != null)) {\n/* 402 */ Charset charset = contentType.getCharset();\n/* 403 */ for (JsonEncoding encoding : JsonEncoding.values()) {\n/* 404 */ if (charset.name().equals(encoding.getJavaName())) {\n/* 405 */ return encoding;\n/* */ }\n/* */ }\n/* */ }\n/* 409 */ return JsonEncoding.UTF8;\n/* */ }",
"public abstract String[] getMimeHeader(String name);",
"private static String contentType(String fileName) {\n\t\tif (fileName.endsWith(\".txt\") || fileName.endsWith(\".html\")) {\n\t\t\treturn \"text/html\";\n\t\t}\n\t\tif (fileName.endsWith(\".jpg\") || fileName.endsWith(\".jpeg\")) {\n\t\t\treturn \"image/jpeg\";\n\t\t}\n\t\tif (fileName.endsWith(\".gif\")) {\n\t\t\treturn \"image/gif\";\n\t\t}\n\t\treturn \"application/octet-stream\";\n\t}",
"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}",
"private HTTPHeaderEntry extractHeader(String headerStr) {\n \n \t\tHTTPHeaderEntry headerEntry = null;\n \t\tString[] each = headerStr.split( \": \" );\n \t\tif ( each[0].equals( HeaderEntry.CONTENT_TYPE.toString() ) ) {\n \t\t\theaderEntry = new HTTPHeaderEntry( HeaderEntry.CONTENT_TYPE, each[1] );\n \t\t}\n \t\telse if ( each[0].equals( HeaderEntry.DATE.toString() ) ) {\n \t\t\theaderEntry = new HTTPHeaderEntry( HeaderEntry.DATE, each[1] );\n \t\t}\n \t\telse if ( each[0].equals( ResponseHeaderEntry.CONTENT_LENGTH.toString() ) ) {\n \t\t\theaderEntry = new HTTPHeaderEntry( ResponseHeaderEntry.CONTENT_LENGTH, Integer.parseInt( each[1] ) );\n \t\t}\n \n \t\theader.add( headerEntry );\n \t\treturn headerEntry;\n \t}",
"public String getContentType() {\n return contentType;\n }",
"public String getContentType() {\n return contentType;\n }",
"public String getContentType() {\n return contentType;\n }"
]
| [
"0.68495625",
"0.684764",
"0.6826058",
"0.68137664",
"0.6788925",
"0.64847094",
"0.6444008",
"0.6428893",
"0.63593185",
"0.62809604",
"0.6175975",
"0.60766435",
"0.6031301",
"0.59966373",
"0.59722227",
"0.5954671",
"0.5877937",
"0.58028084",
"0.5771238",
"0.57449967",
"0.5683261",
"0.56178534",
"0.56120276",
"0.5611774",
"0.55440754",
"0.5539955",
"0.55212253",
"0.5504829",
"0.5496243",
"0.5424886",
"0.5413396",
"0.53997",
"0.5389565",
"0.53868115",
"0.5380169",
"0.5319293",
"0.53120893",
"0.53114",
"0.5305777",
"0.5305777",
"0.5305777",
"0.52975756",
"0.5288408",
"0.5262711",
"0.52458996",
"0.52358687",
"0.5218055",
"0.5210792",
"0.519795",
"0.51951635",
"0.51752776",
"0.5145588",
"0.51274186",
"0.51098615",
"0.51048064",
"0.5077974",
"0.5077974",
"0.5074409",
"0.5064264",
"0.5043101",
"0.4997834",
"0.49604893",
"0.4960021",
"0.4932121",
"0.49014863",
"0.4900461",
"0.48988393",
"0.48985085",
"0.48985085",
"0.48970458",
"0.48970458",
"0.48822832",
"0.48726293",
"0.4868979",
"0.4868738",
"0.48602435",
"0.48494935",
"0.4839735",
"0.48369062",
"0.48346156",
"0.48346156",
"0.4832273",
"0.48267728",
"0.482473",
"0.48240745",
"0.4823934",
"0.48222804",
"0.4821403",
"0.4820575",
"0.48195842",
"0.48168075",
"0.48158446",
"0.47992647",
"0.4747989",
"0.47398025",
"0.47395837",
"0.4737292",
"0.47308466",
"0.47308466",
"0.47308466"
]
| 0.70109594 | 0 |
Construtor padrao da Janela. Define a fonte do visor como monospaced, cria os 4 botoes em um GridLayout, adicionando o tratadorDeMouse a eles; inicialmente, o botao de executar labirinto e desabilitado; adiciona a area de log na parte sul do BorderLayout da janela, restringindo sua edicao; adiciona uma JLabel que auxilia o usuario, indicando as acoes que ele pode realizar; adiciona barra de scroll ao visor. | public Janela() {
visor.setFont(new Font("monospaced", Font.PLAIN, 12));
JPanel botoes = new JPanel();
JPanel novol = new JPanel();
//grid botoes
botoes.setLayout(new GridLayout(1, 4));
//texto botoes
String texto[] = {"Novo labirinto", "Abrir labirinto", "Salvar labirinto", "Executar labirinto"};
TratadoraDeMouse tratadorDeMouse = new TratadoraDeMouse();
//criacao dos botoes
for (int i = 0; i < this.botao.length; i++) {
this.botao[i] = new JButton(texto[i]);
this.botao[i].setActionCommand(texto[i]);
this.botao[i].addActionListener(tratadorDeMouse);
//cor no botao
this.botao[i].setContentAreaFilled(false);
this.botao[i].setOpaque(true);
this.botao[i].setBackground(new java.awt.Color(166, 255, 193));
//fonte do botao
this.botao[i].setForeground(new java.awt.Color(0, 0, 0));
botoes.add(this.botao[i]);
}
botao[3].setEnabled(false);
//Area do log
log.setEditable(false);
log.setForeground(Color.red);
log.setFont(log.getFont().deriveFont(Font.BOLD));
log.setLineWrap(true);
log.setWrapStyleWord(true);
log.setBackground(new java.awt.Color(212, 212, 212));
//interface
JFrame janela = new JFrame("Labirinto");
janela.setSize(700, 450);
janela.getContentPane().setLayout(new BorderLayout());
//Definindo localizacao
janela.add(novol, BorderLayout.NORTH);
novol.setLayout(new BorderLayout());
novol.add(this.info, BorderLayout.NORTH);
novol.add(botoes, BorderLayout.CENTER);
janela.add(this.visor, BorderLayout.CENTER);
janela.add(this.log, BorderLayout.SOUTH);
JScrollPane scroll = new JScrollPane(visor);
scroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
janela.getContentPane().add(scroll);
janela.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
janela.setVisible(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PanelJuego() {\r\n\t\tsetLayout(new GridLayout(3, 3, 20, 20));// Se crea una matriz 3x3 con un\r\n\t\t\t\t\t\t\t\t\t\t\t\t// espaciado tanto horizontal\r\n\t\t\t\t\t\t\t\t\t\t\t\t// como vertical.\r\n\t\tposicion = new JTextField[9];\r\n\t\tllenarPanel();\r\n\t\tsetBackground(Color.BLACK);// Se pinta el fondo de negro.\r\n\t\tsetVisible(true);\r\n\t}",
"public Ventana() {\n initComponents();\n this.tipos.add(GD_C);\n this.tipos.add(GD_S);\n this.tipos.add(GND_C);\n this.tipos.add(GND_S);\n this.panel.setArea_text(text);\n\n }",
"public InterfazdelJuego() {\n super(\"Batalla de acorazados 1.0\");\n initComponents();\n stickers=new JLabel[10][10];\n setLocationRelativeTo(null);\n llenarMapa();\n cajaDeTexto.setBackground(Color.BLACK);\n cajaDeTexto.setForeground(Color.CYAN);\n \n \n }",
"private void geometry()\n\t\t{\n\t\tjLabelNickName = new JLabel(\"Pseudo: \");\n\t\tjLabelPort = new JLabel(\"Port: \");\n\t\tjNickname = new JTextField();\n\t\tjIPLabel = new JIPLabel();\n\t\tjIP = new JTextField();\n\t\tjPort = new JSpinner();\n\t\tjButtonConnection = new JButton(\"Connexion\");\n\n\t\tthis.setLayout(new GridLayout(-1, 1));\n\n\t\tthis.add(jLabelNickName);\n\t\tthis.add(jNickname);\n\t\tthis.add(jIPLabel);\n\t\tthis.add(jIP);\n\t\tthis.add(jLabelPort);\n\t\tthis.add(jPort);\n\t\tthis.add(Box.createVerticalStrut(SPACE));\n\t\tthis.add(jButtonConnection);\n\t\tthis.add(Box.createVerticalGlue());\n\t\t}",
"Juego(){\r\n\r\n GridLayout layout = new GridLayout(1,2);\r\n\tsetLayout(layout);\r\n\t\t\r\n\t// Creacion del tablero del contrincante (computadora)\t\r\n\t\r\n t_contrincante = new Tablero(false);\r\n\tadd(t_contrincante);\r\n\t\t\t\t\r\n\t// Creacion del tablero del jugador\r\n\t\t\t\t\r\n t_jugador = new Tablero(true);\r\n\tadd(t_jugador);\r\n }",
"public void crearVentana3(){\n \n marco = new JFrame(\"ventana\");\n panel = new JPanel();\n boton = new JButton(\"boton 1\");\n boton2 = new JButton(\"boton 2\");\n etiqueta = new JLabel(\"\");\n liTexto = new JTextField(30);\n \n \n //le damos caracteristicas a a los componentes\n marco.setSize(900, 500);\n panel.setSize(800, 400);\n panel.setBackground(Color.cyan);\n etiqueta.setText(\"Nome\");\n \n etiqueta.setBounds(50, 100, 50, 10);\n \n liTexto.setBounds(100, 100, 300, 20);\n liTexto.setText(\"Nombre?\");\n \n boton.setBounds(200, 300, 100, 50);\n boton2.setBounds(400, 300, 100,50);\n \n\n \n panel.setLayout(null);\n \n\n //engadimos os componenetes\n panel.add(etiqueta);\n panel.add(liTexto);\n panel.add(boton);\n panel.add(boton2);\n marco.add(panel);\n \n \n marco.setVisible(true);\n marco.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setTitle(\"..:FSO-TP1:..\");\n\t\tframe.setResizable(false);\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 658, 585);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.setLocationRelativeTo(null);\n\n\t\tJPanel panelConeccao = new JPanel();\n\t\tpanelConeccao.setBorder(\n\t\t\t\tnew TitledBorder(null, \"CONEC\\u00C7\\u00C3O\", TitledBorder.LEFT, TitledBorder.TOP, null, Color.WHITE));\n\t\tpanelConeccao.setBackground(Color.BLACK);\n\t\tpanelConeccao.setBounds(10, 10, 630, 79);\n\t\tframe.getContentPane().add(panelConeccao);\n\t\tpanelConeccao.setLayout(null);\n\n\t\tJLabel lblNomeRobot = new JLabel(\"Nome\");\n\t\tlblNomeRobot.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblNomeRobot.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tlblNomeRobot.setForeground(Color.WHITE);\n\t\tlblNomeRobot.setBounds(53, 22, 47, 40);\n\t\tpanelConeccao.add(lblNomeRobot);\n\n\t\ttxtNomeRobot = new JTextField();\n\t\ttxtNomeRobot.addFocusListener(new FocusAdapter() {\n\t\t\t@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\tname = txtNomeRobot.getText();\n\t\t\t\tif (name.length() > 0) {\n\t\t\t\t\ttxtNomeRobot.setBackground(Color.WHITE);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttxtNomeRobot.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif (e.getKeyChar() == KeyEvent.VK_ENTER) {\n\t\t\t\t\tname = txtNomeRobot.getText();\n\t\t\t\t\tif (name.length() > 0) {\n\t\t\t\t\t\ttxtNomeRobot.setBackground(Color.WHITE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttxtNomeRobot.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtNomeRobot.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\n\t\ttxtNomeRobot.setBounds(110, 32, 226, 21);\n\t\tpanelConeccao.add(txtNomeRobot);\n\t\ttxtNomeRobot.setColumns(10);\n\n\t\tbtnConectar = new JButton(\"Ligar\");\n\t\tbtnConectar.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tconnectRobot();\n\t\t\t\t} catch (InterruptedException e1) {\n\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnConectar.setToolTipText(\"Ligar Gestor\");\n\t\tbtnConectar.setEnabled(true);\n\t\tbtnConectar.setFont(new Font(\"Tahoma\", Font.PLAIN, 10));\n\t\tbtnConectar.setBounds(471, 31, 112, 19);\n\t\tpanelConeccao.add(btnConectar);\n\n\t\tlblConectado = new JLabel(\"\");\n\t\tlblConectado.setBackground(Color.RED);\n\t\tlblConectado.setOpaque(true);\n\t\tlblConectado.setForeground(Color.RED);\n\t\tlblConectado.setBounds(471, 52, 112, 3);\n\t\tpanelConeccao.add(lblConectado);\n\n\t\tJPanel panelRobot = new JPanel();\n\t\tpanelRobot.setBorder(new TitledBorder(\n\t\t\t\tnew EtchedBorder(EtchedBorder.LOWERED, new Color(255, 255, 255), new Color(160, 160, 160)), \"ROBOT\",\n\t\t\t\tTitledBorder.LEFT, TitledBorder.TOP, null, new Color(255, 255, 255)));\n\t\tpanelRobot.setBackground(Color.BLACK);\n\t\tpanelRobot.setBounds(10, 99, 630, 214);\n\t\tframe.getContentPane().add(panelRobot);\n\t\tpanelRobot.setLayout(null);\n\n\t\tJLabel lblDistancia = new JLabel(\"Dist\\u00E2ncia\");\n\t\tlblDistancia.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblDistancia.setForeground(Color.WHITE);\n\t\tlblDistancia.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tlblDistancia.setBounds(10, 33, 60, 50);\n\t\tpanelRobot.add(lblDistancia);\n\n\t\tJLabel lblAngulo = new JLabel(\"\\u00C2ngulo\");\n\t\tlblAngulo.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblAngulo.setForeground(Color.WHITE);\n\t\tlblAngulo.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tlblAngulo.setBounds(10, 93, 60, 50);\n\t\tpanelRobot.add(lblAngulo);\n\n\t\tJLabel lblRaio = new JLabel(\"Raio\");\n\t\tlblRaio.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tlblRaio.setForeground(Color.WHITE);\n\t\tlblRaio.setBounds(10, 153, 60, 50);\n\t\tpanelRobot.add(lblRaio);\n\n\t\ttxtDistance = new JTextField();\n\t\ttxtDistance.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtDistance.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\n\t\ttxtDistance.setBounds(80, 49, 76, 19);\n\t\tpanelRobot.add(txtDistance);\n\t\ttxtDistance.setColumns(10);\n\n\t\ttxtAngle = new JTextField();\n\t\ttxtAngle.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\n\t\ttxtAngle.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtAngle.setBounds(80, 111, 76, 19);\n\t\tpanelRobot.add(txtAngle);\n\t\ttxtAngle.setColumns(10);\n\n\t\ttxtRadius = new JTextField();\n\t\ttxtRadius.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\n\t\ttxtRadius.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtRadius.setBounds(80, 171, 76, 19);\n\t\tpanelRobot.add(txtRadius);\n\t\ttxtRadius.setColumns(10);\n\n\t\tJButton btnAvancar = new JButton(\"Avan\\u00E7ar\");\n\t\tbtnAvancar.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdistance = Integer.parseInt(txtDistance.getText());\n\t\t\t\tmove(false);\n\t\t\t}\n\t\t});\n\t\tbtnAvancar.setFont(new Font(\"Tahoma\", Font.PLAIN, 10));\n\t\tbtnAvancar.setBounds(272, 44, 76, 32);\n\t\tpanelRobot.add(btnAvancar);\n\n\t\tJButton btnParar = new JButton(\"Parar\");\n\t\tbtnParar.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tstopMove();\n\t\t\t}\n\t\t});\n\t\tbtnParar.setFont(new Font(\"Tahoma\", Font.PLAIN, 10));\n\t\tbtnParar.setBounds(272, 104, 76, 32);\n\t\tpanelRobot.add(btnParar);\n\n\t\tJButton btnRecuar = new JButton(\"Recuar\");\n\t\tbtnRecuar.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tdistance = Integer.parseInt(txtDistance.getText());\n\t\t\t\tmove(true);\n\t\t\t}\n\t\t});\n\t\tbtnRecuar.setFont(new Font(\"Tahoma\", Font.PLAIN, 10));\n\n\t\tbtnRecuar.setBounds(272, 164, 76, 32);\n\t\tpanelRobot.add(btnRecuar);\n\n\t\tJButton btnEsquerda = new JButton(\"Esquerda\");\n\t\tbtnEsquerda.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tradius = Integer.parseInt(txtRadius.getText());\n\t\t\t\tangle = Integer.parseInt(txtAngle.getText());\n\t\t\t\tturn(false);\n\t\t\t}\n\t\t});\n\t\tbtnEsquerda.setFont(new Font(\"Tahoma\", Font.PLAIN, 10));\n\t\tbtnEsquerda.setBounds(173, 104, 76, 32);\n\t\tpanelRobot.add(btnEsquerda);\n\n\t\tJButton btnDireita = new JButton(\"Direita\");\n\t\tbtnDireita.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tradius = Integer.parseInt(txtRadius.getText());\n\t\t\t\tangle = Integer.parseInt(txtAngle.getText());\n\t\t\t\tturn(true);\n\t\t\t}\n\t\t});\n\t\tbtnDireita.setFont(new Font(\"Tahoma\", Font.PLAIN, 10));\n\t\tbtnDireita.setBounds(371, 104, 76, 32);\n\t\tpanelRobot.add(btnDireita);\n\n\t\tJLabel lblOffsetEsq = new JLabel(\"Offset Esquerdo\");\n\t\tlblOffsetEsq.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblOffsetEsq.setForeground(Color.WHITE);\n\t\tlblOffsetEsq.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tlblOffsetEsq.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblOffsetEsq.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\n\t\tlblOffsetEsq.setBounds(155, 20, 113, 19);\n\t\tpanelRobot.add(lblOffsetEsq);\n\n\t\ttxtOffsetLeft = new JTextField();\n\t\ttxtOffsetLeft.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtOffsetLeft.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\n\t\ttxtOffsetLeft.setBounds(173, 49, 76, 19);\n\t\tpanelRobot.add(txtOffsetLeft);\n\t\ttxtOffsetLeft.setColumns(10);\n\n\t\ttxtOffsetRight = new JTextField();\n\t\ttxtOffsetRight.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtOffsetRight.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\n\t\ttxtOffsetRight.setBounds(371, 49, 76, 19);\n\t\tpanelRobot.add(txtOffsetRight);\n\t\ttxtOffsetRight.setColumns(10);\n\n\t\tJLabel lblOffsetDrt = new JLabel(\"Offset Direito\");\n\t\tlblOffsetDrt.setForeground(Color.WHITE);\n\t\tlblOffsetDrt.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tlblOffsetDrt.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblOffsetDrt.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblOffsetDrt.setBounds(359, 20, 95, 19);\n\t\tpanelRobot.add(lblOffsetDrt);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setForeground(Color.WHITE);\n\t\tpanel.setBackground(Color.BLACK);\n\t\tpanel.setBorder(new TitledBorder(UIManager.getBorder(\"TitledBorder.border\"), \"Comportamentos\",\n\t\t\t\tTitledBorder.LEADING, TitledBorder.TOP, null, new Color(255, 255, 255)));\n\t\tpanel.setBounds(464, 33, 145, 153);\n\t\tpanelRobot.add(panel);\n\t\tpanel.setLayout(null);\n\n\t\tchckbxEvitar = new JCheckBox(\"Evitar\");\n\t\tchckbxEvitar.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif (chckbxEvitar.isSelected() && robotOn) {\n\t\t\t\t\tevitar.Start();\n\t\t\t\t} else {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tevitar.Stop();\n\t\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tchckbxEvitar.setBounds(6, 68, 81, 21);\n\t\tpanel.add(chckbxEvitar);\n\t\tchckbxEvitar.setEnabled(true);\n\t\tchckbxEvitar.setForeground(Color.WHITE);\n\t\tchckbxEvitar.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tchckbxEvitar.setBackground(Color.BLACK);\n\n\t\tchckbxVaguear = new JCheckBox(\"Vaguear\");\n\t\tchckbxVaguear.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif (chckbxVaguear.isSelected() && robotOn) {\n\t\t\t\t\tvaguear.Start();\n\t\t\t\t\tvaguear.setIsRunning(true);\n\t\t\t\t} else {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tvaguear.Stop();\n\t\t\t\t\t\tvaguear.setIsRunning(false);\n\t\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t\tchckbxVaguear.setBounds(6, 33, 81, 21);\n\t\tpanel.add(chckbxVaguear);\n\t\tchckbxVaguear.setEnabled(true);\n\t\tchckbxVaguear.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tchckbxVaguear.setForeground(Color.WHITE);\n\t\tchckbxVaguear.setBackground(Color.BLACK);\n\n\t\tchckbxFugir = new JCheckBox(\"Fugir\");\n\t\tchckbxFugir.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif (chckbxFugir.isSelected() && robotOn) {\n\t\t\t\t\tfugir.Start();\n\t\t\t\t} else {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfugir.Stop();\n\t\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tchckbxFugir.setBounds(6, 105, 81, 21);\n\t\tpanel.add(chckbxFugir);\n\t\tchckbxFugir.setForeground(Color.WHITE);\n\t\tchckbxFugir.setBackground(Color.BLACK);\n\t\tchckbxFugir.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\n\t\tJPanel panelLogging = new JPanel();\n\t\tpanelLogging\n\t\t\t\t.setBorder(new TitledBorder(null, \"LOGGING\", TitledBorder.LEFT, TitledBorder.TOP, null, Color.WHITE));\n\t\tpanelLogging.setBackground(Color.BLACK);\n\t\tpanelLogging.setBounds(10, 323, 630, 228);\n\t\tframe.getContentPane().add(panelLogging);\n\t\tpanelLogging.setLayout(null);\n\n\t\tchckbxCheckLogging = new JCheckBox(\"Ativar Logger\");\n\t\tchckbxCheckLogging.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif (chckbxCheckLogging.isSelected()) {\n\t\t\t\t\ttxtrLogging.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\ttxtrLogging.setEnabled(false);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tchckbxCheckLogging.setSelected(true);\n\t\tchckbxCheckLogging.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tchckbxCheckLogging.setForeground(Color.WHITE);\n\t\tchckbxCheckLogging.setBackground(Color.BLACK);\n\t\tchckbxCheckLogging.setBounds(6, 17, 157, 27);\n\t\tpanelLogging.add(chckbxCheckLogging);\n\n\t\tJButton btnClearLogging = new JButton(\"Limpar Logger\");\n\t\tbtnClearLogging.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tclearLog();\n\t\t\t}\n\t\t});\n\t\tbtnClearLogging.setFont(new Font(\"Tahoma\", Font.PLAIN, 10));\n\t\tbtnClearLogging.setBounds(510, 22, 110, 21);\n\t\tpanelLogging.add(btnClearLogging);\n\n\t\tJScrollPane spLogging = new JScrollPane();\n\t\tspLogging.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tspLogging.setBackground(Color.BLACK);\n\t\tspLogging.setBounds(10, 50, 610, 168);\n\t\tpanelLogging.add(spLogging);\n\n\t\ttxtrLogging = new JTextArea();\n\t\ttxtrLogging.setEditable(false);\n\t\ttxtrLogging.setLineWrap(true);\n\t\tspLogging.setViewportView(txtrLogging);\n\t}",
"private void initCom() {\n lbNome = new JLabel(\"Nome: \");\n lbSenha = new JLabel(\"Senha: \");\n txNome = new JTextField();\n txSenha = new JTextField();\n layout = new GridBagLayout();\n panelFormulario = new JPanel(layout);\n\n }",
"public TelaJogos() {\n initComponents();\n setSize(1018,768);\n \n }",
"private void init(){\n panel_principal = new JPanel();\r\n panel_principal.setLayout(new BorderLayout());\r\n //EN EL NORTE IRA LA CAJA DE TEXTO\r\n caja = new JTextField();\r\n panel_principal.add(\"North\",caja);\r\n //EN EL CENTRO IRA EL PANEL DE BOTONES\r\n panel_botones = new JPanel();\r\n //El GRIDLAYOUT RECIBE COMO PARAMETROS:\r\n //FILAS,COLUMNAS ESPACIADO ENTRE FILAS,\r\n //ESPACIADO ENTRE COLUMNAS\r\n panel_botones.setLayout(new GridLayout(5,4,8,8));\r\n agregarBotones();\r\n panel_principal.add(\"Center\",panel_botones);\r\n //AGREGAMOS TODO EL CONTENIDO QUE ACABAMOS DE HACER EN\r\n //PANEL_PRINCIPAL A EL PANEL DEL FORMULARIO\r\n getContentPane().add(panel_principal);\r\n\r\n }",
"public VistaCrearEmpleado() {\n\t\tsetClosable(true);\n\t\tsetFrameIcon(new ImageIcon(VistaCrearEmpleado.class.getResource(\"/com/mordor/mordorLloguer/recursos/account_circle24dp.png\")));\n\t\tsetBounds(100, 100, 467, 435);\n\t\tgetContentPane().setLayout(new MigLayout(\"\", \"[152px][235px]\", \"[19px][19px][19px][19px][19px][19px][45px][24px][19px][25px]\"));\n\t\t\n\t\tJLabel lblDni = new JLabel(\"DNI: \");\n\t\tgetContentPane().add(lblDni, \"cell 0 0,growx,aligny center\");\n\t\t\n\t\ttxtDNI = new JTextField();\n\t\tgetContentPane().add(txtDNI, \"cell 1 0,growx,aligny top\");\n\t\ttxtDNI.setColumns(10);\n\t\t\n\t\tJLabel lblNombre = new JLabel(\"Nombre: \");\n\t\tgetContentPane().add(lblNombre, \"cell 0 1,growx,aligny center\");\n\t\t\n\t\ttxtNombre = new JTextField();\n\t\tgetContentPane().add(txtNombre, \"cell 1 1,growx,aligny top\");\n\t\ttxtNombre.setColumns(10);\n\t\t\n\t\tJLabel lblApellidos = new JLabel(\"Apellidos: \");\n\t\tgetContentPane().add(lblApellidos, \"cell 0 2,growx,aligny center\");\n\t\t\n\t\ttxtApellidos = new JTextField();\n\t\tgetContentPane().add(txtApellidos, \"cell 1 2,growx,aligny top\");\n\t\ttxtApellidos.setColumns(10);\n\t\t\n\t\tJLabel lblDomicilio = new JLabel(\"Domicilio:\");\n\t\tgetContentPane().add(lblDomicilio, \"cell 0 3,growx,aligny center\");\n\t\t\n\t\ttxtDomicilio = new JTextField();\n\t\tgetContentPane().add(txtDomicilio, \"cell 1 3,growx,aligny top\");\n\t\ttxtDomicilio.setColumns(10);\n\t\t\n\t\tJLabel lblCp = new JLabel(\"CP:\");\n\t\tgetContentPane().add(lblCp, \"cell 0 4,growx,aligny center\");\n\t\t\n\t\ttxtCp = new JTextField();\n\t\tgetContentPane().add(txtCp, \"cell 1 4,growx,aligny top\");\n\t\ttxtCp.setColumns(10);\n\t\t\n\t\tJLabel lblEmail = new JLabel(\"Email:\");\n\t\tgetContentPane().add(lblEmail, \"cell 0 5,growx,aligny center\");\n\t\t\n\t\ttxtEmail = new JTextField();\n\t\tgetContentPane().add(txtEmail, \"cell 1 5,growx,aligny top\");\n\t\ttxtEmail.setColumns(10);\n\t\t\n\t\tJLabel lblFechaDeNacimiento = new JLabel(\"Fecha de Nacimiento:\");\n\t\tgetContentPane().add(lblFechaDeNacimiento, \"cell 0 6,alignx left,aligny center\");\n\t\t\n\t\ttxtDate = new WebDateField();\n\t\tgetContentPane().add(txtDate, \"cell 1 6,growx,aligny top\");\n\t\t\n\t\tJLabel lblCargo = new JLabel(\"Cargo:\");\n\t\tgetContentPane().add(lblCargo, \"cell 0 7,growx,aligny center\");\n\t\t\n\t\tcomboBoxCargo= new JComboBox<String> ();\n\t\tgetContentPane().add(comboBoxCargo, \"cell 1 7,growx,aligny top\");\n\t\t\n\t\tJLabel lblContrasea = new JLabel(\"Contraseña:\");\n\t\tgetContentPane().add(lblContrasea, \"cell 0 8,growx,aligny center\");\n\t\t\n\t\tpasswordField = new JPasswordField();\n\t\tgetContentPane().add(passwordField, \"cell 1 8,growx,aligny top\");\n\t\t\n\t\tbtnAdd = new JButton(\"Add\");\n\t\tgetContentPane().add(btnAdd, \"cell 0 9,growx,aligny top\");\n\t\t\n\t\tbtnCancel = new JButton(\"Cancel\");\n\t\tbtnCancel.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tgetContentPane().add(btnCancel, \"cell 1 9,growx,aligny top\");\n\n\t}",
"private void configuraTela() {\n\n Container container = getContentPane();\n container.setLayout(new GridBagLayout());\n\n //Configuracao constraints\n this.constraints = new GridBagConstraints();\n constraints.fill = GridBagConstraints.CENTER;\n constraints.insets = new Insets(10, 0, 0, 0);\n constraints.gridx = 0;\n constraints.gridy = 1;\n\n //Configuracao lbNome\n lbNome = new JLabel(Constantes.GERENCIAR_FUNCIONARIO_NOME);\n\n //Configuracao tfNome\n tfNome = new JTextField(25);\n\n //Configuracao painelNome\n this.painelNome = new JPanel();\n painelNome.setLayout(new BoxLayout(painelNome, BoxLayout.LINE_AXIS));\n this.painelNome.setVisible(true);\n painelNome.add(lbNome);\n painelNome.add(tfNome);\n\n //Configuracao lbMatricula\n lbMatricula = new JLabel(Constantes.GERENCIAR_FUNCIONARIO_MATRICULA);\n\n //Configuracao tfMatricula\n tfMatricula = new JTextField(23);\n\n //Configuracao painelMatricula\n this.painelMatricula = new JPanel();\n painelMatricula.setLayout(new BoxLayout(painelMatricula, BoxLayout.LINE_AXIS));\n this.painelMatricula.setVisible(true);\n painelMatricula.add(lbMatricula);\n painelMatricula.add(tfMatricula);\n\n //Configuracao lbDataNascimento\n lbDataNascimento = new JLabel(Constantes.GERENCIAR_FUNCIONARIO_DATA_NASCIMENTO);\n\n //Configuracao tfDataNascimento\n tfDataNascimento = new JTextField(18);\n\n //Configuracao painelDataNascimento\n this.painelDataNascimento = new JPanel();\n painelDataNascimento.setLayout(new BoxLayout(painelDataNascimento, BoxLayout.LINE_AXIS));\n this.painelDataNascimento.setVisible(true);\n painelDataNascimento.add(lbDataNascimento);\n painelDataNascimento.add(tfDataNascimento);\n\n //Configuracao lbFormatoDataNascimento\n lbFormatoDataNascimento = new JLabel(Constantes.GERENCIAR_FUNCIONARIO_FORMATO_DATA_NASCIMENTO);\n\n //Configuracao painelFormatoDataNascimento\n this.painelFormatoDataNascimento = new JPanel();\n painelFormatoDataNascimento.setLayout(new BoxLayout(painelFormatoDataNascimento, BoxLayout.LINE_AXIS));\n this.painelFormatoDataNascimento.setVisible(true);\n painelFormatoDataNascimento.add(lbFormatoDataNascimento);\n\n //Configuracao lbTelefone\n lbTelefone = new JLabel(Constantes.GERENCIAR_FUNCIONARIO_TELEFONE);\n\n //Configuracao tfTelefone\n tfTelefone = new JTextField(24);\n\n //Configuracao painelTelefone\n this.painelTelefone = new JPanel();\n painelTelefone.setLayout(new BoxLayout(painelTelefone, BoxLayout.LINE_AXIS));\n this.painelTelefone.setVisible(true);\n painelTelefone.add(lbTelefone);\n painelTelefone.add(tfTelefone);\n\n // Configuracao lbSalario\n lbSalario = new JLabel(Constantes.GERENCIAR_FUNCIONARIO_SALARIO);\n\n //Configuracao tfSalario\n tfSalario = new JTextField(25);\n\n //Configuracao painelSalario\n this.painelSalario = new JPanel();\n painelSalario.setLayout(new BoxLayout(painelSalario, BoxLayout.LINE_AXIS));\n this.painelSalario.setVisible(true);\n painelSalario.add(lbSalario);\n painelSalario.add(tfSalario);\n\n //Configuracao comboCargos\n this.cargos = new ArrayList<>();\n this.cargosNomes = new ArrayList<>();\n comboCargos = new JComboBox(cargosNomes.toArray());\n\n //Configuracao painelCargo\n this.painelCargo = new JPanel();\n painelCargo.setLayout(new BoxLayout(painelCargo, BoxLayout.LINE_AXIS));\n this.painelCargo.setVisible(true);\n painelCargo.add(comboCargos);\n\n //Configura btCancelar\n btCancelar = new JButton();\n btCancelar.setText(Constantes.COMUM_BOTAO_CANCELAR);\n btCancelar.addActionListener(btManager);\n\n //Configura btCadastrar\n btCadastrar = new JButton();\n btCadastrar.setText(Constantes.COMUM_BOTAO_CADASTRAR);\n btCadastrar.addActionListener(btManager);\n container.add(btCadastrar);\n\n //Configuracao painelBotoes\n painelBotoes = new JPanel();\n painelBotoes.setLayout(new BoxLayout(painelBotoes, BoxLayout.LINE_AXIS));\n this.painelBotoes.setVisible(true);\n painelBotoes.add(btCancelar);\n painelBotoes.add(btCadastrar);\n\n //Configuracao painelPrincipal\n painelPrincipal = new JPanel();\n painelPrincipal.setLayout(new GridBagLayout());\n painelPrincipal.setVisible(true);\n painelPrincipal.add(painelNome);\n constraints.gridy = 2;\n painelPrincipal.add(painelMatricula, constraints);\n constraints.gridy = 3;\n painelPrincipal.add(painelDataNascimento, constraints);\n constraints.gridy = 4;\n painelPrincipal.add(painelFormatoDataNascimento, constraints);\n constraints.gridy = 5;\n painelPrincipal.add(painelTelefone, constraints);\n constraints.gridy = 6;\n painelPrincipal.add(painelSalario, constraints);\n constraints.gridy = 7;\n painelPrincipal.add(painelCargo, constraints);\n constraints.gridy = 8;\n painelPrincipal.add(painelBotoes, constraints);\n constraints.gridy = 9;\n\n container.add(painelPrincipal, constraints);\n\n setSize(550, 350);\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\"> \n private void initComponents() {\n\n painel_Campo = new javax.swing.JPanel();\n bloco_0_0 = new javax.swing.JLabel();\n bloco_0_1 = new javax.swing.JLabel();\n bloco_0_2 = new javax.swing.JLabel();\n bloco_0_3 = new javax.swing.JLabel();\n bloco_1_0 = new javax.swing.JLabel();\n bloco_1_1 = new javax.swing.JLabel();\n bloco_1_2 = new javax.swing.JLabel();\n bloco_1_3 = new javax.swing.JLabel();\n bloco_2_0 = new javax.swing.JLabel();\n bloco_2_1 = new javax.swing.JLabel();\n bloco_2_2 = new javax.swing.JLabel();\n bloco_2_3 = new javax.swing.JLabel();\n bloco_3_0 = new javax.swing.JLabel();\n bloco_3_1 = new javax.swing.JLabel();\n bloco_3_2 = new javax.swing.JLabel();\n bloco_3_3 = new javax.swing.JLabel();\n painel_topo = new javax.swing.JPanel();\n Titulo = new javax.swing.JLabel();\n painel_controle = new javax.swing.JPanel();\n legenda = new javax.swing.JScrollPane();\n textoLegenda = new javax.swing.JTextArea();\n botao_atirar = new javax.swing.JButton();\n campo_linha = new javax.swing.JTextField();\n campo_coluna = new javax.swing.JTextField();\n display_linha = new javax.swing.JLabel();\n display_coluna = new javax.swing.JLabel();\n painel_feedback = new javax.swing.JPanel();\n feedback = new javax.swing.JScrollPane();\n textoFeedback = new javax.swing.JTextArea();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n painel_Campo.setLayout(new java.awt.GridLayout(4, 4));\n\n bloco_0_0.setFont(new java.awt.Font(\"Trajan Pro\", 1, 48)); // NOI18N\n bloco_0_0.setForeground(new java.awt.Color(51, 204, 255));\n bloco_0_0.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n bloco_0_0.setText(\"~\");\n painel_Campo.add(bloco_0_0);\n\n bloco_0_1.setFont(new java.awt.Font(\"Trajan Pro\", 1, 48)); // NOI18N\n bloco_0_1.setForeground(new java.awt.Color(51, 204, 255));\n bloco_0_1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n bloco_0_1.setText(\"~\");\n painel_Campo.add(bloco_0_1);\n\n bloco_0_2.setFont(new java.awt.Font(\"Trajan Pro\", 1, 48)); // NOI18N\n bloco_0_2.setForeground(new java.awt.Color(51, 204, 255));\n bloco_0_2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n bloco_0_2.setText(\"~\");\n painel_Campo.add(bloco_0_2);\n\n bloco_0_3.setFont(new java.awt.Font(\"Trajan Pro\", 1, 48)); // NOI18N\n bloco_0_3.setForeground(new java.awt.Color(51, 204, 255));\n bloco_0_3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n bloco_0_3.setText(\"~\");\n painel_Campo.add(bloco_0_3);\n\n bloco_1_0.setFont(new java.awt.Font(\"Trajan Pro\", 1, 48)); // NOI18N\n bloco_1_0.setForeground(new java.awt.Color(51, 204, 255));\n bloco_1_0.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n bloco_1_0.setText(\"~\");\n painel_Campo.add(bloco_1_0);\n\n bloco_1_1.setFont(new java.awt.Font(\"Trajan Pro\", 1, 48)); // NOI18N\n bloco_1_1.setForeground(new java.awt.Color(51, 204, 255));\n bloco_1_1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n bloco_1_1.setText(\"~\");\n painel_Campo.add(bloco_1_1);\n\n bloco_1_2.setFont(new java.awt.Font(\"Trajan Pro\", 1, 48)); // NOI18N\n bloco_1_2.setForeground(new java.awt.Color(51, 204, 255));\n bloco_1_2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n bloco_1_2.setText(\"~\");\n painel_Campo.add(bloco_1_2);\n\n bloco_1_3.setFont(new java.awt.Font(\"Trajan Pro\", 1, 48)); // NOI18N\n bloco_1_3.setForeground(new java.awt.Color(51, 204, 255));\n bloco_1_3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n bloco_1_3.setText(\"~\");\n painel_Campo.add(bloco_1_3);\n\n bloco_2_0.setFont(new java.awt.Font(\"Trajan Pro\", 1, 48)); // NOI18N\n bloco_2_0.setForeground(new java.awt.Color(51, 204, 255));\n bloco_2_0.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n bloco_2_0.setText(\"~\");\n painel_Campo.add(bloco_2_0);\n\n bloco_2_1.setFont(new java.awt.Font(\"Trajan Pro\", 1, 48)); // NOI18N\n bloco_2_1.setForeground(new java.awt.Color(51, 204, 255));\n bloco_2_1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n bloco_2_1.setText(\"~\");\n painel_Campo.add(bloco_2_1);\n\n bloco_2_2.setFont(new java.awt.Font(\"Trajan Pro\", 1, 48)); // NOI18N\n bloco_2_2.setForeground(new java.awt.Color(51, 204, 255));\n bloco_2_2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n bloco_2_2.setText(\"~\");\n painel_Campo.add(bloco_2_2);\n\n bloco_2_3.setFont(new java.awt.Font(\"Trajan Pro\", 1, 48)); // NOI18N\n bloco_2_3.setForeground(new java.awt.Color(51, 204, 255));\n bloco_2_3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n bloco_2_3.setText(\"~\");\n painel_Campo.add(bloco_2_3);\n\n bloco_3_0.setFont(new java.awt.Font(\"Trajan Pro\", 1, 48)); // NOI18N\n bloco_3_0.setForeground(new java.awt.Color(51, 204, 255));\n bloco_3_0.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n bloco_3_0.setText(\"~\");\n painel_Campo.add(bloco_3_0);\n\n bloco_3_1.setFont(new java.awt.Font(\"Trajan Pro\", 1, 48)); // NOI18N\n bloco_3_1.setForeground(new java.awt.Color(51, 204, 255));\n bloco_3_1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n bloco_3_1.setText(\"~\");\n painel_Campo.add(bloco_3_1);\n\n bloco_3_2.setFont(new java.awt.Font(\"Trajan Pro\", 1, 48)); // NOI18N\n bloco_3_2.setForeground(new java.awt.Color(51, 204, 255));\n bloco_3_2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n bloco_3_2.setText(\"~\");\n painel_Campo.add(bloco_3_2);\n\n bloco_3_3.setFont(new java.awt.Font(\"Trajan Pro\", 1, 48)); // NOI18N\n bloco_3_3.setForeground(new java.awt.Color(51, 204, 255));\n bloco_3_3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n bloco_3_3.setText(\"~\");\n painel_Campo.add(bloco_3_3);\n\n Titulo.setFont(new java.awt.Font(\"TF2 Build\", 1, 62)); // NOI18N\n Titulo.setForeground(new java.awt.Color(0, 51, 153));\n Titulo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n Titulo.setText(\"Batalha Naval\");\n\n javax.swing.GroupLayout painel_topoLayout = new javax.swing.GroupLayout(painel_topo);\n painel_topo.setLayout(painel_topoLayout);\n painel_topoLayout.setHorizontalGroup(\n painel_topoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Titulo, javax.swing.GroupLayout.DEFAULT_SIZE, 650, Short.MAX_VALUE)\n );\n painel_topoLayout.setVerticalGroup(\n painel_topoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Titulo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n textoLegenda.setColumns(20);\n textoLegenda.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n textoLegenda.setRows(5);\n textoLegenda.setText(\"-------------------Legenda-------------------\\n~ - ÁGUA\\n* - Tiro dado, nenhum navio\\nX - Tiro dado, navio afundado\");\n legenda.setViewportView(textoLegenda);\n\n botao_atirar.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n botao_atirar.setText(\"ATIRAR !\");\n botao_atirar.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n botao_atirarMouseClicked(evt);\n }\n });\n botao_atirar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botao_atirarActionPerformed(evt);\n }\n });\n\n campo_linha.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n campo_linhaActionPerformed(evt);\n }\n });\n\n display_linha.setText(\"LINHA\");\n\n display_coluna.setText(\"COLUNA\");\n\n textoFeedback.setColumns(20);\n textoFeedback.setRows(5);\n feedback.setViewportView(textoFeedback);\n\n javax.swing.GroupLayout painel_feedbackLayout = new javax.swing.GroupLayout(painel_feedback);\n painel_feedback.setLayout(painel_feedbackLayout);\n painel_feedbackLayout.setHorizontalGroup(\n painel_feedbackLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(feedback)\n );\n painel_feedbackLayout.setVerticalGroup(\n painel_feedbackLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(feedback, javax.swing.GroupLayout.DEFAULT_SIZE, 112, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout painel_controleLayout = new javax.swing.GroupLayout(painel_controle);\n painel_controle.setLayout(painel_controleLayout);\n painel_controleLayout.setHorizontalGroup(\n painel_controleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(painel_controleLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(painel_controleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(painel_feedback, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(painel_controleLayout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(legenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(painel_controleLayout.createSequentialGroup()\n .addGroup(painel_controleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(botao_atirar)\n .addGroup(painel_controleLayout.createSequentialGroup()\n .addGroup(painel_controleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(campo_coluna)\n .addComponent(campo_linha, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(painel_controleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(display_coluna, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(display_linha, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(101, 101, 101))))\n );\n painel_controleLayout.setVerticalGroup(\n painel_controleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painel_controleLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(painel_controleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(campo_linha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(display_linha))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(painel_controleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(campo_coluna, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(display_coluna))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(botao_atirar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(painel_feedback, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(legenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\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 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(painel_controle, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(painel_Campo, javax.swing.GroupLayout.PREFERRED_SIZE, 430, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(painel_topo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 2, 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 .addComponent(painel_topo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(painel_Campo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(painel_controle, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n );\n\n pack();\n }",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBackground(Color.WHITE);\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(new GridLayout(0, 4, 0, 0));\r\n\t\t\r\n\t\tComponent verticalGlue_3 = Box.createVerticalGlue();\r\n\t\tframe.getContentPane().add(verticalGlue_3);\r\n\t\t\r\n\t\tComponent verticalGlue_2 = Box.createVerticalGlue();\r\n\t\tframe.getContentPane().add(verticalGlue_2);\r\n\t\t\r\n\t\tComponent verticalGlue_1 = Box.createVerticalGlue();\r\n\t\tframe.getContentPane().add(verticalGlue_1);\r\n\t\t\r\n\t\tComponent verticalGlue = Box.createVerticalGlue();\r\n\t\tframe.getContentPane().add(verticalGlue);\r\n\t\t\r\n\t\tComponent horizontalGlue_1 = Box.createHorizontalGlue();\r\n\t\thorizontalGlue_1.setBackground(Color.WHITE);\r\n\t\tframe.getContentPane().add(horizontalGlue_1);\r\n\t\t\r\n\t\tJLabel sonuc = new JLabel(\"Oyun Sonucu:\");\r\n\t\tsonuc.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\r\n\t\tsonuc.setForeground(Color.BLUE);\r\n\t\tsonuc.setBackground(Color.WHITE);\r\n\t\tframe.getContentPane().add(sonuc);\r\n\t\t\r\n\t\tString kazanan = \"\";\r\n\t\tif(Main.bilgisayar.getSkor() > Main.kullanici.getSkor() ) {\r\n\t\t\tkazanan = \"Bilgisayar kazandı :(\";\r\n\t\t}else if( Main.bilgisayar.getSkor() < Main.kullanici.getSkor() ) {\r\n\t\t\tkazanan = \"Kullanıcı kazandı :)\";\r\n\t\t}else {\r\n\t\t\tkazanan = \" Berabere :/\";\r\n\t\t}\r\n\t\tJLabel oyuncu = new JLabel(kazanan);\r\n\t\toyuncu.setBackground(Color.WHITE);\r\n\t\toyuncu.setForeground(Color.RED);\r\n\t\toyuncu.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\r\n\t\tframe.getContentPane().add(oyuncu);\r\n\t\t\r\n\t\tComponent horizontalGlue = Box.createHorizontalGlue();\r\n\t\tframe.getContentPane().add(horizontalGlue);\r\n\t\t\r\n\t\tComponent horizontalGlue_2 = Box.createHorizontalGlue();\r\n\t\tframe.getContentPane().add(horizontalGlue_2);\r\n\t\t\r\n\t\tJTextArea bilgisayar = new JTextArea();\r\n\t\tbilgisayar.setBackground(Color.PINK);\r\n\t\tbilgisayar.setForeground(Color.MAGENTA);\r\n\t\tbilgisayar.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\r\n\t\tbilgisayar.setEditable(false);\r\n\t\tbilgisayar.setText(\"Bilgisayar Skor: \" + \"\\n\" + Main.bilgisayar.getSkor() );\r\n\t\tframe.getContentPane().add(bilgisayar);\r\n\t\t\r\n\t\tJTextArea kullanıcı = new JTextArea();\r\n\t\tkullanıcı.setBackground(Color.PINK);\r\n\t\tkullanıcı.setForeground(Color.MAGENTA);\r\n\t\tkullanıcı.setEditable(false);\r\n\t\tkullanıcı.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\r\n\t\tkullanıcı.setText(\"Kullanıcı Skor: \" +\"\\n\" + Main.kullanici.getSkor());\r\n\t\tframe.getContentPane().add(kullanıcı);\r\n\t\t\r\n\t\tComponent horizontalGlue_4 = Box.createHorizontalGlue();\r\n\t\tframe.getContentPane().add(horizontalGlue_4);\r\n\t\t\r\n\t\tComponent verticalGlue_4 = Box.createVerticalGlue();\r\n\t\tframe.getContentPane().add(verticalGlue_4);\r\n\t\t\r\n\t\tComponent verticalGlue_5 = Box.createVerticalGlue();\r\n\t\tframe.getContentPane().add(verticalGlue_5);\r\n\t\t\r\n\t\tComponent verticalGlue_6 = Box.createVerticalGlue();\r\n\t\tframe.getContentPane().add(verticalGlue_6);\r\n\t\t\r\n\t\tComponent verticalGlue_7 = Box.createVerticalGlue();\r\n\t\tframe.getContentPane().add(verticalGlue_7);\r\n\t}",
"private void llenarPanel() {\r\n\r\n\t\tposicion[0] = new JTextField();\r\n\t\tposicion[0].setHorizontalAlignment(JLabel.CENTER); // Alinear\r\n\t\tposicion[0].setFont(new java.awt.Font(\"Tahoma\", 1, 90)); // Cambia\r\n\t\tadd(posicion[0]);\r\n\r\n\t\tposicion[1] = new JTextField();\r\n\t\tposicion[1].setHorizontalAlignment(JLabel.CENTER); // Alinear\r\n\t\tposicion[1].setFont(new java.awt.Font(\"Tahoma\", 1, 90)); // Cambia\r\n\t\tadd(posicion[1]);\r\n\r\n\t\tposicion[2] = new JTextField();\r\n\t\tposicion[2].setHorizontalAlignment(JLabel.CENTER); // Alinear\r\n\t\tposicion[2].setFont(new java.awt.Font(\"Tahoma\", 1, 90)); // Cambia\r\n\t\tadd(posicion[2]);\r\n\r\n\t\tposicion[3] = new JTextField();\r\n\t\tposicion[3].setHorizontalAlignment(JLabel.CENTER); // Alinear\r\n\t\tposicion[3].setFont(new java.awt.Font(\"Tahoma\", 1, 90)); // Cambia\r\n\t\tadd(posicion[3]);\r\n\r\n\t\tposicion[4] = new JTextField();\r\n\t\tposicion[4].setHorizontalAlignment(JLabel.CENTER); // Alinear\r\n\t\tposicion[4].setFont(new java.awt.Font(\"Tahoma\", 1, 90)); // Cambia\r\n\t\tadd(posicion[4]);\r\n\r\n\t\tposicion[5] = new JTextField();\r\n\t\tposicion[5].setHorizontalAlignment(JLabel.CENTER); // Alinear\r\n\t\tposicion[5].setFont(new java.awt.Font(\"Tahoma\", 1, 90)); // Cambia\r\n\t\tadd(posicion[5]);\r\n\r\n\t\tposicion[6] = new JTextField();\r\n\t\tposicion[6].setHorizontalAlignment(JLabel.CENTER); // Alinear\r\n\t\tposicion[6].setFont(new java.awt.Font(\"Tahoma\", 1, 90)); // Cambia\r\n\t\tadd(posicion[6]);\r\n\r\n\t\tposicion[7] = new JTextField();\r\n\t\tposicion[7].setHorizontalAlignment(JLabel.CENTER); // Alinear\r\n\t\tposicion[7].setFont(new java.awt.Font(\"Tahoma\", 1, 90)); // Cambia\r\n\t\tadd(posicion[7]);\r\n\r\n\t\tposicion[8] = new JTextField();\r\n\t\tposicion[8].setHorizontalAlignment(JLabel.CENTER); // Alinear\r\n\t\tposicion[8].setFont(new java.awt.Font(\"Tahoma\", 1, 90)); // Cambia\r\n\t\tadd(posicion[8]);\r\n\t}",
"public void initUI() {\n\t\t\n\t\tsetPreferredSize(new Dimension((int)((2*Board.NUMBER_OF_FREE_COLUMNS)+1)*Board.TILE_SIZE + 2*Board.GAP_WIDTH, (int)((2*Board.NUMBER_OF_FREE_ROWS)+1)*Board.TILE_SIZE));\n\t\tsetLayout(new GridLayout(10,1));\n\t\taddKeyListener(this);\n\t\tsetBackground(Color.WHITE);\n\t\tJLabel label1 = new JLabel();\n\t\t\n\t\tlabel1.setFont(new Font(\"Verdana\", Font.BOLD, 55));\n\t\t\n\t\tlabel1.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\n\t\tlabel1.setText(\"Player \"+winner+\" has won!\");\n\t \n\t add(label1);\n\t}",
"public MyJLabel() {\n super(\" \");\n this.setOpaque(true);\n this.setPreferredSize(new Dimension(10,10));\n }",
"public void arreglarBoton()\r\n\t{\r\n\t\tthis.setBorder(BorderFactory.createLineBorder(Color.white, 4));\r\n\t\tthis.setFont(new Font(\"Arial\", Font.BOLD, 17));\r\n\t}",
"public MakeTable() {\n\t\t//for setting the title for the internal frame\n\t\tsuper(PanelName, true, true, true, true);\n\t\t//for setting the icon\n\t\tsetFrameIcon(new ImageIcon(ClassLoader.getSystemResource(\"images/Add16.gif\")));\n\t\t//for getting the graphical user interface components display area\n\t\tContainer cp = getContentPane();\n\n\t\t//for setting the layout\n\t\tnorthPanel.setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\t//for setting the font\n\t\tnorthLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\t//for adding the label to the panel\n\t\tnorthPanel.add(northLabel);\n\t\t//for adding the panel to the container\n\t\tcp.add(\"North\", northPanel);\n\n\t\t//for setting the layout\n\t\tcenterPanel.setLayout(new BorderLayout());\n\t\t//for setting the border to the panel\n\t\tcenterPanel.setBorder(BorderFactory.createTitledBorder(\"Wrong Data :\"));\n\t\t//for setting the layout\n\t\tinformationLabelPanel.setLayout(new GridLayout(1, 2, 1, 1));\n\t\t//for setting the layout\n\t\tinformationTextFieldPanel.setLayout(new GridLayout(1, 2, 1, 1));\n\t\t/***********************************************************************\n\t\t * for adding the strings to the labels, for setting the font\t\t *\n\t\t * and adding these labels to the panel.\t\t\t\t\t\t\t *\n\t\t * finally adding the panel to the container\t\t\t\t\t\t *\n\t\t ***********************************************************************/\n//\t\tfor (int i = 0; i < informationLabel.length; i++) {\n//\t\t\tinformationLabelPanel.add(informationLabel[i] = new JLabel(informaionString[i]));\n//\t\t\tinformationLabel[i].setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n//\t\t}\n \n//informationLabelPanel.add(informationLabel[0] = new JLabel(informaionString[0]));\n//for adding the panel to the centerPanel\n//\t\tcenterPanel.add(\"West\", informationLabelPanel);\n\n\t\t/***********************************************************************\n\t\t * for adding the JTextField and JPasswordField to the panel and *\n\t\t * setting the font to the JTextField and JPasswordField. Finally *\n\t\t * adding the panel to the centerPanel *\n\t\t ***********************************************************************/\n//\t\tfor (int i = 0; i < informationLabel.length; i++) {\n//\n//\t\t\t\n//\t\t\t\tinformationTextFieldPanel.add(informationTextField[i] = new JTextField(25));\n//\t\t\t\tinformationTextField[i].setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\n//\t\t\t\n//\t\t}\n\n JScrollPane scrollPane = new JScrollPane(textArea);\n informationTextFieldPanel.add(scrollPane); \n\t\tcenterPanel.add(\"Center\", informationTextFieldPanel);\n \n\t\t/***********************************************************************\n\t\t * for setting the layout for the panel,setting the font for the button*\n\t\t * and adding the button to the panel.\t\t\t\t\t\t\t\t *\n\t\t * finally adding the panel to the container\t\t\t\t\t\t *\n\t\t ***********************************************************************/\n\t\tinsertInformationButtonPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\tinsertInformationButton.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\tinsertInformationButtonPanel.add(insertInformationButton);\n insertInformationButtonPanel.add(SearchButton);\n insertInformationButtonPanel.add(searchField);\n insertInformationButtonPanel.add(SaveButton);\n\t\tcenterPanel.add(\"South\", insertInformationButtonPanel);\n\t\tcp.add(\"Center\", centerPanel);\n\n\t\t/***********************************************************************\n\t\t * for setting the layout for the panel,setting the font for the button*\n\t\t * adding the button to the panel & setting the border.\t\t\t\t *\n\t\t * finally adding the panel to the container\t\t\t\t\t\t *\n\t\t ***********************************************************************/\n\t\tsouthPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\tOKButton.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\tsouthPanel.add(OKButton);\n\t\tsouthPanel.setBorder(BorderFactory.createEtchedBorder());\n\t\tcp.add(\"South\", southPanel);\n\n\t\t/***********************************************************************\n\t\t * for adding the action listener to the button,first the text will be *\n\t\t * taken from the JTextField[] and make the connection for database, *\n\t\t * after that update the table in the database with the new value *\n\t\t ***********************************************************************/\n\t\tinsertInformationButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\t//for checking if there is a missing information\n\t\t\t\t\tThread runner = new Thread() {\n //private OpenFile opf;\n private OutputToFile otf;\n\n\t\t\t\t\t\t\tpublic void run() {\n \n otf = new OutputToFile();\n if(!otf.takeFilePath().trim().contentEquals(\"\")){\n System.out.println(\" Show File Path : \"+otf.takeFilePath()+\" >>>>\");\n centerPanel.setBorder(BorderFactory.createTitledBorder(\"Wrong Data :\"+otf.takeFilePath()));\n textArea.setText(\"\");\n datainFile=new File(otf.takeFilePath());\n \n\n try {\n fis = new FileInputStream(datainFile);\n reader = new BufferedReader(new InputStreamReader(fis));\n //StringBuilder out = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null) {\n //out.append(line);\n \n //textArea.setText(line+System.getProperty( \"line.separator\"));\n textArea.append(line+System.getProperty( \"line.separator\"));\n \n }\n //System.out.println(out.toString()); //Prints the string content read from input stream\n reader.close();\n \n \n\n \n \n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(MakeTable.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(MakeTable.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n }else \n {\n JOptionPane.showMessageDialog(null, \"Əvvəlcədən [XML] uzantılı fayıl emal edilməlidir\", \"Xəbərdarlıq\", JOptionPane.WARNING_MESSAGE);\n }\nSystem.out.println(\" Button clicked\");\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\t\t\t\t\t\trunner.start();\n\t\t\t\t\t\n\t\t\t\t\t//JOptionPane.showMessageDialog(null, \"Please, complete the information\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\t\t});\n\t\t//for adding the action listener for the button to dispose the frame\n \n \n SearchButton.addActionListener(new ActionListener() {\n \n public void actionPerformed(ActionEvent ae) {\n \n \t\t\t\tThread runner;\n runner = new Thread() { \n \n public void run() {\n \n \n \n hili= textArea.getHighlighter();\n Highlighter.Highlight[] hilis = hili.getHighlights();\n for(int i=0 ; i<hilis.length; i++)\n {\n if (hilis[i].getPainter() instanceof Highlighter.HighlightPainter)\n {\n hili.removeHighlight(hilis[i]);\n }\n }\n \n \n System.out.println(\" Searchable text \"+searchField.getText());\n \n \nHighlighter.HighlightPainter painter = new DefaultHighlighter.DefaultHighlightPainter( Color.cyan );\n\noffset= textArea.getText().indexOf(searchField.getText());\nlength = searchField.getText().length();\n\nwhile ( offset != -1)\n{\n try\n {\n System.out.println(\" Offest1 : \"+offset+\" Length :\"+length);\n \n textArea.getHighlighter().addHighlight(offset, offset + length, painter);\n //offset = textArea.getText().indexOf(searchField.getText(), offset+1);\n \n \n \n Rectangle viewRect = textArea.modelToView(offset);\n // Scroll to make the rectangle visible\n textArea.scrollRectToVisible(viewRect);\nSystem.out.println(\" Offest2 : \"+offset); offset=-1;\nbreak;\n\n//if(offset==-1)\n//{ break;}\n \n \n }\n catch(BadLocationException ble) { System.out.println(ble); }\n}\n\n\n\n }\n };\n\t\t\t\t\t\trunner.start();\n\t\t\t\t\t\n \n\t\t\t}\n \n });\n \n \n \n \n \n \n\t\tSaveButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tSystem.out.println(\" Save \");\n \n System.out.println(\" Out put File Again\"+textArea.getText()+\" Line Count \"+textArea.getLineCount());\n OutputToFile otf = new OutputToFile();\n \n try {\n// textArea.getLineStartOffset(r);\n// System.out.println(\n// \" Line Out : Start :\"+textArea.getLineStartOffset(r)+\n// \" .... End :\"+textArea.getLineEndOffset(r)+\n// \" data \"+textArea.getText().substring(textArea.getLineStartOffset(r), textArea.getLineEndOffset(r)));\n FileOutputStream outputStream = new FileOutputStream(otf.takeFilePath(),false);\n OutputStreamWriter writer = new OutputStreamWriter(outputStream);\nfor (int r=0;r<textArea.getLineCount();r++){\nwriter.write(textArea.getText().substring(textArea.getLineStartOffset(r), textArea.getLineEndOffset(r)));\n}\nwriter.flush();\n \nwriter.close();\n \n } catch (BadLocationException ex) {\n Logger.getLogger(MakeTable.class.getName()).log(Level.SEVERE, null, ex);\n } catch (FileNotFoundException ex) {\n Logger.getLogger(MakeTable.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(MakeTable.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n \n\t\t\t}\n\t\t});\n \n \n OKButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t}); \n\t\t//for setting the visible to true\n\t\tsetVisible(true);\n\t\t//show the internal frame\n\t\tpack();\n\t}",
"private void hacerCuadro()\n {\n frame = new JFrame(calc.getTitulo());\n \n JPanel contenedor = (JPanel)frame.getContentPane();\n contenedor.setLayout(new BorderLayout(8, 8));\n contenedor.setBorder(new EmptyBorder( 10, 10, 10, 10));\n\n visor = new JTextField();\n contenedor.add(visor, BorderLayout.NORTH);\n\n JPanel panelDeBotones = new JPanel(new GridLayout(4, 4));\n agregarBoton(panelDeBotones, \"7\");\n agregarBoton(panelDeBotones, \"8\");\n agregarBoton(panelDeBotones, \"9\");\n agregarBoton(panelDeBotones, \"C\");\n \n agregarBoton(panelDeBotones, \"4\");\n agregarBoton(panelDeBotones, \"5\");\n agregarBoton(panelDeBotones, \"6\");\n agregarBoton(panelDeBotones, \"?\");\n \n agregarBoton(panelDeBotones, \"1\");\n agregarBoton(panelDeBotones, \"2\");\n agregarBoton(panelDeBotones, \"3\");\n panelDeBotones.add(new JLabel(\" \"));\n \n agregarBoton(panelDeBotones, \"0\");\n agregarBoton(panelDeBotones, \"+\");\n agregarBoton(panelDeBotones, \"-\");\n agregarBoton(panelDeBotones, \"=\");\n \n contenedor.add(panelDeBotones, BorderLayout.CENTER);\n\n status = new JLabel(calc.getAutor());\n contenedor.add(status, BorderLayout.SOUTH);\n\n frame.pack();\n }",
"private void criaCabecalho() {\r\n\t\tJLabel cabecalho = new JLabel(\"Cadastro de Homem\");\r\n\t\tcabecalho.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tcabecalho.setFont(new Font(\"Arial\", Font.PLAIN, 16));\r\n\t\tcabecalho.setForeground(Color.BLACK);\r\n\t\tcabecalho.setBounds(111, 41, 241, 33);\r\n\t\tpainelPrincipal.add(cabecalho);\r\n\t}",
"private void createLabel(String title, int row, int col, int fontsize) {\n \tLabel label1 = new Label(title);\n \tlabel1.setFont(Font.font(myResources.getString(\"font\"), \n \t\t\tFontWeight.EXTRA_BOLD, FontPosture.ITALIC, fontsize));\n \tlabel1.setTextFill(Color.RED);\n \tstartScreen.add(label1, row, col);\n }",
"private void montaJanela() {\n JPanel painelLista = new JPanel(new BorderLayout());\n painelLista.setBorder(BorderFactory.createTitledBorder(\"Contatos\"));\n listaContatos.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n painelLista.add(new JScrollPane(listaContatos), BorderLayout.CENTER);\n \n // Criando um painel com os botões sob a lista\n JButton botaoAdicionar = new JButton(new ImageIcon(getClass().getResource(ICONE_ADICIONA)));\n JButton botaoRemover = new JButton(new ImageIcon(getClass().getResource(ICONE_REMOVE)));\n JPanel painelBotoes = new JPanel(new GridLayout(1, 2));\n painelBotoes.add(botaoAdicionar);\n painelBotoes.add(botaoRemover);\n painelLista.add(painelBotoes, BorderLayout.SOUTH);\n \n // Criando um painel com o nome\n JPanel painelNome = new JPanel(new BorderLayout());\n painelNome.add(new JLabel(\"Nome:\"), BorderLayout.WEST); \n campoNome.setEnabled(false);\n painelNome.add(campoNome, BorderLayout.CENTER);\n \n // Criando um painel com o telefone\n JPanel painelTelefone = new JPanel(new BorderLayout());\n painelTelefone.add(new JLabel(\"Telefone:\"), BorderLayout.WEST);\n campoTelefone.setEnabled(false);\n painelTelefone.add(campoTelefone, BorderLayout.CENTER);\n \n // Criando um painel que contem tanto o nome quanto o telefone\n JPanel painelCampos = new JPanel(new GridLayout(2, 1));\n painelCampos.add(painelNome);\n painelCampos.add(painelTelefone);\n \n // Criando um painel com os detalhes\n JPanel painelDetalhes = new JPanel(new BorderLayout());\n painelDetalhes.setBorder(BorderFactory.createTitledBorder(\"Detalhes\"));\n campoDetalhes.setEnabled(false);\n painelDetalhes.add(new JScrollPane(campoDetalhes), BorderLayout.CENTER);\n\n // Criando um painel central que combina os campos de texto, a área de texto e os botões\n JPanel painelCentral = new JPanel(new BorderLayout());\n painelCentral.add(painelCampos, BorderLayout.NORTH);\n painelCentral.add(painelDetalhes, BorderLayout.CENTER);\n \n // Criando um painel do tipo split, que combina a lista com os demais componentes\n JSplitPane painelPrincipal = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true, painelLista, painelCentral);\n painelPrincipal.setDividerLocation(200);\n this.setContentPane(painelPrincipal);\n\n // Configurando os listeners\n listaContatos.addListSelectionListener(new ControleCarregar(listaContatos, campoNome, campoTelefone, campoDetalhes));\n botaoAdicionar.addActionListener(new ControleAdicionar(contatos)); \n botaoRemover.addActionListener(new ControleRemover(listaContatos, contatos));\n ControleSalvar salvar = new ControleSalvar(listaContatos, campoNome, campoTelefone, campoDetalhes);\n campoNome.addKeyListener(salvar);\n campoTelefone.addKeyListener(salvar);\n campoDetalhes.addKeyListener(salvar);\n this.addWindowListener(new ControlePersistencia(contatos));\n\n // Configuration a janela\n this.pack();\n this.setSize(800, 600);\n this.setLocationRelativeTo(null);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); \n }",
"private void InitGUI() {\n\n\t\t//Configuraciones de la ventana principal\n\t\tcontenedor = getContentPane();\n\t\tcontenedor.removeAll();\n\t\tgetContentPane().setLayout(null);\n\t\tthis.setUndecorated(true);\n\t\tlistener = new ManejadorDeBotones();\n\t\tmanejadorDesplazamientoVentana(this);\n\n\t\t// Logo del sofa\n\t\tJLabel imagenSofa = new JLabel(\"\");\n\t\timagenSofa.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/sofa.png\")));\n\t\timagenSofa.setBounds(199, 15, 120, 80);\n\t\tgetContentPane().add(imagenSofa);\n\n\t\t// Etiqueta para el nombre al ladpo del logo\n\t\tJLabel lblMueblesYMuebles = new JLabel(\" Muebles y Muebles\");\n\t\tlblMueblesYMuebles.setFont(font);\n\t\tlblMueblesYMuebles.setForeground(Color.WHITE);\n\t\tlblMueblesYMuebles.setBounds(390, 77, 152, 32);\n\t\tgetContentPane().add(lblMueblesYMuebles);\n\n\t\t// Etiqueta para el logo XYZ\n\t\tJLabel imagenLogo = new JLabel(\"\");\n\t\timagenLogo.setIcon(\n\t\t\t\tnew ImageIcon(GUIMenuAdmin.class.getResource(\"/images/logo_blanco.png\")));\n\t\timagenLogo.setBounds(288, 23, 213, 82);\n\t\tgetContentPane().add(imagenLogo);\n\n\t\t//Boton para inicial crear ordenes de trabajo\n\t\tcrearOrden = new JButton(\"CREAR\");\n\t\tcrearOrden.setForeground(SystemColor.textHighlight);\n\t\tcrearOrden.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tcrearOrden.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tcrearOrden.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/orden_crear.png\")));\n\t\tcrearOrden.setFocusPainted(false);\n\t\tcrearOrden.setBorderPainted(false);\n\t\tcrearOrden.setOpaque(true);\n\t\tcrearOrden.setBackground(new Color(227, 227, 227));\n crearOrden.setFont(font);\n crearOrden.setBounds(117, 219, 140, 120);\n crearOrden.addActionListener(listener);\n getContentPane().add(crearOrden);\n\n\t\t//Boton para modificar ordenes de trabajo\n\t\tmodificarOrden = new JButton(\"MODIFICAR\");\n\t\tmodificarOrden.setForeground(SystemColor.textHighlight);\n\t\tmodificarOrden.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tmodificarOrden.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tmodificarOrden.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/orden_editar.png\")));\n\t\tmodificarOrden.setFocusPainted(false);\n\t\tmodificarOrden.setBorderPainted(false);\n\t\tmodificarOrden.setOpaque(true);\n\t\tmodificarOrden.setBackground(new Color(227, 227, 227));\n\t\tmodificarOrden.setFont(font);\n\t\tmodificarOrden.setBounds(267, 219, 140, 120);\n modificarOrden.addActionListener(listener);\n getContentPane().add(modificarOrden);\n\n\t\t//Boton para inicial la actualizacion de los usuarios\n\t\tconsultarOrden = new JButton(\"CONSULTAR\");\n\t\tconsultarOrden.setForeground(SystemColor.textHighlight);\n\t\tconsultarOrden.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tconsultarOrden.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tconsultarOrden.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/orden_buscar.png\")));\n\t\tconsultarOrden.setFocusPainted(false);\n\t\tconsultarOrden.setBorderPainted(false);\n\t\tconsultarOrden.setOpaque(true);\n\t\tconsultarOrden.setBackground(new Color(227, 227, 227));\n\t\tconsultarOrden.setFont(font);\n\t\tconsultarOrden.setBounds(417, 219, 140, 120);\n consultarOrden.addActionListener(listener);\n getContentPane().add(consultarOrden);\n\n //Boton salir\n\t\tsalir = new JButton(\"\");\n\t\tsalir.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/salir.png\")));\n\t\tsalir.setBorderPainted(false);\n\t\tsalir.setBorder(null);\n\t\tsalir.setMargin(new Insets(0, 0, 0, 0));\n\t\tsalir.setContentAreaFilled(false);\n\t\tsalir.addActionListener(listener);\n\t\tsalir.setBounds(588, 411, 81, 59);\n\t\tgetContentPane().add(salir);\n\n\t\t//-- Eriqueta --//\n\t\tlabel_1 = new JLabel(\"ORDENES DE TRABAJO\");\n\t\tlabel_1.setForeground(SystemColor.textHighlight);\n\t\tlabel_1.setFont(font);\n\t\tlabel_1.setBounds(117, 192, 140, 14);\n\t\tgetContentPane().add(label_1);\n\n\t\t//-- Separadores --//\n\t\tseparator_1 = new JSeparator();\n\t\tseparator_1.setForeground(SystemColor.textHighlight);\n\t\tseparator_1.setBackground(new Color(255, 255, 255));\n\t\tseparator_1.setBounds(260, 199, 297, 9);\n\t\tgetContentPane().add(separator_1);\n\t\t\n\t\t//Etiqueta salir\n\t\tlblSalir = new JLabel(\"SALIR\");\n\t\tlblSalir.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblSalir.setForeground(SystemColor.textHighlight);\n\t\tlblSalir.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblSalir.setBounds(597, 391, 49, 14);\n\t\tgetContentPane().add(lblSalir);\n\t\t//Etiqueta superior azul\n\t\tJLabel fondoAzul = new JLabel(\"\");\n\t\tfondoAzul.setOpaque(true);\n\t\tfondoAzul.setBackground(new Color(45, 118, 232));// azul #2D76E8\n\t\tfondoAzul.setBounds(0, 0, 679, 120);\n\t\tgetContentPane().add(fondoAzul);\n\n\t\t//Titulo para tipo de usuario\n\t\tJLabel titulo = new JLabel(\"JEFE DE TALLER\");\n\t\ttitulo.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\ttitulo.setForeground(SystemColor.textHighlight);\n\t\ttitulo.setBounds(417, 146, 140, 21);\n\t\tgetContentPane().add(titulo);\n\n\t\t\n\t\t// Etiqueta principal blanca\n\t\tJLabel fondoBlanco = new JLabel(\"\");\n\t\tfondoBlanco.setOpaque(true);\n\t\tfondoBlanco.setBackground(new Color(255, 255, 255));\n\t\tfondoBlanco.setBounds(0, 120, 679, 377);\n\t\tgetContentPane().add(fondoBlanco);\n\n\t\t//Configuraciones adicionales de la ventana principal\n\t\tsetSize(679, 497);\n\t\tsetResizable(false);\n\t\tsetVisible(true);\n\t\tsetLocationRelativeTo(null);\n\t\tsetShape(new java.awt.geom.RoundRectangle2D.Double(0, 0, getWidth(), getHeight(), 5, 5));\n\n }",
"public JanelaPrincipal() {\r\n\r\n\t\tsetTitle(\"Trabalho de Sistemas Operacionais I\");\r\n\t\tsetSize(tamanhoPrograma);\r\n\t\tsetResizable(false);\r\n\t\taddWindowListener(this);\r\n\t\tsetLocation((screenSize.width - ProgramaLargura) / 2,\r\n\t\t\t\t(screenSize.height - ProgramaAltura) / 2);\r\n\t}",
"public logistica_4() {\n initComponents();\n setLocationRelativeTo(null);// pantalla central\n setResizable(false);//desactivar maximisar\n setTitle(\"Mundo Biz S.A.S\");//titulo de pantalla\n }",
"public TelaLoja() {\n\t\t\ttitulo.setFont(new Font(\"Arial\", Font.BOLD, 14));\n\t\t\ttitulo.setBounds(70, 10, 200, 30);\n\t\t\toculos.setBounds(80, 40, 140, 30);\n\t\t\tcontato.setBounds(50, 80, 200, 30);\n\t\t\t\t\t\n\t\t\tjanela.setLayout(null);\n\t\t\t\n\t\t\tjanela.add(titulo);\n\t\t\tjanela.add(oculos);\n\t\t\tjanela.add(contato);\n\t\t\t\n\t\t\tjanela.setSize(300, 150);\n\t\t\tjanela.setLocationRelativeTo(null);\n\t\t\tjanela.setResizable(false);\n\t\t\tjanela.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tjanela.setVisible(true);\t\n\t\t\toculos.addActionListener(this);\n\t\t\tcontato.addActionListener(this);\n\t\t}",
"public Ventana_Principal() {\n initComponents();\n this.setLocationRelativeTo(null);\n setTitle(\"BAND-WATCH\");\n numeroLinea = new NumeroLinea(txtArea);//Agregar el txtArea para numero de lineas.\n numeroLinea2 = new NumeroLinea(txtErrores);\n jSPanel.setRowHeaderView(numeroLinea); //Agregar JScrollPanel para numero de lineas (solo con este se puede)\n jspErrores.setRowHeaderView(numeroLinea2);\n txtArea.getDocument().addUndoableEditListener(um);//agregar al txt area para editar el deshacer y reahcer\n tblTokens.setVisible(true);\n modelo=(DefaultTableModel)tblTokens.getModel();\n }",
"private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n materialFirstWordLabel = new JLabel();\n materialFirstWordLabel.setText(\"нет данных\");\n contentPane.add(materialFirstWordLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(10, -1), null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n materialMarkLabel = new JLabel();\n materialMarkLabel.setText(\" \");\n materialMarkLabel.setVerticalTextPosition(1);\n panel1.add(materialMarkLabel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n materialProfileLabel = new JLabel();\n materialProfileLabel.setText(\" \");\n materialProfileLabel.setVerticalTextPosition(3);\n panel1.add(materialProfileLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n materialSeparator = new JSeparator();\n panel1.add(materialSeparator, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n contentPane.add(spacer1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }",
"public ventanaServidor () { //Constructor\n setBounds(500,200,400,300); //define ubicacion en x, y , ancho, alto del cuadro\n JPanel lamina2 = new JPanel ();\n lamina2.setLayout(new BorderLayout());\n setResizable(false); //evitar que la ventana se redimencione\n setTitle(\"Servidor\");\n setVisible(true); //mostrar en pantalla\n \n \n }",
"public janela() {\n\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetBounds(100, 100, 380, 200);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\t\t\n\t\tJLabel dimensao_label = new JLabel(\"Dimensão:\");\n\t\tdimensao_label.setBounds(22, 24, 124, 14);\n\t\tcontentPane.add(dimensao_label);\n\n\t\t\n\t\tdimensao_textField = new JTextField();\n\t\tdimensao_textField.setBounds(138, 21, 86, 20);\n\t\tcontentPane.add(dimensao_textField);\n\t\tdimensao_textField.setColumns(10);\n\t\tdimensao_textField.setText(\"11\");\n\n\t\tnrDragoes_textField = new JTextField();\n\t\tnrDragoes_textField.setBounds(138, 52, 86, 20);\n\t\tcontentPane.add(nrDragoes_textField);\n\t\tnrDragoes_textField.setColumns(10);\n\t\tnrDragoes_textField.setText(\"1\");\t\t\n\n\t\tJLabel nrDragoes_label = new JLabel(\"Nº Dragoes:\");\n\t\tnrDragoes_label.setBounds(22, 55, 105, 14);\n\t\tcontentPane.add(nrDragoes_label);\n\n\t\tJLabel tipoDragao_label = new JLabel(\"Comportamento:\");\n\t\ttipoDragao_label.setBounds(22, 86, 97, 14);\n\t\tcontentPane.add(tipoDragao_label);\n\n\t\tfinal JComboBox tipoDragao_comboBox = new JComboBox<String>();\n\t\ttipoDragao_comboBox.setBounds(138, 83, 86, 20);\n\t\tcontentPane.add(tipoDragao_comboBox);\n\t\ttipoDragao_comboBox.addItem(\"Estatico\");\n\t\ttipoDragao_comboBox.addItem(\"Dinamico\");\n\t\ttipoDragao_comboBox.addItem(\"Misto\");\n\n\t\tfinal JTextArea tabuleiro_textArea = new JTextArea();\n\t\ttabuleiro_textArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 11));\n\t\ttabuleiro_textArea.setBounds(22, 158, 0, 0);\t\t\n\t\tcontentPane.add(tabuleiro_textArea);\t\n\n\t\tfinal JLabel estado_label = new JLabel(\"Estado\");\n\t\testado_label.setBounds(22, 133, 387, 14);\n\t\testado_label.setText(\"Insira os dados pertendidos e selecione uma opção.\");\n\t\tcontentPane.add(estado_label);\n\n\t\tJButton terminar_botao = new JButton(\"Terminar\");\n\t\tterminar_botao.setBounds(250, 20, 99, 23);\n\t\tcontentPane.add(terminar_botao);\n\t\tterminar_botao.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tSystem.exit(0);\n\n\t\t\t}\n\t\t});\n\n\t\tfinal JButton cima_botao = new JButton(\"Cima\");\n\t\tcima_botao.setBounds(310, 192, 89, 23);\n\t\tcontentPane.add(cima_botao);\n\t\tcima_botao.setVisible(false);\n\n\n\t\tfinal JButton baixo_botao = new JButton(\"Baixo\");\n\t\tbaixo_botao.setBounds(310, 243, 89, 23);\n\t\tcontentPane.add(baixo_botao);\n\t\tbaixo_botao.setVisible(false);\n\n\n\t\tfinal JButton esquerda_botao = new JButton(\"Esquerda\");\n\t\tesquerda_botao.setVerticalAlignment(SwingConstants.TOP);\n\t\tesquerda_botao.setBounds(262, 218, 84, 23);\n\t\tcontentPane.add(esquerda_botao);\t\n\t\tesquerda_botao.setVisible(false);\n\n\t\tfinal JButton direita_botao = new JButton(\"Direita\");\n\t\tdireita_botao.setBounds(356, 218, 72, 23);\n\t\tcontentPane.add(direita_botao);\n\t\tdireita_botao.setVisible(false);\n\n\t\tbaixo_botao.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\ttabuleiro.moverHeroi(2);\n\t\t\t\ttabuleiro.moverDragao();\n\t\t\t\ttabuleiro.verificarJogo();\n\t\t\t\tif(tabuleiro.getFim() == 0){\n\t\t\t\t\ttabuleiro_textArea.setText(tabuleiro.printBoard());\n\t\t\t\t\tjogografico.repaint();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttabuleiro_textArea.setText(\"\");\n\t\t\t\t\tjogografico.dispose();\n\t\t\t\t\tif(tabuleiro.getFim() == 1)\n\t\t\t\t\t\testado_label.setText(\"Ganhou o jogo!\");\n\t\t\t\t\telse\n\t\t\t\t\t\testado_label.setText(\"Faleceu!\");\n\t\t\t\t\tcima_botao.setEnabled(false);\n\t\t\t\t\tbaixo_botao.setEnabled(false);\n\t\t\t\t\tesquerda_botao.setEnabled(false);\n\t\t\t\t\tdireita_botao.setEnabled(false);\n\t\t\t\t}\t\n\t\t\t}\n\t\t});\n\n\n\n\t\tcima_botao.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\ttabuleiro.moverHeroi(1);\n\t\t\t\ttabuleiro.moverDragao();\n\t\t\t\ttabuleiro.verificarJogo();\n\t\t\t\tif(tabuleiro.getFim() == 0){\n\t\t\t\t\ttabuleiro_textArea.setText(tabuleiro.printBoard());\n\t\t\t\t\tjogografico.repaint();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttabuleiro_textArea.setText(\"\");\n\t\t\t\t\tjogografico.dispose();\n\t\t\t\t\tif(tabuleiro.getFim() == 1){\n\t\t\t\t\t\testado_label.setText(\"Ganhou o jogo!\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\testado_label.setText(\"Faleceu!\");\n\t\t\t\t\tcima_botao.setEnabled(false);\n\t\t\t\t\tbaixo_botao.setEnabled(false);\n\t\t\t\t\tesquerda_botao.setEnabled(false);\n\t\t\t\t\tdireita_botao.setEnabled(false);\n\t\t\t\t}\t\n\n\n\t\t\t}\n\t\t});\n\n\t\tesquerda_botao.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\ttabuleiro.moverHeroi(3);\n\t\t\t\ttabuleiro.moverDragao();\n\t\t\t\ttabuleiro.verificarJogo();\n\t\t\t\tif(tabuleiro.getFim() == 0){\n\t\t\t\t\ttabuleiro_textArea.setText(tabuleiro.printBoard());\n\t\t\t\t\tjogografico.repaint();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttabuleiro_textArea.setText(\"\");\n\t\t\t\t\tjogografico.dispose();\n\t\t\t\t\tif(tabuleiro.getFim() == 1)\n\t\t\t\t\t\testado_label.setText(\"Ganhou o jogo!\");\n\t\t\t\t\telse\n\t\t\t\t\t\testado_label.setText(\"Faleceu!\");\n\t\t\t\t\tcima_botao.setEnabled(false);\n\t\t\t\t\tbaixo_botao.setEnabled(false);\n\t\t\t\t\tesquerda_botao.setEnabled(false);\n\t\t\t\t\tdireita_botao.setEnabled(false);\n\t\t\t\t}\t\t\t\t\n\n\t\t\t}\n\t\t});\n\n\t\tdireita_botao.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\ttabuleiro.moverHeroi(4);\n\t\t\t\ttabuleiro.moverDragao();\n\t\t\t\ttabuleiro.verificarJogo();\n\t\t\t\tif(tabuleiro.getFim() == 0){\n\t\t\t\t\ttabuleiro_textArea.setText(tabuleiro.printBoard());\n\t\t\t\t\tjogografico.repaint();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttabuleiro_textArea.setText(\"\");\n\t\t\t\t\tjogografico.dispose();\n\t\t\t\t\tif(tabuleiro.getFim() == 1)\n\t\t\t\t\t\testado_label.setText(\"Ganhou o jogo!\");\n\t\t\t\t\telse\n\t\t\t\t\t\testado_label.setText(\"Faleceu!\");\n\t\t\t\t\tcima_botao.setEnabled(false);\n\t\t\t\t\tbaixo_botao.setEnabled(false);\n\t\t\t\t\tesquerda_botao.setEnabled(false);\n\t\t\t\t\tdireita_botao.setEnabled(false);\n\t\t\t\t}\n\n\n\t\t\t}\n\t\t});\n\n\t\tfinal JButton novoJogo_botao = new JButton(\"Novo Jogo\");\n\t\tnovoJogo_botao.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tif(\n\t\t\t\t\t\t(Integer.parseInt(dimensao_textField.getText()) >= 7 &&\n\t\t\t\t\t\tInteger.parseInt(dimensao_textField.getText()) < 26 &&\n\t\t\t\t\t\tInteger.parseInt(dimensao_textField.getText()) % 2 != 0 &&\n\t\t\t\t\t\tInteger.parseInt(nrDragoes_textField.getText()) > 0 &&\n\t\t\t\t\t\tInteger.parseInt(nrDragoes_textField.getText()) < Math.pow(Integer.parseInt(dimensao_textField.getText()), 2) / 40) || \n\t\t\t\t\t\t(playingEditor == 1)\n\t\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\tif(jogografico != null)\n\t\t\t\t\t\tjogografico.dispose();\n\t\t\t\t\tif(editor != null)\n\t\t\t\t\t\teditor.dispose();\n\t\t\t\t\tif(playingEditor == 0)\n\t\t\t\t\t tabuleiro = new Tabuleiro(Labirinto.geraLabirinto(Integer.parseInt(dimensao_textField.getText()), Integer.parseInt(nrDragoes_textField.getText())));\n\t\t\t\t\telse playingEditor = 0;\n\t\t\t\t\ttabuleiro_textArea.setBounds(22, 158, tabuleiro.getSize()*14, tabuleiro.getSize()*16);\n\t\t\t\t\tesquerda_botao.setBounds(262+tabuleiro.getSize()*14-200, 218, 84, 23);\n\t\t\t\t\tdireita_botao.setBounds(356+tabuleiro.getSize()*14-200, 218, 72, 23);\n\t\t\t\t\tcima_botao.setBounds(310+tabuleiro.getSize()*14-200, 192, 89, 23);\n\t\t\t\t\tbaixo_botao.setBounds(310+tabuleiro.getSize()*14-200, 243, 89, 23);\n\t\t\t\t\tsetBounds(100, 100, 450+tabuleiro.getSize()*14-170, 400+tabuleiro.getSize()*16-185);\n\t\t\t\t\ttabuleiro_textArea.setText(tabuleiro.printBoard());\n\t\t\t\t\ttabuleiro.setModo(tipoDragao_comboBox.getSelectedIndex()+1);\n\t\t\t\t\testado_label.setText(\"Pronto a jogar!\");\n\t\t\t\t\tcima_botao.setVisible(true);\n\t\t\t\t\tbaixo_botao.setVisible(true);\n\t\t\t\t\tesquerda_botao.setVisible(true);\n\t\t\t\t\tdireita_botao.setVisible(true);\n\t\t\t\t\tcima_botao.setEnabled(true);\n\t\t\t\t\tbaixo_botao.setEnabled(true);\n\t\t\t\t\tesquerda_botao.setEnabled(true);\n\t\t\t\t\tdireita_botao.setEnabled(true);\n\t\t\t\t\t//desenha nova janela grafica para jogo\n\n\t\t\t\t\tjogografico = new JFrame();\n\t\t\t\t\tjogografico.setBounds(100, 100, 100+tabuleiro.getSize()*15, 100+tabuleiro.getSize()*15);\n\t\t\t\t\tjogografico.setPreferredSize(new Dimension(100+tabuleiro.getSize()*40, 100+tabuleiro.getSize()*40+100));\n\t\t\t\t\t//jogografico.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t\t\tJogoGrafico panel = new JogoGrafico(tabuleiro);\n\t\t\t\t\tjogografico.getContentPane().add(panel);\n\t\t\t\t\tpanel.addKeyListener(new KeyListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\t\t\t//System.out.println(\"x=\" + x);\n\t\t\t\t\t\t\tswitch(e.getKeyCode()){\n\t\t\t\t\t\t\tcase KeyEvent.VK_LEFT: \n\t\t\t\t\t\t\t\tesquerda_botao.doClick(1);\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase KeyEvent.VK_RIGHT:\n\t\t\t\t\t\t\t\tdireita_botao.doClick(1);\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase KeyEvent.VK_UP: \n\t\t\t\t\t\t\t\tcima_botao.doClick(1);\t\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase KeyEvent.VK_DOWN: \n\t\t\t\t\t\t\t\tbaixo_botao.doClick(1);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\tjogografico.pack();\n\t\t\t\t\tjogografico.setVisible(true);\n\t\t\t\t\tpanel.requestFocus();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\testado_label.setText(\"Input Invalido!\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tnovoJogo_botao.setBounds(250, 51, 99, 23);\n\t\tcontentPane.add(novoJogo_botao);\n\n\t\t\n\n\t\tfinal JButton gerarLabirinto_botao = new JButton(\"Criar Mapa\");\n\t\tgerarLabirinto_botao.setBounds(250, 83, 99, 23);\n\t\tcontentPane.add(gerarLabirinto_botao);\n\t\tgerarLabirinto_botao.setVisible(true);\n\t\tgerarLabirinto_botao.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tif(editor != null)\n\t\t\t\t\teditor.dispose();\n\n\t\t\t\tif(jogografico != null)\n\t\t\t\t\tjogografico.dispose();\n\t\t\t\teditor = new JFrame();\n\t\t\t\tfinal editor frame = new editor(Integer.parseInt(dimensao_textField.getText()), Integer.parseInt(nrDragoes_textField.getText()));\n\n\t\t\t\teditor.setBounds(100, 100, 100+Integer.parseInt(dimensao_textField.getText())*15, 100+Integer.parseInt(dimensao_textField.getText())*15);\n\t\t\t\teditor.setPreferredSize(new Dimension(100+Integer.parseInt(dimensao_textField.getText())*40, 100+Integer.parseInt(dimensao_textField.getText())*40+100));\n\t\t\t\t//editor.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t\teditor.getContentPane().add(frame);\n\n\t\t\t\tframe.addKeyListener(new KeyListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\t\tswitch(e.getKeyCode()){\n\t\t\t\t\t\tcase KeyEvent.VK_ENTER:\n\t\t\t\t\t\t\tif(frame.getTabuleiro() != null){\n\t\t\t\t\t\t\t\ttabuleiro = new Tabuleiro(frame.getTabuleiro());\n\t\t\t\t\t\t\t\tplayingEditor = 1;\n\t\t\t\t\t\t\t\teditor.dispose();\n\t\t\t\t\t\t\t\tnovoJogo_botao.doClick(1);\n\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}\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t\n\t\t\t\n\t\t\t\teditor.pack();\n\t\t\t\teditor.setVisible(true);\n\t\t\t\tframe.requestFocus();\n\n\t\t\t}\n\t\t});\n\n\t\t\n\t\t\n\n\t}",
"public TelaAbigo() {\n initComponents();\n setLocationRelativeTo(null);\n setResizable(false);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblTitle = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n txtGioiThieu = new javax.swing.JTextPane();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"CÔNG TY NƯỚC GIẢI KHÁT TIENLONG\");\n\n lblTitle.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/edu/poly/images/logo_1.png\"))); // NOI18N\n lblTitle.setMaximumSize(new java.awt.Dimension(512, 331));\n lblTitle.setMinimumSize(new java.awt.Dimension(512, 331));\n lblTitle.setPreferredSize(new java.awt.Dimension(512, 331));\n getContentPane().add(lblTitle, java.awt.BorderLayout.CENTER);\n\n txtGioiThieu.setEditable(false);\n txtGioiThieu.setText(\"Đây là phần mềm cung cấp giải pháp cho doanh nghiệp TIENLONG. Phần mềm giúp giảm\\ntải nhanh chóng các công việc thủ công dẫn dễ đến sai xót từ khâu bán hàng đến khâu\\nchiết rót, kiểm tra …, giúp người bán hàng nhanh và thuận tiện hơn, giúp các lãnh đạo\\ncó thể quản lý một cách hiệu quả.\\n\\nPhần mềm ngoài các chức năng cập nhật thông tin, phân quyền người sử dụng, sao lưu\\nvà phục hồi cơ sở dữ liệu, quản lý phòng ban, nhân viên, quản lý các loại bia và nước\\ngiải khát, quản lý các dụng cụ chứa… Phần mềm còn có thể xuất các báo cáo để in hay\\ndưới dạng word, excel, pdf.. theo từng loại hàng hóa, từng nhân viên, theo doanh thu…\\n\\nPhần mềm còn hướng tới tiêu chí gần gũi và thân thiện hơn với người sử dụng để giúp\\nngười sử dụng có thể sử dụng phần mềm một cách nhanh chóng và đầy hiệu quả.\\n\\nPhần mềm có thể tùy biến theo các yêu cầu mới của khách hàng.\"); // NOI18N\n txtGioiThieu.setMinimumSize(new java.awt.Dimension(43, 118));\n jScrollPane1.setViewportView(txtGioiThieu);\n\n getContentPane().add(jScrollPane1, java.awt.BorderLayout.PAGE_END);\n\n pack();\n }",
"private JPanel label() {\r\n\t\tJPanel position = new JPanel();\r\n\t\tJPanel positionLabelLigue = new JPanel();\r\n\t\tJPanel positionLabelnomadmin = new JPanel();\r\n\t\tJPanel positionLabelprenomadmin = new JPanel();\r\n\t\tJPanel positionLabeladresse = new JPanel();\r\n\r\n\t\t// On définit le layout en lui indiquant qu'il travaillera en ligne\r\n\t\tpositionLabelLigue.setLayout(new BoxLayout(positionLabelLigue,\r\n\t\t\t\tBoxLayout.X_AXIS));\r\n\t\tpositionLabelLigue.add(nomLigue);\r\n\t\tpositionLabeladresse.setLayout(new BoxLayout(positionLabeladresse,\r\n\t\t\t\tBoxLayout.X_AXIS));\r\n\t\tpositionLabeladresse.add(adresse);\r\n\t\tpositionLabelnomadmin.setLayout(new BoxLayout(positionLabelnomadmin,\r\n\t\t\t\tBoxLayout.X_AXIS));\r\n\t\tpositionLabelnomadmin.add(nomAdmin);\r\n\t\tpositionLabelprenomadmin.setLayout(new BoxLayout(\r\n\t\t\t\tpositionLabelprenomadmin, BoxLayout.X_AXIS));\r\n\t\tpositionLabelprenomadmin.add(prenomAdmin);\r\n\r\n\t\t/*\r\n\t\t * positionnement en colonne des lignes précédemment crées grace a\r\n\t\t * position.setLayout(new BoxLayout(position, BoxLayout.Y_AXIS))\r\n\t\t */\r\n\t\tposition.setLayout(new BoxLayout(position, BoxLayout.Y_AXIS));\r\n\t\tposition.add(nomLigue);\r\n\t\t/*\r\n\t\t * la ligne suivante position.add(Box.createRigidArea(new\r\n\t\t * Dimension(10,5))) permet de créer un espace entre les composants du\r\n\t\t * panel adresse et nom administrateur et le nom de la ligue\r\n\t\t */\r\n\t\tposition.add(Box.createRigidArea(new Dimension(10, 5)));\r\n\t\tposition.add(adresse);\r\n\t\tposition.add(Box.createRigidArea(new Dimension(10, 5)));\r\n\t\tposition.add(nomAdmin);\r\n\t\tposition.add(Box.createRigidArea(new Dimension(10, 5)));\r\n\t\tposition.add(prenomAdmin);\r\n\r\n\t\treturn position;\r\n\t}",
"public trangchinhban() {\n\t\tsetBorder(new MatteBorder(1, 1, 1, 1, (Color) new Color(0, 153, 153)));\n\t\tsetBackground(Color.WHITE);\n\t\tsetLayout(null);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"QU\\u1EA2N L\\u00DD B\\u00C0N\");\n\t\tlblNewLabel_1.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\Apps-Google-Drive-Fusion-Tables-icon.png\"));\n\t\tlblNewLabel_1.setBounds(117, 35, 211, 57);\n\t\tlblNewLabel_1.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel_1.setFont(new Font(\"Times New Roman\", Font.BOLD, 18));\n\t\tadd(lblNewLabel_1);\n\t\t\n\t\tJLabel lblNewLabel_1_1 = new JLabel(\"Tên Bàn :\");\n\t\tlblNewLabel_1_1.setBounds(27, 121, 80, 36);\n\t\tlblNewLabel_1_1.setFont(new Font(\"Times New Roman\", Font.BOLD, 16));\n\t\tadd(lblNewLabel_1_1);\n\t\t\n\t\tJLabel lblNewLabel_1_1_1 = new JLabel(\"Ghi Ch\\u00FA :\");\n\t\tlblNewLabel_1_1_1.setBounds(27, 228, 80, 36);\n\t\tlblNewLabel_1_1_1.setFont(new Font(\"Times New Roman\", Font.BOLD, 16));\n\t\tadd(lblNewLabel_1_1_1);\n\t\t\n\t\ttxtTenban = new JTextField();\n\t\ttxtTenban.setBackground(new Color(255, 255, 255));\n\t\ttxtTenban.setBorder(new MatteBorder(2, 1, 2, 15, (Color) new Color(0, 153, 153)));\n\t\ttxtTenban.setCaretColor(new Color(0, 153, 153));\n\t\ttxtTenban.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\ttxtTenban.setBounds(117, 126, 246, 29);\n\t\tadd(txtTenban);\n\t\t\n\t\ttxtGhichu = new JTextField();\n\t\ttxtGhichu.setBorder(new MatteBorder(2, 1, 2, 15, (Color) new Color(255, 102, 0)));\n\t\ttxtGhichu.setBounds(117, 233, 246, 29);\n\t\ttxtGhichu.setColumns(10);\n\t\tadd(txtGhichu);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\n\t\tscrollPane.setBorder(new MatteBorder(2, 2, 2, 2, (Color) new Color(0, 153, 153)));\n\t\tscrollPane.setBackground(new Color(0, 153, 153));\n\t\tscrollPane.addAncestorListener(new AncestorListener() {\n\t\t\tpublic void ancestorAdded(AncestorEvent event) {\n\t\t\t}\n\t\t\tpublic void ancestorMoved(AncestorEvent event) {\n\t\t\t}\n\t\t\tpublic void ancestorRemoved(AncestorEvent event) {\n\t\t\t}\n\t\t});\n\t\tscrollPane.setBounds(411, 35, 612, 227);\n\t\tadd(scrollPane);\n\t\t\n\t\ttable = new JTable();\n\t\ttable.setGridColor(new Color(255, 255, 255));\n\t\ttable.setBorder(new MatteBorder(1, 1, 1, 1, (Color) new Color(0, 153, 153)));\n\t\ttable.setForeground(new Color(255, 255, 255));\n\t\ttable.setBackground(new Color(255, 102, 51));\n\t\ttable.setFont(new Font(\"Times New Roman\", Font.BOLD, 12));\n\t\ttable.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tmyindex = table.getSelectedRow();\n\t\t\t\ttxtTenban.setText(table.getValueAt(myindex, 1).toString());\n\t\t\t\ttxtTrangthai.setSelectedItem(table.getValueAt(myindex, 2).toString());\n\t\t\t\ttxtGhichu.setText(table.getValueAt(myindex, 3).toString());\n\t\t\t}\n\t\t});\n\t\ttable.setModel(new DefaultTableModel(\n\t\t\tnew Object[][] {\n\t\t\t},\n\t\t\tnew String[] {\n\t\t\t\t\"STT\", \"Tên bàn\", \"Trạng thái\", \"Ghi chú\"\n\t\t\t}\n\t\t) {\n\t\t\tClass[] columnTypes = new Class[] {\n\t\t\t\tString.class, String.class, String.class, String.class\n\t\t\t};\n\t\t\tpublic Class getColumnClass(int columnIndex) {\n\t\t\t\treturn columnTypes[columnIndex];\n\t\t\t}\n\t\t\tboolean[] columnEditables = new boolean[] {\n\t\t\t\tfalse, true, true, true\n\t\t\t};\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn columnEditables[column];\n\t\t\t}\n\t\t});\n\t\tscrollPane.setViewportView(table);\n\t\t\n\t\tJButton themban = new JButton(\" Th\\u00EAm b\\u00E0n\");\n\t\tthemban.setBorder(new MatteBorder(2, 8, 2, 8, (Color) new Color(51, 204, 102)));\n\t\tthemban.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString tenban = txtTenban.getText();\n\t\t\t\tString trangthai = txtTrangthai.getSelectedItem().toString();\n\t\t\t\tString ghichu = txtGhichu.getText();\n\t\t\t\t\n\t\t\t\tTable ban = new Table(tenban,trangthai,ghichu);\n\t\t\t\t\n\t\t\t\tTableThaoTac.insert(ban);\n\t\t\t\t\n\t\t\t\tShowTable();\n\t\t\t}\n\t\t});\n\t\tthemban.setBackground(new Color(255, 255, 255));\n\t\tthemban.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\add-1-icon.png\"));\n\t\tthemban.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\n\t\tthemban.setBounds(64, 295, 127, 45);\n\t\tadd(themban);\n\t\t\n\t\tJButton xoaban = new JButton(\" X\\u00F3a b\\u00E0n\");\n\t\txoaban.setBorder(new MatteBorder(1, 8, 1, 8, (Color) new Color(255, 51, 0)));\n\t\txoaban.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint selectedIndex = table.getSelectedRow();\n\t\t\t\tif(selectedIndex >=0) {\n\t\t\t\t\tTable stt = listTable.get(selectedIndex);\n\t\t\t\t\tint option = JOptionPane.showConfirmDialog(getRootPane(), \"Bạn có muốn xóa không ?\");\n\t\t\t\tif(option == 0) {\n\t\t\t\t\tTableThaoTac.delete(stt.getSttban());\n\t\t\t\t\tShowTable();\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t});\n\t\txoaban.setBackground(new Color(255, 255, 255));\n\t\txoaban.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\Actions-button-cancel-icon.png\"));\n\t\txoaban.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\n\t\txoaban.setBounds(231, 362, 127, 45);\n\t\tadd(xoaban);\n\t\t\n\t\tJLabel lblNewLabel_1_1_2 = new JLabel(\"Trạng thái :\");\n\t\tlblNewLabel_1_1_2.setFont(new Font(\"Times New Roman\", Font.BOLD, 16));\n\t\tlblNewLabel_1_1_2.setBounds(27, 172, 80, 36);\n\t\tadd(lblNewLabel_1_1_2);\n\t\ttxtTrangthai.setDebugGraphicsOptions(DebugGraphics.NONE_OPTION);\n\t\ttxtTrangthai.setEditable(true);\n\t\ttxtTrangthai.setFocusCycleRoot(true);\n\t\ttxtTrangthai.setForeground(new Color(0, 0, 0));\n\t\ttxtTrangthai.setBackground(new Color(255, 255, 255));\n\t\ttxtTrangthai.setBorder(new MatteBorder(2, 1, 2, 15, (Color) new Color(0, 153, 153)));\n\t\ttxtTrangthai.setModel(new DefaultComboBoxModel(new String[] {\"Còn trống\", \"Hết chỗ\", \"Đã đặt\"}));\n\t\ttxtTrangthai.setBounds(117, 177, 246, 29);\n\t\tadd(txtTrangthai);\n\t\t\n\t\tJButton suaban = new JButton(\"Sửa bàn\");\n\t\tsuaban.setBorder(new MatteBorder(1, 8, 1, 8, (Color) new Color(255, 204, 0)));\n\t\tsuaban.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\document-edit-icon.png\"));\n\t\tsuaban.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (txtTenban.getText().isEmpty()) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Lỗi\");\n\t\t\t\t} else {\n\t\t\t\t\tString tenban = txtTenban.getText();\n\t\t\t\t\tString trangthai = txtTrangthai.getSelectedItem().toString();\n\t\t\t\t\tString ghichu = txtGhichu.getText();\n\t\t\t\t\tTable ban = new Table(myindex +1,tenban,trangthai,ghichu);\n\t\t\t\t\tTableThaoTac.update(ban);\n\t\t\t\t\t;\n\t\t\t\t\tShowTable();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tsuaban.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\n\t\tsuaban.setBackground(new Color(255, 255, 255));\n\t\tsuaban.setBounds(64, 362, 127, 45);\n\t\tadd(suaban);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"\");\n\t\tlblNewLabel.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\Hình To Cafe.png\"));\n\t\tlblNewLabel.setBounds(459, 272, 255, 220);\n\t\tadd(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"\");\n\t\tlblNewLabel_2.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\Hình To Cafe hh.png\"));\n\t\tlblNewLabel_2.setBounds(754, 297, 211, 160);\n\t\tadd(lblNewLabel_2);\n\t\t\n\t\tJButton lammoi = new JButton(\"Làm mới\");\n\t\tlammoi.setBorder(new MatteBorder(1, 8, 1, 8, (Color) new Color(255, 102, 0)));\n\t\tlammoi.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttxtTenban.setText(\"\");\n\t\t\t\ttxtTrangthai.setSelectedIndex(0);\n\t\t\t\ttxtGhichu.setText(\"\");\n\t\t\t}\n\t\t});\n\t\tlammoi.setIcon(new ImageIcon(\"E:\\\\Java Desktop\\\\IM CAFE\\\\system-software-update-icon (1).png\"));\n\t\tlammoi.setFont(new Font(\"Times New Roman\", Font.BOLD, 14));\n\t\tlammoi.setBackground(new Color(255, 255, 255));\n\t\tlammoi.setBounds(231, 295, 127, 45);\n\t\tadd(lammoi);\n\t\t\n\t\tdfModel = (DefaultTableModel) table.getModel();\n\t\tShowTable();\n\t\t\n\t}",
"private void initialize()\n\t{\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.WHITE);\n\t\tframe.setTitle(\"Configuración de Controles\");\n\t\tframe.setBounds(100, 100, 500, 500);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.setIconImage(new ImageIcon(getClass().getClassLoader().getResource(\"iconoVentana.jpg\")).getImage());\n\t\t\n\t\tJLabel lblConfiguracinGeneral = new JLabel(\"Configuraci\\u00F3n General\");\n\t\tlblConfiguracinGeneral.setFont(new Font(\"Segoe UI\", Font.PLAIN, 15));\n\t\tlblConfiguracinGeneral.setBounds(171, 11, 162, 21);\n\t\tframe.getContentPane().add(lblConfiguracinGeneral);\n\t\t\n\t\tJLabel lblTeclaAdelante = new JLabel(\"Tecla Adelante\");\n\t\tlblTeclaAdelante.setBounds(10, 65, 115, 14);\n\t\tframe.getContentPane().add(lblTeclaAdelante);\n\t\t\n\t\tJLabel lblTeclaAtrs = new JLabel(\"Tecla Atr\\u00E1s\");\n\t\tlblTeclaAtrs.setBounds(10, 105, 115, 14);\n\t\tframe.getContentPane().add(lblTeclaAtrs);\n\t\t\n\t\tJLabel lblTeclaArriba = new JLabel(\"Tecla Salto\");\n\t\tlblTeclaArriba.setBounds(10, 151, 115, 14);\n\t\tframe.getContentPane().add(lblTeclaArriba);\n\t\t\n\t\tJLabel lblTeclaAbajo = new JLabel(\"Tecla Disparo 1\");\n\t\tlblTeclaAbajo.setBounds(10, 197, 115, 14);\n\t\tframe.getContentPane().add(lblTeclaAbajo);\n\t\t// JTextField\n\t\tteclaDerecha = new JTextField();\n\t\tteclaDerecha.addKeyListener(this);\n\t\tteclaDerecha.setBounds(171, 58, 100, 20);\n\t\tframe.getContentPane().add(teclaDerecha);\n\t\tteclaDerecha.setColumns(10);\n\t\t\n\t\tteclaIzq = new JTextField();\n\t\tteclaIzq.addKeyListener(this);\n\t\tteclaIzq.setBounds(171, 98, 100, 20);\n\t\tframe.getContentPane().add(teclaIzq);\n\t\tteclaIzq.setColumns(10);\n\t\t\n\t\tteclaSalto = new JTextField();\n\t\tteclaSalto.addKeyListener(this);\n\t\tteclaSalto.setBounds(171, 144, 100, 20);\n\t\tframe.getContentPane().add(teclaSalto);\n\t\tteclaSalto.setColumns(10);\n\t\t\n\t\tdisparo1_1 = new JTextField();\n\t\tdisparo1_1.addKeyListener(this);\n\t\tdisparo1_1.setBounds(171, 190, 100, 20);\n\t\tframe.getContentPane().add(disparo1_1);\n\t\tdisparo1_1.setColumns(10);\n\t\t\n\t\tdisparo2_1 = new JTextField();\n\t\tdisparo2_1.addKeyListener(this);\n\t\tdisparo2_1.setColumns(10);\n\t\tdisparo2_1.setBounds(171, 237, 100, 20);\n\t\tframe.getContentPane().add(disparo2_1);\n\t\t// Fin JTextField\n\t\tJLabel Label_ImagenJugador = new JLabel(new ImageIcon(getClass().getClassLoader().getResource(\"muestraJugador.gif\")));\n\t\tLabel_ImagenJugador.setBackground(Color.WHITE);\n\t\tLabel_ImagenJugador.setBounds(339, 43, 215, 215);\n\t\tframe.getContentPane().add(Label_ImagenJugador);\n\t\t\n\t\tJLabel lblTeclaDisparo = new JLabel(\"Tecla Disparo 2\");\n\t\tlblTeclaDisparo.setBounds(10, 244, 115, 14);\n\t\tframe.getContentPane().add(lblTeclaDisparo);\n\t\t\n\t\tJComboBox<String> comboDisiparo1 = new JComboBox<String>();\n\t\tcomboDisiparo1.setBounds(171, 278, 139, 22);\n\t\tfor (int disparo1 = 0; disparo1 < CargaDatos.contDisparo; disparo1++)\n\t\t{\n\t\t\tcomboDisiparo1.addItem(CargaDatos.tipoDisparo[disparo1].getNombre());\n\t\t}\n\t\tcomboDisiparo1.addItemListener(new ItemListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent cambio)\n\t\t\t{\n\t\t\t\tdisparo1Elegido = comboDisiparo1.getSelectedIndex();\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(comboDisiparo1);\n\t\t\n\t\tJLabel lblTipoDisparo = new JLabel(\"Tipo Disparo 1\");\n\t\tlblTipoDisparo.setBounds(10, 286, 115, 14);\n\t\tframe.getContentPane().add(lblTipoDisparo);\n\t\t\n\t\tJLabel lblTipoDisparo_1 = new JLabel(\"Tipo Disparo 2\");\n\t\tlblTipoDisparo_1.setBounds(10, 331, 115, 14);\n\t\tframe.getContentPane().add(lblTipoDisparo_1);\n\t\t\n\t\tJComboBox<String> comboDisparo2 = new JComboBox<String>();\n\t\tcomboDisparo2.setBounds(171, 323, 139, 22);\n\t\tfor (int disparo2 = 0; disparo2 < CargaDatos.contDisparo; disparo2++)\n\t\t{\n\t\t\tcomboDisparo2.addItem(CargaDatos.tipoDisparo[disparo2].getNombre());\n\t\t}\n\t\tcomboDisparo2.addItemListener(new ItemListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent cambio)\n\t\t\t{\n\t\t\t\tdisparo2Elegido = comboDisparo2.getSelectedIndex();\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(comboDisparo2);\n\t\t\n\t\tbtnAceptar = new JButton(\"Aceptar\");\n\t\tbtnAceptar.setBounds(189, 439, 91, 23);\n\t\tbtnAceptar.addActionListener(this);\n\t\tframe.getContentPane().add(btnAceptar);\n\t\tframe.setVisible(false);\n\t\t\n\t\tframe.setLocationRelativeTo(null);\n\t\tthis.frame.addWindowListener(this);\n\t}",
"private void crearComponentes() {\n setTitle(\"Nueva Persona\");\r\n setDefaultLookAndFeelDecorated(true);\r\n try {\r\n //UIManager.setLookAndFeel(\"javax.swing.plat.metal.MetalLookAndFeel\");\r\n UIManager.setLookAndFeel(\"javax.swing.plaf.nimbus.NimbusLookAndFeel\");\r\n } catch (ClassNotFoundException | IllegalAccessException | InstantiationException | UnsupportedLookAndFeelException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n\r\n int numBorder;\r\n numBorder = 20;\r\n\r\n jPrincipal = new JPanel(new BorderLayout());\r\n jPrincipal.setBorder(new EmptyBorder(numBorder, numBorder, numBorder, numBorder));\r\n add(jPrincipal);\r\n\r\n JPcontent = new JPanel();\r\n JPcontent.setLayout(new BoxLayout(JPcontent, BoxLayout.PAGE_AXIS));\r\n numBorder = 10;\r\n\r\n JPanel nom = new JPanel();\r\n JPcontent.add(nom);\r\n nom.add(new JLabel(\"Nom: \"));\r\n JTxtFldNom = new JTextField(28);\r\n JTxtFldNom.addComponentListener(null);\r\n nom.add(JTxtFldNom);\r\n\r\n JPanel primerCognom = new JPanel();\r\n JPcontent.add(primerCognom);\r\n primerCognom.add(new JLabel(\"Primer cognom: \"));\r\n JTxtFldPrimerCognom = new JTextField(22);\r\n JTxtFldPrimerCognom.addComponentListener(null);\r\n primerCognom.add(JTxtFldPrimerCognom);\r\n\r\n JPanel segonCognom = new JPanel();\r\n JPcontent.add(segonCognom);\r\n segonCognom.add(new JLabel(\"Segon cognom: \"));\r\n JTxtFldSegonCognom = new JTextField(22);\r\n JTxtFldSegonCognom.addComponentListener(null);\r\n segonCognom.add(JTxtFldSegonCognom);\r\n\r\n JPanel nif = new JPanel();\r\n JPcontent.add(nif);\r\n nif.add(new JLabel(\"NIF: \"));\r\n JTxtFldNIF = new JTextField(28);\r\n JTxtFldNIF.addComponentListener(null);\r\n nif.add(JTxtFldNIF);\r\n\r\n JPanel numeroSS = new JPanel();\r\n JPcontent.add(numeroSS);\r\n numeroSS.add(new JLabel(\"Número SS: \"));\r\n JTxtFldNumeroSS = new JTextField(24);\r\n JTxtFldNumeroSS.addComponentListener(null);\r\n numeroSS.add(JTxtFldNumeroSS);\r\n\r\n JPanel telf = new JPanel();\r\n JPcontent.add(telf);\r\n telf.add(new JLabel(\"Teléfon: \"));\r\n JTxtFldTelf = new JTextField(26);\r\n JTxtFldTelf.addComponentListener(null);\r\n telf.add(JTxtFldTelf);\r\n\r\n JPanel ciutat = new JPanel();\r\n JPcontent.add(ciutat);\r\n ciutat.add(new JLabel(\"Ciutat: \"));\r\n JTxtFldCiutat = new JTextField(27);\r\n JTxtFldCiutat.addComponentListener(null);\r\n ciutat.add(JTxtFldCiutat);\r\n\r\n JPanel codiPostal = new JPanel();\r\n JPcontent.add(codiPostal);\r\n codiPostal.add(new JLabel(\"Codi postal: \"));\r\n JTxtFldCodiPostal = new JTextField(24);\r\n JTxtFldCodiPostal.addComponentListener(null);\r\n codiPostal.add(JTxtFldCodiPostal);\r\n\r\n JPanel carrer = new JPanel();\r\n JPcontent.add(carrer);\r\n carrer.add(new JLabel(\"Direcció: \"));\r\n JTxtFldCarrer = new JTextField(27);\r\n JTxtFldCarrer.addComponentListener(null);\r\n carrer.add(JTxtFldCarrer);\r\n\r\n if (clase == 0) {\r\n metge();\r\n }\r\n\r\n JPanel boto = new JPanel();\r\n boto.setBorder(new EmptyBorder(0, 0, 8, 0));\r\n JPcontent.add(boto);\r\n\r\n// jBtnCancelar = new JButton(\"Cancelar\");\r\n// boto.add(jBtnCancelar);\r\n// jBtnCancelar.addActionListener(new BotonesCrearPersona(clase));\r\n JBtnCrea = new JButton(\"Crear\");\r\n boto.add(JBtnCrea);\r\n JBtnCrea.addActionListener(new BotonesCrearPersona(clase));\r\n\r\n jPrincipal.add(JPcontent, BorderLayout.CENTER);\r\n\r\n pack();\r\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\r\n this.setLocation(dim.width / 2 - this.getSize().width / 2, dim.height / 2 - this.getSize().height / 2);\r\n }",
"public TelaFimDeJogo() {\n initComponents();\n gerenciador.pegaJogadorDaRodada();\n mensagemBaixo.setForeground(gerenciador.pegaJogadorDaRodada().getColor());\n mensagemCima.setForeground(gerenciador.pegaJogadorDaRodada().getColor());\n mensagemCima.setText(\"PARABÉNS JOGADOR \" + gerenciador.pegaJogadorDaRodada().getNomeCor().toUpperCase() + \", VOCÊ VENCEU!!\");\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 titulo = new javax.swing.JLabel();\n etiqueta_texto = new javax.swing.JLabel();\n texto = new javax.swing.JLabel();\n etiqueta_niveles = new javax.swing.JLabel();\n niveles = new javax.swing.JLabel();\n auxiliar = new javax.swing.JLabel();\n\n setLayout(new java.awt.BorderLayout());\n\n titulo.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n titulo.setText(\"BadConsequence\");\n\n etiqueta_texto.setText(\"Texto\");\n\n texto.setText(\"Mal rollo\");\n\n etiqueta_niveles.setText(\"Niveles\");\n\n niveles.setText(\"Niveles perdidos\");\n\n auxiliar.setText(\"jLabel\");\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 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(48, 48, 48)\n .addComponent(titulo))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(etiqueta_texto, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(etiqueta_niveles))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(niveles)))\n .addContainerGap(35, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(auxiliar, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(texto, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(titulo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(etiqueta_texto)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(auxiliar, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(1, 1, 1)\n .addComponent(texto)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(etiqueta_niveles)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(niveles)\n .addGap(0, 11, Short.MAX_VALUE))\n );\n\n add(jPanel1, java.awt.BorderLayout.CENTER);\n }",
"public BoardGUI()\n {\n setBackground(Color.GRAY);\n setLayout(null);\n }",
"public TicketCambio() {\n initComponents();\n parteticket();\n TxtCabezera1.setText(Cabezera1);\n TxtCabezera2.setText(Cabezera2);\n TxtCabezera3.setText(Cabezera3);\n TxtCabezera4.setText(Cabezera4);\n TxtCabezera5.setText(Cabezera5);\n this.setResizable(false); \n TxtPie1.setText(Pie1);\n TxtPie2.setText(Pie2);\n TxtPie3.setText(Pie3);\n TxtPie4.setText(Pie4);\n TxtPie5.setText(Pie5); \n }",
"private void initComponents() {\n jLabelLogotipo = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jButtonOk = new javax.swing.JButton();\n\n setBackground(java.awt.Color.white);\n\n jTextArea1.setColumns(20);\n jTextArea1.setEditable(false);\n jTextArea1.setRows(5);\n jTextArea1.setText(\"C\\u00f3digo Certo\\nSistemas e Consultoria em Inform\\u00e1tica Ltda.\\n\\[email protected]\\nhttp://www.codigocerto.com.br\\n(54)3028.1967\\n(54)9149.8401\\n\\n\");\n jScrollPane1.setViewportView(jTextArea1);\n\n jButtonOk.setText(\"OK\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 376, Short.MAX_VALUE)\n .addComponent(jLabelLogotipo)\n .addComponent(jButtonOk, javax.swing.GroupLayout.Alignment.TRAILING))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabelLogotipo)\n .addGap(22, 22, 22)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 196, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonOk)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n }",
"public JinHuo() {\r\n\t\tsetResizable(false);\r\n\t\tsetTitle(\"\\u4E66\\u5E97\\u9500\\u552E\\u7BA1\\u7406\\u7CFB\\u7EDF\");\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 800, 600);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\r\n\t\tJLabel label = new JLabel(\"\\u8FDB\\u8D27\");\r\n\t\tlabel.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlabel.setBounds(346, 13, 93, 34);\r\n\t\tcontentPane.add(label);\r\n\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBounds(187, 39, 454, 34);\r\n\t\tcontentPane.add(panel);\r\n\t\tpanel.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\r\n\r\n\t\tJButton button_1 = new JButton(\"\\u8FDB\\u8D27\\u5DF2\\u6709\\u56FE\\u4E66\");\r\n\t\tpanel.add(button_1);\r\n\r\n\t\tJButton button_2 = new JButton(\"\\u8FDB\\u8D27\\u65B0\\u7684\\u56FE\\u4E66\");\r\n\t\tpanel.add(button_2);\r\n\r\n\t\tJPanel panel_3 = new JPanel();\r\n\t\tpanel_3.setBounds(0, 81, 790, 472);\r\n\t\tcontentPane.add(panel_3);\r\n\t\tpanel_3.setLayout(new CardLayout(0, 0));\r\n\r\n\t\tJPanel panel_2 = new JPanel();\r\n\t\tpanel_3.add(panel_2, \"name_594357503791412\");\r\n\t\tpanel_2.setLayout(null);\r\n\r\n\t\tJLabel label_4 = new JLabel(\"\\u8BA2\\u5355\\u53F7\\uFF1A\");\r\n\t\tlabel_4.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlabel_4.setBounds(24, 31, 72, 18);\r\n\t\tpanel_2.add(label_4);\r\n\r\n\t\ttextField_3 = new JTextField();\t\t\t\t\t//订单号\r\n\t\ttextField_3.setBounds(110, 28, 86, 24);\r\n\t\tpanel_2.add(textField_3);\r\n\t\ttextField_3.setColumns(10);\r\n\r\n\t\tJLabel label_5 = new JLabel(\"\\u56FE\\u4E66\\u53F7\\uFF1A\");\r\n\t\tlabel_5.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlabel_5.setBounds(228, 31, 72, 18);\r\n\t\tpanel_2.add(label_5);\r\n\r\n\t\ttextField_4 = new JTextField();\t\t\t\t\t//图书号\r\n\t\ttextField_4.setBounds(295, 28, 86, 24);\r\n\t\tpanel_2.add(textField_4);\r\n\t\ttextField_4.setColumns(10);\r\n\r\n\t\tJLabel label_6 = new JLabel(\"\\u4E66\\u540D\\uFF1A\");\r\n\t\tlabel_6.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlabel_6.setBounds(397, 31, 72, 18);\r\n\t\tpanel_2.add(label_6);\r\n\r\n\t\ttextField_5 = new JTextField();\t\t\t\t\t///书名\r\n\t\ttextField_5.setBounds(465, 28, 86, 24);\r\n\t\tpanel_2.add(textField_5);\r\n\t\ttextField_5.setColumns(10);\r\n\r\n\t\tJLabel label_7 = new JLabel(\"\\u8FDB\\u4EF7\\uFF1A\");\r\n\t\tlabel_7.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlabel_7.setBounds(561, 31, 51, 18);\r\n\t\tpanel_2.add(label_7);\r\n\r\n\t\ttextField_7 = new JTextField();\t\t\t\t\t//进价\r\n\t\ttextField_7.setBounds(603, 28, 39, 24);\r\n\t\tpanel_2.add(textField_7);\r\n\t\ttextField_7.setColumns(10);\r\n\r\n\t\tJLabel label_9 = new JLabel(\"\\u51FA\\u7248\\u5546\\uFF1A\");\r\n\t\tlabel_9.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlabel_9.setBounds(24, 62, 72, 18);\r\n\t\tpanel_2.add(label_9);\r\n\r\n\t\ttextField_8 = new JTextField();\t\t\t\t\t//出版商\r\n\t\ttextField_8.setBounds(110, 59, 86, 24);\r\n\t\tpanel_2.add(textField_8);\r\n\t\ttextField_8.setColumns(10);\r\n\r\n\t\tJLabel label_10 = new JLabel(\"\\u4F9B\\u5E94\\u5546\\u53F7\\uFF1A\");\r\n\t\tlabel_10.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlabel_10.setBounds(210, 62, 86, 18);\r\n\t\tpanel_2.add(label_10);\r\n\r\n\t\ttextField_9 = new JTextField();\t\t\t\t\t//出版商号\r\n\t\ttextField_9.setBounds(295, 59, 86, 24);\r\n\t\tpanel_2.add(textField_9);\r\n\t\ttextField_9.setColumns(10);\r\n\r\n\t\tJLabel label_11 = new JLabel(\"\\u552E\\u4EF7\\uFF1A\");\r\n\t\tlabel_11.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlabel_11.setBounds(647, 31, 56, 18);\r\n\t\tpanel_2.add(label_11);\r\n\r\n\t\ttextField_10 = new JTextField(); ///售价\r\n\t\ttextField_10.setBounds(704, 28, 39, 24);\r\n\t\tpanel_2.add(textField_10);\r\n\t\ttextField_10.setColumns(10);\r\n\r\n\t\tJLabel label_12 = new JLabel(\"\\u4F9B\\u5E94\\u91CF\\uFF1A\");\r\n\t\tlabel_12.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlabel_12.setBounds(397, 62, 72, 18);\r\n\t\tpanel_2.add(label_12);\r\n\r\n\t\ttextField_11 = new JTextField();///供应量\r\n\t\ttextField_11.setBounds(465, 59, 39, 24);\r\n\t\tpanel_2.add(textField_11);\r\n\t\ttextField_11.setColumns(10);\r\n\r\n//\t\t@Orderform_id varchar(20),--订单号\r\n//\t\t@Book_id varchar(20),--图书号\r\n//\t\t@Book_name varchar(20),--书名\r\n//\t\t@Book_in_price float,--进价\r\n//\t\t@Book_out_price float,--售价\r\n//\t\t@Supplier_name varchar(20),--出版商\r\n//\t\t@Supplier_id varchar(20),--供应商号\r\n//\t\t--Book_storage_time datetime,--图书入库时间\r\n//\t\t@Book_stock int--库存/进货数量\r\n\t\tJScrollPane scrollPane_1 = new JScrollPane();\r\n\t\tscrollPane_1.setBounds(14, 130, 762, 290);\r\n\t\ttable_1 = new JTable();\r\n\t\tscrollPane_1.setViewportView(table_1);\r\n\t\t\r\n\t\tJButton button_4 = new JButton(\"\\u6DFB\\u52A0\\u8BA2\\u5355\");///订单\r\n\t\tbutton_4.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent f) {\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tString Orderform_id = textField_3.getText();\t \r\n\t\t\t\t String Book_id = textField_4.getText();\r\n\t\t\t\t String Book_name = textField_5.getText();\r\n\t\t\t\t Float Book_in_price = Float.parseFloat(textField_7.getText());\r\n\t\t\t\t Float Book_out_price = Float.parseFloat(textField_10.getText());\r\n\t\t\t\t String Supplier_name = textField_8.getText();\r\n\t\t\t\t String Supplier_id = textField_9.getText();\r\n\t\t\t\t int Book_stock = Integer.parseInt(textField_11.getText());\r\n\t\t\t\t \r\n\t\t\t\t String jdbcDriver = \"com.microsoft.sqlserver.jdbc.SQLServerDriver\";\r\n\t\t\t\t\tString connectDB = \"jdbc:sqlserver://127.0.0.1:1433;DatabaseName=BRMSDB\";\r\n\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tClass.forName(jdbcDriver);// 加载数据库驱动\r\n\t\t\t\t\t\tString user = \"sa\";// 数据库用户名\r\n\t\t\t\t\t\tString password = \"123456\";// 数据库密码\r\n\t\t\t\t\t\tConnection connection = DriverManager.getConnection(connectDB, user, password);// 建立数据库连接,获得连接对象\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tint count1 = 0;///判断是否有这个供应商\r\n\t\t\t\t\t\tint count2 = 0;\r\n\t\t\t\t\t\tStatement statement = connection.createStatement();\r\n\t\t\t\t\t\tResultSet rs = statement.executeQuery(\r\n\t\t\t\t\t\t\t\t\"SELECT * FROM Book WHERE Book_id = '\" + textField_4.getText() + \"'\");\r\n\t\t\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\t\t\tcount2++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t rs = statement.executeQuery(\r\n\t\t\t\t\t\t\t\t\"SELECT * FROM Supplier WHERE Supplier_id = '\" + textField_9.getText() + \"'\");\r\n\t\t\t\t\t\t while (rs.next()) {\r\n\t\t\t\t\t\t\t\tcount1++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(count1 == 0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"没有该供应商\");\r\n\t\t\t\t\t\t\tthrow new Exception();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(count2 != 0) {\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"已经有这本图书\");\r\n\t\t\t\t\t\t\tthrow new Exception();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(count1 != 0 && count2 ==0) {\r\n\t\t\t\t\t\tPreparedStatement pstmt = connection.prepareStatement(\"{call dbo.Supply_NonExistentBook(?,?,?,?,?,?,?,?,?)}\");\r\n\t\t\t\t\t\tpstmt.setString(1, Orderform_id);\r\n\t\t\t\t\t\tpstmt.setString(2, Book_id);\r\n\t\t\t\t\t\tpstmt.setString(3, Book_name);\r\n\t\t\t\t\t\tpstmt.setFloat(4, Book_in_price);\r\n\t\t\t\t\t\tpstmt.setFloat(5, Book_out_price);\r\n\t\t\t\t\t\tpstmt.setString(6,Supplier_name);\r\n\t\t\t\t\t\tpstmt.setString(7, Supplier_id);\r\n\t\t\t\t\t\tpstmt.setInt(8, Book_stock);\r\n\t\t\t\t\t\tpstmt.setString(9, textField_6.getText());\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tpstmt.execute();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tint count = 0;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t rs = statement.executeQuery(\"SELECT * FROM Order_detail WHERE Orderform_id = '\" + textField_3.getText() + \"'\");\r\n\t\t\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tObject[][] infomation = new Object[count][4];\r\n\t\t\t\t\t\tcount = 0;\r\n\t\t\t\t\t\trs = statement.executeQuery(\"SELECT * FROM Order_detail WHERE Orderform_id = '\" + textField_3.getText() + \"'\");\r\n\t\t\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tinfomation[count][0] = String.valueOf(rs.getString(\"Orderform_id\"));\r\n\t\t\t\t\t\t\tinfomation[count][1] = String.valueOf(rs.getString(\"Book_num\"));\r\n\t\t\t\t\t\t\tinfomation[count][2] = String.valueOf(rs.getString(\"Book_id\"));\r\n\t\t\t\t\t\t\tinfomation[count][3] = String.valueOf(rs.getString(\"Pay_total\"));\r\n\t\t\t\t\t\t\tcount++;\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tString[] title = { \"订单号\", \"数量\", \"图书号\",\"小计\" };\r\n\t\t\t\t\t\ttable_1 = new JTable(infomation, title);\r\n\t\t\t\t\t\ttable_1.setBounds(41, 122, 843, 372);\r\n\t\t\t\t\t\tscrollPane_1.setViewportView(table_1);/// 加表格\r\n\t\t\t\t\t\tSystem.out.println(count+2);\r\n\t\t\t\t\t\trs.close();\r\n\t\t\t\t\t\tpstmt.close();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\tcatch (Exception e1) {\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"程序错误\");\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t});\r\n\r\n\t\tbutton_4.setBounds(627, 90, 113, 27);\r\n\t\tpanel_2.add(button_4);\r\n\r\n\t\t\r\n\r\n\t\tJPanel panel_1 = new JPanel();\r\n\t\tpanel_3.add(panel_1, \"name_594726193135799\");\r\n\t\tpanel_1.setLayout(null);\r\n\r\n\t\tJLabel label_1 = new JLabel(\"\\u8BA2\\u5355\\u53F7\\uFF1A\");\r\n\t\tlabel_1.setBounds(140, 27, 72, 18);\r\n\t\tpanel_1.add(label_1);\r\n\t\tlabel_1.setHorizontalAlignment(SwingConstants.CENTER);\r\n\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setBounds(243, 24, 282, 24);\r\n\t\tpanel_1.add(textField);\r\n\t\ttextField.setColumns(10);\r\n\r\n\t\tJLabel label_2 = new JLabel(\"\\u56FE\\u4E66\\u53F7\\uFF1A\");\r\n\t\tlabel_2.setBounds(140, 59, 72, 25);\r\n\t\tpanel_1.add(label_2);\r\n\t\tlabel_2.setHorizontalAlignment(SwingConstants.CENTER);\r\n\r\n\t\tJLabel label_3 = new JLabel(\"\\u6570\\u91CF\\uFF1A\");\r\n\t\tlabel_3.setBounds(140, 97, 72, 18);\r\n\t\tpanel_1.add(label_3);\r\n\t\tlabel_3.setHorizontalAlignment(SwingConstants.CENTER);\r\n\r\n\t\ttextField_1 = new JTextField();\r\n\t\ttextField_1.setBounds(243, 61, 282, 24);\r\n\t\tpanel_1.add(textField_1);\r\n\t\ttextField_1.setColumns(10);\r\n\r\n\t\ttextField_2 = new JTextField();\r\n\t\ttextField_2.setBounds(243, 94, 86, 24);\r\n\t\tpanel_1.add(textField_2);\r\n\t\ttextField_2.setColumns(10);\r\n\r\n\t\tJButton button_3 = new JButton(\"\\u6DFB\\u52A0\\u8BA2\\u5355\");\r\n\t\tbutton_3.setBounds(412, 93, 113, 27);\r\n\t\tpanel_1.add(button_3);\r\n\r\n\t\tJScrollPane scrollPane = new JScrollPane();\r\n\t\tscrollPane.setBounds(14, 130, 762, 290);\r\n\t\tpanel_1.add(scrollPane);\r\n\r\n\t\ttable = new JTable();\r\n\t\tscrollPane.setViewportView(table);\r\n\r\n\t\tpanel_2.add(scrollPane_1);\r\n\t\t\r\n\t\tJButton button = new JButton(\"\\u8FD4\\u56DE\");//返回按钮\r\n\t\tbutton.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\tnew Front();\r\n\t\t\t\tsetVisible(false);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setBounds(14, 13, 113, 27);\r\n\t\tcontentPane.add(button);\r\n\r\n\r\n\t\tpanel_1.setVisible(true);\r\n\t\tpanel_2.setVisible(false);\r\n\r\n\t\tbutton_1.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\tpanel_1.setVisible(true);\r\n\t\t\t\tpanel_2.setVisible(false);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbutton_2.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\tpanel_1.setVisible(false);\r\n\t\t\t\tpanel_2.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbutton_3.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\tString jdbcDriver = \"com.microsoft.sqlserver.jdbc.SQLServerDriver\";\r\n\t\t\t\tString connectDB = \"jdbc:sqlserver://127.0.0.1:1433;DatabaseName=BRMSDB\";\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tClass.forName(jdbcDriver);// 加载数据库驱动\r\n\t\t\t\t\tString user = \"sa\";// 数据库用户名\r\n\t\t\t\t\tString password = \"123456\";// 数据库密码\r\n\t\t\t\t\tConnection connection = DriverManager.getConnection(connectDB, user, password);// 建立数据库连接,获得连接对象\r\n\t\t\t\t\tint count1 = 0;///判断是否有这本图书\r\n\t\t\t\t\tStatement statement = connection.createStatement();\r\n\t\t\t\t\tResultSet rs = statement.executeQuery(\r\n\t\t\t\t\t\t\t\"SELECT * FROM Book WHERE Book_id = '\" + textField_1.getText() + \"'\");\r\n\t\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\t\tcount1++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(count1 == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"没有该图书\");\r\n\t\t\t\t\t\tthrow new Exception();\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(count1!=0) {\r\n\t\t\t\t\t\tPreparedStatement pstmt = connection.prepareStatement(\"{call dbo.Supply_ExistentBook(?,?,?)}\");\r\n\t\t\t\t\r\n\t\t\t\t\tpstmt.setString(1, textField.getText());\r\n\t\t\t\t\tpstmt.setString(3, textField_1.getText());\r\n\t\t\t\t\tpstmt.setInt(2, Integer.parseInt(textField_2.getText()));\r\n\t\t\t\r\n\t\t\t\t\tpstmt.execute();\r\n\t\t\t\t\t\r\n\t\t\t\t\tint count = 0;\r\n\t\t\t\t\t rs = statement.executeQuery(\"SELECT * FROM Order_detail WHERE Orderform_id = '\" + textField.getText() + \"'\");\r\n\t\t\t\t\t\r\n\t\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tObject[][] infomation = new Object[count][4];\r\n\t\t\t\t\tcount = 0;\r\n\t\t\t\t\t\r\n\t\t\t\t\trs = statement.executeQuery(\"SELECT * FROM Order_detail WHERE Orderform_id = '\" + textField.getText() + \"'\");\r\n\t\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tinfomation[count][0] = String.valueOf(rs.getString(\"Orderform_id\"));\r\n\t\t\t\t\t\tinfomation[count][1] = String.valueOf(rs.getString(\"Book_num\"));\r\n\t\t\t\t\t\tinfomation[count][2] = String.valueOf(rs.getString(\"Book_id\"));\r\n\t\t\t\t\t\tinfomation[count][3] = String.valueOf(rs.getString(\"Pay_total\"));\r\n\t\t\t\t\t\tcount++;\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\tString[] title = { \"订单号\", \"数量\", \"图书号\",\"小计\" };\r\n\t\t\t\t\ttable = new JTable(infomation, title);\r\n\t\t\t\t\ttable.setBounds(41, 122, 843, 372);\r\n\t\t\t\t\tscrollPane.setViewportView(table);/// 加表格\r\n\t\t\t\t\t\r\n\t\t\t\t\trs.close();\r\n\t\t\t\t\tpstmt.close();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception e1) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"程序错误\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJButton button_6 = new JButton(\"\\u652F\\u4ED8\");\r\n\t\tbutton_6.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\tif (!textField_3.getText().equals(\"\")) {\r\n\t\t\t\tString jdbcDriver = \"com.microsoft.sqlserver.jdbc.SQLServerDriver\";\r\n\t\t\t\tString connectDB = \"jdbc:sqlserver://127.0.0.1:1433;DatabaseName=BRMSDB\";\r\n\t\t\t\ttry {\r\n\t\t\t\t\tClass.forName(jdbcDriver);// 加载数据库驱动\r\n\t\t\t\t\tString user = \"sa\";// 数据库用户名\r\n\t\t\t\t\tString password = \"123456\";// 数据库密码\r\n\t\t\t\t\tConnection connection = DriverManager.getConnection(connectDB, user, password);// 建立数据库连接,获得连接对象\r\n\t\t\t\t\tStatement statement = connection.createStatement();// 创建一个Statement对象\r\n\r\n\t\t\t\t\tResultSet rs = statement\r\n\t\t\t\t\t\t\t.executeQuery(\"select SUM(Pay_total) money from Order_detail where Orderform_id = '\"+ textField_3.getText() + \"'\");// 执行查询语句\r\n\t\t\t\t\t\r\n\t\t\t\t\tString money = null;\r\n\t\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\t\tmoney = rs.getString(\"money\");\r\n\t\t\t\t\t\t// System.out.println(rs);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// System.out.println(money);\r\n\r\n\t\t\t\t\tZhiFu a = new ZhiFu();\r\n\t\t\t\t\ta.label_1.setText(\"订单号:\" + textField_3.getText());\r\n\t\t\t\t\ta.label_2.setText(\"支付总额:\" + money + \"元\");\r\n\t\t\t\t\t// String s = \"insert into Pay_message values ('\" +\r\n\t\t\t\t\t// textField.getText() + \"',\"+money+\",'\" +\r\n\t\t\t\t\t// a.comboBox.getSelectedItem() + \"')\";\r\n\t\t\t\t\ta.set(textField_3.getText(), money);\r\n\r\n\t\t\t\t\t// rs = statement.executeQuery(s);\r\n\t\t\t\t\t//\r\n\t\t\t\t\t// while(rs.next()) {\r\n\t\t\t\t\t// System.out.println(rs);\r\n\t\t\t\t\t// }\r\n\r\n\t\t\t\t} catch (Exception e1) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"支付失败!\");\r\n\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"订单号不能为空!\");\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_6.setBounds(663, 432, 113, 27);\r\n\t\tpanel_2.add(button_6);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"\\u7C7B\\u522B\\uFF1A\");\r\n\t\tlblNewLabel.setBounds(540, 62, 72, 18);\r\n\t\tpanel_2.add(lblNewLabel);\r\n\t\t\r\n\t\ttextField_6 = new JTextField();\r\n\t\ttextField_6.setBounds(592, 59, 100, 24);\r\n\t\tpanel_2.add(textField_6);\r\n\t\ttextField_6.setColumns(10);\r\n\t\tJButton button_5 = new JButton(\"\\u652F\\u4ED8\");\r\n\t\tbutton_5.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\tif (!textField.getText().equals(\"\")) {\r\n\t\t\t\t\tString jdbcDriver = \"com.microsoft.sqlserver.jdbc.SQLServerDriver\";\r\n\t\t\t\t\tString connectDB = \"jdbc:sqlserver://127.0.0.1:1433;DatabaseName=BRMSDB\";\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tClass.forName(jdbcDriver);// 加载数据库驱动\r\n\t\t\t\t\t\tString user = \"sa\";// 数据库用户名\r\n\t\t\t\t\t\tString password = \"123456\";// 数据库密码\r\n\t\t\t\t\t\tConnection connection = DriverManager.getConnection(connectDB, user, password);// 建立数据库连接,获得连接对象\r\n\t\t\t\t\t\tStatement statement = connection.createStatement();// 创建一个Statement对象\r\n\r\n\t\t\t\t\t\tResultSet rs = statement\r\n\t\t\t\t\t\t\t\t.executeQuery(\"select SUM(Pay_total) money from Order_detail where Orderform_id = '\"\r\n\t\t\t\t\t\t\t\t\t\t+ textField.getText() + \"'\");// 执行查询语句\r\n\t\t\t\t\t\tString money = null;\r\n\t\t\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\t\t\tmoney = rs.getString(\"money\");\r\n\t\t\t\t\t\t\t// System.out.println(rs);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// System.out.println(money);\r\n\r\n\t\t\t\t\t\tZhiFu a = new ZhiFu();\r\n\t\t\t\t\t\ta.label_1.setText(\"订单号:\" + textField.getText());\r\n\t\t\t\t\t\ta.label_2.setText(\"支付总额:\" + money + \"元\");\r\n\t\t\t\t\t\t// String s = \"insert into Pay_message values ('\" +\r\n\t\t\t\t\t\t// textField.getText() + \"',\"+money+\",'\" +\r\n\t\t\t\t\t\t// a.comboBox.getSelectedItem() + \"')\";\r\n\t\t\t\t\t\ta.set(textField.getText(), money);\r\n\r\n\t\t\t\t\t\t// rs = statement.executeQuery(s);\r\n\t\t\t\t\t\t//\r\n\t\t\t\t\t\t// while(rs.next()) {\r\n\t\t\t\t\t\t// System.out.println(rs);\r\n\t\t\t\t\t\t// }\r\n\r\n\t\t\t\t\t} catch (Exception e1) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"支付失败!\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"订单号不能为空!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbutton_5.setBounds(663, 432, 113, 27);\r\n\t\tpanel_1.add(button_5);\r\n\r\n\t}",
"public VentanaRegistro() {\n\n\t\tframe = new JFrame();\n\t\tframe.setVisible(true);\n\t\tframe.setSize(720, 480);\n\t\tframe.setResizable(false);\n\t\tframe.setLocationRelativeTo(null);\n\t\tframe.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\t\t// frame.setTitle(\"TITULO\");\n\t\tframe.setResizable(false);\n\n\t\tJPanel ventanaRegistro = new JPanel();\n\t\tventanaRegistro.setLayout(null);\n\t\tframe.getContentPane().add(ventanaRegistro);\n\t\tventanaRegistro.setVisible(true);\n\n\t\tlabelNombre = new JLabel();\n\t\tlabelNombre.setText(\"Introduzca su nombre:\");\n\t\tlabelNombre.setBounds(100, 50, 200, 30);\n\n\t\tlabelApellido = new JLabel();\n\t\tlabelApellido.setText(\"Introduzca su apellido:\");\n\t\tlabelApellido.setBounds(100, 100, 200, 30);\n\n\t\tlabelCorreo = new JLabel();\n\t\tlabelCorreo.setText(\"Introduzca su correo:\");\n\t\tlabelCorreo.setBounds(100, 150, 200, 30);\n\n\t\tlabelContrasena = new JLabel();\n\t\tlabelContrasena.setText(\"Introduzca su contraseña:\");\n\t\tlabelContrasena.setBounds(100, 200, 200, 30);\n\n\t\tlabelErrorNombre = new JLabel();\n\t\tlabelErrorNombre.setText(\"Error al escribir el nombre.\");\n\t\tlabelErrorNombre.setBounds(400, 70, 200, 30);\n\t\tlabelErrorNombre.setForeground(Color.RED);\n\t\tlabelErrorNombre.setVisible(false);\n\n\t\tlabelErrorApellido = new JLabel();\n\t\tlabelErrorApellido.setText(\"Error al escribir el apellido.\");\n\t\tlabelErrorApellido.setBounds(400, 120, 200, 30);\n\t\tlabelErrorApellido.setForeground(Color.RED);\n\t\tlabelErrorApellido.setVisible(false);\n\n\t\tlabelErrorCorreo = new JLabel();\n\t\tlabelErrorCorreo.setText(\"Error al escribir el correo.\");\n\t\tlabelErrorCorreo.setBounds(400, 170, 200, 30);\n\t\tlabelErrorCorreo.setForeground(Color.RED);\n\t\tlabelErrorCorreo.setVisible(false);\n\n\t\tlabelErrorContrasena = new JLabel();\n\t\tlabelErrorContrasena.setText(\"Error al escribir la contrasena.\");\n\t\tlabelErrorContrasena.setBounds(400, 220, 200, 30);\n\t\tlabelErrorContrasena.setForeground(Color.RED);\n\t\tlabelErrorContrasena.setVisible(false);\n\n\t\ttextNombre = new JTextField();\n\t\t// textNombre.setText(\"\");\n\t\ttextNombre.setBounds(400, 50, 250, 30);\n\n\t\ttextApellido = new JTextField();\n\t\t// textNombre.setText(\"\");\n\t\ttextApellido.setBounds(400, 100, 250, 30);\n\n\t\ttextCorreo = new JTextField();\n\t\t// textCorreo.setText(\"\");\n\t\ttextCorreo.setBounds(400, 150, 250, 30);\n\n\t\ttextContrasena = new JTextField();\n\t\t// textContrasena.setText(\"\");\n\t\ttextContrasena.setBounds(400, 200, 250, 30);\n\n\t\tbotonAtras = new JButton();\n\t\tbotonAtras.setText(\"Atrás\");\n\t\tbotonAtras.setBounds(10, 340, 200, 30);\n\n\t\tbotonSiguiente = new JButton();\n\t\tbotonSiguiente.setText(\"Siguiente\");\n\t\tbotonSiguiente.setBounds(500, 340, 200, 30);\n\n\t\tventanaRegistro.add(labelNombre);\n\t\tventanaRegistro.add(labelApellido);\n\t\tventanaRegistro.add(labelCorreo);\n\t\tventanaRegistro.add(labelContrasena);\n\t\tventanaRegistro.add(labelErrorNombre);\n\t\tventanaRegistro.add(labelErrorApellido);\n\t\tventanaRegistro.add(labelErrorCorreo);\n\t\tventanaRegistro.add(labelErrorContrasena);\n\t\tventanaRegistro.add(textNombre);\n\t\tventanaRegistro.add(textApellido);\n\t\tventanaRegistro.add(textCorreo);\n\t\tventanaRegistro.add(textContrasena);\n\t\tventanaRegistro.add(botonAtras);\n\t\tventanaRegistro.add(botonSiguiente);\n\n\t\tchoiceAdmin = new Choice();\n\t\tchoiceAdmin.add(\"-----------\");\n\t\tchoiceAdmin.add(\"Administrador\");\n\t\tchoiceAdmin.add(\"Usuario\");\n\t\tchoiceAdmin.setBounds(400, 256, 250, 32);\n\t\tventanaRegistro.add(choiceAdmin);\n\n\t\tlblAdministrador = new JLabel(\"Tipo de cuenta:\");\n\t\tlblAdministrador.setBounds(100, 247, 200, 30);\n\t\tventanaRegistro.add(lblAdministrador);\n\n\t\tlblCorreoDelAdministrador = new JLabel(\"Correo del Administrador\");\n\t\tlblCorreoDelAdministrador.setVisible(false);\n\t\tlblCorreoDelAdministrador.setBounds(100, 288, 200, 30);\n\t\tventanaRegistro.add(lblCorreoDelAdministrador);\n\n\t\ttextField = new JTextField();\n\t\ttextField.setVisible(false);\n\t\ttextField.setBounds(400, 283, 250, 30);\n\t\tventanaRegistro.add(textField);\n\n\t\tchoiceAdmin.addItemListener(new ItemListener() {\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tAdmin();\n\t\t\t}\n\t\t});\n\t\tbotonAtras.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tVentanaLogin VL = new VentanaLogin();\n\t\t\t\tVL.setVisible(true);\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\n\t\tbotonSiguiente.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tRegistrar();\n\t\t\t}\n\t\t});\n\t}",
"public ProdutoCadastroGUI() throws SQLException {\n initComponents();\n listarGrupo();\n listarUnidade();\n janelapai = null;\n janelapai2 = null;\n janelapai3 = null;\n janelapai4 = null;\n try {\n UIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n // UIManager.setLookAndFeel(\"com.sun.java.swing.plaf.smoothmetal.SmoothmetalLookAndAndFeel\");\n //UIManager.setLookAndFeel(\"com.birosoft.liquid.LiquidLookAndFeel\");\n //UIManager.setLookAndFeel(seta_look);\n SwingUtilities.updateComponentTreeUI(this);\n } catch (Exception erro) {\n JOptionPane.showMessageDialog(null, erro);\n }\n }",
"public TELASOBRE1() {\n initComponents();\n \n this.setLocationRelativeTo(null);\n \n \n \n }",
"public void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setTitle(\"\\u6CE8\\u518C\");\r\n\t\t\r\n\t\tToolkit kit = Toolkit.getDefaultToolkit();\r\n\t\tDimension screensize = kit.getScreenSize();\r\n\t\tint screenWIDE = screensize.width;\r\n\t\tint screenHIGH = screensize.height;\r\n\t\tint FrameWith = 450;\r\n\t\tint FrameHith = 412;\r\n\t\tframe.setBounds((screenWIDE - FrameWith) / 2, (screenHIGH - FrameHith) / 2,\r\n\t\t\t\tFrameWith, FrameHith);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setIconImage(Toolkit.getDefaultToolkit().getImage(\"icon.png\"));\r\n\r\n\t\tJLabel label = new JLabel(\"\\u6CE8\\u518C\\u540D\");\r\n\t\tlabel.setBounds(29, 25, 61, 27);\r\n\t\tframe.getContentPane().add(label);\r\n\t\tlblNewLabel.setForeground(Color.RED);\r\n\t\tlblNewLabel.setBounds(300, 31, 124, 15);\r\n\t\tframe.getContentPane().add(lblNewLabel);\r\n\t\t\r\n\t\t\r\n\t\tlabel_1.setForeground(Color.RED);\r\n\t\tlabel_1.setBounds(300, 143, 124, 15);\r\n\t\tframe.getContentPane().add(label_1);\r\n\t\tlblNewLabel_1.setForeground(Color.RED);\r\n\t\tlblNewLabel_1.setBounds(300, 68, 124, 15);\r\n\t\tframe.getContentPane().add(lblNewLabel_1);\r\n\t\tlblNewLabel_2.setForeground(Color.RED);\r\n\t\tlblNewLabel_2.setBounds(300, 105, 124, 15);\r\n\t\tframe.getContentPane().add(lblNewLabel_2);\r\n\t\t\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setBounds(122, 28, 146, 21);\r\n\t\tframe.getContentPane().add(textField);\r\n\t\ttextField.setColumns(10);\r\n\t\t\r\n\t\tJLabel label_2 = new JLabel(\"密码\");\r\n\t\tlabel_2.setBounds(29, 132, 54, -19);\r\n\t\tframe.getContentPane().add(label_2);\r\n\t\t\r\n\t\tJLabel label_3 = new JLabel(\"\\u786E\\u8BA4\\u5BC6\\u7801\");\r\n\t\tlabel_3.setBounds(29, 105, 54, 15);\r\n\t\tframe.getContentPane().add(label_3);\r\n\t\t\r\n\t\tJLabel label_4 = new JLabel(\"密码\");\r\n\t\tlabel_4.setBounds(29, 62, 54, 15);\r\n\t\tframe.getContentPane().add(label_4);\r\n\t\t\r\n\t\ttextField_5 = new JTextField();\r\n\t\ttextField_5.setBounds(122, 140, 146, 21);\r\n\t\tframe.getContentPane().add(textField_5);\r\n\t\ttextField_5.setColumns(10);\r\n\t\t\r\n\t\tJLabel label_5 = new JLabel(\"\\u90AE\\u7BB1\");\r\n\t\tlabel_5.setBounds(29, 143, 54, 15);\r\n\t\tframe.getContentPane().add(label_5);\r\n\t\t\r\n\t\tJButton button = new JButton(\"注册\");\r\n\t\r\n\t\tbutton.addActionListener(this);\r\n\r\n\t\tbutton.setBounds(77, 262, 93, 23);\r\n\t\tframe.getContentPane().add(button);\r\n\t\t\r\n\t\tJButton button_1 = new JButton(\"\\u53D6\\u6D88\");\r\n\t\t\r\n\t\tbutton_1.addActionListener(new ActionListener(){\r\n\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t{\r\n\t\t\t\tLogin window = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\twindow = new Login();\r\n\t\t\t\t\twindow.frmLogin.setVisible(true);\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t// TODO 自动生成的 catch 块\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\tframe.setVisible(false);\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_1.setBounds(261, 262, 93, 23);\r\n\t\tframe.getContentPane().add(button_1);\r\n\t\t\r\n\t\tpasswordField = new JPasswordField();\r\n\t\tpasswordField.setBounds(122, 56, 146, 27);\r\n\t\tframe.getContentPane().add(passwordField);\r\n\t\t\r\n\t\tpasswordField_1 = new JPasswordField();\r\n\r\n\t\r\n\t\tpasswordField_1.setBounds(122, 99, 146, 27);\r\n\t\tframe.getContentPane().add(passwordField_1);\r\n\t\ttextField.addFocusListener(this);\r\n\t\tpasswordField.addFocusListener(this);\r\n\t\tpasswordField_1.addFocusListener(this);\r\n\t\ttextField_5.addFocusListener(this);\r\n\t}",
"public GuiStart()\r\n \r\n {\r\n \r\n super(\"Transfer-Client \" + Conf.VERSION);\r\n \r\n // -----------------------------------------//\r\n // Icon, Frame-Zentrierung, Exit-Operation //\r\n // -----------------------------------------//\r\n \r\n this.setIconImage(Conf.IMAGE_FOR_ICON);\r\n \r\n // Frame-Zentrierung\r\n this.setSize(WIDTH, HEIGHT);\r\n Dimension frameSize = getSize();\r\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n int x = (screenSize.width - frameSize.width) / 2;\r\n int y = (screenSize.height - frameSize.height) / 2;\r\n this.setLocation(x, y);\r\n \r\n // Exit-Operation definieren\r\n this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);\r\n \r\n JPanel panel = new JPanel();\r\n panel.setBorder(new EmptyBorder(20, 20, 20, 20));\r\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\r\n \r\n // --------------//\r\n // Inneres Panel //\r\n // --------------//\r\n JPanel innerpanel = new JPanel();\r\n FlowLayout flowlayout = new FlowLayout(FlowLayout.LEFT,5,5);\r\n innerpanel.setLayout(flowlayout);\r\n \r\n // ---------------------------------------------//\r\n // Inneres Panel: Linke Seite: Bild hinzufuegen //\r\n // ---------------------------------------------//\r\n JLabel bild = new JLabel(Conf.IMAGE_ICON_LOGO);\r\n innerpanel.add(bild);\r\n \r\n \r\n // ----------------------------------------------//\r\n // Inneres Panel: Rechte Seite: Text hinzufuegen //\r\n // ----------------------------------------------//\r\n //Panel fuer Text1 und Text2\r\n JPanel textpanel = new JPanel();\r\n GridLayout gridlayout = new GridLayout(4,1); //Es sind 4 Texte untereinander.\r\n textpanel.setLayout(gridlayout);\r\n \r\n //Titelzeile\r\n JLabel titel = new JLabel(\"Initialization\");\r\n Font font_titel = new Font(\"Sans Serif\", Font.BOLD, 16);\r\n titel.setFont(font_titel);\r\n textpanel.add(titel);\r\n \r\n //Erste Textzeile: Statusfeld 1\r\n Font font_status = new Font(\"Sans Serif\", Font.PLAIN, 12);\r\n this.statusfield1 = new JLabel(\"\"); \r\n this.statusfield1.setFont(font_status);\r\n textpanel.add(this.statusfield1);\r\n \r\n //Zweite Textzeile: Statusfeld 2\r\n this.statusfield2 = new JLabel(\"\");\r\n this.statusfield2.setFont(font_status);\r\n textpanel.add(this.statusfield2);\r\n \r\n //Dritte Textzeile: Statusfeld 3\r\n this.statusfield3 = new JLabel(\"\");\r\n this.statusfield3.setFont(font_status);\r\n textpanel.add(this.statusfield3);\r\n \r\n innerpanel.add(textpanel);\r\n \r\n // ----------------------------------------------//\r\n // Inneres Panel dem aeusseren Panel hinzufuegen //\r\n // ----------------------------------------------//\r\n panel.add(innerpanel);\r\n \r\n // Zwischenraum\r\n JLabel empty = new JLabel(\"\");\r\n panel.add(empty);\r\n \r\n // ------------//\r\n // GUI-Objekt //\r\n // ------------//\r\n this.setContentPane(panel);\r\n this.setResizable(false);\r\n this.setVisible(true);\r\n \r\n }",
"public CadastrarNota() {\n initComponents();\n setLocationRelativeTo(this);\n setTitle(\"Cadastro de Alunos\");\n setResizable(false);\n Atualizar();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 695, 385);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tframe.getContentPane().add(panel, BorderLayout.CENTER);\n\t\tpanel.setLayout(null);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setBounds(6, 6, 472, 121);\n\t\tpanel.add(panel_1);\n\t\tpanel.setLayout(null);\n\t\tpanel_1.setBorder(new TitledBorder(null, \"Datos Generales\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\tpanel_1.setLayout(null);\n\t\t\n\t\tJLabel lblNombre = new JLabel(\"Nombre:\");\n\t\tlblNombre.setBounds(6, 21, 61, 16);\n\t\tpanel_1.add(lblNombre);\n\t\t\n\t\tJLabel lblApellido = new JLabel(\"Apellido:\");\n\t\tlblApellido.setBounds(6, 49, 61, 16);\n\t\tpanel_1.add(lblApellido);\n\t\t\n\t\tJLabel lblCedula = new JLabel(\"Cedula:\");\n\t\tlblCedula.setBounds(6, 77, 61, 16);\n\t\tpanel_1.add(lblCedula);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(79, 16, 130, 26);\n\t\tpanel_1.add(textField);\n\t\ttextField.setColumns(10);\n\t\t\n\t\ttextField_1 = new JTextField();\n\t\ttextField_1.setBounds(79, 44, 130, 26);\n\t\tpanel_1.add(textField_1);\n\t\ttextField_1.setColumns(10);\n\t\t\n\t\ttextField_2 = new JTextField();\n\t\ttextField_2.setBounds(79, 72, 130, 26);\n\t\tpanel_1.add(textField_2);\n\t\ttextField_2.setColumns(10);\n\t\t\n\t\tJLabel lblEdad = new JLabel(\"Edad:\");\n\t\tlblEdad.setBounds(221, 21, 61, 16);\n\t\tpanel_1.add(lblEdad);\n\t\t\n\t\tJLabel lblEstadoCivil = new JLabel(\"Estado Civil:\");\n\t\tlblEstadoCivil.setBounds(221, 49, 86, 16);\n\t\tpanel_1.add(lblEstadoCivil);\n\t\t\n\t\tJComboBox comboBox = new JComboBox();\n\t\tcomboBox.setModel(new DefaultComboBoxModel(new String[] {\"<Seleccione>\", \"Casado\", \"Soltero\"}));\n\t\tcomboBox.setBounds(308, 48, 147, 20);\n\t\tpanel_1.add(comboBox);\n\t\t\n\t\tJSpinner spinner = new JSpinner();\n\t\tspinner.setBounds(308, 16, 46, 26);\n\t\tpanel_1.add(spinner);\n\t\t\n\t\tJPanel panel_2 = new JPanel();\n\t\tpanel_2.setBounds(6, 139, 423, 180);\n\t\tpanel.add(panel_2);\n\t\tpanel_2.setBorder(new TitledBorder(null, \"Fecha y Hora\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\tpanel_2.setLayout(null);\n\t\t\n\t\tJCalendar calendar = new JCalendar();\n\t\tcalendar.setBounds(10, 26, 305, 137);\n\t\tpanel_2.add(calendar);\n\t\t\n\t\tJLabel lblHora = new JLabel(\"Hora:\");\n\t\tlblHora.setBounds(327, 26, 61, 16);\n\t\tpanel_2.add(lblHora);\n\t\t\n\t\tJSpinner spinner_1 = new JSpinner();\n\t\tspinner_1.setBounds(327, 54, 42, 26);\n\t\tpanel_2.add(spinner_1);\n\t\t\n\t\tJSpinner spinner_2 = new JSpinner();\n\t\tspinner_2.setBounds(327, 92, 42, 26);\n\t\tpanel_2.add(spinner_2);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Hr\");\n\t\tlblNewLabel.setBounds(381, 59, 36, 16);\n\t\tpanel_2.add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Min\");\n\t\tlblNewLabel_1.setBounds(381, 97, 36, 16);\n\t\tpanel_2.add(lblNewLabel_1);\n\t\t\n\t\tJPanel panel_3 = new JPanel();\n\t\tpanel_3.setBorder(new TitledBorder(null, \"Motivo de cita\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\tpanel_3.setBounds(453, 139, 236, 180);\n\t\tpanel.add(panel_3);\n\t\tpanel_3.setLayout(null);\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBounds(6, 29, 224, 145);\n\t\tpanel_3.add(textArea);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Cancel\");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(572, 328, 117, 29);\n\t\tpanel.add(btnNewButton);\n\t\t\n\t\tJButton btnNewButton_1 = new JButton(\"Confirmar\");\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(443, 328, 117, 29);\n\t\tpanel.add(btnNewButton_1);\n\t}",
"public Tabuleiro(){\n\t\tjanelaJogo = new JFrame();\n\t\tjanelaJogo.setTitle(\"Xadrez\");\n\t\tjanelaJogo.setIconImage(new ImageIcon(\"image/chess.png\").getImage());\n\t\tthis.MontaComponentes();\n\t}",
"private void criaLabel(String nome, int eixoY) {\r\n\t\tJLabel nova = new JLabel(nome);\r\n\t\tnova.setFont(new Font(\"Arial\", Font.PLAIN, 14));\r\n\t\tnova.setForeground(Color.BLACK);\r\n\t\tnova.setBounds(28, eixoY, 70, 14);\r\n\t\tpainelPrincipal.add(nova);\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\townPanel = new NicePanel();\n\t\tframe.setTitle(\"Per Seconde Wijzer\");\n\t\tframe.setContentPane(ownPanel);\n\t\t// frame.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 1280, 720);\n\t\tframe.setLocationRelativeTo(null);\n\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(\n\t\t\t\tnew MigLayout(\"\", \"[300.00,grow,left][100.00,grow,fill][100.00,grow][300.00,grow]\",\n\t\t\t\t\t\t\"[157.00,grow,fill][160px:172.00px:180px,fill][][][][][157.00,grow]\"));\n\n\t\tJLabel lblNewLabel = new JLabel(\"<html>PER<br />\\nSECONDE<br />\\nWIJZER</html>\");\n\t\tlblNewLabel.setFont(new Font(\"Dialog\", Font.BOLD, 42));\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\townPanel.add(lblNewLabel, \"cell 1 1 2 1\");\n\n\t\ttxtVulHierJe = new JTextField();\n\t\ttxtVulHierJe.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\ttxtVulHierJe.setText(TXT_PLACEH_NAAM_INPUT);\n\t\tframe.getContentPane().add(txtVulHierJe, \"cell 1 2 2 1,growx\");\n\t\ttxtVulHierJe.setColumns(10);\n\n\t\t// Als er met de mouse geklikt wordt zal de placeholder text verwijderd\n\t\t// worden\n\t\ttxtVulHierJe.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tif (arg0.getButton() == 0x1 && txtVulHierJe.getText().equals(TXT_PLACEH_NAAM_INPUT))\n\t\t\t\t\ttxtVulHierJe.setText(\"\");\n\t\t\t}\n\t\t});\n\t\t// Placeholder wijzgen d.m.v. een keypress\n\t\ttxtVulHierJe.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif (txtVulHierJe.getText().equals(TXT_PLACEH_NAAM_INPUT)) txtVulHierJe.setText(\"\");\n\t\t\t}\n\t\t});\n\n\t\tNiceButton btnNewButton = new NiceButton(\"Spelregels\");\n\t\tfinal HelpScherm helpScherm = new HelpScherm(this);\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\topenPanel(helpScherm);\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnNewButton, \"cell 1 3,growx\");\n\n\t\tNiceButton btnNewButton_3 = new NiceButton(\"Start\");\n\t\tbtnNewButton_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\n\t\ttxtVulHierJe.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\tif (arg0.getKeyCode() == KeyEvent.VK_ENTER) startGame();\n\t\t\t}\n\t\t});\n\n\t\tbtnNewButton_3.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tstartGame();\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnNewButton_3, \"cell 2 3 1 2,grow\");\n\n\t\tNiceButton btnNewButton_2 = new NiceButton(\"Highscores\");\n\t\tbtnNewButton_2.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\topenPanel(new Highscore(spel));\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnNewButton_2, \"cell 1 4,growx\");\n\t}",
"public Calculadora() {\r\n\t\tsuper();\r\n\t\tsetSize(300, 300);\r\n\t\tsetTitle(\"Convertidor de dólares\");\r\n\t\tsetDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\r\n\t\tsetResizable(false);\r\n\r\n\t\t// Vamos a dibujar sobre el panel\r\n\t\tJPanel panel = (JPanel) this.getContentPane();\r\n\t\tpanel.setLayout(new BorderLayout());\r\n\r\n\t\tpantalla = new JTextField(\"0\", 20);\r\n\t\tpantalla.setBorder(new EmptyBorder(4, 4, 4, 4));\r\n\t\tpantalla.setFont(new Font(\"Arial\", Font.BOLD, 25));\r\n\t\tpantalla.setHorizontalAlignment(JTextField.RIGHT);\r\n\t\tpantalla.setEditable(false);\r\n\t\tpantalla.setBackground(Color.WHITE);\r\n\t\tpanel.add(\"North\", pantalla);\r\n \r\n\t\tpanelNumeros = new JPanel();\r\n\t\tpanelNumeros.setLayout(new GridLayout(4, 3));\r\n\t\tpanelNumeros.setBorder(new EmptyBorder(4, 4, 4, 4));\r\n\r\n for (int n = 0; n <= 9; n++) {\r\n\t\t\tnuevoBotonNumerico(\"\" + n);\r\n\t\t}\r\n\r\n\t\tnuevoBotonNumerico(\".\");\r\n\r\n\t\tpanel.add(\"Center\", panelNumeros);\r\n\r\n\t\tpanelOperaciones = new JPanel();\r\n\t\tpanelOperaciones.setLayout(new GridLayout(6, 1));\r\n\t\tpanelOperaciones.setBorder(new EmptyBorder(4, 4, 4, 4));\r\n\r\n\t\tnuevoBotonOperacion(\"Convertir\");\r\n\t\tnuevoBotonOperacion(\"CE\");\r\n\r\n\t\tpanel.add(\"East\", panelOperaciones);\r\n\t\tvalidate();\r\n\t}",
"private void initGrille() {\n this.setLayout(new GridLayout(8, 8));\n Color backgroundColor = Color.WHITE;\n for (int i = 7; i >= 0; i--) {\n for (int j = 0; j < 8; j++) {\n CaseJeu c = new CaseJeu(j, i, backgroundColor, fenetre);\n if (j != 7) {\n backgroundColor = (backgroundColor.equals(Color.GRAY)) ? Color.WHITE : Color.GRAY;\n }\n this.add(c);\n }\n }\n }",
"public static void initComponents() {\n\n StyleConstants.setFontSize(headingStyle, 12);\n StyleConstants.setBold(headingStyle, true);\n StyleConstants.setFontFamily(headingStyle, \"Monospaced\");\n\n StyleConstants.setFontSize(black, 10);\n StyleConstants.setFontFamily(black, \"Monospaced\");\n\n StyleConstants.setFontSize(red, 10);\n StyleConstants.setFontFamily(red, \"Monospaced\");\n StyleConstants.setForeground(red, Color.red);\n\n StyleConstants.setFontSize(green, 10);\n StyleConstants.setFontFamily(green, \"Monospaced\");\n StyleConstants.setForeground(green, Color.blue);\n\n try {\n textPane.setCharacterAttributes(headingStyle, true);\n documentModel.insertString(documentModel.getLength(), \"Logging started ...\\n\\n\", headingStyle);\n } catch (BadLocationException ble) {\n System.out.println(\"Bad location for text insert on logpanel.\");\n }\n }",
"public void makeGUI()\r\n {\n\t\t\tContainer jfrm;\r\n\t\t\tjfrm = getContentPane();\r\n jfrm.setLayout( new GridLayout( 200, 20 ) );\r\n jfrm.setLayout(null);\r\n jfrm.setBackground(new Color(144, 238, 144));\r\n //jfrm.setFont(f);\r\n //jfrm.setLayout(null);\r\n //jfrm.setSize(1250,500);\r\n //jfrm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n \r\n txt = new JTextField(70);\r\n txt.setBounds(100,40,960,40);\r\n jfrm.add(txt);\r\n txt.setText(\"\");\t\t\r\n txt.setFont(f);\r\n int x = 100,y = 100,x1 = 60,y1 = 40,i=0;\r\n \r\n JButton btna = new JButton(\"\\u0C85\");\r\n btna.setBounds(x+x1*i++,y,x1,y1);\r\n btna.setFont(f);\r\n btna.addActionListener(this);\r\n JButton btnaa = new JButton(\"\\u0C86\");\r\n btnaa.setBounds(x+x1*i++,y,x1,y1);\r\n btnaa.setFont(f);\r\n btnaa.addActionListener(this);\r\n JButton btni = new JButton(\"\\u0C87\");\r\n btni.setBounds(x+x1*i++,y,x1,y1);\r\n btni.setFont(f);\r\n btni.addActionListener(this);\r\n JButton btnii = new JButton(\"\\u0C88\");\r\n btnii.setBounds(x+x1*i++,y,x1,y1);\r\n btnii.setFont(f);\r\n btnii.addActionListener(this);\r\n JButton btnu = new JButton(\"\\u0C89\");\r\n btnu.setBounds(x+x1*i++,y,x1,y1);\r\n btnu.addActionListener(this);\r\n btnu.setFont(f);\r\n JButton btnuu = new JButton(\"\\u0C8A\");\r\n btnuu.setBounds(x+x1*i++,y,x1,y1);\r\n btnuu.addActionListener(this);\r\n btnuu.setFont(f);\r\n JButton btnr = new JButton(\"\\u0C8B\");\r\n btnr.setBounds(x+x1*i++,y,x1,y1);\r\n btnr.setFont(f);\r\n btnr.addActionListener(this);\r\n JButton btnrr = new JButton(\"\\u0CE0\");\r\n btnrr.setBounds(x+x1*i++,y,x1,y1);\r\n btnrr.setFont(f);\r\n btnrr.addActionListener(this);\r\n JButton btne = new JButton(\"\\u0C8E\");\r\n btne.setBounds(x+x1*i++,y,x1,y1);\r\n btne.addActionListener(this);\r\n btne.setFont(f);\r\n JButton btnee = new JButton(\"\\u0C8F\");\r\n btnee.setBounds(x+x1*i++,y,x1,y1);\r\n btnee.setFont(f);\r\n btnee.addActionListener(this);\r\n JButton btnai = new JButton(\"\\u0C90\");\r\n btnai.setBounds(x+x1*i++,y,x1,y1);\r\n btnai.setFont(f);\r\n btnai.addActionListener(this);\r\n JButton btno = new JButton(\"\\u0C92\");\r\n btno.setBounds(x+x1*i++,y,x1,y1);\r\n btno.setFont(f);\r\n btno.addActionListener(this);\r\n JButton btnoo = new JButton(\"\\u0C93\");\r\n btnoo.setBounds(x+x1*i++,y,x1,y1);\r\n btnoo.setFont(f);\r\n btnoo.addActionListener(this);\r\n JButton btnou = new JButton(\"\\u0C94\");\r\n btnou.setBounds(x+x1*i++,y,x1,y1);\r\n btnou.setFont(f);\r\n btnou.addActionListener(this);\r\n JButton btnam = new JButton(\"\\u0C85\\u0C82\");\r\n btnam.setBounds((x+x1*i++),y,x1+5,y1);\r\n btnam.setFont(f);\r\n btnam.addActionListener(this);\r\n JButton btnaha = new JButton(\"\\u0C85\\u0C83\");\r\n btnaha.setBounds(x+x1*i++,y,x1,y1);\r\n btnaha.setFont(f);\r\n btnaha.addActionListener(this);\r\n \r\n x = 400;\r\n y += 50;\r\n i=0;\r\n \r\n JButton btnka = new JButton(\"\\u0C95\");\r\n btnka.setBounds(x+x1*i++,y,x1,y1);\r\n btnka.setFont(f);\r\n btnka.addActionListener(this);\r\n JButton btnkha = new JButton(\"\\u0C96\");\r\n btnkha.setBounds(x+x1*i++,y,x1,y1);\r\n btnkha.setFont(f);\r\n btnkha.addActionListener(this);\r\n JButton btnga = new JButton(\"\\u0C97\");\r\n btnga.setBounds(x+x1*i++,y,x1,y1);\r\n btnga.setFont(f);\r\n btnga.addActionListener(this);\r\n JButton btngha = new JButton(\"\\u0C98\");\r\n btngha.setBounds(x+x1*i++,y,x1,y1);\r\n btngha.setFont(f);\r\n btngha.addActionListener(this);\r\n JButton btnnga = new JButton(\"\\u0C99\");\r\n btnnga.setBounds(x+x1*i++,y,x1,y1);\r\n btnnga.setFont(f);\r\n btnnga.addActionListener(this);\r\n \r\n x = 400;\r\n y += 50;\r\n i=0;\r\n \r\n JButton btnca = new JButton(\"\\u0C9A\");\r\n btnca.setBounds(x+x1*i++,y,x1,y1);\r\n btnca.setFont(f);\r\n btnca.addActionListener(this);\r\n JButton btncha = new JButton(\"\\u0C9B\");\r\n btncha.setBounds(x+x1*i++,y,x1,y1);\r\n btncha.setFont(f);\r\n btncha.addActionListener(this);\r\n JButton btnja = new JButton(\"\\u0C9C\");\r\n btnja.setBounds(x+x1*i++,y,x1,y1);\r\n btnja.setFont(f);\r\n btnja.addActionListener(this);\r\n JButton btnjha = new JButton(\"\\u0C9D\");\r\n btnjha.setBounds(x+x1*i++,y,x1,y1);\r\n btnjha.setFont(f);\r\n btnjha.addActionListener(this);\r\n JButton btnnya = new JButton(\"\\u0C9E\");\r\n btnnya.setBounds(x+x1*i++,y,x1,y1);\r\n btnnya.setFont(f);\r\n btnnya.addActionListener(this);\r\n \r\n x = 400;\r\n y += 50;\r\n i=0;\r\n \r\n JButton btntta = new JButton(\"\\u0C9F\");\r\n btntta.setBounds(x+x1*i++,y,x1,y1);\r\n btntta.setFont(f);\r\n btntta.addActionListener(this);\r\n JButton btnttha = new JButton(\"\\u0CA0\");\r\n btnttha.setBounds(x+x1*i++,y,x1,y1);\r\n btnttha.setFont(f);\r\n btnttha.addActionListener(this);\r\n JButton btndda = new JButton(\"\\u0CA1\");\r\n btndda.setBounds(x+x1*i++,y,x1,y1);\r\n btndda.setFont(f);\r\n btndda.addActionListener(this);\r\n JButton btnddha = new JButton(\"\\u0CA2\");\r\n btnddha.setBounds(x+x1*i++,y,x1,y1);\r\n btnddha.setFont(f);\r\n btnddha.addActionListener(this);\r\n JButton btnnna = new JButton(\"\\u0CA3\");\r\n btnnna.setBounds(x+x1*i++,y,x1,y1);\r\n btnnna.setFont(f);\r\n btnnna.addActionListener(this);\r\n \r\n x = 400;\r\n y += 50;\r\n i=0;\r\n \r\n JButton btnta = new JButton(\"\\u0CA4\");\r\n btnta.setBounds(x+x1*i++,y,x1,y1);\r\n btnta.setFont(f);\r\n btnta.addActionListener(this);\r\n JButton btntha = new JButton(\"\\u0CA5\");\r\n btntha.setBounds(x+x1*i++,y,x1,y1);\r\n btntha.setFont(f);\r\n btntha.addActionListener(this);\r\n JButton btnda = new JButton(\"\\u0CA6\");\r\n btnda.setBounds(x+x1*i++,y,x1,y1);\r\n btnda.setFont(f);\r\n btnda.addActionListener(this);\r\n JButton btndha = new JButton(\"\\u0CA7\");\r\n btndha.setBounds(x+x1*i++,y,x1,y1);\r\n btndha.setFont(f);\r\n btndha.addActionListener(this);\r\n JButton btnna = new JButton(\"\\u0CA8\");\r\n btnna.setBounds(x+x1*i++,y,x1,y1);\r\n btnna.setFont(f);\r\n btnna.addActionListener(this);\r\n \r\n x = 400;\r\n y += 50;\r\n i=0;\r\n \r\n JButton btnpa = new JButton(\"\\u0CAA\");\r\n btnpa.setBounds(x+x1*i++,y,x1,y1);\r\n btnpa.setFont(f);\r\n btnpa.addActionListener(this);\r\n JButton btnpha = new JButton(\"\\u0CAB\");\r\n btnpha.setBounds(x+x1*i++,y,x1,y1);\r\n btnpha.setFont(f);\r\n btnpha.addActionListener(this);\r\n JButton btnba = new JButton(\"\\u0CAC\");\r\n btnba.setBounds(x+x1*i++,y,x1,y1);\r\n btnba.setFont(f);\r\n btnba.addActionListener(this);\r\n JButton btnbha = new JButton(\"\\u0CAD\");\r\n btnbha.setBounds(x+x1*i++,y,x1,y1);\r\n btnbha.setFont(f);\r\n btnbha.addActionListener(this);\r\n JButton btnma = new JButton(\"\\u0CAE\");\r\n btnma.setBounds(x+x1*i++,y,x1,y1);\r\n btnma.setFont(f);\r\n btnma.addActionListener(this);\r\n \r\n x = 200;\r\n y += 50;\r\n i=0;\r\n \r\n JButton btnya = new JButton(\"\\u0CAF\");\r\n btnya.setBounds(x+x1*i++,y,x1,y1);\r\n btnya.setFont(f);\r\n btnya.addActionListener(this);\r\n JButton btnra = new JButton(\"\\u0CB0\");\r\n btnra.setBounds(x+x1*i++,y,x1,y1);\r\n btnra.setFont(f);\r\n btnra.addActionListener(this);\r\n JButton btnla = new JButton(\"\\u0CB2\");\r\n btnla.setBounds(x+x1*i++,y,x1,y1);\r\n btnla.setFont(f);\r\n btnla.addActionListener(this);\r\n JButton btnva = new JButton(\"\\u0CB5\");\r\n btnva.setBounds(x+x1*i++,y,x1,y1);\r\n btnva.setFont(f);\r\n btnva.addActionListener(this);\r\n JButton btnsha = new JButton(\"\\u0CB6\");\r\n btnsha.setBounds(x+x1*i++,y,x1,y1);\r\n btnsha.setFont(f);\r\n btnsha.addActionListener(this);\r\n JButton btnssa = new JButton(\"\\u0CB7\");\r\n btnssa.setBounds(x+x1*i++,y,x1,y1);\r\n btnssa.setFont(f);\r\n btnssa.addActionListener(this);\r\n JButton btnsa = new JButton(\"\\u0CB8\");\r\n btnsa.setBounds(x+x1*i++,y,x1,y1);\r\n btnsa.setFont(f);\r\n btnsa.addActionListener(this);\r\n JButton btnha = new JButton(\"\\u0CB9\");\r\n btnha.setBounds(x+x1*i++,y,x1,y1);\r\n btnha.setFont(f);\r\n btnha.addActionListener(this);\r\n JButton btnlla = new JButton(\"\\u0CB3\");\r\n btnlla.setBounds(x+x1*i++,y,x1,y1);\r\n btnlla.setFont(f);\r\n btnlla.addActionListener(this);\r\n JButton btnksha = new JButton(\"\\u0C95\\u0CCD\\u0CB7\");\r\n btnksha.setBounds(x+x1*i++,y,x1,y1);\r\n btnksha.setFont(f);\r\n btnksha.addActionListener(this);\r\n JButton btntra = new JButton(\"\\u0CA4\\u0CCD\\u0CB0\");\r\n btntra.setBounds(x+x1*i++,y,x1,y1);\r\n btntra.setFont(f);\r\n btntra.addActionListener(this);\r\n JButton btnjna = new JButton(\"\\u0C9C\\u0CCD\\u0C9E\");\r\n btnjna.setBounds(x+x1*i++,y,x1,y1);\r\n btnjna.setFont(f);\r\n btnjna.addActionListener(this);\r\n \r\n x = 750;\r\n y = 175;\r\n i=0;\r\n \r\n JButton btnhal = new JButton(\"\\u0CCD\");\r\n btnhal.setBounds(x+x1*i++,y,x1,y1);\r\n btnhal.setFont(f);\r\n btnhal.addActionListener(this);\r\n JButton btnvaa = new JButton(\"\\u0CBE\");\r\n btnvaa.setBounds(x+x1*i++,y,x1,y1);\r\n btnvaa.setFont(f);\r\n btnvaa.addActionListener(this);\t\r\n JButton btnvi = new JButton(\"\\u0CBF\");\r\n btnvi.setBounds(x+x1*i++,y,x1,y1);\r\n btnvi.setFont(f);\r\n btnvi.addActionListener(this);\r\n JButton btnvii = new JButton(\"\\u0CC0\");\r\n btnvii.setBounds(x+x1*i++,y,x1,y1);\r\n btnvii.setFont(f);\r\n btnvii.addActionListener(this);\r\n \r\n x = 750;\r\n y += 50;\r\n i=0;\r\n \r\n JButton btnvu = new JButton(\"\\u0CC1\");\r\n btnvu.setBounds(x+x1*i++,y,x1,y1);\r\n btnvu.setFont(f);\r\n btnvu.addActionListener(this);\r\n JButton btnvuu = new JButton(\"\\u0CC2\");\r\n btnvuu.setBounds(x+x1*i++,y,x1,y1);\r\n btnvuu.setFont(f);\r\n btnvuu.addActionListener(this);\r\n JButton btnvr = new JButton(\"\\u0CC3\");\r\n btnvr.setBounds(x+x1*i++,y,x1,y1);\r\n btnvr.setFont(f);\r\n btnvr.addActionListener(this);\r\n JButton btnvrr = new JButton(\"\\u0CC4\");\r\n btnvrr.setBounds(x+x1*i++,y,x1,y1);\r\n btnvrr.setFont(f);\r\n btnvrr.addActionListener(this);\r\n \r\n x = 750;\r\n y += 50;\r\n i=0;\r\n \r\n JButton btnve = new JButton(\"\\u0CC6\");\r\n btnve.setBounds(x+x1*i++,y,x1,y1);\r\n btnve.setFont(f);\r\n btnve.addActionListener(this);\r\n JButton btnvee = new JButton(\"\\u0CC7\");\r\n btnvee.setBounds(x+x1*i++,y,x1,y1);\r\n btnvee.setFont(f);\r\n btnvee.addActionListener(this);\r\n JButton btnvai = new JButton(\"\\u0CC8\");\r\n btnvai.setBounds(x+x1*i++,y,x1,y1);\r\n btnvai.setFont(f);\r\n btnvai.addActionListener(this);\r\n JButton btnvo = new JButton(\"\\u0CCA\");\r\n btnvo.setBounds(x+x1*i++,y,x1,y1);\r\n btnvo.setFont(f);\r\n btnvo.addActionListener(this);\r\n \r\n x = 750;\r\n y += 50;\r\n i=0;\r\n \r\n JButton btnvoo = new JButton(\"\\u0CCB\");\r\n btnvoo.setBounds(x+x1*i++,y,x1,y1);\r\n btnvoo.setFont(f);\r\n btnvoo.addActionListener(this);\r\n JButton btnvou = new JButton(\"\\u0CCC\");\r\n btnvou.setBounds(x+x1*i++,y,x1,y1);\r\n btnvou.setFont(f);\r\n btnvou.addActionListener(this);\r\n JButton btnvam = new JButton(\"\\u0C82\");\r\n btnvam.setBounds(x+x1*i++,y,x1,y1);\r\n btnvam.setFont(f);\r\n btnvam.addActionListener(this);\r\n JButton btnvaha = new JButton(\"\\u0C83\");\r\n btnvaha.setBounds(x+x1*i++,y,x1,y1);\r\n btnvaha.setFont(f);\r\n btnvaha.addActionListener(this);\r\n \r\n x = 160;\r\n y = 175;\r\n i=0;\r\n \r\n JButton btn1 = new JButton(\"\\u0CE7\");\r\n btn1.setBounds(x+x1*i++,y,x1,y1);\r\n btn1.setFont(f);\r\n btn1.addActionListener(this);\r\n JButton btn2 = new JButton(\"\\u0CE8\");\r\n btn2.setBounds(x+x1*i++,y,x1,y1);\r\n btn2.setFont(f);\r\n btn2.addActionListener(this);\r\n JButton btn3 = new JButton(\"\\u0CE9\");\r\n btn3.setBounds(x+x1*i++,y,x1,y1);\r\n btn3.setFont(f);\r\n btn3.addActionListener(this);\r\n \r\n x = 160;\r\n y += 50;\r\n i=0;\r\n \r\n JButton btn4 = new JButton(\"\\u0CEA\");\r\n btn4.setBounds(x+x1*i++,y,x1,y1);\r\n btn4.setFont(f);\r\n btn4.addActionListener(this);\r\n JButton btn5 = new JButton(\"\\u0CEB\");\r\n btn5.setBounds(x+x1*i++,y,x1,y1);\r\n btn5.setFont(f);\r\n btn5.addActionListener(this);\r\n JButton btn6 = new JButton(\"\\u0CEC\");\r\n btn6.setBounds(x+x1*i++,y,x1,y1);\r\n btn6.setFont(f);\r\n btn6.addActionListener(this);\r\n \r\n x = 160;\r\n y += 50;\r\n i=0;\r\n \r\n JButton btn7 = new JButton(\"\\u0CED\");\r\n btn7.setBounds(x+x1*i++,y,x1,y1);\r\n btn7.setFont(f);\r\n btn7.addActionListener(this);\r\n JButton btn8 = new JButton(\"\\u0CEE\");\r\n btn8.setBounds(x+x1*i++,y,x1,y1);\r\n btn8.setFont(f);\r\n btn8.addActionListener(this);\r\n JButton btn9 = new JButton(\"\\u0CEF\");\r\n btn9.setBounds(x+x1*i++,y,x1,y1);\r\n btn9.setFont(f);\r\n btn9.addActionListener(this);\r\n \r\n x = 220;\r\n y += 50;\r\n \t\t\r\n JButton btn0 = new JButton(\"\\u0CE6\");\r\n btn0.setBounds(x,y,x1,y1);\r\n btn0.setFont(f);\r\n btn0.addActionListener(this);\r\n \r\n x = 1000;\r\n y = 200;\r\n \t\t\r\n JButton btnBlank = new JButton(\"\\u0C96\\u0CBE\\u0CB2\\u0CBF\");\r\n btnBlank.setBounds(x,y,90,y1);\r\n btnBlank.setFont(f);\r\n btnBlank.addActionListener(this);\r\n \r\n x = 1000;\r\n y = 250;\r\n \r\n JButton btnClear = new JButton(\"\\u0C85\\u0CB3\\u0CBF\\u0CB8\\u0CC1\");\r\n btnClear.setBounds(x,y,90,40);\r\n btnClear.setFont(f);\r\n btnClear.addActionListener(this);\r\n /*JButton btnBack = new JButton(\"\\u0008\");\r\n btnBack.setFont(f);\r\n btnBack.addActionListener(this);\r\n */\r\n \t\r\n jfrm.add(btna);\r\n jfrm.add(btnaa);\r\n jfrm.add(btni);\r\n jfrm.add(btnii);\r\n jfrm.add(btnu);\r\n jfrm.add(btnuu);\r\n jfrm.add(btnr);\r\n jfrm.add(btnrr);\r\n jfrm.add(btne);\r\n jfrm.add(btnee);\r\n jfrm.add(btnai);\r\n jfrm.add(btno);\r\n jfrm.add(btnoo);\r\n jfrm.add(btnou);\r\n jfrm.add(btnam);\r\n jfrm.add(btnaha);\r\n jfrm.add(btnka);\r\n jfrm.add(btnkha);\r\n jfrm.add(btnga);\r\n jfrm.add(btngha);\r\n jfrm.add(btnnga);\r\n jfrm.add(btnca);\r\n jfrm.add(btncha);\r\n jfrm.add(btnja);\r\n jfrm.add(btnjha);\r\n jfrm.add(btnnya);\r\n jfrm.add(btntta);\r\n jfrm.add(btnttha);\r\n jfrm.add(btndda);\r\n jfrm.add(btnddha);\r\n jfrm.add(btnnna);\r\n jfrm.add(btnta);\r\n jfrm.add(btntha);\r\n jfrm.add(btnda);\r\n jfrm.add(btndha);\r\n jfrm.add(btnna);\r\n jfrm.add(btnha);\r\n jfrm.add(btnpa);\r\n jfrm.add(btnpha);\r\n jfrm.add(btnba);\r\n jfrm.add(btnbha);\r\n jfrm.add(btnma);\r\n jfrm.add(btnya);\r\n jfrm.add(btnra);\r\n jfrm.add(btnla);\r\n jfrm.add(btnva);\r\n jfrm.add(btnsha);\r\n jfrm.add(btnssa);\r\n jfrm.add(btnsa);\r\n jfrm.add(btnha);\r\n jfrm.add(btnlla);\r\n jfrm.add(btnksha);\r\n jfrm.add(btntra);\r\n jfrm.add(btnjna);\r\n \r\n jfrm.add(btnhal);\r\n jfrm.add(btnvaa);\r\n jfrm.add(btnvi);\r\n jfrm.add(btnvii);\r\n jfrm.add(btnvu);\r\n jfrm.add(btnvuu);\r\n jfrm.add(btnvr);\r\n jfrm.add(btnvrr);\r\n jfrm.add(btnve);\r\n jfrm.add(btnvee);\r\n jfrm.add(btnvai);\r\n jfrm.add(btnvo);\r\n jfrm.add(btnvoo);\r\n jfrm.add(btnvou);\r\n jfrm.add(btnvam);\r\n jfrm.add(btnvaha);\r\n \r\n jfrm.add(btn0);\r\n jfrm.add(btn1);\r\n jfrm.add(btn2);\r\n jfrm.add(btn3);\r\n jfrm.add(btn4);\r\n jfrm.add(btn5);\r\n jfrm.add(btn6);\r\n jfrm.add(btn7);\r\n jfrm.add(btn8);\r\n jfrm.add(btn9);\r\n jfrm.add(btnBlank);\r\n jfrm.add(btnClear);\r\n //jfrm.add(btnBack);\r\n \t\t\t\t\r\n jfrm.setVisible(true);\r\n }",
"public TelaPrincipal3() {\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n Logger.getLogger(CadastroFuncionario.class.getName()).log(Level.SEVERE, null, ex);\n }\n initComponents();\n BeansLogin l = new BeansLogin();\n cpf.setText(\"Bem Vindo, \"+l.getNome());\n String credito = \"\" + l.getCredito();\n saldoMostrar.setText(credito);\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setBounds(30, 11, 166, 95);\n\t\tframe.getContentPane().add(panel_1);\n\t\tpanel_1.setLayout(null);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Nombre\");\n\t\tlblNewLabel.setBounds(0, 3, 70, 14);\n\t\tpanel_1.add(lblNewLabel);\n\t\tlblNewLabel.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.LEFT);\n\t\t\n\t\tJLabel lblApellidos = new JLabel(\"Apellidos\");\n\t\tlblApellidos.setBounds(0, 28, 70, 14);\n\t\tpanel_1.add(lblApellidos);\n\t\tlblApellidos.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblApellidos.setHorizontalAlignment(SwingConstants.LEFT);\n\t\t\n\t\tJLabel lblEmail = new JLabel(\"Email\");\n\t\tlblEmail.setBounds(0, 53, 70, 14);\n\t\tpanel_1.add(lblEmail);\n\t\tlblEmail.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblEmail.setHorizontalAlignment(SwingConstants.LEFT);\n\t\t\n\t\tJLabel lblTelefono = new JLabel(\"Telefono\");\n\t\tlblTelefono.setBounds(0, 78, 70, 14);\n\t\tpanel_1.add(lblTelefono);\n\t\tlblTelefono.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblTelefono.setHorizontalAlignment(SwingConstants.LEFT);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(60, 0, 106, 20);\n\t\tpanel_1.add(textField);\n\t\ttextField.setColumns(10);\n\t\t\n\t\ttextField_1 = new JTextField();\n\t\ttextField_1.setBounds(60, 25, 106, 20);\n\t\tpanel_1.add(textField_1);\n\t\ttextField_1.setColumns(10);\n\t\t\n\t\ttextField_2 = new JTextField();\n\t\ttextField_2.setBounds(60, 50, 106, 20);\n\t\tpanel_1.add(textField_2);\n\t\ttextField_2.setColumns(10);\n\t\t\n\t\ttextField_3 = new JTextField();\n\t\ttextField_3.setBounds(60, 75, 106, 20);\n\t\tpanel_1.add(textField_3);\n\t\ttextField_3.setColumns(10);\n\t\t\n\t\tJSeparator separator = new JSeparator();\n\t\tseparator.setOrientation(SwingConstants.VERTICAL);\n\t\tseparator.setBounds(206, 11, 2, 201);\n\t\tframe.getContentPane().add(separator);\n\t\t\n\t\tJPanel panel_2 = new JPanel();\n\t\tpanel_2.setBounds(214, 11, 210, 123);\n\t\tframe.getContentPane().add(panel_2);\n\t\tpanel_2.setLayout(null);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Intereses\");\n\t\tlblNewLabel_1.setBounds(4, 0, 122, 14);\n\t\tpanel_2.add(lblNewLabel_1);\n\t\t\n\t\tJCheckBox chckbxNewCheckBox = new JCheckBox(\"Deportes\");\n\t\tchckbxNewCheckBox.setBounds(0, 33, 97, 23);\n\t\tpanel_2.add(chckbxNewCheckBox);\n\t\t\n\t\tJCheckBox chckbxFormacin = new JCheckBox(\"Formación\");\n\t\tchckbxFormacin.setBounds(99, 33, 97, 23);\n\t\tpanel_2.add(chckbxFormacin);\n\t\t\n\t\tJCheckBox chckbxCultura = new JCheckBox(\"Cultura\");\n\t\tchckbxCultura.setBounds(0, 59, 97, 23);\n\t\tpanel_2.add(chckbxCultura);\n\t\t\n\t\tJCheckBox chckbxViajes = new JCheckBox(\"Viajes\");\n\t\tchckbxViajes.setBounds(99, 59, 97, 23);\n\t\tpanel_2.add(chckbxViajes);\n\t\t\n\t\tJCheckBox chckbxOcio = new JCheckBox(\"Ocio\");\n\t\tchckbxOcio.setBounds(0, 85, 97, 23);\n\t\tpanel_2.add(chckbxOcio);\n\t\t\n\t\tJCheckBox chckbxOtros = new JCheckBox(\"Otros\");\n\t\tchckbxOtros.setBounds(99, 85, 97, 23);\n\t\tpanel_2.add(chckbxOtros);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(30, 135, 166, 49);\n\t\tframe.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Sexo\");\n\t\tlblNewLabel_2.setBounds(0, 4, 46, 14);\n\t\tpanel.add(lblNewLabel_2);\n\t\t\n\t\tJRadioButton rdbtnHombre = new JRadioButton(\"Hombre\");\n\t\trdbtnHombre.setBounds(57, 0, 109, 23);\n\t\tpanel.add(rdbtnHombre);\n\t\tbuttonGroup.add(rdbtnHombre);\n\t\t\n\t\tJRadioButton rdbtnMujer = new JRadioButton(\"Mujer\");\n\t\trdbtnMujer.setBounds(57, 26, 109, 23);\n\t\tpanel.add(rdbtnMujer);\n\t\tbuttonGroup.add(rdbtnMujer);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Enviar\");\n\t\tbtnNewButton.setEnabled(false);\n\t\tbtnNewButton.setBounds(127, 227, 168, 23);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJRadioButton rdbtnNewRadioButton = new JRadioButton(\"<html>He leido y aceptado los Términos y Condiciones de uso</html>\");\n\t\tbuttonGroup_1.add(rdbtnNewRadioButton);\n\t\trdbtnNewRadioButton.setBounds(214, 135, 214, 37);\n\t\tframe.getContentPane().add(rdbtnNewRadioButton);\n\t\t\n\t\tJRadioButton rdbtnnoHeLeido = new JRadioButton(\"<html>No he leido y aceptado los Términos y Condiciones de uso</html>\");\n\t\tbuttonGroup_1.add(rdbtnnoHeLeido);\n\t\trdbtnnoHeLeido.setSelected(true);\n\t\trdbtnnoHeLeido.setBounds(214, 175, 214, 37);\n\t\tframe.getContentPane().add(rdbtnnoHeLeido);\n\t}",
"public VentanaBuscaminas() {\n\tinitComponents();\n\tsetSize(800, 600);\n\tventanaReset.setSize(500, 200);\n\tsetResizable(false);\n\tlabelGanador.setVisible(false);\n\tlabelPerdedor.setVisible(false);\n\tgetContentPane().setLayout(new GridLayout(filas, columnas));\n\tfor (int i = 0; i < filas; i++) {\n\t for (int j = 0; j < columnas; j++) {\n\t\tBoton boton = new Boton(i, j);\n\t\tboton.setBorder(null);\n\t\tgetContentPane().add(boton);\n\t\tarrayBotones[i][j] = boton;\n\t\tboton.addMouseListener(new MouseAdapter() {\n\t\t @Override\n\t\t public void mousePressed(MouseEvent evt) {\n\t\t\tbotonPulsado(evt);\n\t\t }\n\t\t});\n\t }\n\t}\n\tponMinas(numMinas);\n\tcuentaminas();\n }",
"public static void createUI (JTextField fName, JTextField lName, JTextField vDesc, JTextField cLoc,\r\n JTextField dLoc, JTextField pNum, JPanel panel) {\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\r\n panel.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n panel.add(new JLabel(\"First Name:\"));\r\n panel.add(fName);\r\n panel.add(Box.createHorizontalStrut(15)); // a spacer\r\n panel.add(new JLabel(\"Last Name:\"));\r\n panel.add(lName);\r\n panel.add(new JLabel(\"Vehicle Description:\"));\r\n panel.add(vDesc);\r\n panel.add(new JLabel(\"Pick Up Location\"));\r\n panel.add(cLoc);\r\n panel.add(new JLabel(\"Drop Off Location\"));\r\n panel.add(dLoc);\r\n panel.add(new JLabel(\"Phone Number\"));\r\n panel.add(pNum);\r\n }",
"private void colocar(){\n setLayout(s);\n eleccion = new BarraEleccion(imagenes,textos);\n eleccion.setLayout(new GridLayout(4,4));\n eleccion.setBorder(BorderFactory.createTitledBorder(\n BorderFactory.createBevelBorder(5), \"SELECCIONA EL MAGUEY\",\n TitledBorder.CENTER, TitledBorder.TOP,new Font(\"Helvetica\",Font.BOLD,15),Color.WHITE));\n eleccion.setFondoImagen(imgFond);\n etqAlcohol = new JLabel(\"SELECCIONA EL GRADO DE ALCOHOL\");\n etqAlcohol.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\n etqAlcohol.setForeground(Color.WHITE);\n alcohol = new JComboBox<>();\n etqTipo = new JLabel(\"SELECCIONA EL TIPO DE MEZCAL\");\n etqTipo.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\n etqTipo.setForeground(Color.WHITE);\n tipo = new JComboBox<>();\n btnRegistrar = new JButton();\n btnRegistrar.setFont(new Font(\"Sylfaen\", Font.BOLD, 17));\n btnRegistrar.setText(\"Registrar\");\n btnRegistrar.setHorizontalAlignment(SwingConstants.CENTER);\n btnRegistrar.setActionCommand(\"registrar\");\n add(eleccion);\n add(etqAlcohol);\n add(alcohol);\n add(etqTipo);\n add(tipo);\n add(btnRegistrar);\n iniciarVistas();\n }",
"public static void main(String[] args) {\r\n\t\tJFrame miMarco = new JFrame(\"Ejemplo del Manejo del Teclado\");\r\n\t\t\r\n\t\t/* Se le otorga un tamaño a la ventana */\r\n\t\tmiMarco.setSize(512, 512);\r\n\t\t\r\n\t\t/* Nos aseguramos que al cerrar la ventana el programa finalice */\r\n\t\tmiMarco.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t/* Se crea el objeto GLJPanel */\r\n\t\tmiLienzo = new GLJPanel();\r\n\r\n\t\t/* Se crea una instancia de la Clase */\r\n\t\tEjemploTeclado miPanel = new EjemploTeclado();\r\n\r\n\t\t/* Se adiciona los eventos del OpenGL al GLJPanel */\r\n\t\tmiLienzo.addGLEventListener(miPanel);\r\n\t\t\r\n\t\t/* Indicamos que el GLJPanel detecte los eventos del teclado */\r\n\t\tmiLienzo.addKeyListener((KeyListener) miPanel);\r\n\t\t\r\n\t\t/* Coloca miLienzo activo para que detecte los eventos del teclado */\r\n\t\tmiLienzo.setFocusable(true);\r\n\r\n\t\t/* Añadimos el GLJPanel al Componente del JFrame */\r\n\t\tmiMarco.getContentPane().add(miLienzo);\r\n\r\n\t\t/* Por ultimo hacemos visible el elemento de mayor nivel */\r\n\t\tmiMarco.setVisible(true);\r\n\t\t\r\n\t}",
"public frame_ajout_serie() {\n initComponents();\n this.ta_synopsis.setLineWrap(true);\n }",
"private void crearJLabels() {\n lTitulo = sObjGraficos.construirJLabel(\"Eliminar\", 255, 5, 500, 30,\n null,null, sRecursos.getFontTPrincipal(),sRecursos.getColorPrincipalOscuro(), sRecursos.getColorPrincipal(), null, \"c\");\n panel.add(lTitulo);\n //Titulo de libro ID\n lInfo = sObjGraficos.construirJLabel(\"Seleccione una fila de la tabla, luego oprima el boton retirar\", 0, 445, 350, 20,\n null,null, sRecursos.getFontLigera(),sRecursos.getColorPrincipalOscuro(), sRecursos.getColorPrincipal(), null, \"c\");\n panel.add(lInfo);\n }",
"private void llenarCuadrosTablero() {\n tmp = new JLabel();\n tmp.setBounds(-100, -100, 56, 56);\n add(tmp);\n tablero = new CuadroPieza[8][8];\n setLayout(null);\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n tablero[x][y] = new CuadroPieza(x, y);\n add(tablero[x][y]);// para agregar los elementos\n }\n }\n rePintarTablero();\n }",
"private void ArrayTexto() {\n int posicCol = 10, posicLin = 10, tamanhoLin = 40, alturaLin = 40;\n\n for (int lin = 0; lin < 9; lin++) {\n for (int col = 0; col < 9; col++) {\n array_texto[lin][col] = new JTextField(\"\");\n array_texto[lin][col].setBounds(posicCol, posicLin, tamanhoLin, alturaLin);\n array_texto[lin][col].setBackground(Color.white);\n getContentPane().add(array_texto[lin][col]);\n if (col == 2 || col == 5 || col == 8) {\n posicCol = posicCol + 45;\n } else {\n posicCol = posicCol + 40;\n }\n }\n posicCol = 10;\n if (lin == 2 || lin == 5 || lin == 8) {\n posicLin = posicLin + 45;\n } else {\n posicLin = posicLin + 40;\n }\n }\n }",
"public VentanaSesionL() {\r\n initComponents();\r\n this.setLocationRelativeTo(null);\r\n this.setResizable(false);\r\n jLabel1.setHorizontalTextPosition (JLabel.CENTER);\r\n jLabel1.setVerticalTextPosition (JLabel.CENTER);\r\n setIconImage(new ImageIcon(getClass().getResource(\"../imagen/Buho.png\")).getImage()); \r\n }",
"public InstrutorCadastrarTela() {\n initComponents();\n //Limite de caracateres e apenas caracteres permitidos\n jTextFieldNome.setDocument(new classesBasicas.CaracterLimitePermitido(60));\n //Limitando os caracteres para (N), independende de ser numero ou letras\n jTextFieldRg.setDocument(new classesBasicas.JTextFieldLimite(20)); \n }",
"public AC_PGERENTE() {\n initComponents();\n Table();\n setTitle(\"Acesso exclusivo gerente - AutoCar\");\n setLocationRelativeTo(null);\n setResizable(false);\n setSize(640, 450);\n }",
"public Geradordesenha() {\n initComponents();\n this.setResizable(false);\n this.setLocationRelativeTo(null);\n }",
"private void crearLabels(){\n\t\tJLabel label = new JLabel(\" USER \");\n\t\tuser = new JTextField(15);\n\t\tthis.getContentPane().add(label);\n\t\tthis.getContentPane().add(user);\n\t\tJLabel label1 = new JLabel(\"PASSWORD\");\n\t\tpassword = new JPasswordField(15);\n\t\tthis.getContentPane().add(label1);\n\t\tthis.getContentPane().add(password);\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n TextCrmv = new javax.swing.JTextField();\n TextSenha = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n Exit = new javax.swing.JLabel();\n IconeUser = new javax.swing.JLabel();\n IconeUser1 = new javax.swing.JLabel();\n Senha = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n User = new javax.swing.JLabel();\n Telinha = new javax.swing.JLabel();\n BG = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setUndecorated(true);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n TextCrmv.setBackground(new java.awt.Color(232, 235, 244));\n TextCrmv.setBorder(null);\n getContentPane().add(TextCrmv, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 370, 160, 30));\n\n TextSenha.setBackground(new java.awt.Color(232, 235, 244));\n TextSenha.setBorder(null);\n getContentPane().add(TextSenha, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 460, 150, 30));\n\n jLabel1.setBackground(new java.awt.Color(232, 235, 244));\n jLabel1.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(0, 51, 51));\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Icones/BotAlterar_1.png\"))); // NOI18N\n jLabel1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel1MouseClicked(evt);\n }\n });\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(530, 540, 170, 60));\n\n Exit.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Icones/Sair2.png\"))); // NOI18N\n getContentPane().add(Exit, new org.netbeans.lib.awtextra.AbsoluteConstraints(990, 650, -1, -1));\n\n IconeUser.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Icones/Senha .png\"))); // NOI18N\n getContentPane().add(IconeUser, new org.netbeans.lib.awtextra.AbsoluteConstraints(510, 460, -1, -1));\n\n IconeUser1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Icones/User.png\"))); // NOI18N\n getContentPane().add(IconeUser1, new org.netbeans.lib.awtextra.AbsoluteConstraints(510, 370, -1, -1));\n\n Senha.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Icones/Botao.png\"))); // NOI18N\n getContentPane().add(Senha, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 450, -1, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jLabel2.setText(\"NOVA SENHA\");\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 430, 100, -1));\n\n jLabel3.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jLabel3.setText(\"CRMV\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 340, 50, -1));\n\n User.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Icones/Botao.png\"))); // NOI18N\n getContentPane().add(User, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 360, -1, -1));\n\n Telinha.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Icones/Telinha_1.png\"))); // NOI18N\n Telinha.setAlignmentX(360.0F);\n Telinha.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n Telinha.setVerifyInputWhenFocusTarget(false);\n Telinha.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n getContentPane().add(Telinha, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 60, -1, -1));\n\n BG.setBackground(new java.awt.Color(102, 255, 102));\n BG.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Icones/BG_1.png\"))); // NOI18N\n BG.setPreferredSize(new java.awt.Dimension(1080, 720));\n getContentPane().add(BG, new org.netbeans.lib.awtextra.AbsoluteConstraints(-20, 0, 1100, -1));\n\n pack();\n setLocationRelativeTo(null);\n }",
"private JPanel texte() {\r\n\t\tJPanel position = new JPanel();\r\n\t\tJPanel menu1 = new JPanel();\r\n\t\tJPanel menu2 = new JPanel();\r\n\t\tJPanel menu3 = new JPanel();\r\n\t\tJPanel menu4 = new JPanel();\r\n\r\n\t\tmenu1.setLayout(new BoxLayout(menu1, BoxLayout.X_AXIS));\r\n\t\tmenu1.add(textnomligue);\r\n\t\tmenu2.setLayout(new BoxLayout(menu2, BoxLayout.X_AXIS));\r\n\t\tmenu2.add(textadresse);\r\n\t\tmenu3.setLayout(new BoxLayout(menu3, BoxLayout.X_AXIS));\r\n\t\tmenu3.add(textnomAdmin);\r\n\t\tmenu4.setLayout(new BoxLayout(menu4, BoxLayout.X_AXIS));\r\n\t\tmenu4.add(tprenomAdmin);\r\n\r\n\t\tposition.setLayout(new BoxLayout(position, BoxLayout.Y_AXIS));\r\n\t\tposition.add(menu1);\r\n\t\tposition.add(menu2);\r\n\t\tposition.add(menu3);\r\n\t\tposition.add(menu4);\r\n\r\n\t\treturn position;\r\n\t}",
"@AutoGenerated\n\tprivate GridLayout buildGridLayout_1() {\n\t\tgridLayout_1 = new GridLayout();\n\t\tgridLayout_1.setImmediate(false);\n\t\tgridLayout_1.setWidth(\"-1px\");\n\t\tgridLayout_1.setHeight(\"-1px\");\n\t\tgridLayout_1.setMargin(true);\n\t\tgridLayout_1.setSpacing(true);\n\t\tgridLayout_1.setColumns(2);\n\t\tgridLayout_1.setRows(13);\n\t\t\n\t\t// l_nombre\n\t\tl_nombre = new Label();\n\t\tl_nombre.setImmediate(false);\n\t\tl_nombre.setWidth(\"200px\");\n\t\tl_nombre.setHeight(\"18px\");\n\t\tl_nombre.setValue(\"Nombres:\");\n\t\tgridLayout_1.addComponent(l_nombre, 0, 0);\n\t\t\n\t\t// tf_nombres\n\t\ttf_nombres = new TextField();\n\t\ttf_nombres.setImmediate(false);\n\t\ttf_nombres.setWidth(\"300px\");\n\t\ttf_nombres.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(tf_nombres, 1, 0);\n\t\t\n\t\t// l_apellidos\n\t\tl_apellidos = new Label();\n\t\tl_apellidos.setImmediate(false);\n\t\tl_apellidos.setWidth(\"-1px\");\n\t\tl_apellidos.setHeight(\"-1px\");\n\t\tl_apellidos.setValue(\"Apellidos:\");\n\t\tgridLayout_1.addComponent(l_apellidos, 0, 1);\n\t\t\n\t\t// tf_apellidos\n\t\ttf_apellidos = new TextField();\n\t\ttf_apellidos.setImmediate(false);\n\t\ttf_apellidos.setWidth(\"100.0%\");\n\t\ttf_apellidos.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(tf_apellidos, 1, 1);\n\t\t\n\t\t// l_pass\n\t\tl_pass = new Label();\n\t\tl_pass.setImmediate(false);\n\t\tl_pass.setWidth(\"-1px\");\n\t\tl_pass.setHeight(\"-1px\");\n\t\tl_pass.setValue(\"Contraseña:\");\n\t\tgridLayout_1.addComponent(l_pass, 0, 2);\n\t\t\n\t\t// pw_pass\n\t\tpw_pass = new PasswordField();\n\t\tpw_pass.setImmediate(false);\n\t\tpw_pass.setWidth(\"100.0%\");\n\t\tpw_pass.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(pw_pass, 1, 2);\n\t\t\n\t\t// l_confirmarPass\n\t\tl_confirmarPass = new Label();\n\t\tl_confirmarPass.setImmediate(false);\n\t\tl_confirmarPass.setWidth(\"-1px\");\n\t\tl_confirmarPass.setHeight(\"-1px\");\n\t\tl_confirmarPass.setValue(\"Confirmar Contraseña:\");\n\t\tgridLayout_1.addComponent(l_confirmarPass, 0, 3);\n\t\t\n\t\t// pw_confirmarPass\n\t\tpw_confirmarPass = new PasswordField();\n\t\tpw_confirmarPass.setImmediate(false);\n\t\tpw_confirmarPass.setWidth(\"100.0%\");\n\t\tpw_confirmarPass.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(pw_confirmarPass, 1, 3);\n\t\t\n\t\t// l_nick\n\t\tl_nick = new Label();\n\t\tl_nick.setImmediate(false);\n\t\tl_nick.setWidth(\"-1px\");\n\t\tl_nick.setHeight(\"-1px\");\n\t\tl_nick.setValue(\"Nombre Usuario/Nick:\");\n\t\tgridLayout_1.addComponent(l_nick, 0, 4);\n\t\t\n\t\t// tf_nick\n\t\ttf_nick = new TextField();\n\t\ttf_nick.setImmediate(false);\n\t\ttf_nick.setWidth(\"100.0%\");\n\t\ttf_nick.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(tf_nick, 1, 4);\n\t\t\n\t\t// l_Registro\n\t\tl_Registro = new Label();\n\t\tl_Registro.setImmediate(false);\n\t\tl_Registro.setWidth(\"-1px\");\n\t\tl_Registro.setHeight(\"-1px\");\n\t\tl_Registro.setValue(\"Fecha de Registro:\");\n\t\tgridLayout_1.addComponent(l_Registro, 0, 5);\n\t\t\n\t\t// l_fechaRegistro\n\t\tl_fechaRegistro = new Label();\n\t\tl_fechaRegistro.setImmediate(false);\n\t\tl_fechaRegistro.setWidth(\"100.0%\");\n\t\tl_fechaRegistro.setHeight(\"-1px\");\n\t\tl_fechaRegistro.setValue(\"---------\");\n\t\tgridLayout_1.addComponent(l_fechaRegistro, 1, 5);\n\t\t\n\t\t// l_genero\n\t\tl_genero = new Label();\n\t\tl_genero.setImmediate(false);\n\t\tl_genero.setWidth(\"-1px\");\n\t\tl_genero.setHeight(\"-1px\");\n\t\tl_genero.setValue(\"Genero:\");\n\t\tgridLayout_1.addComponent(l_genero, 0, 6);\n\t\t\n\t\t// opg_sexo\n\t\topg_sexo = new OptionGroup();\n\t\topg_sexo.setImmediate(false);\n\t\topg_sexo.setWidth(\"100.0%\");\n\t\topg_sexo.setHeight(\"30px\");\n\t\tgridLayout_1.addComponent(opg_sexo, 1, 6);\n\t\t\n\t\t// l_email\n\t\tl_email = new Label();\n\t\tl_email.setImmediate(false);\n\t\tl_email.setWidth(\"-1px\");\n\t\tl_email.setHeight(\"-1px\");\n\t\tl_email.setValue(\"Email:\");\n\t\tgridLayout_1.addComponent(l_email, 0, 7);\n\t\t\n\t\t// tf_email\n\t\ttf_email = new TextField();\n\t\ttf_email.setImmediate(false);\n\t\ttf_email.setWidth(\"100.0%\");\n\t\ttf_email.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(tf_email, 1, 7);\n\t\t\n\t\t// l_nacionalidad\n\t\tl_nacionalidad = new Label();\n\t\tl_nacionalidad.setImmediate(false);\n\t\tl_nacionalidad.setWidth(\"-1px\");\n\t\tl_nacionalidad.setHeight(\"-1px\");\n\t\tl_nacionalidad.setValue(\"Nacionalidad:\");\n\t\tgridLayout_1.addComponent(l_nacionalidad, 0, 8);\n\t\t\n\t\t// cb_nacionalidad\n\t\tcb_nacionalidad = new ComboBox();\n\t\tcb_nacionalidad.setImmediate(false);\n\t\tcb_nacionalidad.setWidth(\"100%\");\n\t\tcb_nacionalidad.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(cb_nacionalidad, 1, 8);\n\t\t\n\t\t// l_blog\n\t\tl_blog = new Label();\n\t\tl_blog.setImmediate(false);\n\t\tl_blog.setWidth(\"-1px\");\n\t\tl_blog.setHeight(\"-1px\");\n\t\tl_blog.setValue(\"Tu Blog/Web:\");\n\t\tgridLayout_1.addComponent(l_blog, 0, 9);\n\t\t\n\t\t// tf_blogWeb\n\t\ttf_blogWeb = new TextField();\n\t\ttf_blogWeb.setImmediate(false);\n\t\ttf_blogWeb.setWidth(\"100.0%\");\n\t\ttf_blogWeb.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(tf_blogWeb, 1, 9);\n\t\t\n\t\t// l_facebook\n\t\tl_facebook = new Label();\n\t\tl_facebook.setImmediate(false);\n\t\tl_facebook.setWidth(\"-1px\");\n\t\tl_facebook.setHeight(\"-1px\");\n\t\tl_facebook.setValue(\"Facebook:\");\n\t\tgridLayout_1.addComponent(l_facebook, 0, 10);\n\t\t\n\t\t// tf_facebook\n\t\ttf_facebook = new TextField();\n\t\ttf_facebook.setImmediate(false);\n\t\ttf_facebook.setWidth(\"100.0%\");\n\t\ttf_facebook.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(tf_facebook, 1, 10);\n\t\t\n\t\t// l_twitter\n\t\tl_twitter = new Label();\n\t\tl_twitter.setImmediate(false);\n\t\tl_twitter.setWidth(\"-1px\");\n\t\tl_twitter.setHeight(\"-1px\");\n\t\tl_twitter.setValue(\"Twitter:\");\n\t\tgridLayout_1.addComponent(l_twitter, 0, 11);\n\t\t\n\t\t// tf_twitter\n\t\ttf_twitter = new TextField();\n\t\ttf_twitter.setImmediate(false);\n\t\ttf_twitter.setWidth(\"100.0%\");\n\t\ttf_twitter.setHeight(\"-1px\");\n\t\tgridLayout_1.addComponent(tf_twitter, 1, 11);\n\t\t\n\t\t// l_descripcion\n\t\tl_descripcion = new Label();\n\t\tl_descripcion.setImmediate(false);\n\t\tl_descripcion.setWidth(\"-1px\");\n\t\tl_descripcion.setHeight(\"-1px\");\n\t\tl_descripcion.setValue(\"Descripción:\");\n\t\tgridLayout_1.addComponent(l_descripcion, 0, 12);\n\t\t\n\t\t// ta_descripcion\n\t\tta_descripcion = new TextArea();\n\t\tta_descripcion.setImmediate(false);\n\t\tta_descripcion.setWidth(\"100.0%\");\n\t\tta_descripcion.setHeight(\"60px\");\n\t\tgridLayout_1.addComponent(ta_descripcion, 1, 12);\n\t\t\n\t\treturn gridLayout_1;\n\t}",
"public MuestraColores() {\n\t\tenableEvents(64L);\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tinitialize();\n\t}",
"public Form(){\r\n\t\t\tString[] labelStrings = {\r\n\t\t\t\t\t\"Name: \",\r\n\t\t\t\t\t\"Description: \",\r\n\t\t\t\t\t\"Directions: \",\r\n\t\t\t\t\t\"Ingredients: \"\r\n\t\t\t};\r\n\r\n\t\t\tlabels = new JLabel[labelStrings.length];\r\n\t\t\tfields = new JComponent[labelStrings.length];\r\n\r\n\r\n\t\t\tfor(int i=0; i<4; i++) {\r\n\t\t\t\tlabels[i] = new JLabel(labelStrings[i], JLabel.TRAILING);\r\n\t\t\t\t// labels[i].setBorder(BorderFactory.createEmptyBorder(0,-20,0,0));\r\n\t\t\t}\r\n\r\n\t\t\tnameField = new JTextField(30);\r\n\r\n\t\t\tfields[fieldNum++] = nameField;\r\n\r\n\t\t\tdescriptionField = new JTextField(30);\r\n\t\t\tfields[fieldNum++] = descriptionField;\r\n\r\n\t\t\t// directionsField = new JTextField(30);\r\n\t\t\tdirectionsField = new JTextArea(15,25);\r\n\t\t\tdirectionsField.setLineWrap(true);\r\n\t\t\tdirectionsField.setBorder(new JTextField().getBorder());\r\n\t\t\t\r\n\t\t\t// pressing TAB or SHIFT-TAB in directionsField will move\r\n\t\t\t// the cursor to another component\r\n\t\t\tdirectionsField.addKeyListener(new KeyAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void keyPressed(KeyEvent e) {\r\n\t\t\t\t\tif (e.getKeyCode() == KeyEvent.VK_TAB) {\r\n\t\t\t\t\t\tif (e.getModifiers() > 0) {\r\n\t\t\t\t\t\t\tdirectionsField.transferFocusBackward();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tdirectionsField.transferFocus();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\te.consume();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t// fields[fieldNum++] = directionsField;\r\n\r\n\t\t\tdirectionsScrollPane = new JScrollPane(directionsField);\r\n\t\t\tfields[fieldNum++] = directionsScrollPane;\r\n\r\n\t\t\tfields[fieldNum++] = ingredientFields.get(0);\r\n\r\n\t\t\tsetLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS)); \r\n\t\t\tsetBorder(BorderFactory.createEmptyBorder(0, 10, 10, 10));\r\n\r\n\t\t\taddComponents();\r\n\r\n\t\t}",
"protected void createComponents() {\n sampleText = new JTextField(20);\n displayArea = new JLabel(\"\");\n displayArea.setPreferredSize(new Dimension(200, 75));\n displayArea.setMinimumSize(new Dimension(200, 75));\n }",
"private void setUpLayout() {\n\n this.setLayout(new GridLayout(7, 1, 40, 37));\n this.setBackground(new Color(72, 0, 0));\n this.setBorder(BorderFactory.createEmptyBorder(8, 150, 8, 150));\n }",
"private void init(){\n\t\tbtn.setLabel(name);\n\t\tlbl.setText(\"\"+price+\" C\");\n\t\t\n\t\tlbl.setBackground(Color.lightGray);\n\t\tlbl.setFocusable(false);\n\t\tlbl.setPreferredSize(new Dimension(50,24));\n\t\tsetLayout(new GridBagLayout());\n\t\tadd(btn,new GridBagConstraints(0,0,1,1,1.0,0.0,\n\t\t\t GridBagConstraints.WEST,GridBagConstraints.HORIZONTAL,\n\t\t\t new Insets(5,10,0,0),10,4));\n\t\tadd(lbl,new GridBagConstraints(1,0,1,1,0.0,0.0,\n\t\t\t GridBagConstraints.CENTER,GridBagConstraints.NONE,\n\t\t\t new Insets(5,15,0,0),50,0));\n\t\tadd(wnd,new GridBagConstraints(2,0,1,1,0.0,0.0,\n\t\t\t GridBagConstraints.WEST,GridBagConstraints.NONE,\n\t\t\t new Insets(5,4,0,0),10,0));\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 jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n inputLadoA = new javax.swing.JTextField();\n inputLadoB = new javax.swing.JTextField();\n inputLadoC = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n btnCriarTriangulo = new javax.swing.JButton();\n jSeparator2 = new javax.swing.JSeparator();\n jScrollPane1 = new javax.swing.JScrollPane();\n outSaida = new javax.swing.JTextArea();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Ubuntu\", 1, 24)); // NOI18N\n jLabel1.setText(\"Triângulos\");\n\n jLabel2.setText(\"Lado A:\");\n\n jLabel3.setText(\"Lado B:\");\n\n jLabel4.setText(\"Labo C:\");\n\n btnCriarTriangulo.setText(\"Criar Triângulo\");\n btnCriarTriangulo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCriarTrianguloActionPerformed(evt);\n }\n });\n\n outSaida.setEditable(false);\n outSaida.setColumns(20);\n outSaida.setLineWrap(true);\n outSaida.setRows(5);\n jScrollPane1.setViewportView(outSaida);\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 .addComponent(jSeparator1)\n .addComponent(jSeparator2)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnCriarTriangulo, 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.CENTER)\n .addComponent(jLabel2)\n .addComponent(inputLadoA, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel3)\n .addComponent(inputLadoB, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel4)\n .addComponent(inputLadoC, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addGap(1, 1, 1)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(7, 7, 7)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(inputLadoA, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(inputLadoB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(inputLadoC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnCriarTriangulo)\n .addGap(18, 18, 18)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 116, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }",
"public Colaborador() {\n\n this.setUndecorated(true);\n initComponents();\n this.setLocationRelativeTo(null);\n transparenciButton();\n }",
"public PrincipalGUIOpcional() {\r\n initComponents();\r\n AtributosGUI.setColoresEstandar();\r\n codigoInicial();\r\n }",
"public AdminLog() {\n initComponents();\n setSize(1450,853);\n setLocation (250,130);\n }",
"public JuegoUI(ScrabbleJugador jugador, ScrabbleServidorInt servidor) throws IOException {\n\t\tthis.jugador = jugador;\n\t\tthis.servidor = servidor;\n // this.Palabra = Palabra;\n \n\t\ttry {\n\t\t\tmarcoJuego.setTitle(\"Scrabble: \" + jugador.getNombre());\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Bloque de captura generado automáticamente\n\t\t\te.printStackTrace();\n\t\t}\n\t\tField.setLayout(new GridLayout(20, 20, 0, 0));\n\t\tField.setBounds(20, 20, 20 * 30, 20 * 30);\n\t\tField.setOpaque(false);\n\t\tmarcoJuego.setSize(20 + 20 * 30 + 320, 20 + 20 * 30 + 40);\n\t\tmarcoJuego.setLayout(null);\n\t\t\n\t\testablecerBotonEnCuadrícula(Field);\n\t\testablecerBarraLetras(marcoJuego);\n\t\tsetBotonBorrar(marcoJuego);\n\t\tsetBotonConfirmacion(marcoJuego);\n\t\tsetBotonPaso(marcoJuego);\n\t\tsetBotonSalir(marcoJuego);\n\t\taddIntroduccion(marcoJuego);\n\t\taddAreaVotacionLabel(marcoJuego);\n\t\taddAreaVotacionLabel(marcoJuego);\n\t\taddAreaVotacion(marcoJuego);\n\t\t\n\t\tmarcoJuego.add(Field);\n\t\tmarcoJuego.setLocationRelativeTo(null);\n\t\tmarcoJuego.setVisible(true);\n\t\tmarcoJuego.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\t\tmarcoJuego.addWindowListener(new java.awt.event.WindowAdapter() {\n\t\t @Override\n\t\t public void windowClosing(java.awt.event.WindowEvent windowEvent) {\n\t\t if (JOptionPane.showConfirmDialog(marcoJuego, \"¿Estás seguro de que quieres cerrar esta ventana?\", \"¿Cerrar ventana?\", \n\t\t JOptionPane.YES_NO_OPTION,\n\t\t JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION){\n\t\t \tSystem.exit(0);\n\t\t }\n\t\t }\n\t\t});\n\t}",
"public Tela() {\n initComponents();\n setLocationRelativeTo(null);\n setVisible(true);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jpnTimVeTau = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jpnTraCuuThongTin = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jpnThemLoaiVe = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n\n setBackground(new java.awt.Color(0, 0, 0));\n setMinimumSize(new java.awt.Dimension(1010, 144));\n setPreferredSize(new java.awt.Dimension(1010, 457));\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jpnTimVeTau.setBackground(new java.awt.Color(255, 255, 255));\n jpnTimVeTau.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jpnTimVeTauMousePressed(evt);\n }\n });\n\n jLabel1.setBackground(new java.awt.Color(255, 255, 255));\n jLabel1.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/baseline_location_searching_white_18dp.png\"))); // NOI18N\n jLabel1.setText(\"Tìm chuyến tàu\");\n jLabel1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jLabel1MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout jpnTimVeTauLayout = new javax.swing.GroupLayout(jpnTimVeTau);\n jpnTimVeTau.setLayout(jpnTimVeTauLayout);\n jpnTimVeTauLayout.setHorizontalGroup(\n jpnTimVeTauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpnTimVeTauLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n jpnTimVeTauLayout.setVerticalGroup(\n jpnTimVeTauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 115, Short.MAX_VALUE)\n );\n\n add(jpnTimVeTau, new org.netbeans.lib.awtextra.AbsoluteConstraints(29, 29, 219, -1));\n\n jpnTraCuuThongTin.setBackground(new java.awt.Color(255, 255, 255));\n jpnTraCuuThongTin.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jpnTraCuuThongTinMousePressed(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/baseline_image_search_white_18dp.png\"))); // NOI18N\n jLabel2.setText(\"Tra cứu thông tin vé\");\n\n javax.swing.GroupLayout jpnTraCuuThongTinLayout = new javax.swing.GroupLayout(jpnTraCuuThongTin);\n jpnTraCuuThongTin.setLayout(jpnTraCuuThongTinLayout);\n jpnTraCuuThongTinLayout.setHorizontalGroup(\n jpnTraCuuThongTinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jpnTraCuuThongTinLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 205, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jpnTraCuuThongTinLayout.setVerticalGroup(\n jpnTraCuuThongTinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 115, Short.MAX_VALUE)\n );\n\n add(jpnTraCuuThongTin, new org.netbeans.lib.awtextra.AbsoluteConstraints(266, 29, 207, -1));\n\n jpnThemLoaiVe.setBackground(new java.awt.Color(255, 255, 255));\n jpnThemLoaiVe.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jpnThemLoaiVeMousePressed(evt);\n }\n });\n\n jLabel3.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/baseline_note_add_white_18dp.png\"))); // NOI18N\n jLabel3.setText(\"Thêm loại vé\");\n jLabel3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jLabel3MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout jpnThemLoaiVeLayout = new javax.swing.GroupLayout(jpnThemLoaiVe);\n jpnThemLoaiVe.setLayout(jpnThemLoaiVeLayout);\n jpnThemLoaiVeLayout.setHorizontalGroup(\n jpnThemLoaiVeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpnThemLoaiVeLayout.createSequentialGroup()\n .addGap(0, 25, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n jpnThemLoaiVeLayout.setVerticalGroup(\n jpnThemLoaiVeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n add(jpnThemLoaiVe, new org.netbeans.lib.awtextra.AbsoluteConstraints(491, 29, -1, 115));\n }",
"private void initialize() {\n\n\t\tGridLayout gridLayout = new GridLayout();\n\t\tgridLayout.setRows(1);\n\t\t\n\t\tGridBagLayout gridbag = new GridBagLayout();\n\t\tbase=new JPanel(gridbag);\n\t\tbase.setBackground(new Color(250,251,245));\n\t\t// default size\n\t\tbase.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\n\t\t//base.setPreferredSize(new Dimension(200,320));\n\t\t\n\t\t/*\n\t\t// separator\n\t\tGridBagConstraints constraints1 = new GridBagConstraints();\n\t\tconstraints1.gridx = 0;\n\t\tconstraints1.gridy = 0;\n\t\tconstraints1.gridwidth= 1;\n\t\tconstraints1.gridheight = 1;\n\t\tconstraints1.insets = new Insets(0, 0, 0, 0);\n\n\t\tJSeparator vspr=new JSeparator(JSeparator.HORIZONTAL);\n\t\tvspr.setPreferredSize(new Dimension(200, 20));\n\t\tgridbag.setConstraints(vspr, constraints1);\n\t\tbase.add(vspr);\n\t\t*/\n\t\t\n\t\t// panel1\n\t\tString st = Path.getPath()+\"/images//program_h6_bg_illuminance.gif\";\n\t\tif(IsMacorWin.isMacOrWin()==false) st = Path.getPath()+\"images\\\\/program_h6_bg_illuminance.gif\";\n\n\t\tgJPanel = new GJPanel(st);\n\t\tgJPanel.setText(\"LEDライト\");\n\n\t\tGridBagConstraints constraints1 = new GridBagConstraints();\n\t\tconstraints1.gridx = 0;\n\t\tconstraints1.gridy = 1;\n\t\tconstraints1.gridwidth= 1;\n\t\tconstraints1.gridheight = 1;\n\t\tconstraints1.insets = new Insets(0, 0, 0, 0);\n\t\tgridbag.setConstraints(gJPanel, constraints1);\n\t\tbase.add(gJPanel);\n\t\t\n\t\t\n\t\t// panel\n\t\tJPanel jp1=new JPanel();\n\t\tjp1.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\n\t\tjp1.setLayout(gridLayout);\n//\t\tjp1.setPreferredSize(new Dimension(gJPanel.getWidth(),gJPanel.getHeight()));\n\t\tjp1.setPreferredSize(new Dimension(160,50));\n\t\tjp1.setBackground(Color.gray);\n\t\n//\n\t\tifD1=new InfoDispEdit();\n\t\tifD1.setText(\"警告下限照度\");\n\t\t// lux\n\t\tString[] illumdata=new String[50];\n\t\tfor(int i=0;i<50;i++){\n\t\t\tillumdata[i]= String.valueOf(i*100);\n\t\t}\n\t\tifD1.setSelectionItems(illumdata);\n\t\tifD1.setSelectedIndex(22);// 2500 lux\n\t\tifD1.setUnit(\"lux\");\n\t\t//\n\t\tGridBagConstraints constraints2 = new GridBagConstraints();\n\t\tconstraints2.gridy = 0;\t\n\t\tconstraints2.gridy = 2;\t\n\t\tconstraints2.gridwidth= 1;\n\t\tconstraints2.gridheight = 1;\n\t\tconstraints2.insets = new Insets(0, 0, 0, 0);\n\t\tgridbag.setConstraints(ifD1, constraints2);\n\t\t\n\t\tif(Version.getRevision().equals(\"Education\")!=true)\n\t\t\tbase.add(ifD1);\n\n\t\tsetParentClass(this);\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.add( base, BorderLayout.CENTER );\n\n\t\t// 観察される人を生成\n\t\tobservableMan = new ObservableMan();\n\n\t\t// デフォルトの観察者を追加\n\t\tdefaultO=new PlantPrgEdit.ObserverA();\n\t\tobservableMan.addObserver(defaultO);\n\t}",
"public TelaCadastroPlano() {\n initComponents();\n campoNome.setDocument(new CaixaAlta());\n setLocationRelativeTo(null);\n preencheTabela();\n campoCodigo.setText(Integer.toString(fachada.proximoCodigo()));\n setModalidades();\n }",
"private void initGui()\n {\n setBorder(BorderFactory.createMatteBorder(0, 1, 0, 0, Color.WHITE));\n\n setLayout(new GridBagLayout());\n\n GridBagConstraints gbc = new GridBagConstraints();\n\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.anchor = GridBagConstraints.WEST;\n\n this.add(lblHint, gbc);\n }",
"void objek() {\n getContentPane().setLayout(null);\n getContentPane().add(text1);\n getContentPane().add(bt1);\n getContentPane().add(bt2);\n getContentPane().add(bt3);\n getContentPane().add(bt4);\n getContentPane().add(bt5);\n getContentPane().add(bt6);\n getContentPane().add(bt7);\n getContentPane().add(bt8);\n getContentPane().add(bt9);\n getContentPane().add(bt10);\n getContentPane().add(bt11);\n getContentPane().add(bt12);\n getContentPane().add(bt13);\n getContentPane().add(bt14);\n getContentPane().add(bt15);\n getContentPane().add(bt16);\n \n text1.setBounds(50, 8, 190, 30);\n \n bt1.setBounds(50, 40, 40, 40);\n bt2.setBounds(100, 40, 40, 40);\n bt3.setBounds(150, 40, 40, 40);\n bt4.setBounds(200, 40, 40, 40);\n \n bt5.setBounds(50, 90, 40, 40);\n bt6.setBounds(100, 90, 40, 40);\n bt7.setBounds(150, 90, 40, 40);\n bt8.setBounds(200, 90, 40, 40);\n \n bt9.setBounds(50, 140, 40, 40);\n bt10.setBounds(100, 140, 40, 40);\n bt11.setBounds(150, 140, 40, 40);\n bt12.setBounds(200, 140, 40, 40);\n \n bt13.setBounds(50, 190, 40, 40);\n bt14.setBounds(100, 190, 40, 40);\n bt15.setBounds(150, 190, 40, 40);\n bt16.setBounds(200, 190, 40, 40);\n \n bt1.setBackground(Color.BLUE);\n bt2.setBackground(Color.CYAN);\n bt3.setBackground(Color.DARK_GRAY);\n bt4.setBackground(Color.GREEN);\n bt5.setBackground(Color.LIGHT_GRAY);\n bt6.setBackground(Color.MAGENTA);\n bt7.setBackground(Color.ORANGE);\n bt8.setBackground(Color.PINK);\n bt9.setBackground(Color.RED);\n bt10.setBackground(Color.WHITE);\n bt11.setBackground(Color.YELLOW);\n bt12.setBackground(Color.BLUE);\n bt13.setBackground(Color.DARK_GRAY);\n bt14.setBackground(Color.CYAN);\n bt15.setBackground(Color.MAGENTA);\n bt16.setBackground(Color.RED);\n \n setVisible(true);\n }",
"public NewJFrame() {\n initComponents();\n mcam.setLineWrap(true);\n\n }",
"public MyGUIProgram() {\n Label MyLabel = new Label(\"Test string.\", Label.CENTER);\n this.add(MyLabel);\n\n }",
"protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}",
"public Ventana() {\n initComponents();\n\n\n \n botonWeb1 = new botones.BotonWeb();\n botonWeb2 = new botones.BotonWeb();\n botonWeb3 = new botones.BotonWeb();\n splash = new javax.swing.JLabel();\n\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n setPreferredSize(new java.awt.Dimension(1358, 652));\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n botonWeb1.setBackground(new java.awt.Color(255, 51, 153));\n botonWeb1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/soportetecnico.png\"))); // NOI18N\n botonWeb1.setLink(\"http://www.estadistico10.pe.hu\");\n getContentPane().add(botonWeb1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 11, 442, 120));\n\n botonWeb2.setBackground(new java.awt.Color(255, 51, 153));\n botonWeb2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/quienessomos.png\"))); // NOI18N\n botonWeb2.setLink(\"http://www.estadistico10.pe.hu\");\n getContentPane().add(botonWeb2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 137, 442, 130));\n\n botonWeb3.setBackground(new java.awt.Color(255, 51, 102));\n botonWeb3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/errorreportar.png\"))); // NOI18N\n botonWeb3.setLink(\"http://www.estadistico10.pe.hu\");\n getContentPane().add(botonWeb3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 285, 442, 120));\n\n splash.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ImagenesMenu/fondosplash.PNG\"))); // NOI18N\n getContentPane().add(splash, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 120, 710, 470));\n\n pack();\n }",
"public CetakPenjualan() {\n initComponents();\ntampilDataPen();\nthis.setResizable(false);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel4 = new javax.swing.JLabel();\n texto = new javax.swing.JLabel();\n jButton7 = new javax.swing.JButton();\n jButton6 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n jLabel7 = new javax.swing.JLabel();\n Nombre2 = new javax.swing.JLabel();\n fondeishon = new javax.swing.JLabel();\n fondeishon2 = new javax.swing.JLabel();\n texto1 = new javax.swing.JLabel();\n jButton8 = new javax.swing.JButton();\n jButton9 = new javax.swing.JButton();\n Nombre1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n equipo1 = new javax.swing.JTextPane();\n jScrollPane2 = new javax.swing.JScrollPane();\n equipo2 = new javax.swing.JTextPane();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n name = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n texto2 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 48)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\" 0 : 0\");\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 10, 190, 60));\n\n texto.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n texto.setForeground(new java.awt.Color(255, 255, 255));\n getContentPane().add(texto, new org.netbeans.lib.awtextra.AbsoluteConstraints(510, 30, 110, 15));\n\n jButton7.setBackground(new java.awt.Color(0, 0, 0));\n jButton7.setForeground(new java.awt.Color(255, 255, 255));\n jButton7.setText(\"HISTORIAL\");\n jButton7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton7ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton7, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 290, 130, 30));\n\n jButton6.setBackground(new java.awt.Color(0, 153, 51));\n jButton6.setForeground(new java.awt.Color(255, 255, 255));\n jButton6.setText(\"JUGADOR EQUIPO 2\");\n jButton6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton6ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton6, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 280, 130, 30));\n\n jButton5.setBackground(new java.awt.Color(0, 153, 51));\n jButton5.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jButton5.setForeground(new java.awt.Color(255, 255, 255));\n jButton5.setText(\"DATOS DE EQUIPO 1\");\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton5, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 70, 130, 30));\n\n jButton1.setBackground(new java.awt.Color(0, 0, 0));\n jButton1.setForeground(new java.awt.Color(255, 255, 255));\n jButton1.setText(\"START\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 90, 130, 30));\n\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/fondo negro 600 x360.png\"))); // NOI18N\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 10, 190, 60));\n\n Nombre2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/fondo negro.png\"))); // NOI18N\n Nombre2.setText(\"jLabel5\");\n getContentPane().add(Nombre2, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 20, 160, 30));\n\n fondeishon.setBackground(new java.awt.Color(0, 102, 51));\n fondeishon.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/1024 back.jpg\"))); // NOI18N\n fondeishon.setText(\"jLabel3\");\n getContentPane().add(fondeishon, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 100, 130, 180));\n\n fondeishon2.setBackground(new java.awt.Color(0, 102, 51));\n fondeishon2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/1024 back.jpg\"))); // NOI18N\n fondeishon2.setText(\"jLabel3\");\n getContentPane().add(fondeishon2, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 100, 130, 180));\n\n texto1.setBackground(new java.awt.Color(255, 255, 255));\n texto1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n texto1.setForeground(new java.awt.Color(255, 255, 255));\n getContentPane().add(texto1, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 30, 110, 15));\n\n jButton8.setBackground(new java.awt.Color(0, 153, 51));\n jButton8.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jButton8.setForeground(new java.awt.Color(255, 255, 255));\n jButton8.setText(\"DATOS DE EQUIPO 2\");\n jButton8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton8ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton8, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 70, 130, 30));\n\n jButton9.setBackground(new java.awt.Color(0, 153, 51));\n jButton9.setForeground(new java.awt.Color(255, 255, 255));\n jButton9.setText(\"JUGADOR EQUIPO 1\");\n jButton9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton9ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton9, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 290, 130, 30));\n\n Nombre1.setBackground(new java.awt.Color(0, 0, 0));\n Nombre1.setForeground(new java.awt.Color(255, 255, 255));\n Nombre1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/fondo negro.png\"))); // NOI18N\n getContentPane().add(Nombre1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 20, 160, 30));\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/campo fut.jpg\"))); // NOI18N\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 140, 300, 140));\n\n jScrollPane1.setBackground(new java.awt.Color(51, 255, 51));\n jScrollPane1.setForeground(new java.awt.Color(51, 255, 51));\n\n equipo1.setBackground(new java.awt.Color(51, 255, 51));\n jScrollPane1.setViewportView(equipo1);\n\n getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 100, 130, 180));\n\n jScrollPane2.setBackground(new java.awt.Color(51, 255, 51));\n\n equipo2.setBackground(new java.awt.Color(51, 255, 51));\n jScrollPane2.setViewportView(equipo2);\n\n getContentPane().add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 100, 130, 180));\n\n jButton2.setBackground(new java.awt.Color(0, 0, 0));\n jButton2.setForeground(new java.awt.Color(255, 255, 255));\n jButton2.setText(\"cambiar equipos\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 110, 130, -1));\n\n jButton3.setBackground(new java.awt.Color(0, 0, 0));\n jButton3.setForeground(new java.awt.Color(255, 255, 255));\n jButton3.setText(\"Restart\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 80, 130, -1));\n\n jButton4.setBackground(new java.awt.Color(0, 0, 0));\n jButton4.setForeground(new java.awt.Color(255, 255, 255));\n jButton4.setText(\"Guardar Historial\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 290, 120, 30));\n\n name.setForeground(new java.awt.Color(255, 255, 255));\n name.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/custom_1.jpg\"))); // NOI18N\n getContentPane().add(name, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 680, 340));\n\n jLabel1.setText(\"jLabel1\");\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 30, -1, -1));\n\n texto2.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n texto2.setForeground(new java.awt.Color(255, 255, 255));\n texto2.setText(\"jLabel6\");\n getContentPane().add(texto2, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 40, -1, -1));\n\n pack();\n setLocationRelativeTo(null);\n }",
"private void criarComponentes() {\n\n add(criarPainelNorte(), BorderLayout.NORTH);\n add(criarPainelCentro(), BorderLayout.CENTER);\n add(criarPainelSul(), BorderLayout.SOUTH);\n }",
"private void geometry()\n\t\t{\n\t\t// JComponent : Instanciation\n\t\tjTextFieldIp = new JTextField(ChatPreferences.getIp());\n\t\tjTextFieldPort = new JTextField(ChatPreferences.getPort());\n\t\t// Layout : Specification\n\t\t\t{\n\t\t\tFlowLayout flowlayout = new FlowLayout(FlowLayout.CENTER);\n\t\t\tsetLayout(flowlayout);\n\n\t\t\t// flowlayout.setHgap(20);\n\t\t\t// flowlayout.setVgap(20);\n\t\t\t}\n\n\t\t// JComponent : add\n\n\t\t}",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tprivate void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.LIGHT_GRAY);\n\t\tframe.setBounds(100, 100, 1000, 600);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.setResizable(false); \n\n\n\t\tJLabel label = new JLabel(\"Gestionnaire de Cave\");\n\t\tlabel.setForeground(new Color(102, 0, 204));\n\t\tlabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlabel.setFont(new Font(\"Wide Latin\", Font.BOLD, 20));\n\t\tlabel.setBounds(0, 11, 982, 31);\n\t\tframe.getContentPane().add(label);\n\n\t\tJLabel lblNewLabel = new JLabel(\"Rechercher\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblNewLabel.setBounds(284, 140, 104, 22);\n\t\tframe.getContentPane().add(lblNewLabel);\n\n\t\tJLabel lblParTypeDe = new JLabel(\"Par type de vin\");\n\t\tlblParTypeDe.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblParTypeDe.setBounds(284, 199, 136, 22);\n\t\tframe.getContentPane().add(lblParTypeDe);\n\n\t\tJLabel lblParFournisseur = new JLabel(\"Par Fournisseur\");\n\t\tlblParFournisseur.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblParFournisseur.setBounds(284, 232, 136, 22);\n\t\tframe.getContentPane().add(lblParFournisseur);\n\n\t\tJLabel lblParCuve = new JLabel(\"Par cuv\\u00E9e\");\n\t\tlblParCuve.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblParCuve.setBounds(284, 265, 136, 22);\n\t\tframe.getContentPane().add(lblParCuve);\n\n\t\tJLabel lblParRgion = new JLabel(\"Par R\\u00E9gion\");\n\t\tlblParRgion.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblParRgion.setBounds(284, 298, 136, 22);\n\t\tframe.getContentPane().add(lblParRgion);\n\n\t\tJLabel lblPar = new JLabel(\"Par Volume\\r\\n\");\n\t\tlblPar.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblPar.setBounds(284, 331, 136, 22);\n\t\tframe.getContentPane().add(lblPar);\n\n\t\tJLabel lblListeDesBouteilles = new JLabel(\"Liste des Bouteilles\");\n\t\tlblListeDesBouteilles.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblListeDesBouteilles.setBounds(682, 140, 163, 22);\n\t\tframe.getContentPane().add(lblListeDesBouteilles);\n\n\t\tJLabel lblVinBlanc = new JLabel(\"Vin Blanc :\");\n\t\tlblVinBlanc.setForeground(Color.WHITE);\n\t\tlblVinBlanc.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblVinBlanc.setBounds(10, 205, 97, 14);\n\t\tframe.getContentPane().add(lblVinBlanc);\n\n\t\tJLabel lblVinRouge = new JLabel(\"Vin Rouge :\");\n\t\tlblVinRouge.setForeground(Color.WHITE);\n\t\tlblVinRouge.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblVinRouge.setBounds(10, 238, 97, 22);\n\t\tframe.getContentPane().add(lblVinRouge);\n\n\t\tJLabel lblVinRos = new JLabel(\"Vin Ros\\u00E9 :\");\n\t\tlblVinRos.setForeground(Color.WHITE);\n\t\tlblVinRos.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblVinRos.setBounds(10, 271, 97, 14);\n\t\tframe.getContentPane().add(lblVinRos);\n\n\t\tJLabel lblVinE = new JLabel(\"Vin Effervescent :\");\n\t\tlblVinE.setForeground(Color.WHITE);\n\t\tlblVinE.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblVinE.setBounds(10, 304, 154, 14);\n\t\tframe.getContentPane().add(lblVinE);\n\n\t\tJLabel lblTotal = new JLabel(\"Total :\");\n\t\tlblTotal.setForeground(Color.WHITE);\n\t\tlblTotal.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblTotal.setBounds(10, 337, 86, 14);\n\t\tframe.getContentPane().add(lblTotal);\n\n\t\tJButton btnRetour = new JButton(\"Retour\");\n\t\tbtnRetour.setBackground(new Color(51, 102, 0));\n\t\tbtnRetour.setForeground(new Color(255, 255, 255));\n\t\tbtnRetour.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tframe.setVisible(false);\n\t\t\t\tAccueil.frame.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tbtnRetour.setFont(new Font(\"Tw Cen MT Condensed Extra Bold\", Font.PLAIN, 20));\n\t\tbtnRetour.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}\n\t\t});\n\t\tbtnRetour.setBounds(413, 503, 89, 23);\n\t\tframe.getContentPane().add(btnRetour);\n\n\t\tJButton btnVoirLaBouteille = new JButton(\"Voir la bouteille\");\n\t\tbtnVoirLaBouteille.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tVuBouteille vue=new VuBouteille();\n\t\t\t\tframe.setVisible(false);\n\t\t\t\tVuBouteille.frame.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tbtnVoirLaBouteille.setBackground(new Color(51, 102, 0));\n\t\tbtnVoirLaBouteille.setForeground(new Color(255, 255, 255));\n\t\tbtnVoirLaBouteille.setFont(new Font(\"Tw Cen MT Condensed Extra Bold\", Font.PLAIN, 20));\n\t\tbtnVoirLaBouteille.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnVoirLaBouteille.setBounds(492, 393, 153, 23);\n\t\tframe.getContentPane().add(btnVoirLaBouteille);\n\n\t\tJButton btnAjouterUneBouteille = new JButton(\"Ajouter une bouteille\");\n\t\tbtnAjouterUneBouteille.setBackground(new Color(51, 102, 0));\n\t\tbtnAjouterUneBouteille.setForeground(new Color(255, 255, 255));\n\t\tbtnAjouterUneBouteille.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tframe.setVisible(false);\n\t\t\t\tAdd_Bttl modif = new Add_Bttl();\n\t\t\t\tAdd_Bttl.frame.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tbtnAjouterUneBouteille.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnAjouterUneBouteille.setFont(new Font(\"Tw Cen MT Condensed Extra Bold\", Font.PLAIN, 20));\n\t\tbtnAjouterUneBouteille.setBounds(363, 452, 189, 23);\n\t\tframe.getContentPane().add(btnAjouterUneBouteille);\n\n\t\tJButton btnModifierUneBouteille = new JButton(\"Modifier une bouteille\");\n\t\tbtnModifierUneBouteille.setBackground(new Color(51, 102, 0));\n\t\tbtnModifierUneBouteille.setForeground(new Color(255, 255, 255));\n\t\tbtnModifierUneBouteille.setFont(new Font(\"Tw Cen MT Condensed Extra Bold\", Font.PLAIN, 20));\n\t\tbtnModifierUneBouteille.setBounds(657, 393, 223, 23);\n\t\tframe.getContentPane().add(btnModifierUneBouteille);\n\n\t\ttable = new JTable();\n\t\ttable.setBounds(657, 175, 285, 181);\n\t\tframe.getContentPane().add(table);\n\n\t\tJLabel lblStocks = new JLabel(\"Stocks\");\n\t\tlblStocks.setForeground(new Color(0, 0, 51));\n\t\tlblStocks.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblStocks.setFont(new Font(\"Wide Latin\", Font.BOLD, 15));\n\t\tlblStocks.setBounds(0, 54, 982, 41);\n\t\tframe.getContentPane().add(lblStocks);\n\t\t\n\t/*\tConnection con =null;\n\t\ttry {\n\t\t\tcon =Connect.connect();\n\t\t} catch (SQLException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}*/\n\t\tJLabel lblTotal_1 = new JLabel(Integer.toString(nbBtlBlanc));\n\t\tlblTotal_1.setForeground(Color.WHITE);\n\t\tlblTotal_1.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlblTotal_1.setBounds(176, 207, 46, 14);\n\t\tframe.getContentPane().add(lblTotal_1);\n\n\t\tJLabel label_1 = new JLabel(Integer.toString(nbBtlRouge));\n\t\tlabel_1.setForeground(Color.WHITE);\n\t\tlabel_1.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlabel_1.setBounds(176, 240, 46, 14);\n\t\tframe.getContentPane().add(label_1);\n\n\t\tJLabel label_2 = new JLabel(Integer.toString(nbBtlRose));\n\t\tlabel_2.setForeground(Color.WHITE);\n\t\tlabel_2.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlabel_2.setBounds(176, 273, 46, 14);\n\t\tframe.getContentPane().add(label_2);\n\n\t\tJLabel label_3 = new JLabel(Integer.toString(nbBtlEffer));\n\t\tlabel_3.setForeground(Color.WHITE);\n\t\tlabel_3.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlabel_3.setBounds(176, 306, 46, 14);\n\t\tframe.getContentPane().add(label_3);\n\n\t\tJLabel label_4 = new JLabel(Integer.toString(totalBtl));\n\t\tlabel_4.setForeground(Color.WHITE);\n\t\tlabel_4.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\tlabel_4.setBounds(176, 339, 46, 14);\n\t\tframe.getContentPane().add(label_4);\n\n\t\tJComboBox comboBox = new JComboBox(listeTypeVin);\n\t\tcomboBox.setBackground(Color.LIGHT_GRAY);\n\t\tcomboBox.setFont(new Font(\"Tw Cen MT Condensed Extra Bold\", Font.PLAIN, 20));\n\t\tcomboBox.setBounds(449, 200, 175, 20);\n\t\tframe.getContentPane().add(comboBox);\n\n\t\tJComboBox comboBox_1 = new JComboBox(listeFournisseur);\n\t\tcomboBox_1.setBackground(Color.LIGHT_GRAY);\n\t\tcomboBox_1.setFont(new Font(\"Tw Cen MT Condensed Extra Bold\", Font.PLAIN, 20));\n\t\tcomboBox_1.setBounds(449, 235, 175, 20);\n\t\tframe.getContentPane().add(comboBox_1);\n\n\t\tJComboBox comboBox_2 = new JComboBox(listeCuvee);\n\t\tcomboBox_2.setBackground(Color.LIGHT_GRAY);\n\t\tcomboBox_2.setFont(new Font(\"Tw Cen MT Condensed Extra Bold\", Font.PLAIN, 20));\n\t\tcomboBox_2.setBounds(449, 268, 175, 20);\n\t\tframe.getContentPane().add(comboBox_2);\n\n\t\tJComboBox comboBox_3 = new JComboBox(listeRegion);\n\t\tcomboBox_3.setBackground(Color.LIGHT_GRAY);\n\t\tcomboBox_3.setFont(new Font(\"Tw Cen MT Condensed Extra Bold\", Font.PLAIN, 20));\n\t\tcomboBox_3.setBounds(449, 301, 175, 20);\n\t\tframe.getContentPane().add(comboBox_3);\n\n\t\tJComboBox comboBox_4 = new JComboBox(listeVolume);\n\t\tcomboBox_4.setBackground(Color.LIGHT_GRAY);\n\t\tcomboBox_4.setFont(new Font(\"Tw Cen MT Condensed Extra Bold\", Font.PLAIN, 20));\n\t\tcomboBox_4.setBounds(449, 334, 175, 20);\n\t\tframe.getContentPane().add(comboBox_4);\n\n\t\t/*\n\t\t * Liste_Bttl = new TableModel[][] { {Bttl_1 = new\n\t\t * Bouteille(\"Chateau Lecroc\", \"Bordeau\", \"France\", null, 2000, \"rouge\",\n\t\t * 13, \"Cuvelier Fauvarque\", 10, 75, \"non\", 3, 4, \"oui\", 3, \"RAS\")},\n\t\t * {Bttl_2 = new Bouteille(\"Chateau Leduc\", \"Bourgogne\", \"France\", null,\n\t\t * 2001, \"rouge\", 13, \"Cuvelier Fauvarque\", 10, 75, \"non\", 3, 4, \"oui\",\n\t\t * 3, \"Bon avec de la viande Rouge\")}, {Bttl_3 = new\n\t\t * Bouteille(\"Chateau Leduc\", \"Bourgogne\", \"France\", \"medaille argent\",\n\t\t * 2001, \"rouge\", 13, \"Cuvelier Fauvarque\", 10, 75, \"non\", 3, 4, \"oui\",\n\t\t * 3, null)}, };\n\t\t * \n\t\t * String[] entete = { \"nom\", \"region\", \"pays\", \"millesime\", \"cuvee\",\n\t\t * \"robe\", \"temperature\", \"fournisseur\", \"degre\", \"volume\",\n\t\t * \"effervescent\", \"note\", \"quantite\", \"disponible\", \"emplacement\",\n\t\t * \"commentaire\" };\n\t\t */\n\t\ttable_2 = new JTable();\n\t\ttable_2.setBounds(640, 350, 274, -156);\n\t\tframe.getContentPane().add(table_2);\n\t\t\n\t\tJLabel label_5 = new JLabel(\"\");\n\t\tlabel_5.setIcon(new ImageIcon(\"verre_vin_qualit\\u00E9.jpg\"));\n\t\tlabel_5.setBounds(0, 0, 982, 553);\n\t\tframe.getContentPane().add(label_5);\n\n\t}"
]
| [
"0.6862804",
"0.68022543",
"0.6753098",
"0.6673545",
"0.6637148",
"0.6579854",
"0.6564857",
"0.6460746",
"0.6416894",
"0.63979447",
"0.6395394",
"0.6360699",
"0.6355244",
"0.63389605",
"0.63268423",
"0.6309946",
"0.629604",
"0.6274446",
"0.6264009",
"0.62563014",
"0.6247385",
"0.62380916",
"0.6233894",
"0.6231218",
"0.62029016",
"0.6198986",
"0.6194618",
"0.6187399",
"0.61816365",
"0.6177011",
"0.6170772",
"0.6157593",
"0.61475086",
"0.6142516",
"0.6122622",
"0.61218876",
"0.6115341",
"0.6110622",
"0.61044776",
"0.6082919",
"0.60802203",
"0.6069876",
"0.6066651",
"0.6063106",
"0.6055132",
"0.6055087",
"0.6053519",
"0.60521066",
"0.60418206",
"0.60357004",
"0.6033411",
"0.6030758",
"0.6025052",
"0.6023593",
"0.60207695",
"0.6015282",
"0.601445",
"0.6012468",
"0.60020953",
"0.60009027",
"0.6000831",
"0.59967047",
"0.5995669",
"0.59887296",
"0.598683",
"0.5971321",
"0.5970831",
"0.5967793",
"0.59656864",
"0.59633327",
"0.5959457",
"0.59556913",
"0.59542924",
"0.59394556",
"0.5939352",
"0.59371436",
"0.59362125",
"0.59277236",
"0.5922931",
"0.5917137",
"0.59159833",
"0.5913856",
"0.5902448",
"0.59020275",
"0.589931",
"0.58950967",
"0.58927363",
"0.58890593",
"0.5888433",
"0.58854085",
"0.58836406",
"0.5879453",
"0.58754945",
"0.5872375",
"0.5868106",
"0.58665895",
"0.5865951",
"0.5863567",
"0.5862167",
"0.58592397"
]
| 0.70682615 | 0 |
Abre um labirinto previamente criado a partir de um arquivo que deve ser selecionado, imprimindoo no visor. Habilita os botoes de salvar e executar labirinto, abrindo um selecionador de arquivo. Depois de selecionado pelo usuario, o conteudo do arquivo e impresso na tela e o lab e instanciado a partir dele. | private void btnAbrirLabirinto(){
botao[2].setEnabled(true);
botao[3].setEnabled(true);
log.setText("Log de erros");
info.setText(" ");
JFileChooser arquivo = new JFileChooser();
arquivo.setCurrentDirectory(new File(System.getProperty("user.home")));
int result = arquivo.showOpenDialog(visor);
if (result == JFileChooser.APPROVE_OPTION) {
File selectedFile = arquivo.getSelectedFile();
nome = selectedFile.getName();
}
BufferedReader in = null;
try{
in = new BufferedReader(new FileReader(nome));
in.readLine();
visor.setText("");
String str;
str = in.readLine();
visor.setText(str);
while((str = in.readLine()) != null){
visor.setText(visor.getText() + "\n" + str);
}
in.close();
} catch(IOException e){}
CriaLabirinto texto = new CriaLabirinto();
try{
lab = texto.labirinto(nome);
}
catch(Exception erro1){
log.setText(erro1.getMessage());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void btnSalvarLabirinto(){\n\t\t\tinfo.setText(\" \");\n botao[3].setEnabled(true);\n log.setText(\"Log de erros\");\n \n JFileChooser arquivo = new JFileChooser();\n\t\t\tarquivo.setDialogTitle(\"Salvar Arquivo\");\n int userSelection = arquivo.showSaveDialog(visor);\n\n FileWriter salvar = null;\n File f = null;\n try{\n if (userSelection == JFileChooser.APPROVE_OPTION) {\n salvar = new FileWriter(arquivo.getSelectedFile());\n f = arquivo.getSelectedFile();\n nome = f.getName();\n int n = visor.getLineCount();\n salvar.write(n + \"\\n\");\n salvar.write(visor.getText());\n salvar.close();\n }\n }catch(IOException e){}\n CriaLabirinto texto = new CriaLabirinto();\n try{\n\t\t lab = texto.labirinto(nome);\n\t }\n\t catch(Exception erro1){\n\t\t\t log.setText(erro1.getMessage());\n\t\t\t f.delete();\n\t }\n }",
"private void createNewLab(){\n String newLabName = NewLabNameTextfield.getText();\n // If lab doesn't exist make the new lab\n if(!Arrays.asList(labsPath.list()).contains(newLabName)){ \n try{\n LabExistLabel.setVisible(false);\n NewLabDialog.revalidate();\n //call python new_lab_script: new_lab_setup.py -b basename \n File labdir = new File(labsPath+File.separator+newLabName);\n labdir.mkdir();\n this.labName = newLabName;\n String cmd = \"new_lab_setup.py -b \"+NewLabBaseImageComboBox.getSelectedItem();\n doLabCommand(cmd);\n \n // Close the new lab dialog and open the new lab\n NewLabDialog.setVisible(false);\n openLab(new File(labsPath+File.separator+newLabName));\n } \n catch (IOException e){\n System.out.println(e);\n }\n }\n else{\n LabExistLabel.setVisible(true);\n NewLabDialog.revalidate();\n System.out.println(\"Lab already exists. Make the lab with a different name other than:\");\n printExistingLabs();\n }\n }",
"private void btnExecutarLabirinto(){\n log.setText(\"Log de erros\");\n botao[2].setEnabled(false);\n try{\n lab.encontrarAdj();\n lab.andadinha();\n info.setText(\" \");\n visor.setText(lab.toString());\n\n Pilha<Coordenada> caminho = lab.getCaminho();\n Pilha<Coordenada> inverso = new Pilha<Coordenada>();\n while(!caminho.isVazia())\n {\n inverso.guardeUmItem(caminho.recupereUmItem());\n caminho.removaUmItem();\n }\n\n log.setText(\"Caminho percorrido: \");\n while(!inverso.isVazia())\n {\n log.setText(log.getText() + inverso.recupereUmItem().toString() + \" \");\n inverso.removaUmItem();\n }\n }\n catch(Exception erro1){\n log.setText(erro1.getMessage());\n }\n\t\t}",
"public static void deixarDeSeguir() throws IOException, InterruptedException {\n\n clearScreen();\n Scanner input = new Scanner(System.in);\n System.out.println(\"Qual tópico deseja deixar de seguir?\");\n System.out.print(\"> \");\n String topico = input.next();\n\n File file = new File(user+\".txt\");\n FileWriter writer = new FileWriter(user+\".txt\",true);\n BufferedReader reader = new BufferedReader(new FileReader(file));\n\n x = new Scanner(new File(user+\".txt\")); // ficheiro com o nome do utilizador onde guarda as suas subscricoes\n \n\n boolean existe = false;\n\n while(x.hasNext()){\n String a = x.next();\n String b = x.next();\n\n if(a.equals(topico)) // verificar se segue o topico que colocou\n existe = true;\n }\n\n if(existe == false){\n System.out.println(\"\\033[1mO tópico \"+ topico + \" não existe!\\033[0m\"); // verificar se o topico existe\n TimeUnit.SECONDS.sleep(2);\n deixarDeSeguir();\n return;\n }\n \n try\n {\n \n String line = \"\", oldtext = \"\",linha=\"\", newTexto=\"\";\n while((line = reader.readLine()) != null)\n {\n oldtext += line + \"\\r\\n\";\n if(line.contains(topico))\n linha = line + \"\\r\\n\";\n }\n reader.close();\n\n newTexto = oldtext.replaceAll(linha,\"\"); // apagar a linha que contem o topico subscrito, apagando-o\n PrintWriter pw = new PrintWriter(user+\".txt\");\n writer.write(newTexto);writer.close();\n\n System.out.println(\"\\033[1mDeixou de seguir \" + topico + \" com sucesso!\\033[0m\");\n \n }\n \n catch (IOException ioe)\n {\n ioe.printStackTrace();\n }\n\n }",
"private static void createFileContribuicaoUmidade() throws IOException{\r\n\t\tInteger contribuicaoDefault = 0;\r\n\t\tarqContribuicaoUmidade = new File(pathContribuicaoUmidade);\r\n\t\tif(!arqContribuicaoUmidade.exists()) {\r\n\t\t\tarqContribuicaoUmidade.createNewFile();\r\n\t\t\tFileWriter fw = new FileWriter(getArqContribuicaoUmidade());\r\n\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\tbuffWrite.append(contribuicaoDefault.toString() + String.valueOf('\\n'));\r\n\t\t\tbuffWrite.close();\r\n\t\t}else {//Se arquivo existir\r\n\t\t\tFileReader fr = new FileReader(getArqContribuicaoUmidade());\r\n\t\t\tBufferedReader buffRead = new BufferedReader(fr);\r\n\t\t\tif(!buffRead.ready()) {/*Se o arquivo se encontar criado mas estiver vazio(modificado)*/\r\n\t\t\t\tFileWriter fw = new FileWriter(arqContribuicaoUmidade);\r\n\t\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\t\tbuffWrite.append(contribuicaoDefault.toString() + String.valueOf('\\n'));/*Inicializa o arquivo com uma contribuicao Inicial*/\r\n\t\t\t\tbuffWrite.close();\r\n\t\t\t}\r\n\t\t\tbuffRead.close();\r\n\t\t}\r\n\t}",
"public void criar() throws IOException {\nif (!directorio.exists()) {\n directorio.mkdir();\n System.out.println(\"Directorio criado\");\n } else {\n System.out.println(\"Directorio existe\");\n }\n if (!fileAdmin.exists()) {\n fileAdmin.createNewFile();\n System.out.println(\"file de Administrador criado com sucesso\");\n escrever(lista);\n } else {\n System.out.println(\"ficheiro existe\");\n }\n\n }",
"public static void crearPartida() throws FileNotFoundException, IOException, ExcepcionesFich {\n\t\tLecturaFicheros.AllLecture(\"C:\\\\Users\\\\Erick\\\\pruebaPOO.txt\");\n\t\tinterfaz = new GUI(0);\t\t\n\t}",
"public ManejadorArch(String Usuario) {\n initComponents();\n \n NombreUs = Usuario;\n vertical[ver]=\"\\\\\";\n ver++;\n //modelo.addRow();\n if (Usuario.equals(\"admin\")) {\n Rutax = \"\\\\\";\n Rutay =Ruta;\n }else{\n Rutax = \"\\\\\";\n Rutay =Ruta;\n }\n //path actual para crear archivos y crear carpetas\n \n if (Usuario.equals(\"admin\")) {\n // this.jFileChooser1.setCurrentDirectory(new java.io.File(Ruta));\n }else{\n // this.jFileChooser1.setCurrentDirectory(new java.io.File(Ruta+Usuario));\n }\n \n if (Usuario.equals(\"admin\")) {\n this.jb_cargausuarios.setVisible(true);\n this.jb_reporteusuarios.setVisible(true);\n }else{\n this.jb_cargausuarios.setVisible(false);\n this.jb_reporteusuarios.setVisible(false);\n }\n }",
"public void crearSala(String color, int SalaoLab, String nombre, String actividad, int capacidad, int computadores, int datas, int mesas,\n int pizarras, int telones, int sillas) {\n for (int i = 0; i < edificios.size(); i++) {\n Edificio edificioActual = edificios.get(i);\n if (edificioActual.getColor().equals(color)) {\n if (SalaoLab == 0){\n edificioActual.agregarSalaClases(nombre, actividad, capacidad, computadores, datas, mesas,\n pizarras, telones, sillas);\n }\n else{\n edificioActual.agregarLaboratorio(nombre, actividad, capacidad, computadores, datas, mesas, pizarras,\n telones, sillas);\n }\n }\n }\n\n }",
"private void saveLab(boolean usetmp) throws FileNotFoundException{\n //Get path to start.config\n String startConfigPath;\n if(!usetmp){\n startConfigPath = currentLab.getPath()+File.separator+\"config\"+File.separator+\"start.config\";\n }else{\n startConfigPath = currentLab.getPath()+File.separator+\"config\"+File.separator+\"start.config\";\n }\n PrintWriter writer = new PrintWriter(startConfigPath);\n String startConfigText = \"\"; \n \n // Write Global Params\n for(String line : labDataCurrent.getGlobals()){\n startConfigText += line+\"\\n\";\n }\n\n // Cycle through network objects and write\n Component[] networks = NetworkPanePanel.getComponents();\n for(Component network : networks){\n NetworkData data = ((NetworkObjPanel)network).getConfigData();\n startConfigText += \"NETWORK \"+data.name+\"\\n\";\n startConfigText += \" MASK \"+data.mask+\"\\n\";\n startConfigText += \" GATEWAY \"+data.gateway+\"\\n\";\n \n if(data.macvlan > 0){\n startConfigText += \" MACVLAN \"+data.macvlan+\"\\n\";\n }\n if(data.macvlan_ext > 0){\n startConfigText += \" MACVLAN_EXT\" +data.macvlan_ext+\"\\n\";\n }\n \n if(!data.ip_range.isEmpty()){\n startConfigText += \" IP_RANGE \"+data.ip_range+\"\\n\";\n } \n\n if(data.tap){\n startConfigText += \" TAP YES\"+\"\\n\";\n }\n for(String unknownParam : data.unknownNetworkParams){\n startConfigText += \" \"+unknownParam+\"\\n\";\n }\n }\n \n // Cycle through container objects and write \n Component[] containers = ContainerPanePanel.getComponents();\n for(Component container : containers){\n ContainerData data = ((ContainerObjPanel)container).getConfigData(); \n startConfigText += \"CONTAINER \"+data.name+\"\\n\";\n startConfigText += \" USER \"+data.user+\"\\n\";\n if(data.script.isEmpty()){\n startConfigText += \" SCRIPT NONE\\n\";\n }\n else{\n startConfigText += \" SCRIPT \"+data.script+\"\\n\"; \n }\n \n if(data.x11){\n startConfigText += \" X11 YES\\n\"; \n }\n else{\n startConfigText += \" X11 NO\\n\";\n }\n // Not default\n if(data.terminal_count != 1)\n startConfigText += \" TERMINALS \"+data.terminal_count+\"\\n\";\n if(!data.terminal_group.isEmpty())\n startConfigText += \" TERMINAL_GROUP \"+data.terminal_group+\"\\n\";\n if(!data.xterm_title.isEmpty())\n startConfigText += \" XTERM \"+data.xterm_title+\" \"+data.xterm_script+\"\\n\";\n if(!data.password.isEmpty())\n startConfigText += \" PASSWORD \"+data.password+\"\\n\";\n for(LabData.ContainerAddHostSubData addHost : data.listOfContainerAddHost){\n if(addHost.type.equals(\"network\"))\n startConfigText += \" ADD-HOST \"+addHost.add_host_network+\"\\n\";\n else if(addHost.type.equals(\"ip\"))\n startConfigText += \" ADD-HOST \"+addHost.add_host_host+\":\"+addHost.add_host_ip+\"\\n\"; \n }\n for(LabData.ContainerNetworkSubData network : data.listOfContainerNetworks){\n startConfigText += \" \"+network.network_name+\" \"+network.network_ipaddress+\"\\n\"; \n }\n if(data.clone > 0){\n startConfigText += \" CLONE \"+data.clone+\"\\n\";\n }\n if(!data.lab_gateway.isEmpty()){\n startConfigText += \" LAB_GATEWAY \"+data.lab_gateway+\"\\n\";\n }\n if(data.no_gw){\n startConfigText += \" NO_GW YES\\n\";\n }\n if(!data.base_registry.isEmpty()){\n startConfigText += \" BASE_REGISTRY \"+data.base_registry+\"\\n\";\n }\n if(!data.thumb_volume.isEmpty()){\n startConfigText += \" THUMB_VOLUME \"+data.thumb_volume+\"\\n\";\n }\n if(!data.thumb_command.isEmpty()){\n startConfigText += \" THUMB_COMMAND \"+data.thumb_command+\"\\n\";\n }\n if(!data.thumb_stop.isEmpty()){\n startConfigText += \" THUMB_STOP \"+data.thumb_stop+\"\\n\";\n }\n if(!data.publish.isEmpty()){\n startConfigText += \" PUBLISH \"+data.publish+\"\\n\";\n }\n if(data.hide){\n startConfigText += \" HIDE YES\\n\";\n }\n if(data.no_privilege){\n startConfigText += \" NO_PRIVILEGE YES\\n\";\n }\n if(data.no_pull){\n startConfigText += \" NO_PULL YES\\n\";\n }\n if(data.mystuff){\n startConfigText += \" MYSTUFF YES\\n\";\n }\n if(data.tap){\n startConfigText += \" TAP YES\\n\";\n }\n if(!data.mount1.isEmpty() && !data.mount2.isEmpty()){\n startConfigText += \" MOUNT \"+data.mount1+\":\"+data.mount2+\"\\n\";\n }\n \n }\n \n //Write to File\n writer.print(startConfigText);\n writer.close();\n \n //Save results.config and goals.config file\n labDataCurrent.getResultsData().writeResultsConfig(usetmp);\n labDataCurrent.getGoalsData().writeGoalsConfig(usetmp);\n labDataCurrent.getParamsData().writeParamsConfig(usetmp);\n \n System.out.println(\"Lab Saved\");\n }",
"@Override\n public void incluir(Colaborador objeto)throws Exception {\n try {\n System.out.println(\"Estou Gravando no Arquivo\" + nomeDoArquivoNoDisco);\n FileWriter fw = new FileWriter(nomeDoArquivoNoDisco, true);\n //Criar o buffer do arquivo\n BufferedWriter bw = new BufferedWriter(fw);\n //Escreve no arquivo\n bw.write(objeto.toString() + \"\\n\");\n //Fechar o arquivo\n bw.close();\n } catch (Exception erro) {\n throw erro;\n }\n }",
"private static void novoUtilizador(int tipo){\n String nome;\n int idade;\n boolean premium; \n Scanner teclado = new Scanner(System.in);\n \n if (tipo == 0 )\n System.out.println(\"Novo Utilizador\");\n else\n System.out.println(\"Novo Programador\");\n \n try{ \n System.out.print(\"Nome: \");\n nome = teclado.nextLine();\n \n System.out.print(\"Idade: \");\n idade = teclado.nextInt();\n \n System.out.print(\"Premium? (S / N) \");\n char pre = teclado.next().charAt(0); \n if (pre == 's' || pre == 'S')\n premium = true;\n else if (pre == 'n' || pre == 'N')\n premium = false;\n else\n throw new InputMismatchException();\n \n if (tipo == 0 )\n utilizadores.add(new User(nome, idade, premium, false,0));\n else\n utilizadores.add(new Programador(nome, idade, premium, true,0));\n System.out.println(\"\");\n }catch(InputMismatchException ime){\n System.out.println(\"\");\n System.out.println(\"Algo correu mal, tente novamente!\");\n System.out.println(\"\");\n novoUtilizador(tipo);\n }\n }",
"public void salvaAula()\n { \n JFileChooser fileChooser = new JFileChooser();\n String strFilePlan = \"out/\" + this.myAula.getNome()+ \"_plan\"+ \".png\";\n System.out.println(\"scrivo su file \"+ strFilePlan);\n File fp = new File(strFilePlan);\n String strFileDati = \"out/\" + this.myAula.getNome()+ \"_dati\"+ \".png\";\n File fd = new File(strFileDati);\n fileChooser.setSelectedFile(fd);\n try\n { \n ImageIO.write(this.getPlan(), \"png\", fp);\n ImageIO.write(this.getDati(), \"png\", fd);\n }\n catch (Exception ex)\n {\n System.out.println(\"errore in Salvataggio aula su file\");\n }\n \n JOptionPane.showMessageDialog(this, \"file salvati correttamente sotto cartella /out\",\"Info\", JOptionPane.INFORMATION_MESSAGE);\n }",
"public static void modificarImporte(Scanner keyboard, ArrayList<Usuario> usuarios) { //reutilizar?\n if(!estaVacia(usuarios)){\n Usuario user = (Usuario) mostrarLista(keyboard,usuarios);\n ArrayList<Objeto> objetos = user.getObjetos();\n \n if(!estaVacia(objetos)){\n Objeto obj = (Objeto) mostrarLista(keyboard,objetos);\n boolean ok;\n float coste = 0;\n do{\n ok = true;\n System.out.println(\"Introduzca el nuevo importe: \");\n try{\n coste = keyboard.nextFloat(); //comprobar coste > 0\n }catch(NumberFormatException e){\n ok = false;\n }\n obj.setCoste(coste);\n }while(!ok || coste <= 0);\n }\n }\n \n }",
"public void insercionMasiva() {\r\n\t\tif (!precondInsert())\r\n\t\t\treturn;\r\n\t\tUploadItem fileItem = seleccionUtilFormController.crearUploadItem(\r\n\t\t\t\tfName, uFile.length, cType, uFile);\r\n\t\ttry {\r\n\t\t\tlLineasArch = FileUtils.readLines(fileItem.getFile(), \"ISO-8859-1\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tstatusMessages.add(Severity.INFO, \"Error al subir el archivo\");\r\n\t\t}\r\n\r\n\t\tStringBuilder cadenaSalida = new StringBuilder();\r\n\t\tString estado = \"EXITO\";\r\n\t\tcantidadLineas = 0;\r\n\t\t//Ciclo para contar la cantdad de adjudicados o seleccionados que se reciben\r\n\t\tfor (String linea : lLineasArch) {\r\n\t\t\tcantidadLineas++;\r\n\t\t\tif(cantidadLineas > 1){\r\n\t\t\t\tseleccionados++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Condicion para verificar si la cantidad de seleccionados es mayor a la cantidad de vacancias (en cuyo caso se procede a abortar el proceso e imprimir\r\n\t\t//un mensaje de error) o verificar si esta es menor (se imprime el mensaje pero se continua)\r\n\t\t\r\n\t\tif(seleccionados > concursoPuestoAgrNuevo.getCantidadPuestos()){\r\n\t\t\testado = \"FRACASO\";\r\n\t\t\tcadenaSalida.append(estado + \" - CANTIDAD DE AJUDICADOS ES SUPERIOR A LA CANTIDAD DE PUESTOS VACANTES PARA EL GRUPO\");\r\n\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t}\r\n\t\telse if(seleccionados < concursoPuestoAgrNuevo.getCantidadPuestos()){\r\n\t\t\tcadenaSalida.append(\"ADVERTENCIA - CANTIDAD DE ADJUDICADOS ES INFERIOR A LA CANTIDAD DE PUESTOS VACANTES PARA EL GRUPO\");\r\n\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t}\r\n\t\tseleccionados = 0;\r\n\t\t\r\n\t\tif(!estado.equals(\"FRACASO\")){\r\n\r\n\t\tcantidadLineas = 0;\r\n\t\tfor (String linea : lLineasArch) {\r\n\r\n\t\t\tcantidadLineas++;\r\n\t\t\testado = \"EXITO\";\r\n\t\t\tString observacion = \"\";\r\n\t\t\tFilaPostulante fp = new FilaPostulante(linea);\r\n\t\t\tList<Persona> lista = null;\r\n\t\t\tif (cantidadLineas > 1 && fp != null && fp.valido) {\r\n\t\t\t\t//Verifica si la persona leida en el registro del archivo CSV existe en la Tabla Persona\r\n\t\t\t\tString sqlPersona = \"select * from general.persona where persona.documento_identidad = '\"+fp.getDocumento()+ \"'\";\r\n\t\t\t\tQuery q1 = em.createNativeQuery(sqlPersona, Persona.class);\r\n\t\t\t\tPersona personaLocal = new Persona();\r\n\t\t\t\tint banderaEncontroPersonas = 0;\r\n\t\t\t\t//Si existe, se almacena el registro de la tabla\r\n\t\t\t\tif(!q1.getResultList().isEmpty()){\r\n\t\t\t\t\tlista = q1.getResultList();\r\n\t\t\t\t\tif (compararNomApe(lista.get(0).getNombres(), removeCadenasEspeciales(fp.getNombres()))\r\n\t\t\t\t\t\t\t&& compararNomApe(lista.get(0).getApellidos(), removeCadenasEspeciales(fp.getApellidos())) ) {\r\n\t\t\t\t\t\t\tbanderaEncontroPersonas = 1;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\t\t\tobservacion += \" PERSONA NO REGISTRADA EN LA BASE DE DATOS LOCAL\";\r\n\t\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\tobservacion += \" PERSONA NO REGITRADA EN LA BASE DE DATOS LOCAL\";\r\n\t\t\t\t}\r\n\t\t\t\t//Verificamos que la persona figure en la lista corta como seleccionado\r\n\t\t\t\tif(!estado.equals(\"FRACASO\")){\r\n\t\t\t\t\tint banderaExisteEnListaCorta = 0;\t\t\t\t\t\r\n\t\t\t\t\tint i=0;\r\n\t\t\t\t\tif (banderaEncontroPersonas == 1) {\r\n\t\t\t\t\t\twhile(i<lista.size()){\r\n\t\t\t\t\t\t\tpersonaLocal = (Persona) lista.get(i);\r\n\t\t\t\t\t\t\tQuery p = em.createQuery(\"select E from EvalReferencialPostulante E \"\r\n\t\t\t\t\t\t\t\t\t+ \"where E.postulacion.personaPostulante.persona.idPersona =:id_persona and E.concursoPuestoAgr.idConcursoPuestoAgr =:id_concurso_puesto_agr and E.listaCorta=:esta_en_lista_corta\");\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"id_persona\", personaLocal.getIdPersona());\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"id_concurso_puesto_agr\", this.idConcursoPuestoAgr);\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"esta_en_lista_corta\", true);\r\n\t\t\t\t\t\t\tList<EvalReferencialPostulante> listaEvalRefPost = p.getResultList();\r\n\t\t\t\t\t\t\tif (!listaEvalRefPost.isEmpty()) {\r\n\t\t\t\t\t\t\t\tbanderaExisteEnListaCorta = 1;\r\n\t\t\t\t\t\t\t\ti = lista.size();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (banderaExisteEnListaCorta == 0) {\r\n\t\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\t\tobservacion += \" NO SELECCIONADO/ELEGIBLE EN LISTA CORTA\";\r\n\t\t\t\t\t} else if (banderaExisteEnListaCorta == 1){\r\n\t\t\t\t\t\tobservacion += \" SELECCIONADO/ELEGIBLE EN LISTA CORTA\";\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tQuery p = em.createQuery(\"select E from EvalReferencialPostulante E \"\r\n\t\t\t\t\t\t\t\t+ \"where E.postulacion.personaPostulante.persona.idPersona =:id_persona and E.concursoPuestoAgr.idConcursoPuestoAgr =:id_concurso_puesto_agr and E.listaCorta=:esta_en_lista_corta\");\r\n\t\t\t\t\t\t\t\tp.setParameter(\"id_persona\", personaLocal.getIdPersona());\r\n\t\t\t\t\t\t\t\tp.setParameter(\"id_concurso_puesto_agr\", this.idConcursoPuestoAgr);\r\n\t\t\t\t\t\t\t\tp.setParameter(\"esta_en_lista_corta\", true);\r\n\t\t\t\t\t\tEvalReferencialPostulante auxEvalReferencialPostulante = (EvalReferencialPostulante) p.getResultList().get(0);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Validaciones para actualizaciones\r\n\t\t\t\t\t\t//Bandera indicadora de actualizaciones hechas\r\n\t\t\t\t\t\tint bandera = 0;\r\n\t\t\t\t\t\tif(auxEvalReferencialPostulante.getSelAdjudicado() == null){\r\n\t\t\t\t\t\t\testado = \"EXITO\";\r\n\t\t\t\t\t\t\tauxEvalReferencialPostulante.setSelAdjudicado(true);;\r\n\t\t\t\t\t\t\tbandera = 1;\r\n\t\t\t\t\t\t\tem.merge(auxEvalReferencialPostulante);\r\n\t\t\t\t\t\t\tem.flush();\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\tagregarEstadoMotivo(linea, estado, observacion, cadenaSalida);\r\n\t\t\t}\r\n\t\t\tif (cantidadLineas > 1 && !fp.valido) {\r\n\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\tcadenaSalida\r\n\t\t\t\t\t\t.append(estado\r\n\t\t\t\t\t\t\t\t+ \" - ARCHIVO INGRESADO CON MENOS CAMPOS DE LOS NECESARIOS. DATOS INCORRECTOS EN ALGUNA COLUMNA.\");\r\n\t\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t\t}\r\n\r\n\t\t\t// FIN FOR\r\n\t\t}\r\n\t\t//FIN IF\r\n\t\t}\r\n\t\tif (lLineasArch.isEmpty()) {\r\n\t\t\tstatusMessages.add(Severity.INFO, \"Archivo inválido\");\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tSimpleDateFormat sdf2 = new SimpleDateFormat(\"dd_MM_yyyy_HH_mm_ss\");\r\n\t\t\tString nArchivo = sdf2.format(new Date()) + \"_\" + fName;\r\n\t\t\tString direccion = System.getProperty(\"jboss.home.dir\") + System.getProperty(\"file.separator\") + \"temp\" + System.getProperty(\"file.separator\");\r\n\t\t\tFile archSalida = new File(direccion + nArchivo);\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tFileUtils\r\n\t\t\t\t\t\t.writeStringToFile(archSalida, cadenaSalida.toString());\r\n\t\t\t\tif (archSalida.length() > 0) {\r\n\t\t\t\t\tstatusMessages.add(Severity.INFO, \"Insercion Exitosa\");\r\n\t\t\t\t}\r\n\t\t\t\tJasperReportUtils.respondFile(archSalida, nArchivo, false,\r\n\t\t\t\t\t\t\"application/vnd.ms-excel\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tstatusMessages.add(Severity.ERROR, \"IOException\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void summbitBlank() {\n\t\tMyFile fileToUpload = new MyFile(ClientUI.clientHandler.myDetails.getId(), examID, \"manual\");\n\t\tfileToUpload.setUserType(\"student\");\n\t\tClientUI.clientHandler.handleMessageFromClientUI(fileToUpload);\n\n\t}",
"private void guardar() {\n\t\t//JFileChooser fglobal = principal.getFglobal();\n\t\tprincipal.getFglobal().setDialogTitle(ic.buscar(38)); // Tag 38\n\n\t\t\tprincipal.getFglobal().setDialogType(JFileChooser.SAVE_DIALOG);\n\n\t\tAccesorio pep = new Accesorio(principal.getFglobal(),t, principal.getIC());\n\t\tprincipal.getFglobal().setAccessory(pep);\n\t\tpep.setProfundidad(true);\n\t\t\n principal.getFglobal().resetChoosableFileFilters();\n \n ExampleFileFilter filtroT = new ExampleFileFilter (\n new String [] {\"tiff\",\n \"tif\",\n },\n ic.buscar(3)); // Tag 3\n \n\n \n\t\t\t\n ExampleFileFilter filtroJ = new ExampleFileFilter (\n new String [] {\"jpeg\",\n \"jpg\"\n },\n ic.buscar(4)); // Tag 4\n principal.getFglobal().addChoosableFileFilter(filtroT);\n principal.getFglobal().addChoosableFileFilter(filtroJ);\n\t\t\n\t\t\n\t\t\n\t\tint retval = principal.getFglobal().showDialog(t, null);\n\t\tif (retval == JFileChooser.APPROVE_OPTION) \n\t\t{\t\t\n\t\t\tFile guardar = principal.getFglobal().getSelectedFile();\n \n\t\t\tif (\tprincipal.getFglobal().getFileFilter().getDescription().equals(filtroJ.getDescription()) )\n\t\t\t{// Guardar como JPEG\n \n\t\t\t\tJAI.create(\"filestore\",imagen_original,guardar.getPath(),\"JPEG\", new JPEGEncodeParam());\n\t\t\t}\n\t\t\telse if (principal.getFglobal().getFileFilter().getDescription().equals(filtroT.getDescription()))\n\t\t\t{// Guardar como TIFF\n\t\t\t\tint profundidad = pep.getEP().getMarcada();\n\t\t\t\t// Cubre todas las posibilidades (¿esto guarda los metadatos?)\n\t\t\t\tTiledImage tiled = null;\n\t\t\t\tif (profundidad != ElegirProfundidad.OCHO)\n\t\t\t\t{\n\t\t\t\t\ttiled = \n ElegirProfundidad.crearProfundidadReducida(\n ipixel_o, \n profundidad, \n imagen_original.getWidth(), \n imagen_original.getHeight());\n\t\t\t\t}\n\n\t\t\t\t//imgGuardar = djai.getSource();\n\t\t\t\tParameterBlock pb = new ParameterBlock();\n\t\t\t\tif (profundidad != ElegirProfundidad.OCHO)\n\t\t\t\t{\n\t\t\t\t\tpb.addSource(tiled);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tpb.addSource(imagen_original);\n\t\t\t\t}\n\t\t\t\tpb.add(guardar);\n\t\t\t\tpb.add(\"TIFF\");\n\t\t\t\tpb.add(false); //UseProperties\n\t\t\t\tpb.add(false); //Transcode\n\t\t\t\tpb.add(true); //VerifyOutput\n\t\t\t\tpb.add(false); //AllowPixelReplacement\n\t\t\t\tpb.add(null); //TileSize\n\t\t\t\tpb.add(streamData);\n\t\t\t\tpb.add(imageData);\n\t \t\t\tJAI.create(\"imagewrite\", pb);\n\t\t\t\t\n\t\t\t\t//JAI.create(\"imagewrite\",tiled,guardar.getPath(),\"TIFF\");\n\t\t\t}\n\t\t\telse\n\t\t\t{// No tiene extensión o es una extensión extraña\n\t\t\t\tJAI.create(\"imagewrite\",imagen_original,guardar.getPath()+\".tif\",\"TIFF\");\n\t\t\t}\n\t\t\t\n\t\t}\t\t\t \n\t\telse \n\t\t{\n\t\t\tdibujarMensajesError(retval);\n\t\t} \n\t\t\n\t\t\n\t}",
"public void createFile() throws IOException {\n String newName = input.getText();\n File user = new File(\"SaveData\\\\UserData\\\\\" + newName + \".txt\");\n\n if (user.exists() && !user.isDirectory()) {\n input.setStyle(\"-fx-border-color: red\");\n }\n if (user.exists() && !user.isDirectory() || newName.isEmpty()) {\n input.setStyle(\"-fx-border-color: red\");\n ERROR_AUDIO.play(Double.parseDouble(getInitData().get(\"SFXVol\")));\n\n }\n else {\n input.setStyle(\"-fx-border-color: default\");\n playerList.getItems().addAll(newName);\n PrintWriter newUser = new PrintWriter(new FileWriter(\"SaveData\\\\UserData\\\\\" + newName + \".txt\"));\n newUser.write(\"0 0 0 0 icon0 car\");\n newUser.close();\n MAIN_MENU_AUDIO.play(Double.parseDouble(getInitData().get(\"SFXVol\")));\n }\n }",
"private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {\n Usuario user= new Usuario();\n user.nombre = TextMaterial.getText();\n File Archivo = new File(\"C:\\\\MEIA\\\\BitacoraMateriales.txt\");\n \n \n// initComponents();\n// \n// jList1.setModel(x);\n if(Archivo.exists()==true)\n {\n ArrayList<Usuario> Usuarios = Obtener_Datos_(\"C:\\\\MEIA\\\\BitacoraMateriales.txt\",\"\");\n \n for(Usuario item :Usuarios)\n {\n if(item.nombre.equals(user.nombre))\n {\n try {\n ActualizarLinea(item.nombre+\",\"+item.tipo+\",\"+item.path_foto+\",\"+item.degradarse+\",\"+item.usuario\n +\",\"+item.Fecha_Creacion+\",\"+item.status,\n TextMaterial.getText()+\",\"+TextTipo.getText()+\",\"+DireccionFotograficaLabel.getText()+\",\" +TextDeg.getText()+\",\"+TextoUsuario.getText()+\",\"+\n ComboDia.getSelectedItem()+\" \"+ComboMes.getSelectedItem()+\" \"+\n Comboaño.getSelectedItem()+\",\"+TextStatus.getText(),\"C:\\\\MEIA\\\\BitacoraMateriales.txt\");\n } catch (IOException ex) {\n Logger.getLogger(Materiales.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }\n }\n File Archivo1 = new File(\"C:\\\\MEIA\\\\Materiales.txt\");\n \n if(Archivo1.exists()==true)\n {\n ArrayList<Usuario> Usuarios = Obtener_Datos_(\"C:\\\\MEIA\\\\Materiales.txt\",\"\");\n for(Usuario item :Usuarios)\n {\n try {\n ActualizarLinea(item.nombre+\",\"+item.tipo+\",\"+item.path_foto+\",\"+item.degradarse+\",\"+item.usuario\n +\",\"+item.Fecha_Creacion+\",\"+item.status,\n TextMaterial.getText()+\",\"+TextTipo.getText()+\",\"+DireccionFotograficaLabel.getText()+\",\" +TextDeg.getText()+\",\"+TextoUsuario.getText()+\",\"+\n ComboDia.getSelectedItem()+\" \"+ComboMes.getSelectedItem()+\" \"+\n Comboaño.getSelectedItem()+\",\"+TextStatus.getText(),\"C:\\\\MEIA\\\\Materiales.txt\");\n } catch (IOException ex) {\n Logger.getLogger(Materiales.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }\n TextMaterial.setText(null);\n TextoUsuario.setText(null);\n TextTipo.setText(null);\n TextDeg.setText(null);\n TextoUsuario.setText(null);\n TextStatus.setText(null);\n DireccionFotograficaLabel.setText(null);\n \n }",
"private static void privilegio(int tipo) {\n String nome;\r\n Scanner sc = new Scanner(System.in);\r\n if (tipo == 1)\r\n System.out.println(\"Qual o utilizador a quem quer dar privilégios de editor?\");\r\n else\r\n System.out.println(\"Qual o utilizador a quem quer dar privilégios de editor?\");\r\n nome = sc.nextLine();\r\n PreparedStatement stmt;\r\n if (verificaUser(nome)) {\r\n try {\r\n c.setAutoCommit(false);\r\n if (tipo == 1)\r\n stmt = c.prepareStatement(\"UPDATE utilizador SET utilizador_tipo = true WHERE nome=?\");\r\n else\r\n stmt = c.prepareStatement(\"UPDATE utilizador SET utilizador_tipo = false WHERE nome=?\");\r\n stmt.setString(1, nome);\r\n stmt.executeUpdate();\r\n\r\n stmt.close();\r\n c.commit();\r\n } catch (SQLException e) {\r\n System.out.println(e);\r\n }\r\n System.out.println(\"Privilégios atualizados\");\r\n } else {\r\n System.out.println(\"Utilizador não encontrado\");\r\n }\r\n }",
"private void inizia() throws Exception {\n this.setAllineamento(Layout.ALLINEA_CENTRO);\n this.creaBordo(\"Coperti serviti\");\n\n campoPranzo=CampoFactory.intero(\"a pranzo\");\n campoPranzo.setLarghezza(60);\n campoPranzo.setModificabile(false);\n campoCena=CampoFactory.intero(\"a cena\");\n campoCena.setLarghezza(60);\n campoCena.setModificabile(false);\n campoTotale=CampoFactory.intero(\"Totale\");\n campoTotale.setLarghezza(60); \n campoTotale.setModificabile(false);\n\n this.add(campoPranzo);\n this.add(campoCena);\n this.add(campoTotale);\n }",
"@Override\n\tpublic void iniciarLabores() {\n\t\t\n\t}",
"@Override\n\tpublic void iniciarLabores() {\n\t\t\n\t}",
"public UsuariosSelected(Permisos u) {\n initComponents();\n this.u=u;\n setIconImage(new ImageIcon(getClass().getResource(\"/imagenes/Logo_JAR.png\")).getImage());\n this.getContentPane().setBackground(Color.RED);\n this.setLocationRelativeTo(this);\n loadData();\n \n }",
"@Override\n\tpublic String execute() throws Exception {\n\t\tUser user = (User)session.getAttribute(\"user\");\n\t\tif(user != null) {\n\t\t\tif(!sd.checkData()) {\n\t\t\t\tthis.addFieldError(\"error\", \"请按要求填写数据!\");\n\t\t\t\treturn INPUT;\n\t\t\t} else {\n\t\t\t\tFile cover = img[0];\n\t\t\t\tFile photo1 = img[1];\n\t\t\t\tFile photo2 = img[2];\n\t\t\t\tFile photo3 = img[3];\n\t\t\t\t\n\t\t\t\tStartups startups = sd.toStartups();\n\t\t\t\t\n\t\t\t\tif(imgCanUse(cover, photo1, photo2, photo3)) {\n\t\t\t\t\t/**\n\t\t\t\t\t * 自定义上传的图像名\n\t\t\t\t\t */\n\t\t\t\t\tString imgCover = UUID.randomUUID().toString().replace(\"-\", \"\") + \".jpg\";\n\t\t\t\t\tString imgPhoto1 = UUID.randomUUID().toString().replace(\"-\", \"\") + \".jpg\";\n\t\t\t\t\tString imgPhoto2 = UUID.randomUUID().toString().replace(\"-\", \"\") + \".jpg\";\n\t\t\t\t\tString imgPhoto3 = UUID.randomUUID().toString().replace(\"-\", \"\") + \".jpg\";\n\t\t\t\t\t\n\t\t\t\t\t/**\n\t\t\t\t\t * 获取存入硬盘的具体地址\n\t\t\t\t\t */\n\t\t\t\t\tString coverUrl = DISK_COVER + imgCover;\n\t\t\t\t\tString photo1Url = DISK_PHOTO + imgPhoto1;\n\t\t\t\t\tString photo2Url = DISK_PHOTO + imgPhoto2;\n\t\t\t\t\tString photo3Url = DISK_PHOTO + imgPhoto3;\n\t\t\t\t\t\n\t\t\t\t\t/**\n\t\t\t\t\t * 根据全路径,将文件创建出来。\n\t\t\t\t\t */\n\t\t\t\t\tFile fileCover = new File(coverUrl);\n\t\t\t\t\tFile filePhoto1 = new File(photo1Url);\n\t\t\t\t\tFile filePhoto2 = new File(photo2Url);\n\t\t\t\t\tFile filePhoto3 = new File(photo3Url);\n\t\t\t\t\t\n\t\t\t\t\t/**\n\t\t\t\t\t * 标识,创建文件是否成功\n\t\t\t\t\t * 使用上传文件工具类\n\t\t\t\t\t */\n\t\t\t\t\tboolean create_cover = UploadFileUtil.justDoIt(cover, fileCover);\n\t\t\t\t\tboolean create_photo1 = UploadFileUtil.justDoIt(photo1, filePhoto1);\n\t\t\t\t\tboolean create_photo2 = UploadFileUtil.justDoIt(photo2, filePhoto2);\n\t\t\t\t\tboolean create_photo3 = UploadFileUtil.justDoIt(photo3, filePhoto3);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t/**\n\t\t\t\t\t * 如果创建成功,则进行往数据库用户表中更新\n\t\t\t\t\t */\n\t\t\t\t\tif(create_cover && create_photo1 && create_photo2 && create_photo3) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * 获取存入数据库的地址\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString db_cover = DB_COVER + imgCover;\n\t\t\t\t\t\tString db_photo1 = DB_PHOTO + imgPhoto1;\n\t\t\t\t\t\tString db_photo2 = DB_PHOTO + imgPhoto2;\n\t\t\t\t\t\tString db_photo3 = DB_PHOTO + imgPhoto3;\n\t\t\t\t\t\t\n\t\t\t\t\t\tstartups.setStartupsCover(db_cover);\n\t\t\t\t\t\tstartups.setStartupsPhoto1(db_photo1);\n\t\t\t\t\t\tstartups.setStartupsPhoto2(db_photo2);\n\t\t\t\t\t\tstartups.setStartupsPhoto3(db_photo3);\n\t\t\t\t\t\t\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * 将用户user对象传入\n\t\t\t\t\t\t */\n\t\t\t\t\t\tstartups.setStartupsLeader(user);\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * 进行公司的存储\n\t\t\t\t\t\t */\n\t\t\t\t\t\tIStartupsService ss = ServiceFactory.createStartupsService();\n\t\t\t\t\t\tif(ss.saveStartups(startups)) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tstartupsId = startups.getStartupsId();\n\t\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.addFieldError(\"error\", \"创建失败!请刷新重试\");\n\t\t\t\t\t\t\tremoveImg(fileCover, filePhoto1, filePhoto2, filePhoto3);\n\t\t\t\t\t\t\treturn INPUT;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.addFieldError(\"error\", \"图片上传出错!请刷新重试\");\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * 将已经上传到硬盘上的图片删除\n\t\t\t\t\t\t */\n\t\t\t\t\t\tremoveImg(fileCover, filePhoto1, filePhoto2, filePhoto3);\n\t\t\t\t\t\treturn INPUT;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tthis.addFieldError(\"error\", \"图片输入错误!请换张图片\");\n\t\t\t\t\treturn INPUT;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tthis.addFieldError(\"error\", \"请登录后再进行创建!\");\n\t\t\treturn INPUT;\n\t\t}\n\t\t\t\n\t}",
"public VistaCrearEmpleado() {\n\t\tsetClosable(true);\n\t\tsetFrameIcon(new ImageIcon(VistaCrearEmpleado.class.getResource(\"/com/mordor/mordorLloguer/recursos/account_circle24dp.png\")));\n\t\tsetBounds(100, 100, 467, 435);\n\t\tgetContentPane().setLayout(new MigLayout(\"\", \"[152px][235px]\", \"[19px][19px][19px][19px][19px][19px][45px][24px][19px][25px]\"));\n\t\t\n\t\tJLabel lblDni = new JLabel(\"DNI: \");\n\t\tgetContentPane().add(lblDni, \"cell 0 0,growx,aligny center\");\n\t\t\n\t\ttxtDNI = new JTextField();\n\t\tgetContentPane().add(txtDNI, \"cell 1 0,growx,aligny top\");\n\t\ttxtDNI.setColumns(10);\n\t\t\n\t\tJLabel lblNombre = new JLabel(\"Nombre: \");\n\t\tgetContentPane().add(lblNombre, \"cell 0 1,growx,aligny center\");\n\t\t\n\t\ttxtNombre = new JTextField();\n\t\tgetContentPane().add(txtNombre, \"cell 1 1,growx,aligny top\");\n\t\ttxtNombre.setColumns(10);\n\t\t\n\t\tJLabel lblApellidos = new JLabel(\"Apellidos: \");\n\t\tgetContentPane().add(lblApellidos, \"cell 0 2,growx,aligny center\");\n\t\t\n\t\ttxtApellidos = new JTextField();\n\t\tgetContentPane().add(txtApellidos, \"cell 1 2,growx,aligny top\");\n\t\ttxtApellidos.setColumns(10);\n\t\t\n\t\tJLabel lblDomicilio = new JLabel(\"Domicilio:\");\n\t\tgetContentPane().add(lblDomicilio, \"cell 0 3,growx,aligny center\");\n\t\t\n\t\ttxtDomicilio = new JTextField();\n\t\tgetContentPane().add(txtDomicilio, \"cell 1 3,growx,aligny top\");\n\t\ttxtDomicilio.setColumns(10);\n\t\t\n\t\tJLabel lblCp = new JLabel(\"CP:\");\n\t\tgetContentPane().add(lblCp, \"cell 0 4,growx,aligny center\");\n\t\t\n\t\ttxtCp = new JTextField();\n\t\tgetContentPane().add(txtCp, \"cell 1 4,growx,aligny top\");\n\t\ttxtCp.setColumns(10);\n\t\t\n\t\tJLabel lblEmail = new JLabel(\"Email:\");\n\t\tgetContentPane().add(lblEmail, \"cell 0 5,growx,aligny center\");\n\t\t\n\t\ttxtEmail = new JTextField();\n\t\tgetContentPane().add(txtEmail, \"cell 1 5,growx,aligny top\");\n\t\ttxtEmail.setColumns(10);\n\t\t\n\t\tJLabel lblFechaDeNacimiento = new JLabel(\"Fecha de Nacimiento:\");\n\t\tgetContentPane().add(lblFechaDeNacimiento, \"cell 0 6,alignx left,aligny center\");\n\t\t\n\t\ttxtDate = new WebDateField();\n\t\tgetContentPane().add(txtDate, \"cell 1 6,growx,aligny top\");\n\t\t\n\t\tJLabel lblCargo = new JLabel(\"Cargo:\");\n\t\tgetContentPane().add(lblCargo, \"cell 0 7,growx,aligny center\");\n\t\t\n\t\tcomboBoxCargo= new JComboBox<String> ();\n\t\tgetContentPane().add(comboBoxCargo, \"cell 1 7,growx,aligny top\");\n\t\t\n\t\tJLabel lblContrasea = new JLabel(\"Contraseña:\");\n\t\tgetContentPane().add(lblContrasea, \"cell 0 8,growx,aligny center\");\n\t\t\n\t\tpasswordField = new JPasswordField();\n\t\tgetContentPane().add(passwordField, \"cell 1 8,growx,aligny top\");\n\t\t\n\t\tbtnAdd = new JButton(\"Add\");\n\t\tgetContentPane().add(btnAdd, \"cell 0 9,growx,aligny top\");\n\t\t\n\t\tbtnCancel = new JButton(\"Cancel\");\n\t\tbtnCancel.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tgetContentPane().add(btnCancel, \"cell 1 9,growx,aligny top\");\n\n\t}",
"public InventarioFile(){\r\n \r\n }",
"private void saveAs(String newLabName){\n // Call Clone Script, feeding in the new lab name\n // Call python new_lab_script: new_lab_setup.py -c newLabName\n String cmd = \"new_lab_setup.py -c \"+newLabName;\n doLabCommand(cmd); \n // Rename to current lab and set the path to the new lab\n this.labName = newLabName;\n LabnameLabel.setText(\"Lab: \"+this.labName);\n this.currentLab = new File(labsPath+File.separator+this.labName);\n this.labDataCurrent.setName(this.labName);\n this.labDataCurrent.setPath(this.currentLab);\n\n // Write the current state to the new lab's start.config\n try {\n saveLab();\n } \n catch (FileNotFoundException ex) {\n Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n // Make the Save As Dialo disappear\n SaveAsDialog.setVisible(false);\n }",
"public void guardar(Usuario u) throws Exception{\r\n //paso1 generar el archivo a guardarse\r\n File f=new File(\"archivaldo.raton\");\r\n if(f.exists()) usuarios= buscarTodos();\r\n //indicar que se va a guardar\r\n FileOutputStream fos=new FileOutputStream(f);\r\n \r\n //generar el objeto que nos va a ayudar a guardar el arraylist de usuarios\r\n ObjectOutputStream oos=new ObjectOutputStream(fos);\r\n //ahora si a guardar el objeto\r\n usuarios.add(u);\r\n oos.writeObject(usuarios);\r\n }",
"void suplantarIdUsuer(String nombre) throws Exception {\n\t\tLibro[] librosPres = new Libro[Const.MAXLIBROSPRES];\n\t\tint bpn = busquedaPrimerNulo();\n\t\tUsuario[] vu = ArrayObject.listadoUsuarios();\n\n\t\tMiObjectInputStream oi = null;\n\n\t\ttry { // comprueba que el archivo FUSUARIOS existe antes de leerlo\n\t\t\toi = new MiObjectInputStream(new FileInputStream(Const.FUSUARIOS));\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Archivo no encontrado - suplantarIdUsuer - \" + e.toString());\n\t\t}\n\n\t\t// busca donde se encuentra el primer usuario null del archivo para crear un\n\t\t// usuario nuevo en ese mismo lugar para obtener un id ordenado. Del mismo modo\n\t\t// la primera vez que esto se ustiliza llena el archivode usuarios de nulos pero\n\t\t// no elimna los usuarios que se encuentran por debajo\n\t\tUsuario u = (Usuario) oi.readObject();\n\t\tu = new Usuario(bpn, nombre, librosPres);\n\t\tvu[bpn] = u;\n\n\t\ttry {\n\t\t\tFileOutputStream fo = new FileOutputStream(Const.FUSUARIOSAUX, true);\n\t\t\tMiObjectOutputStream oo = new MiObjectOutputStream(fo);\n\t\t\tint i = 0;\n\t\t\twhile (i < vu.length) {\n\t\t\t\tu = vu[i];\n\t\t\t\too.writeObject(u);\n\t\t\t\ti++;\n\t\t\t} // finaliza el while para la lectura\n\t\t\too.close();\n\n\t\t} catch (Exception e) { // encaso de encontrar el archivos pero no puede leerlo\n\t\t\tSystem.out.println(\"Problemas al leer el archivo - suplantarIdUsuer - \" + e.toString());\n\t\t}\n\t\toi.close();\n\t}",
"private void nuevaLiga() {\r\n\t\tif(Gestion.isModificado()){\r\n\t\t\tint opcion = JOptionPane.showOptionDialog(null, \"¿Desea guardar los cambios?\", \"Nueva Liga\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null,null, null);\r\n\t\t\tswitch(opcion){\r\n\t\t\tcase JOptionPane.YES_OPTION:\r\n\t\t\t\tguardar();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.NO_OPTION:\r\n\t\t\t\tGestion.reset();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.CANCEL_OPTION:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\tGestion.reset();\r\n\t\tfrmLigaDeFtbol.setTitle(\"Liga de Fútbol\");\r\n\t}",
"static void inicializarentrada(){\n try {\n archivo_entrada= new FileInputStream(\"src/serializacion/salida.txt\");\n } catch (FileNotFoundException ex) {\n System.out.println(\"Error al abrir el archivo\");\n }\n \n try {\n lector= new ObjectInputStream(archivo_entrada);\n } catch (IOException ex) {\n System.out.println(\"Error al acceder al archivo\");\n }\n }",
"private void controladorUser(Controlador controlador){\n this.contUserCrearProyecto = controlador.getUserCrearProyecto();\n inicioUser.setControlCrearProyecto(contUserCrearProyecto);\n \n this.contUserCrearColectivo = controlador.getUserCrearColectivo();\n inicioUser.setControlCrearColectivo(contUserCrearColectivo);\n\n this.contInformes = controlador.getInformes();\n inicioUser.setControlSolicitarInformes(contInformes); \n \n this.contFiltrar = controlador.getFiltrar();\n inicioUser.setControlFiltrar(contFiltrar);\n\n this.contLimpiar = controlador.getLimpiarFiltro();\n inicioUser.setControlLimpiarFiltro(contLimpiar);\n }",
"public void adduserFile(Usuari usuari) throws FileNotFoundException, IOException{\r\n FileWriter fw = new FileWriter(fitxerUsuaris, true);\r\n \r\n fw.write(usuari.getDni());\r\n fw.write(usuari.getNom());\r\n fw.write(usuari.getCognom1());\r\n fw.write(usuari.getCognom2());\r\n fw.write(usuari.getPassword());\r\n \r\n fw.close();\r\n }",
"private void addInstituicao() {\n\n if (txtNome.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Nome Invalido\");\n txtNome.grabFocus();\n return;\n } else if (txtNatureza.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Natureza Invalido\");\n txtNatureza.grabFocus();\n return;\n }\n if ((instituicao == null) || (instituicaoController == null)) {\n instituicao = new Instituicao();\n instituicaoController = new InstituicaoController();\n }\n instituicao.setNome(txtNome.getText());\n instituicao.setNatureza_administrativa(txtNatureza.getText());\n if (instituicaoController.insereInstituicao(instituicao)) {\n limpaCampos();\n JOptionPane.showMessageDialog(null, \"Instituicao Cadastrada com Sucesso\");\n }\n }",
"private void insertFromFile(ArrayList<String> obj){\r\n\t\tsetIdString(obj.get(1));\t\r\n\t\tsetLogin(obj.get(2));\r\n\t\tsetSenha(obj.get(3));\r\n\t\tsetImei(obj.get(4));\r\n\t\tsetMac(obj.get(5));\r\n\t\tString date = Util.convertDateToDateStr(Util.getCurrentDateTime());\t\r\n\t\tsetUltimaAlteracao(date);\t\t\t\r\n\t}",
"private static void createFileUmidade() throws IOException {\r\n\t\tInteger defaultUmidade = 30;\r\n\t\tarqUmidade = new File(pathUmidade);\r\n\t\tif(!arqUmidade.exists()) {\r\n\t\t\tarqUmidade.createNewFile();\r\n\t\t\tFileWriter fw = new FileWriter(getArqUmidade());\r\n\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\tbuffWrite.append(defaultUmidade.toString() + String.valueOf('\\n'));/*Inicializa o arquivo com uma umidade Inicial*/\r\n\t\t\tbuffWrite.close();\r\n\t\t}else {\r\n\t\t\tFileReader fr = new FileReader(getArqUmidade());\r\n\t\t\tBufferedReader buffRead = new BufferedReader(fr);\r\n\t\t\tif(!buffRead.ready()) {/*Se o arquivo se encontar criado mas estiver vazio*/\r\n\t\t\t\tFileWriter fw = new FileWriter(arqUmidade);\r\n\t\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\t\tbuffWrite.append(defaultUmidade.toString() + String.valueOf('\\n'));/*Inicializa o arquivo com uma umidade Inicial*/\r\n\t\t\t\tbuffWrite.close();\r\n\t\t\t}\r\n\t\t\tbuffRead.close();\r\n\t\t}\r\n\t}",
"public String upload() throws Exception{\n\t\tFile newFile1 = null;\r\n\t\ttry {\t\t\t\t//读取session的登录信息\r\n\t\t\tActionContext actionContext = ActionContext.getContext(); \t \r\n\t Map<String, Object> session = actionContext.getSession(); \r\n\t //String user=(String)session.get(\"USER\");\r\n\t id=String.valueOf( (int)session.get(\"ID\") ); \r\n\t acc=(String) session.get(\"USER\");\r\n\t\t}catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"FAILED\";\r\n\t\t}\r\n\t\t\r\n\t\t//添加时间检测逻辑!!!!!!\r\n\t\tint checktime=testTime();\r\n\t\tif(checktime==1) {\r\n\t\t\treturn \"FAILED\";\r\n\t\t}\r\n\t\t\r\n\t\ttry {\t\t\t\t//保存文件到指定路径\r\n\t\t\tFile file = new File(addr+\"/\"+id );\r\n\t\t\tif(!file.exists()){\r\n\t\t\t\tfile.mkdirs();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//剪切:把临时文件剪切指定的位置,并且给他重命名。 注意:临时文件没有了\r\n\t\t\tnewFile1=new File(file,\"BranchPredictor.h\");\r\n\t\t\tlab2file.renameTo(newFile1);\r\n\t\t\tSystem.out.println(newFile1.getPath()+\" has saved.\");\r\n\t\t\t\r\n\t\t\tFile fileLAB=new File(addr+\"/\"+id);\r\n\t\t\tif(!file.exists()){\r\n\t\t\t\tfile.mkdirs();\r\n\t\t\t}\r\n\t\t\tFileUtils.copyFile(new File(addr+\"/lab2.cpp\"), new File(file,id+\"_lab2.cpp\"));\r\n\t\t\t\r\n\t\t}catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"FAILED\";\r\n\t\t}\r\n\t\ttry {\r\n\t\t\t//建立输出路径\r\n\t\t\tFile file = new File(addr+\"/obj-intel64/\"+id );\r\n\t\t\tString resultstr = null;\r\n\r\n\t\t\tif(!file.exists()){\r\n\t\t\t\tfile.mkdirs();\r\n\t\t\t}\r\n\t\t\t//尝试make\r\n\t\t\tUsualTools tool=new UsualTools();\r\n\t\t\tif((resultstr=tool.excuteLinux(\"make TEST_TOOL_ROOTS=\"+id+\"/\"+id+\"_lab2\", addr ,\"错误\"))!=null) {\r\n\t\t\t\tSystem.out.println(\"Find Error: \"+resultstr);\r\n\t\t\t\tresultstr1=resultstr;\r\n\t\t\t}else {//尝试运行\r\n\t\t\t\tresultstr=tool.excuteLinux(\"../../../pin -t obj-intel64/\"+id+\"/\"+id+\"_lab2.so \"\r\n\t\t\t\t\t\t+ \"-o \"+id+\"/lab2.out -- \"+testBin, addr ,\"错误\");\r\n\t\t\t\tif(resultstr!=null) {\r\n\t\t\t\t\tSystem.out.println(\"Find Error: \"+resultstr);\r\n\t\t\t\t\tresultstr1=resultstr;\r\n\t\t\t\t\t//resultstr1=java.net.URLEncoder.encode(resultstr, \"UTF-8\");\r\n\t\t\t\t}else {\r\n\t\t\t\t\tresultstr1=\"Finish! \";\r\n\t\t\t\t\tReadFile rd=new ReadFile();\r\n\t\t\t\t\tresultstr1=resultstr1+rd.getOUTline(addr+\"/\"+id+\"/lab2.out\");\r\n\t\t\t\t\tSystem.out.println(resultstr1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t//pro.destroy();\r\n\t\t}catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"FAILED\";\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tLoadQuery loadQuery=new LoadQuery();\r\n\t\t\t\t\t\t\r\n\t\t\tint lab2excute=0;\r\n\t\t\tif(resultstr1.contains(\"Finish\")) {\r\n\t\t\t\tString[] liStrings=resultstr1.split(\" \");\r\n\t\t\t\tfor(String i:liStrings) {\r\n\t\t\t\t\tSystem.out.print(i+\" \");\t\r\n\t\t\t\t}\r\n\t\t\t\t/***********Grade***********/\r\n\t\t\t\t\r\n\t\t UsualTools tools=new UsualTools();\r\n\t\t String grade=tools.getStringFrom(liStrings[1]).get(0);\r\n\t\t\t\tlab2excute=Integer.parseInt(grade.substring(0, grade.length()-1));\r\n\t\t\t\t/************************/\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tList<Object> l=loadQuery.queryHQL(\"from X2 where account = '\"+acc+\"'\");\r\n\t\t\tif(l.isEmpty()) {\r\n\t\t\t\tX2 x=new X2();\r\n\t\t\t\tx.setAccount(acc);\r\n\t\t\t\tx.setExcute(lab2excute);\r\n\t\t\t\tloadQuery.savein(x);\r\n\t\t\t}else {\r\n\t\t\t\tloadQuery.update(\"update X2 x set x.excute = \"+lab2excute+\" where account = '\"+acc+\"'\");\r\n\t\t\t}\r\n\t\t\t//保存执行结果\r\n\t\t\tloadQuery.update(\"update Excute e set e.info = '\"+resultstr1+\"' where account = '\"+acc+\"' and number = '2'\");\r\n\t\t\t\r\n\t\t}catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"FAILED\";\r\n\t\t}\r\n\t\treturn \"SUCCESS\";\r\n\t}",
"private void inizia() throws Exception {\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"public static void createAccount()\r\n\t {\r\n\t\t String name;\r\n\t\t String username;\r\n\t\t String password;\r\n\t\t ArrayList<Book> booksLent = null;\r\n\t\t System.out.println(\"Enter your name\");\r\n\t\t Scanner src = new Scanner(System.in);\r\n\t\t name = src.next();\r\n\t\t System.out.println(\"Enter your username\");\r\n\t\t src = new Scanner(System.in);\r\n\t\t username = src.next();\r\n\t\t System.out.println(\"Enter your password\");\r\n\t\t src = new Scanner(System.in);\r\n\t\t password = src.next();\r\n\t\t \r\n\t\t Student stu = new Student(name, username, password, booksLent, 0);\r\n\t\t studentAccount = stu;\r\n\t\t FileReader.getStudents().add(stu);\r\n\t\t FileReader.update();\r\n\t\t Display.studentDisplay(studentAccount);\r\n\t }",
"private void openLab(File lab) throws IOException{ \n // Load data\n currentLab = lab;\n labName = lab.toString().substring(lab.toString().lastIndexOf(File.separator)+1);\n labDataCurrent = new LabData(this, lab, labName); \n\n // Load UI\n closeAllDialogs(); \n resetWindow();\n loadLab();\n }",
"private void jb_reporteusuariosActionPerformed(java.awt.event.ActionEvent evt) {\n ini.Tabla.Imprimir();\n File file2 = new File( \"C:\\\\Users\\\\Rodrigo Carcuz\\\\Desktop\\\\EDD_2S2019_PY2_201700633\\\\HashTable.jpg\" );\n try {\n Desktop.getDesktop().open(file2);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null,\"NO SE ENCONTRO LA IMAGEN\" );\n }\n }",
"interface WithCreate\n extends DefinitionStages.WithTags,\n DefinitionStages.WithNetworkProfile,\n DefinitionStages.WithAutoShutdownProfile,\n DefinitionStages.WithConnectionProfile,\n DefinitionStages.WithVirtualMachineProfile,\n DefinitionStages.WithSecurityProfile,\n DefinitionStages.WithRosterProfile,\n DefinitionStages.WithLabPlanId,\n DefinitionStages.WithTitle,\n DefinitionStages.WithDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n Lab create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n Lab create(Context context);\n }",
"public void createPatient() throws IOException\n {\n addPatientToList();\n \n //creates the patient's empty folders and files\n File userFolder = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB); \n File patientEvaluation = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm\");\n File patientProgressReports = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/ProgressNotes\"); \n \n try\n \t{\n \tuserFolder.mkdir();\n patientEvaluation.mkdir();\n patientProgressReports.mkdir();\n \t//result = true;\n \t} \n \tcatch(SecurityException se)\n \t{\n \t//handle it\n \t} \n \t\n File listOfProgressReports = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/ProgressReports.txt\");\n FileWriter writer = new FileWriter(listOfProgressReports, true);\t \n BufferedWriter bufferedreader = new BufferedWriter(writer);\n writer.append(\"\");\n bufferedreader.close();\n writer.close();\n \n \n /*if(result) \n \t{ \n \t\tSystem.out.println(\"DIR created\"); \n \t}*/\n \n //creates the patient's empty evaluation form files\n File signedStatus = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/signed.txt\");\n FileWriter w = new FileWriter(signedStatus, true);\t \n BufferedWriter b = new BufferedWriter(w);\n w.append(\"false\");\n b.close();\n w.close();\n \n File firstName = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/first.txt\");\n FileWriter writ = new FileWriter(firstName, true);\t \n BufferedWriter bw = new BufferedWriter(writ);\n writ.append(currentPatientFirstName);\n bw.close();\n writ.close();\n \n File lastName = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/last.txt\");\n FileWriter writ1 = new FileWriter(lastName, true);\t \n BufferedWriter bw1 = new BufferedWriter(writ1);\n writ1.append(currentPatientLastName);\n bw1.close();\n writ1.close();\n \n File age = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/age.txt\");\n FileWriter writ2 = new FileWriter(age, true);\t \n BufferedWriter bw2 = new BufferedWriter(writ2);\n writ2.append(\"\");\n bw2.close();\n writ2.close();\n \n File dob = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/dateofbirth.txt\");\n FileWriter writ3 = new FileWriter(dob, true);\t \n BufferedWriter bw3 = new BufferedWriter(writ3);\n writ3.append(\"\");\n bw3.close();\n writ3.close();\n \n File maritalstatus = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/maritalstatus.txt\");\n FileWriter writ4 = new FileWriter(maritalstatus, true);\t \n BufferedWriter bw4 = new BufferedWriter(writ4);\n writ4.append(\"\");\n bw4.close();\n writ4.close();\n \n File ethnicity = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/ethnicity.txt\");\n FileWriter writ5 = new FileWriter(ethnicity, true);\t \n BufferedWriter bw5 = new BufferedWriter(writ5);\n writ5.append(\"\");\n bw5.close();\n writ5.close();\n\n File ethnicityother = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/ethnicity-other.txt\");\n FileWriter writt = new FileWriter(ethnicityother, true);\t \n BufferedWriter bww = new BufferedWriter(writt);\n writt.append(\"\");\n bww.close();\n writt.close();\n \n File sex = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/sex.txt\");\n FileWriter writ6 = new FileWriter(sex, true);\t \n BufferedWriter bw6 = new BufferedWriter(writ6);\n writ6.append(\"\");\n bw6.close();\n writ6.close();\n \n File referredBy = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/referredby.txt\");\n FileWriter writ7 = new FileWriter(referredBy, true);\t \n BufferedWriter bw7 = new BufferedWriter(writ7);\n writ7.append(\"\");\n bw7.close();\n writ7.close();\n \n File referredByTherapist = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/referredby-therapist.txt\");\n FileWriter writ8 = new FileWriter(referredByTherapist, true);\t \n BufferedWriter bw8 = new BufferedWriter(writ8);\n writ8.append(\"\");\n bw8.close();\n writ8.close();\n \n File referredByOther = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/referredby-other.txt\");\n FileWriter writ9 = new FileWriter(referredByOther, true);\t \n BufferedWriter bw9 = new BufferedWriter(writ9);\n writ9.append(\"\");\n bw9.close();\n writ9.close();\n \n //dr. prince\n File reasonForReferral = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/reasonforreferral.txt\");\n FileWriter writ10 = new FileWriter(reasonForReferral, true);\t \n BufferedWriter bw10 = new BufferedWriter(writ10);\n writ10.append(\"\");\n bw10.close();\n writ10.close();\n \n File sourceOfInformation = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/sourceofinformation.txt\");\n FileWriter writ11 = new FileWriter(sourceOfInformation, true);\t \n BufferedWriter bw11 = new BufferedWriter(writ11);\n writ11.append(\"\");\n bw11.close();\n writ11.close();\n \n File sourceOfInformationOther = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/sourceofinformation-other.txt\");\n FileWriter writ12 = new FileWriter(sourceOfInformationOther, true);\t \n BufferedWriter bw12 = new BufferedWriter(writ12);\n writ12.append(\"\");\n bw12.close();\n writ12.close();\n \n File reliabilityOfInformation = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/reliabilityofinformation.txt\");\n FileWriter writ13 = new FileWriter(reliabilityOfInformation, true);\t \n BufferedWriter bw13 = new BufferedWriter(writ13);\n writ13.append(\"\");\n bw13.close();\n writ13.close();\n \n File reliabilityOfInformationOther = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/reliabilityofinformation-other.txt\");\n FileWriter writ14 = new FileWriter(reliabilityOfInformationOther, true);\t \n BufferedWriter bw14 = new BufferedWriter(writ14);\n writ14.append(\"\");\n bw14.close();\n writ14.close();\n \n File historyOfPresentIllness = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/historyofpresentillness.txt\");\n FileWriter writ15 = new FileWriter(historyOfPresentIllness, true);\t \n BufferedWriter bw15 = new BufferedWriter(writ15);\n writ15.append(\"\");\n bw15.close();\n writ15.close();\n \n File signsSymptoms = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/signsandsymptoms.txt\");\n FileWriter writ16 = new FileWriter(signsSymptoms, true);\t \n BufferedWriter bw16 = new BufferedWriter(writ16);\n writ16.append(\"\");\n bw16.close();\n writ16.close();\n \n File currentMedications = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/currentmedications.txt\");\n FileWriter writ17 = new FileWriter(currentMedications, true);\t \n BufferedWriter bw17 = new BufferedWriter(writ17);\n writ17.append(\"\");\n bw17.close();\n writ17.close();\n \n File pastHistoryOf = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/pasthistoryof.txt\");\n FileWriter writ18 = new FileWriter(pastHistoryOf, true);\t \n BufferedWriter bw18 = new BufferedWriter(writ18);\n writ18.append(\"\");\n bw18.close();\n writ18.close();\n \n File pastHistoryOfText = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/pasthistoryoftext.txt\");\n FileWriter writ19 = new FileWriter(pastHistoryOfText, true);\t \n BufferedWriter bw19 = new BufferedWriter(writ19);\n writ19.append(\"\");\n bw19.close();\n writ19.close();\n \n File medicationTrialsTable = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/medicationtrialstable.txt\");\n FileWriter writ20 = new FileWriter(medicationTrialsTable, true);\t \n BufferedWriter bw20 = new BufferedWriter(writ20);\n writ20.append(\"\");\n bw20.close();\n writ20.close();\n \n File medicationTrialsComments = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/medicationtrialscomments.txt\");\n FileWriter writ21 = new FileWriter(medicationTrialsComments, true);\t \n BufferedWriter bw21 = new BufferedWriter(writ21);\n writ21.append(\"\");\n bw21.close();\n writ21.close();\n \n File substanceUseHistory = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/substanceusehistory.txt\");\n FileWriter writ22 = new FileWriter(substanceUseHistory, true);\t \n BufferedWriter bw22 = new BufferedWriter(writ22);\n writ22.append(\"\");\n bw22.close();\n writ22.close();\n \n File deniesHistoryOf = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/denieshistoryof.txt\");\n FileWriter writ23 = new FileWriter(deniesHistoryOf, true);\t \n BufferedWriter bw23 = new BufferedWriter(writ23);\n writ23.append(\"\");\n bw23.close();\n writ23.close();\n \n File deniesHistoryOfText = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/denieshistoryoftext.txt\");\n FileWriter writ24 = new FileWriter(deniesHistoryOfText, true);\t \n BufferedWriter bw24 = new BufferedWriter(writ24);\n writ24.append(\"\");\n bw24.close();\n writ24.close();\n \n File socialHistoryText = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/socialhistorytext.txt\");\n FileWriter writ25 = new FileWriter(socialHistoryText, true);\t \n BufferedWriter bw25 = new BufferedWriter(writ25);\n writ25.append(\"\");\n bw25.close();\n writ25.close();\n \n File socialHistoryParents = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/socialhistoryparents.txt\");\n FileWriter writ26 = new FileWriter(socialHistoryParents, true);\t \n BufferedWriter bw26 = new BufferedWriter(writ26);\n writ26.append(\"\");\n bw26.close();\n writ26.close();\n \n File socialHistorySiblings = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/socialhistorysiblings.txt\");\n FileWriter writ27 = new FileWriter(socialHistorySiblings, true);\t \n BufferedWriter bw27 = new BufferedWriter(writ27);\n writ27.append(\"\");\n bw27.close();\n writ27.close();\n \n File socialHistoryChildren = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/socialhistorychildren.txt\");\n FileWriter writ28 = new FileWriter(socialHistoryChildren, true);\t \n BufferedWriter bw28 = new BufferedWriter(writ28);\n writ28.append(\"\");\n bw28.close();\n writ28.close();\n \n File familyHistoryOfMentalIllness = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/familyhistoryofmentalillness.txt\");\n FileWriter writ29 = new FileWriter(familyHistoryOfMentalIllness, true);\t \n BufferedWriter bw29 = new BufferedWriter(writ29);\n writ29.append(\"\");\n bw29.close();\n writ29.close();\n \n }",
"public void atualiza_ficheiro_user(){//Atualiza o ficheiro users\n File f1 = new File(\"users.txt\");\n String pesq = \"\";\n if (f1.exists() && f1.isFile()){\n try{\n FileWriter fw = new FileWriter(f1);\n BufferedWriter bw = new BufferedWriter(fw);\n // 0 1 2 3 4 5 6 7\n // ':id:admin:nome:username:password:notificacoes:pesquisas'\n for(int i=0; i< lista_utilizadores.size();i++){\n int aux = 0;\n int aux_ativo = 0;\n if(lista_utilizadores.get(i).get_administrador()){\n aux = 1;\n }\n pesq = \"\";\n for(int j = 0; j < lista_utilizadores.get(i).get_pesquisas().size(); j++){\n\n pesq = pesq.concat(lista_utilizadores.get(i).get_pesquisas().get(j));\n pesq = pesq.concat(\"-\");\n }\n //System.out.println(\"pesq de = \" + i + \"| Pesquisa = \" + pesq);\n\n bw.append(\":\"+lista_utilizadores.get(i).get_id()+\":\"+aux+\":\"+lista_utilizadores.get(i).get_nome()+\":\"+lista_utilizadores.get(i).get_username()+\":\"+lista_utilizadores.get(i).get_password()+\":\"+lista_utilizadores.get(i).get_notificacoes()+\":\"+pesq+\":\");\n bw.newLine();\n }\n bw.close();\n\n fw.close();\n }\n catch (IOException ex) {\n System.out.println(\"Erro a escrever no ficheiro.\");\n }\n }\n else {\n System.out.println(\"Ficheiro nao existe.\");\n }\n }",
"public static void main(String[] args)throws java.io.IOException {\n\t\tString idEmpleado, nomEmpleado, apellEmpleado, telefono, email;\r\n\t\t\r\n\t\tout.println(\"Digite el id del empleado\");\r\n\t\tidEmpleado = in.readLine();\r\n\t\tout.println(\"Digite el nombre del empleado\");\r\n\t\tnomEmpleado = in.readLine();\r\n\t\tout.println(\"Digite el apellido del empleado\");\r\n\t\tapellEmpleado = in.readLine();\r\n\t\tout.println(\"Digite el telefono del empleado\");\r\n\t\ttelefono = in.readLine();\r\n\t\tout.println(\"Digite el email del empleado\");\r\n\t\temail = in.readLine();\r\n\t\t\r\n\t\t/*Los datos se deben mandar al gestor*/\r\n\t\t\r\n\t\tSupervisor empleado = new Supervisor(idEmpleado, nomEmpleado, apellEmpleado, telefono, email);\r\n\t\tSoporTecnico contratado = new SoporTecnico(empleado);\r\n\t\t\r\n\t\t//La variable contratado se almacenarķa en un arreglo\r\n\t\t\r\n\t\tout.println(\"Id: \" + contratado.getIdEmpleado() + \"\\n\" +\r\n\t\t\t\t\t\"Nombre: \" + contratado.getNomEmpleado() + \"\\n\" +\r\n\t\t\t\t\t\"Apellido: \" + contratado.getApellEmpleado() + \"\\n\" +\r\n\t\t\t\t\t\"Telefono: \" + contratado.getTelefono() + \"\\n\" +\r\n\t\t\t\t\t\"Email: \" + contratado.getEmail() + \"\\n\" +\r\n\t\t\t\t\t\"Codigo del puesto: \" + contratado.codPuesto() + \"\\n\" +\r\n\t\t\t\t\t\"Nombre del puesto: \" + contratado.nomPuesto() + \"\\n\" +\r\n\t\t\t\t\t\"Nombre del departamento: \" + contratado.departamento());\r\n\t\t\r\n\t\t/*Si se desea cambiar el puesto o el departamento del empleado, se extraen los datos \r\n\t\t * personales del empleado, se elimina el objeto y los datos personales se almacenan\r\n\t\t * en un nuevo objeto del puesto deseado y del departamento deseado*/\r\n\t}",
"AliciaLab createAliciaLab();",
"void crearAuditoria(String emailUsuario, String observacion, String dirIP, String hostName);",
"@Override\n public void run(String... args) throws Exception {\n\n TaskTemplate finalProjectDemo = new TaskTemplate(\"Final Project Demo\", \"Finishing the Demo\", 300, \"Tuesday\");\n taskTemplateStorage.save(finalProjectDemo);\n\n User mom = new User(\"Mom\", 300, \"rose\", \"/front-end/images/mom.png\");\n User dad = new User(\"Dad\", 600, \"apple\", \"/front-end/images/Dad.png\");\n User bro = new User(\"Bro\", 200, \"light-blue\", \"/front-end/images/Bro.png\");\n User sis = new User(\"Sis\", 200, \"magenta\", \"/front-end/images/sis.png\");\n\n\n// userStorage.save(testUser);\n userStorage.save(mom);\n userStorage.save(dad);\n userStorage.save(bro);\n userStorage.save(sis);\n\n\n\n TaskTemplate cleanCommonArea = new TaskTemplate(\"Clean Common Area\", \"Clean all common areas\", 30, 30, \"Monday\");\n TaskTemplate cleanGarage = new TaskTemplate(\"Clean Garage\", \"Sweep and organize the Garage\", 45, 45, \"Tuesday\");\n TaskTemplate cleanBathrooms = new TaskTemplate(\"Clean Bathrooms\", \"Wipe down sinks, scrub toilets, sweep and mop floors, and empty bathroom trash\", 30, 30, \"Wednesday\");\n TaskTemplate takeOutTrash = new TaskTemplate(\"Take Out Trash\", \"Take all trash to rolling bin outside and take the rolling bin to the road if today is a trash day\", 15,\"Wednesday\" );\n TaskTemplate washDishes = new TaskTemplate(\"Wash Dishes\", \"Wash and dry all dishes in the sink and empty/load the dishwasher\", 30, \"Wednesday\");\n TaskTemplate washAndDryLaundry = new TaskTemplate(\"Wash and Dry Laundry\", \"\", 30, 200, \"Monday\");\n TaskTemplate foldAndPutAwayLaundry = new TaskTemplate(\"Fold and Put Away Laundry\", \"\", 30, \"Monday\");\n TaskTemplate rakeLeaves = new TaskTemplate(\"Rake Leaves\", \"Rake and bag the leaves from the front, back, and sides of the house\", 45, \"Monday\");\n TaskTemplate mowLawn = new TaskTemplate(\"Mow Lawn\", \"Pick up rocks and sticks in the yards and mow the front and back lawn\", 45, \"Monday\");\n TaskTemplate cleanBedroom = new TaskTemplate(\"Clean Bedroom\", \"Clean your room\", 30, \"Tuesday\");\n TaskTemplate deepCleanKitchen = new TaskTemplate(\"Deep Clean Kitchen\", \"Clear off and wipe down all counter tops, wipe cabinet fronts, wipe behind sink, wipe trim boards under cabinets, sweep, and mop kitchen\", 90, \"Tuesday\");\n TaskTemplate tidyKitchen = new TaskTemplate(\"Tidy Kitchen\", \"Move dishes to sink, wipe down counter tops and table, and sweep floors\", 30, \"Tuesday\");\n TaskTemplate vacuumLivingRoom = new TaskTemplate(\"Vacuum Living Room\", \"Vacuum floors, crevases, and under furniture, and remove couch cushions to vacuum under cushions\", 30, \"Tuesday\");\n TaskTemplate mopAndSweepKitchen = new TaskTemplate(\"Mop and Sweep Kitchen\", \"Sweep and hot mop the kitchen floors\", 30, \"Thursday\");\n TaskTemplate changeLitterBox = new TaskTemplate(\"Change Litter Box\", \"Scoop the litter box and replace the litter if today is Friday\", 15, \"Thursday\");\n TaskTemplate walkDog = new TaskTemplate(\"Walk Dog\", \"Take the dogs for a walk around the block\", 20, \"Daily\");\n TaskTemplate cleanUpYard = new TaskTemplate(\"Clean Up Yard\", \"Pick up sticks and rocks in the front and back yard and pick up any trash that has blown in\", 20, \"Thursday\");\n TaskTemplate getMail = new TaskTemplate(\"Get Mail\", \"Get the mail from the mailbox\", 5, \"Daily\");\n TaskTemplate dustLivingRoom = new TaskTemplate(\"Dust Living Room\", \"Dust picture frames, end tables, coffee table, and door sills in the living room\", 20, \"Friday\");\n TaskTemplate dustFamilyRoom = new TaskTemplate(\"Dust Family Room\", \"Dust bookshelves, mantel over fireplace, stereo, and door sills in family room\", 20, \"Friday\");\n TaskTemplate vacuumFamilyRoom = new TaskTemplate(\"Vacuum Family Room\", \"Vacuum floors, crevases, and under furniture in the family room\", 20, \"Friday\");\n TaskTemplate dustCeilingFans = new TaskTemplate(\"Dust Ceiling Fans\", \"Wipe blades of ceiling fans down and ensure dust is blown out of fan motor housing\", 30, \"Friday\", bro, sis);\n\n taskTemplateStorage.save(cleanCommonArea);\n taskTemplateStorage.save(cleanGarage);\n taskTemplateStorage.save(cleanBathrooms);\n taskTemplateStorage.save(takeOutTrash);\n taskTemplateStorage.save(washDishes);\n taskTemplateStorage.save(washAndDryLaundry);\n taskTemplateStorage.save(foldAndPutAwayLaundry);\n taskTemplateStorage.save(rakeLeaves);\n taskTemplateStorage.save(mowLawn);\n taskTemplateStorage.save(cleanBedroom);\n taskTemplateStorage.save(deepCleanKitchen);\n taskTemplateStorage.save(tidyKitchen);\n taskTemplateStorage.save(vacuumLivingRoom);\n taskTemplateStorage.save(mopAndSweepKitchen);\n taskTemplateStorage.save(changeLitterBox);\n taskTemplateStorage.save(walkDog);\n taskTemplateStorage.save(cleanUpYard);\n taskTemplateStorage.save(getMail);\n taskTemplateStorage.save(dustLivingRoom);\n taskTemplateStorage.save(dustFamilyRoom);\n taskTemplateStorage.save(vacuumFamilyRoom);\n taskTemplateStorage.save(dustCeilingFans);\n\n resourceManager.allocateAllTasks();\n\n }",
"@Override\r\n public void operate(CustomerComplaintAppView view,\r\n User user, FileIO fileIO,\r\n UserTable userTable,\r\n ComplaintTable complaintTable,\r\n ProductTable productTable, Scanner sc){\r\n\r\n\r\n\r\n LinkedList<Complaint> complaintList = complaintTable.getAllComplaints();\r\n view.showComplaints(complaintList, userTable, productTable);\r\n // Simulation loop for admin\r\n simulation:\r\n while (true) {\r\n // Updating table to prevent any data loss from interrupts\r\n fileIO.updateComplaintTableCSV(complaintTable);\r\n complaintList = complaintTable.getAllComplaints();\r\n view.showMenuAdmin();\r\n String selection = sc.nextLine();\r\n switch (selection) {\r\n // bye!\r\n case \"exit\" -> {\r\n view.goodBye();\r\n break simulation;\r\n }\r\n // review complaint table\r\n case \"complaints\" -> {\r\n view.showComplaints(complaintList, userTable, productTable);\r\n continue;\r\n }\r\n // start processing the selection\r\n default -> {\r\n processSelection(view, user, fileIO, complaintTable, sc, complaintList, selection);\r\n continue;\r\n }\r\n }\r\n }\r\n }",
"public EnviarArchivo(String nombre,String ip) {\n initComponents();\n //iniciamos configuracion de la ventana\n iniciarVentana();\n //Colocamos titulo a ventana\n this.setTitle(\"Enviar Archivo a \"+nombre);\n //guardamos datos recividos en las variables globales\n this.nombre=nombre;\n this.ip=ip;\n //ocultamos los botones de tipo de envio\n rbtnSecuencial.setVisible(false);\n rbtnSimultaneo.setVisible(false);\n }",
"private void salir(){\r\n\t\tif(Gestion.isModificado()){\r\n\t\t\tint opcion = JOptionPane.showOptionDialog(null, \"¿Desea guardar los cambios?\", \"Salir\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null,null, null);\r\n\t\t\tswitch(opcion){\r\n\t\t\tcase JOptionPane.YES_OPTION:\r\n\t\t\t\tguardar();\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.NO_OPTION:\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.CANCEL_OPTION:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.exit(0);\r\n\t}",
"public static void main(String[] args) {\n // check for correct usage\n if (args.length < 1) {\n System.out.println(\"usage: java Vault [-au] <filename>\");\n System.exit(1);\n }\n\n // check for au option\n boolean addUser = false;\n if (args.length == 2)\n addUser = true;\n\n // open the file, or print error and exit\n Scanner sc = null;\n try {\n sc = new Scanner(new FileReader((addUser ? args[1] : args[0])));\n }catch (IOException e) {\n System.out.println(\"Error! File '\" + (addUser ? args[1] : args[0]) + \n \"' could not be opened.\");\n System.exit(2);\n }\n \n // read each line of the file, storing each user in users\n ArrayList<User> users = new ArrayList<User>();\n while (sc.hasNextLine()) {\n String[] line = sc.nextLine().split(\" \");\n \n if (line.length == 4 && line[0].equals(\"user\")) {\n users.add(new User(line[1], line[2], line[3]));\n\n }else if (line.length == 4 && line[0].equals(\"data\")) {\n for (int i = 0; i < users.size(); i++) {\n if (users.get(i).getName().equals(line[1]))\n users.get(i).addDatum(line[2], line[3]);\n }\n\n }else {\n System.out.println(\"Error! File '\" + (addUser ? args[1] : args[0]) + \n \"' improperly formatted.\");\n System.exit(3);\n }\n\n }\n //close read file\n sc.close();\n\n // ask user for username and password\n System.out.print(\"username: \");\n String name = System.console().readLine();\n System.out.print(\"password: \");\n char[] password = System.console().readPassword();\n\n // if au option, collect info and add to file, then quit\n if (addUser) {\n PrintWriter pw = null;\n try {\n pw = new PrintWriter(new File(args[1]));\n } catch (FileNotFoundException fnfe) {\n fnfe.printStackTrace();\n System.exit(6);\n }\n\n System.out.print(\"Hash algorithm: \");\n String hashAlg = System.console().readLine();\n\n // perform checks and hash password\n for (char c : password) {\n if ((int)c < 42 || (int)c > 122) {\n System.out.println(\"Error! Invalid symbol '\" + c + \"' in password.\");\n System.exit(7);\n }\n }\n Hasher hasher = null;\n String passhash = null;\n if (hashAlg.equals(\"clear\")) {\n hasher = new Clear();\n }else if (hashAlg.equals(\"shift+caesar\")) {\n hasher = new Caesar();\n }else if (hashAlg.equals(\"shift+vigenere\")) {\n hasher = new Vigenere();\n }else {\n System.out.println(\"Error! Hash algorithm '\" + hashAlg + \"' not supported.\");\n System.exit(8);\n }\n passhash = hasher.hash(password);\n for (User u : users) {\n if (u.getName().equals(name)) {\n System.out.print(\"Error! Username '\" + name + \"' already in use.\");\n System.exit(9);\n }\n }\n \n users.add(new User(name, hashAlg, passhash));\n for (User u : users) {\n pw.println(String.join(\" \", \"user\", u.getName(), u.getHashAlg(), u.getHash()));\n }\n\n pw.close();\n System.exit(0);\n }\n\n // determine access, exit if denied\n boolean access = false;\n User curr = null;\n for (User u : users) {\n if (u.getName().equals(name)) {\n try {\n if (u.validate(password)) {\n System.out.println(\"Access granted!\");\n access = true;\n curr = u;\n }\n break;\n }catch (UnsupportedHashException e) {\n System.out.println(\"Error! Hash algorithm '\" + u.getHashAlg() + \n \"' not supported.\");\n System.exit(4);\n }\n }\n }\n if (!access) {\n System.out.println(\"Access denied!\");\n System.exit(5);\n }\n\n // if granted access, open prompt for commands\n System.out.print(\"> \");\n sc = new Scanner(System.in);\n String cmd = null;\n ArrayList<Datum> data = curr.getData();\n while (!(cmd = sc.next()).equals(\"quit\")) {\n switch(cmd) {\n case \"labels\": for (Datum d : data) {\n d.getEnc().init(password);\n try {\n String plain = d.getEnc().decrypt(d.getCipher());\n if (!plain.contains(\"_\")) throw new Exception();\n System.out.println(plain.split(\"_\")[0]);\n }catch (Exception e) {\n System.out.println(\"Error! Corrupted entry '\" +\n d.getCipher() + \n \"' in vault file.\");\n }\n }\n break;\n\n case \"get\": cmd = sc.next();\n for (Datum d : data) {\n d.getEnc().init(password);\n try {\n String plain = d.getEnc().decrypt(d.getCipher());\n if (!plain.contains(\"_\")) throw new Exception();\n if (plain.split(\"_\", 2)[0].equals(cmd))\n System.out.println(plain.split(\"_\", 2)[1]);\n }catch (Exception e) {\n System.out.println(\"Error! Corrupted entry '\" + \n d.getCipher() + \n \"' in vault file.\");\n }\n }\n break; \n\n default: System.out.println(\"Unknown command '\" + cmd + \"'.\");\n break;\n }\n System.out.print(\"> \");\n\n }\n\n \n\n }",
"@Override\r\n\tpublic Object dashboardGestaoFilasPorUsuario(User usuarioLogado, TaskProcess processoSelecionado, Actor atorSelecionado, User usuarioSelecionado) throws BonitaException {\n\t\treturn null;\r\n\t}",
"public void importFile(String filename) throws IOException, BadEntryException, ImportFileException{\n try{\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n String line;\n line = reader.readLine();\n\n while(line != null){\n String[] fields = line.split(\"\\\\|\");\n int id = Integer.parseInt(fields[1]);\n if(_persons.get(id) != null){\n throw new BadEntryException(fields[0]);\n }\n\n if(fields[0].equals(\"FUNCIONÁRIO\")){\n registerAdministrative(fields);\n line = reader.readLine();\n }else if(fields[0].equals(\"DOCENTE\")){\n Professor _professor = new Professor(id, fields[2], fields[3]);\n _professors.put(id, _professor);\n _persons.put(id, (Person) _professor);\n\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n \n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n\n if(_professor.getDisciplineCourses().get(course) == null){\n _professor.getDisciplineCourses().put(course, new HashMap<String, Discipline>());\n }\n\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline,_course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_professor, id);\n _disciplineCourse.get(course).put(discipline, _discipline);\n\n if(_professor.getDisciplines() != null){\n _professor.getDisciplines().put(discipline, _discipline);\n _professor.getDisciplineCourses().get(course).put(discipline, _discipline); \n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n\n }\n }\n }\n }else if(fields[0].equals(\"DELEGADO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course,_course);\n }\n if(_course.getRepresentatives().size() == 8){\n System.out.println(id);\n throw new BadEntryException(course);\n }else{\n _course.getRepresentatives().put(id,_student);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline,_discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n }else if(fields[0].equals(\"ALUNO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_student, id);\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n\n }else{\n throw new BadEntryException(fields[0]);\n }\n }\n for(Course course: _courses.values()){\n HashMap<Integer,Student> representatives = course.getRepresentatives();\n HashMap<String, Discipline> disciplines = course.getDisciplines();\n for(Discipline discipline: disciplines.values()){\n for(Student representative: representatives.values()){\n discipline.registerObserver(representative, representative.getId());\n }\n }\n \n } \n reader.close();\n }catch(BadEntryException e){\n throw new ImportFileException(e);\n }catch(IOException e){\n throw new ImportFileException(e);\n }\n }",
"public void ejecutarCargue() {\n String respuesta = null;\n try {\n loggerApp.info(\"Cargues masivos timbres - ejecutar cargue\");\n if (!validarExtension(Constantes.EXTENSIONES_ARCHIVO_EXCEL, file)) {\n abrirModal(\"SARA\", \"Error: El archivo \" + (null == file ? \" \" : file.getName()) + \" no cumple con el formato de extensión válido \" + Constantes.EXTENSIONES_ARCHIVO_EXCEL, null);\n return;\n }\n generarListaData();\n cargarTimbresMasivosObjectContext.setAtributo(\"listaTimbres\", listaData);\n this.servletHelper = new CargarTimbresMasivosServletHelper(sessionLocal, cargarTimbresMasivosObjectContext, objectContext, sessionAjustes, cuadreCifrasSessionLocal, cajeroSession);\n if (this.servletHelper != null) {\n respuesta = servletHelper.obtenerDatos();\n }\n if (respuesta != null && !respuesta.trim().isEmpty()) {\n abrirModal(\"SARA\", respuesta, null);\n }\n } catch (FileStructureException ex) {\n ex.printStackTrace();\n loggerApp.log(Level.SEVERE, ex.getMessage(), ex);\n abrirModal(\"SARA\", ex.getMessage(), null);\n } catch (Exception ex) {\n ex.printStackTrace();\n loggerApp.log(Level.SEVERE, ex.getMessage(), ex);\n abrirModal(\"SARA\", Constantes.MSJ_ERROR_INTERNO, null);\n }\n\n }",
"public void abrirArchivo() {\r\n try {\r\n entrada = new Scanner(new File(\"estudiantes.txt\"));\r\n } // fin de try\r\n catch (FileNotFoundException fileNotFoundException) {\r\n System.err.println(\"Error al abrir el archivo.\");\r\n System.exit(1);\r\n } // fin de catch\r\n }",
"public static void createOrOpenUsersFile() {\n try {\r\n File usersFile = new File(\"users.txt\");\r\n if (usersFile.createNewFile()) {\r\n System.out.println(\"\\nFile \" + usersFile.getName() + \" has been created.\");\r\n } else {\r\n System.out.println(\"\\nFile \" + usersFile.getName() + \" is ready.\");\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"An error occurred.\");\r\n e.printStackTrace();\r\n }\r\n }",
"private void validateFile(final boolean isRustica) {\n\t\thayErroresFilas = false;\r\n\t\thayErroresFila = false;\r\n\r\n\t\tcampoMasaCorrectos = true;\r\n\t\tcampoHojaCorrecto = true;\r\n\t\tcampoParecelaCorrecto = true;\r\n\t\tcampoTipoCorrecto = true;\r\n\t\tcampoFechaAltaCorrecto = true;\r\n\t\tcampoFechaBajaCorrecto = true;\r\n\r\n\t\tFile currentDirectory = (File) blackboard.get(ImportarUtils_LCGIII.LAST_IMPORT_DIRECTORY);\r\n\r\n\t\tGeopistaFiltroFicheroFilter filter = new GeopistaFiltroFicheroFilter();\r\n\t\tfilter.addExtension(\"SHP\");\r\n filter.setDescription(\"Shapefiles\");\r\n\t\t\r\n final JFileChooser jfc;\r\n final JTextField jtf;\r\n if (isRustica)\r\n {\r\n \tjfc = fcRustica;\t\r\n \tjtf = this.txtFicheroRustica;\r\n }\r\n\t\telse\r\n\t\t{\r\n\t\t\tjfc = fcUrbana;\r\n\t\t\tjtf = this.txtFicheroUrbana;\r\n\t\t}\r\n\t\t\t\t\r\n\t\t// FILES(*.*)\r\n jfc.setFileFilter(filter);\r\n \tjfc.setAcceptAllFileFilterUsed(false); // QUITA LA OPCION ALL\r\n\t\tjfc.setCurrentDirectory(currentDirectory);\r\n\t\t\r\n\t\tint returnVal = jfc.showOpenDialog(this);\r\n\t\tblackboard.put(ImportarUtils_LCGIII.LAST_IMPORT_DIRECTORY, jfc.getCurrentDirectory());\r\n\r\n\t\tif (returnVal == JFileChooser.APPROVE_OPTION)\r\n\t\t{\r\n\t\t\t// Cargamos el fichero que hemos obtenido\r\n\t\t\tString fichero;\r\n\t\t\tfichero = jfc.getSelectedFile().getPath();\r\n\t\t\tjtf.setText(fichero); // meto el fichero seleccionado\r\n\t\t\t// en el campo\r\n\r\n\t\t\tcadenaTexto = \"<font face=SansSerif size=3>\"\r\n\t\t\t\t+ aplicacion.getI18nString(\"ImportacionComenzar\") + \"<b>\" + \" \"\r\n\t\t\t\t+ jfc.getSelectedFile().getName() + \"</b>\";\r\n\t\t\t\r\n\t\t\tcadenaTexto = cadenaTexto + \"<p>\" + aplicacion.getI18nString(\"OperacionMinutos\") + \" ...</p></font>\";\r\n\t\t\tcadenaTexto = cadenaTexto + aplicacion.getI18nString(\"importar.datos.parcelas\");\r\n\r\n\t\t\tediError.setText(cadenaTexto);\r\n\t\t\tcadenaTexto=\"\";\r\n\r\n\t\t\tfinal TaskMonitorDialog progressDialog = \r\n\t\t\t\tnew TaskMonitorDialog(aplicacion.getMainFrame(), geopistaEditor.getContext().getErrorHandler());\r\n\r\n\t\t\tprogressDialog.setTitle(aplicacion.getI18nString(\"ValidandoDatos\"));\r\n\t\t\tprogressDialog.report(aplicacion.getI18nString(\"ValidandoDatos\"));\r\n\t\t\tprogressDialog.addComponentListener(new ComponentAdapter()\r\n\t\t\t{\r\n\t\t\t\tpublic void componentShown(ComponentEvent e)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Wait for the dialog to appear before starting the\r\n\t\t\t\t\t// task. Otherwise\r\n\t\t\t\t\t// the task might possibly finish before the dialog\r\n\t\t\t\t\t// appeared and the\r\n\t\t\t\t\t// dialog would never close. [Jon Aquino]\r\n\t\t\t\t\tnew Thread(new Runnable()\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tpublic void run()\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttry\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tGeopistaLayer layerParcelas = (GeopistaLayer) blackboard.get(\"capaParcelasInfoReferencia\");\r\n\t\t\t\t\t\t\t\tif (layerParcelas != null)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tgeopistaEditor.getLayerManager().remove(layerParcelas);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tlayerParcelas = (GeopistaLayer) geopistaEditor.loadData(\r\n\t\t\t\t\t\t\t\t\t\tjfc.getSelectedFile().getAbsolutePath(),\r\n\t\t\t\t\t\t\t\t\t\taplicacion.getI18nString(\"importar.informe.parcelas\"));\r\n\t\t\t\t\t\t\t\tlayerParcelas.setActiva(false);\r\n\t\t\t\t\t\t\t\tlayerParcelas.addStyle(new BasicStyle(new Color(64, 64,64)));\r\n\t\t\t\t\t\t\t\tlayerParcelas.setVisible(false);\r\n\r\n\t\t\t\t\t\t\t\tif (isRustica)\r\n\t\t\t\t\t\t\t\t\tblackboard.put(\"capaParcelasInfoReferencia\", layerParcelas);\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\tblackboard.put(\"capaParcelasInfoReferenciaUrbana\", layerParcelas);\r\n\r\n\t\t\t\t\t\t\t\t// Obtener el esquema\r\n\t\t\t\t\t\t\t\tFeatureSchema esquema = layerParcelas.getFeatureCollectionWrapper().getFeatureSchema();\r\n\r\n\t\t\t\t\t\t\t\t// Localizar los campos\r\n\t\t\t\t\t\t\t\tcampoMasaCorrectos = encontrarCampo(\"MASA\",esquema);\r\n\t\t\t\t\t\t\t\tcampoHojaCorrecto = encontrarCampo(\"HOJA\",esquema);\r\n\t\t\t\t\t\t\t\tcampoParecelaCorrecto = encontrarCampo(\"PARCELA\",esquema);\r\n\t\t\t\t\t\t\t\tcampoTipoCorrecto = encontrarCampo(\"TIPO\",esquema);\r\n\t\t\t\t\t\t\t\tcampoFechaAltaCorrecto = encontrarCampo(\"FECHAALTA\", esquema);\r\n\t\t\t\t\t\t\t\tcampoFechaBajaCorrecto = encontrarCampo(\"FECHABAJA\", esquema);\r\n\r\n\t\t\t\t\t\t\t\tif (campoMasaCorrectos \r\n\t\t\t\t\t\t\t\t\t\t&& campoHojaCorrecto\r\n\t\t\t\t\t\t\t\t\t\t&& campoParecelaCorrecto\r\n\t\t\t\t\t\t\t\t\t\t&& campoTipoCorrecto\r\n\t\t\t\t\t\t\t\t\t\t&& campoFechaAltaCorrecto\r\n\t\t\t\t\t\t\t\t\t\t&& campoFechaBajaCorrecto)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t// A partir de aqui hay que\r\n\t\t\t\t\t\t\t\t\t// verificar que no hay nulos y es\r\n\t\t\t\t\t\t\t\t\t// del tipo correcto los valores.\r\n\t\t\t\t\t\t\t\t\tList listaLayer = layerParcelas.getFeatureCollectionWrapper().getFeatures();\r\n\t\t\t\t\t\t\t\t\tIterator itLayer = listaLayer.iterator();\r\n\r\n\t\t\t\t\t\t\t\t\twhile (itLayer.hasNext())\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tif (hayErroresFila)\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t// break;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tFeature f = (Feature) itLayer.next();\r\n\t\t\t\t\t\t\t\t\t\tString masa = f.getString(\"MASA\");\r\n\t\t\t\t\t\t\t\t\t\tString hoja = f.getString(\"HOJA\");\r\n\t\t\t\t\t\t\t\t\t\tString parcela = f.getString(\"PARCELA\");\r\n\r\n\t\t\t\t\t\t\t\t\t\tString tipo = f.getString(\"TIPO\");\r\n\t\t\t\t\t\t\t\t\t\t// Comprobamos que no sea nulo y\r\n\t\t\t\t\t\t\t\t\t\t// sea una U o una R\r\n\t\t\t\t\t\t\t\t\t\tif ((!tipo.equals(\"U\"))\r\n\t\t\t\t\t\t\t\t\t\t\t\t&& (!tipo.equals(\"R\"))\r\n\t\t\t\t\t\t\t\t\t\t\t\t&& (!tipo.equals(\"D\"))\r\n\t\t\t\t\t\t\t\t\t\t\t\t&& (!tipo.equals(\"X\")))\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t// Solo puede haber una R \r\n\t\t\t\t\t\t\t\t\t\t\t// una U una D o una X.\r\n\t\t\t\t\t\t\t\t\t\t\tcadenaTexto = cadenaTexto\r\n\t\t\t\t\t\t\t\t\t\t\t+ aplicacion.getI18nString(\"importar.informe.parcelas.rustico\")\r\n\t\t\t\t\t\t\t\t\t\t\t+ masa\r\n\t\t\t\t\t\t\t\t\t\t\t+ hoja\r\n\t\t\t\t\t\t\t\t\t\t\t+ parcela\r\n\t\t\t\t\t\t\t\t\t\t\t+ aplicacion.getI18nString(\"importar.informe.parcelas.fin.rustico\");\r\n\t\t\t\t\t\t\t\t\t\t\thayErroresFila = true;\r\n\t\t\t\t\t\t\t\t\t\t\thayErroresFilas = true;\r\n\t\t\t\t\t\t\t\t\t\t\t// break;\r\n\t\t\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\t\t\telse if (!isRustica && (tipo.equals(\"R\") || tipo.equals(\"D\") || tipo.equals(\"X\")))\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tcadenaTexto = I18N.get(\"ImportadorParcelas\", \"importar.informe.parcelas.error.inicio.parcelario\")\r\n\t\t\t\t\t\t\t\t\t\t\t+ I18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.validacion.urbana\") + \r\n\t\t\t\t\t\t\t\t\t\t\tI18N.get(\"ImportadorParcelas\", \"importar.informe.parcelas.error.fin.parcelario\");\r\n\t\t\t\t\t\t\t\t\t\t\thayErroresFila = true;\r\n\t\t\t\t\t\t\t\t\t\t\thayErroresFilas = true;\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse if (isRustica && tipo.equals(\"U\"))\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tcadenaTexto = I18N.get(\"ImportadorParcelas\", \"importar.informe.parcelas.error.inicio.parcelario\")\r\n\t\t\t\t\t\t\t\t\t\t\t+ I18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.validacion.rustica\") + \r\n\t\t\t\t\t\t\t\t\t\t\tI18N.get(\"ImportadorParcelas\", \"importar.informe.parcelas.error.fin.parcelario\");\r\n\t\t\t\t\t\t\t\t\t\t\thayErroresFila = true;\r\n\t\t\t\t\t\t\t\t\t\t\thayErroresFilas = true;\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t// Comprobamos que la fecha\r\n\t\t\t\t\t\t\t\t\t\t\t// que viene sea fecha\r\n\t\t\t\t\t\t\t\t\t\t\ttry\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tDate date = (Date) formatter.parse(f.getString(\"FECHAALTA\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t// Comprobamos que la\r\n\t\t\t\t\t\t\t\t\t\t\t\t// fecha de baja es nula\r\n\t\t\t\t\t\t\t\t\t\t\t\t// o valida o 9999999\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (f.getString(\"FECHABAJA\").equals(\"99999999\"))\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// Correcto\r\n\t\t\t\t\t\t\t\t\t\t\t\t\thayErroresFila = false;\r\n\t\t\t\t\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif ((f.getString(\"FECHABAJA\")) == null)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\thayErroresFila = false;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Comprobamos que sea una fecha correcta\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttry\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDateFormat formatter1 = new SimpleDateFormat(\"yyyyMMdd\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDate date1 = (Date) formatter1.parse(f.getString(\"FECHABAJA\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcatch (Exception excp)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\texcp.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thayErroresFila = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thayErroresFilas = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcadenaTexto = cadenaTexto\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ aplicacion.getI18nString(\"importar.informe.parcelas.fecha.baja\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ masa\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ hoja\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ parcela\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ aplicacion.getI18nString(\"importar.informe.parcelas.fin.rustico\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// break;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t//jtf.setBorder(BorderFactory.createLineBorder(Color.GREEN, 2));\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (isRustica)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\trusticaValida = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t\t\t\t\turbanaValida = true;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\t\t\t\tcatch (Exception exc)\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t// En la fecha de alta\r\n\t\t\t\t\t\t\t\t\t\t\t\tcadenaTexto = cadenaTexto\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ aplicacion.getI18nString(\"importar.informe.parcelas.fecha.alta.validacion\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ masa\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ hoja\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ parcela\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ aplicacion.getI18nString(\"importar.informe.parcelas.fin.rustico\");\r\n\t\t\t\t\t\t\t\t\t\t\t\texc.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t\t\t\thayErroresFila = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\thayErroresFilas = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\t// break;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t//Se comprueba si la geometría es de tipo polygon y no es empty (únicas válidas en la capa parcelas)\r\n\t\t\t\t\t\t\t\t\t\t\tif (!(f.getGeometry() instanceof Polygon)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t|| f.getGeometry().isEmpty())\r\n\t\t\t\t\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\tcadenaTexto = I18N.get(\"ImportadorParcelas\", \"importar.informe.parcelas.error.inicio.parcelario\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ I18N.get(\"ImportadorParcelas\", \"importar.informacion.referencia.validacion.geometria\") + \r\n\t\t\t\t\t\t\t\t\t\t\t\tI18N.get(\"ImportadorParcelas\", \"importar.informe.parcelas.error.fin.parcelario\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\thayErroresFila = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\thayErroresFilas = true;\r\n\t\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t// Alguno de los campos no están\r\n\t\t\t\t\t\t\t\t\t// definidos\r\n\t\t\t\t\t\t\t\t\t// JOptionPane.showMessageDialog(this,aplicacion.getI18nString(\"importar.informe.parcelas.algun.campo\"));\r\n\t\t\t\t\t\t\t\t\tcadenaTexto += aplicacion.getI18nString(\"importar.informacion.ficheros.no.correctos\");\r\n\t\t\t\t\t\t\t\t\thayErroresFilas = true;\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tif (isRustica)\r\n\t\t\t\t\t\t\t\t\t\trusticaValida = false;\r\n\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t\turbanaValida = false;\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\tcatch (Exception e)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\thayErroresFilas = true;\r\n\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\tfinally\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tprogressDialog.setVisible(false);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}).start();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tGUIUtil.centreOnWindow(progressDialog);\r\n\t\t\tprogressDialog.setVisible(true);\r\n\r\n\t\t\tif (hayErroresFilas)\r\n\t\t\t{\r\n\t\t\t\tjtf.setBorder(BorderFactory.createLineBorder(Color.RED, 2));\r\n\t\t\t\tcadenaTexto = cadenaTexto + aplicacion.getI18nString(\"validacion.finalizada\");\t\t\t\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tjtf.setBorder(BorderFactory.createLineBorder(Color.GREEN, 2));\r\n\t\t\t\tcadenaTexto = cadenaTexto + aplicacion.getI18nString(\"importar.informe.parcelas.fichero.correcto\")\r\n\t\t\t\t+ aplicacion.getI18nString(\"validacion.finalizada\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tediError.setText(cadenaTexto);\r\n\t\t\twizardContext.inputChanged();\r\n\t\t}\r\n\r\n\t}",
"private void actionImport() {\n ImportPanel myPanel = new ImportPanel();\n int result = JOptionPane.showConfirmDialog(this, myPanel, \"Import\",\n JOptionPane.OK_CANCEL_OPTION);\n if (result == JOptionPane.OK_OPTION) { // Afirmative\n readNeuronListFromFile(\n myPanel.tfields[ImportPanel.idxInhList].getText(),\n layoutPanel.inhNList, LayoutPanel.INH);\n readNeuronListFromFile(\n myPanel.tfields[ImportPanel.idxActList].getText(),\n layoutPanel.activeNList, LayoutPanel.ACT);\n readNeuronListFromFile(\n myPanel.tfields[ImportPanel.idxPrbList].getText(),\n layoutPanel.probedNList, LayoutPanel.PRB);\n\n Graphics g = layoutPanel.getGraphics();\n layoutPanel.writeToGraphics(g);\n }\n }",
"private void newTodo() {\r\n String myTodoName = \"Unknown\";\r\n for (Component component : panelSelectFile.getComponents()) {\r\n if (component instanceof JTextField) {\r\n if (component.getName().equals(\"Name\")) {\r\n JTextField textFieldName = (JTextField) component;\r\n myTodoName = textFieldName.getText();\r\n }\r\n }\r\n }\r\n if (myTodoName == null || myTodoName.isEmpty()) {\r\n JOptionPane.showMessageDialog(null, \"New Todo List name not entered!\");\r\n return;\r\n }\r\n myTodo = new MyTodoList(myTodoName);\r\n int reply = JOptionPane.showConfirmDialog(null, \"Do you want to save this todoList?\",\r\n \"Save New Todolist\", JOptionPane.YES_NO_OPTION);\r\n if (reply == JOptionPane.YES_OPTION) {\r\n saveTodo();\r\n }\r\n fileName = null;\r\n todoListGui();\r\n }",
"public void criarArquivo(String nomeArquivo) {\n try {\n metodos.criarArquivo(nomeArquivo);\n } catch (RemoteException ex) {\n Logger.getLogger(Controller.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private static void newEmployee(UserType employeeType) {\n\n\t\tString username = null, password;\n\n\t\tboolean valid = false;\n\n\t\t// make sure that the username is not already taken\n\t\twhile (!valid) {\n\t\t\tSystem.out.print(\"What username would you like for your account? \");\n\t\t\tusername = input.nextLine();\n\t\t\tif (nameIsTaken(username, customerList)) {\n\t\t\t\tSystem.out.println(\"Sorry but that username has already been taken.\");\n\t\t\t} else\n\t\t\t\tvalid = true;\n\t\t}\n\t\t// set valid to false after each entry\n\t\tvalid = false;\n\n\t\tSystem.out.print(\"What password would you like for your account? \");\n\t\tpassword = input.nextLine();\n\n\t\tEmployee e = new Employee(username, password);\n\n\t\te.setType(employeeType);\n\t\temployeeList.add(e);\n\t\tcurrentUser = e;\n\t\twriteObject(employeeFile, employeeList);\n\t\temployeeDao.create(e);\n\t}",
"public void arquivoSaida() {\r\n\r\n try {\r\n File file = new File(\"arquivoSaida.txt\");\r\n try (FileWriter arquivoSaida = new FileWriter(file, true)) {\r\n arquivoSaida.write(\"Rota do menor caminho entre as cidades escolhidas: \\n\\n\");\r\n Vertice v;\r\n \r\n //Escreve no arquivo a rota de ida de entrega nas cidades\r\n for (int i = 0; i < rota.getLista_de_rota().size() - 1; i++) {\r\n for (int j = 0; j < rota.getLista_de_rota().get(i).size(); j++) {\r\n v = rota.getLista_de_rota().get(i).get(j);\r\n arquivoSaida.write(v.getId() + \"; \");\r\n }\r\n }\r\n \r\n arquivoSaida.write(\"\\n\\nRota do menor caminho de volta: (Considerando que não há mais nenhuma entrega)\\n\\n\");\r\n // pegando a ultima posição da lista geral em que está a lista do menor caminho de volta\r\n int t = rota.getLista_de_rota().size() - 1; \r\n \r\n //Escreve a rota do caminho de volta, verificando a distancia entre a cidade origem e a cidade destino\r\n for (int j = rota.getLista_de_rota().get(t).size() - 1; j >= 0; j--) {\r\n v = (Vertice) rota.getLista_de_rota().get(t).get(j);\r\n arquivoSaida.write(v.getId() + \"; \");\r\n }\r\n arquivoSaida.write(\"Distancia percorrida: \"+rota.getDistancia()+\"\\n\");\r\n arquivoSaida.close();\r\n }\r\n } catch (IOException ex) { //caso nao seja possivel abrir algum dos arquivos\r\n System.out.println(\"Não foi possivel abrir arquivo\");\r\n }\r\n }",
"public ingresarBiblioteca() {\n initComponents();\n this.nombreUsuario.setText(usuariosID[0].getNombre());\n this.Picture.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.PLAIN,10));\n usuario.insertarInicio(this.nombreUsuario.getText()/*, carpeta*/);\n usuario.obtenerNodo(0).getArchivo().insertarFinal(\"GENERAL\");//carpeta.insertarFinal(\"GENERAL\");\n }",
"@Override\n\tpublic void salvaSuFile() {\n\t\tString path = \"alimenti.txt\";\n\t\tString allergeni = Alimento.getStringaAllergeni(getElencoAllergeni());\n\t\ttry {\n\t\t\tFile file = new File(path);\n\t\t\tFileWriter fw = new FileWriter(file, true);\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\tbw.write(getNome() + \" - \" + getPrezzo() + \"€\\n\");\n\t\t\tbw.write(\"Adatto a vegani: \" + (getVegano() ? \"sì\\n\" : \"no\\n\"));\n\t\t\tbw.write(\"Adatto a vegetariani: \" + (getVegetariano() ? \"sì\\n\" : \"no\\n\"));\n\t\t\tbw.write(\"Tipologia: \" + getTipoPortata().getNome().toUpperCase() + \"\\n\");\n\t\t\tbw.write(\"Cottura: \" + getTipoCottura().getNome().toUpperCase() + \"\\n\");\n\t\t\tbw.write(\"Allergeni: \" + (allergeni.isEmpty() ? \"--\" : allergeni) + \"\\n\\n\");\n\t\t\tbw.flush();\n\t\t\tbw.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public ResponseEntity salvar(ContaUsuario contaUsuario, ERole role, HttpServletRequest request, MultipartFile foto, Boolean trocarSenha) {\r\n\t\t\r\n\t\tMap<String, Object> data = new HashMap<>();\r\n\t\tContaUsuario contaUsuarioSalvar = new ContaUsuario();\r\n\t\t\r\n\t\t/* Se a cona já estiver cadastrada busca as informaçoes dela */\r\n\t\tif(contaUsuario.getId() == null){\r\n\t\t\tcontaUsuarioSalvar = contaUsuario;\r\n\t\t}else{\r\n\t\t\tcontaUsuarioSalvar = contaUsuarioRepository.findOne(contaUsuario.getId());\r\n\t\t}\r\n\t\t\r\n\t\tif(trocarSenha){\r\n\t\t\tString encodedPassword = contaUsuario.getEncodedPassword(contaUsuario.getPassword());\r\n\t\t\tcontaUsuarioSalvar.setSenha(encodedPassword);\r\n\t\t}\r\n\t\t\r\n\t\tif ((!foto.isEmpty()) && ((ERole.ROLE_ADMIN == role) || (ERole.ROLE_CANDIDATO == role) || (ERole.ROLE_EMPREGADOR == role))) {\r\n\t\t\tString caminho = prepararAnexo(request, contaUsuario.getId(), foto);\r\n\t\t\tcontaUsuarioSalvar.setPathImagem(caminho);\r\n\t\t}\r\n\t\tcontaUsuarioSalvar.addPermissao(getPermissao(role));\r\n\t\t\r\n\t\tcontaUsuarioRepository.save(contaUsuarioSalvar);\r\n\t\t\r\n\t\tdata.put(\"msg\", \"Conta de usuário salva com sucesso!\");\r\n\t\tdata.put(\"contaUsuario\", contaUsuarioSalvar);\r\n\t\treturn new ResponseEntity(data, HttpStatus.OK);\r\n\t}",
"public EnviarArchivo(String ip) {\n initComponents();\n //iniciamos configuracion de la ventana\n iniciarVentana();\n //colocamos icono a la ventana\n this.setTitle(\"Enviar a todos los equipos dentro del grupo\");\n //guardamos en la variable global la direccion/hostname resivida\n this.ip=ip;\n \n \n }",
"void addNewAccountToFile(Account newAccount);",
"public void doTaskWorkPreSave(HttpServletRequest request,\n\t\t\tHttpServletResponse response, User user, Db db)\n\t{\n\n\t\t// did user provide a bulk import file?\n\t\tString fileId = getServerItemValue(FileType.STRAIN_IMPORT_FILE);\n\t\tif (!WtUtils.isNullOrBlank(fileId))\n\t\t{\n\t\t\t// yes\n\t\t\tbHaveFile = true;\n\t\t\t// -- work around bug in placeholder handling\n//\t\t\tgetServerItem(ItemType.PROJECT).clearValues();\n//\t\t\tString fileName = importStrainsFromBulkImportFile(fileId, db);\n//\t\t\t// ready for std save() processing\n//\t\t\tsetMessage(\"Successfully imported new strains from bulk import file.\");\n//\t\t\treturn;\n\t\t}\n\n\t\t// else, no file - import an individual strain\n\t\t// mainly housekeeping here\n\t\tString strain = getServerItemValue(ItemType.STRAIN);\n\t\tbNewStrain = false;\n\t\tstrains.clear(); // housekeeping\n\t\tif (WtUtils.isNullOrBlankOrPlaceholder(strain))\n\t\t{\n\t\t\tthrow new LinxUserException(\n\t\t\t\t\t\"Please enter a Strain ID, then try again.\");\n\t\t}\n\t\tif (!dbHelper.isItemExisting(strain, ItemType.STRAIN, db))\n\t\t{\n\t\t\tbNewStrain = true;\n\t\t}\n\t\t//lets make sure we have the correct prefix for the strain\n\t\t//if the strain already exists we should allow updates, \n\t\t//if not then we check for the correct prefix\n\t\tif(bNewStrain)\n\t\t{\n\t\t\tString prefix = this.getStrainPrefix(db).toLowerCase().trim();\n\t\t\tif(!strain.toLowerCase().startsWith(prefix))\n\t\t\t\tthrow new LinxUserException(\"The Strain ID must start with \" + prefix);\n\t\t}\n\t\t\n\t\tString project = getServerItemValue(ItemType.PROJECT);\n\t\tif (WtUtils.isNullOrBlankOrPlaceholder(project))\n\t\t{\n\t\t\t// reset to null, to avoid missing itemId errors\n\t\t\tWtUtils.stripElement(this.getServerItem(ItemType.PROJECT)\n\t\t\t\t\t.getItemElement());\n\t\t}\n\t\tString notebookPg = getServerItemValue(DataType.NOTEBOOK_REF);\n\t\tif(WtUtils.isNullOrBlank(notebookPg))\n\t\t{\n\t\t\tthrow new LinxUserException(\n\t\t\t\"Please enter a notebook page, then try again.\");\n\t\t}\n\t}",
"public static void main(String[] args) {\n\n\t\tFile fi = new File(\"C:/test_io\");\n\t\tif(fi.exists()) {\n\t\t\t\n\t\t\tSystem.out.println(\"exists!\");\n\t\t}else {\n\t\t\tSystem.out.println(\"new\");\n\t\t\tfi.mkdir();\n\t\t}\n\t\t\n\t\tFile fic1 = new File(fi, \"AA\");\n\t\tfic1.mkdir();\n\t\t\n\t\tFile fic2 = new File(\"C:/test_io\", \"BB\");\n\t\tfic2.mkdir();\n\t\t\n\t\tFile fitxt = new File(fic1,\"a.txt\");\n\t\t\n\t\ttry {//checked exception\n\t\t\tfitxt.createNewFile();\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 void leeArchivo() throws IOException {\n // defino el objeto de Entrada para tomar datos\n BufferedReader brwEntrada;\n try {\n // creo el objeto de entrada a partir de un archivo de texto\n brwEntrada = new BufferedReader(new FileReader(\"datos.txt\"));\n } catch (FileNotFoundException e) {\n // si marca error es que el archivo no existia entonces lo creo\n File filPuntos = new File(\"datos.txt\");\n PrintWriter prwSalida = new PrintWriter(filPuntos);\n // le pongo datos ficticios o de default\n // lo cierro para que se grabe lo que meti al archivo\n prwSalida.close();\n // lo vuelvo a abrir porque el objetivo es leer datos\n brwEntrada = new BufferedReader(new FileReader(\"datos.txt\"));\n }\n // con el archivo abierto leo los datos que estan guardados\n brwEntrada.close();\n }",
"public void inici() {\n\t\n if (filename == null) {\n \t//System.err.println(Resources.getResource(\"./modelo/cube.obj\"));\n \t filename = Resources.getResource(\"./modelo/cube.obj\");\n if (filename == null) {\n System.err.println(\"modelo/cube.obj nots found\");\n System.exit(1);\n }\n\t}\n\t}",
"public VistaPrincipal(ControlUsuarios _controlador, String _nombreUsuario) {\n initComponents();\n this.setResizable(false);\n this.nombreUsuario = _nombreUsuario;\n this.controlador = _controlador;\n actualizarVista(nombreUsuario);\n addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n acaba();\n }\n });\n imagenBotonNotificaciones = new ImageIcon(RUTA_RECURSOS+\"iconNotif.png\");\n imagenBotonAmigo = new ImageIcon(RUTA_RECURSOS+\"addFriend.png\");\n imagenConectado = new ImageIcon(RUTA_RECURSOS+\"puntoVerde.png\");\n imagenNoConectado = new ImageIcon(RUTA_RECURSOS+\"puntoRojo.png\");\n imagenEnJuego = new ImageIcon(RUTA_RECURSOS+\"puntoAzul.png\");\n botonNotificaciones.setIcon(imagenBotonNotificaciones);\n botonAgregarAmigo.setIcon(imagenBotonAmigo);\n seleccionConectados.addItemListener(this);\n listaAmigos.addListSelectionListener(this);\n }",
"public CreateUAV(){\n createStage = new Stage();\n createStage.setTitle(\"UAV Setup\");\n createStage.initModality(Modality.APPLICATION_MODAL);\n setupOverwriteDialog();\n }",
"public void inicializar(String negocio) {\n\t\t\n\t\tSystem.out.println(\"Estoy incializando...\");\n\t}",
"public void choixDeJeu () {\n\t\t//Affichage d'une fenetre qui permet de choisir entre un labyrinthe genere aleatoirement et un fichier txt\n\t\tString[] choixPossibles = {\"Generer un labyrinthe aleatoirement\", \"Ouvrir un labyrinthe en .txt\"};\n\t\tString choix = (String)JOptionPane.showInputDialog(null, \"Que voulez-vous faire ?\", \"Labyrinthe\", JOptionPane.QUESTION_MESSAGE, new ImageIcon(getClass().getResource(\"/images/icone.gif\")), choixPossibles, choixPossibles[0]);\n\t\t\n\t\t//Si le bouton \"Annuler\" n'est pas presse\n\t\tif (choix != null) {\n\t\t\t//Affichage d'une fenetre qui permet de choisir le theme du jeu\n\t\t\tString[] choixTheme = {\"Theme par defaut\", \"Theme d'ancien labyrinthe en pierre\", \"Theme de The legend of zelda\", \"Theme de Métroid\", \"Theme d'incendie dans un batiment\", \"Theme de Mario\"};\n\t\t\tString theme = (String)JOptionPane.showInputDialog(null, \"Quel theme voulez-vous ?\", \"Choix du theme\", JOptionPane.QUESTION_MESSAGE, new ImageIcon(getClass().getResource(\"/images/icone.gif\")), choixTheme, choixTheme[1]);\n\n\t\t\t//Si le bouton \"Annuler\" n'est pas presse\n\t\t\tif (theme != null) {\n\t\t\t\t\n\t\t\t\t//Enregistrement du theme et changement de la couleur de fond de la fenetre.\t\n\t\t\t\tswitch (theme) {\n\t\t\t\tcase \"Theme par defaut\" : \n\t\t\t\t\tthemeJeu = 0;\n\t\t\t\t\tgrille.setBackground(new Color(91, 60, 17));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Theme de The legend of zelda\" : \n\t\t\t\t\tthemeJeu = 2; \n\t\t\t\t\tgrille.setBackground(Color.BLACK);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Theme de Métroid\" : \n\t\t\t\t\tthemeJeu = 3; \n\t\t\t\t\tgrille.setBackground(Color.white);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Theme d'incendie dans un batiment\" : \n\t\t\t\t\tthemeJeu = 4; \n\t\t\t\t\tgrille.setBackground(new Color(61, 43, 31));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Theme de Mario\" : \n\t\t\t\t\tthemeJeu = 5; \n\t\t\t\t\tgrille.setBackground(Color.cyan);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tthemeJeu = 1;\n\t\t\t\t\tgrille.setBackground(new Color(69, 69, 69));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t//Si l'utilisateur a choisi d'ouvrir un fichier texte\n\t\t\t\tif (choix.equals(\"Ouvrir un labyrinthe en .txt\")) {\t\t\t\t\n\t\t\t\t\t//On ouvre un explorateur qui permet de ne selectionner que des fichiers .txt\n\t\t\t\t\tJFileChooser exploreur = new JFileChooser();\n\t\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\".txt\", \"txt\");\n\t\t\t\t\texploreur.setFileFilter(filter);\n\t\t\t\t\texploreur.setAcceptAllFileFilterUsed(false);\n\t\t\t\t\tint valeurRetournee = exploreur.showOpenDialog(null);\n\n\t\t\t\t\t//Si le fichier est correct, on enregistre le nom de ce dernier, et on initie une partie.\n\t\t\t\t\tif (valeurRetournee == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\t\tpartie.fichier = exploreur.getSelectedFile().getPath();\n\t\t\t\t\t\tpartie.largeur = 0;\n\t\t\t\t\t\tpartie.hauteur = 0;\n\t\t\t\t\t\tpartie.nbFilons = 0;\n\t\t\t\t\t\tinitialisation();\n\t\t\t\t\t}\n\t\t\t\t\t//Sinon, on quitte le programme.\n\t\t\t\t\tif (valeurRetournee == JFileChooser.CANCEL_OPTION) {\n\t\t\t\t\t\tpartie.quitter();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//Si l'utilisateur a choisi de generer un labyrinthe aleatoirement\n\t\t\t\telse {\n\t\t\t\t\t//On cree une nouvelle fenetre\n\t\t\t\t\tJFrame fenetreDimensions = new JFrame();\n\n\t\t\t\t\t//On cree un premier panneau qui contient un texte et un slider afin de regler la hauteur du labyrinthe\n\t\t\t\t\tJPanel panneauHauteur = new JPanel();\n\t\t\t\t\tJLabel labelHauteur = new JLabel(\"25 cases :\");\n\t\t\t\t\tJSlider sliderHauteur = new JSlider();\t\t\t\t\n\t\t\t\t\tsliderHauteur.setMaximum(21);\n\t\t\t\t\tsliderHauteur.setMinimum(6);\n\t\t\t\t\tsliderHauteur.setValue(13);\n\t\t\t\t\tsliderHauteur.addChangeListener(new ChangeListener(){\n\t\t\t\t\t\t//Action liee au deplacement du slider\n\t\t\t\t\t\tpublic void stateChanged(ChangeEvent event){\n\t\t\t\t\t\t\tlabelHauteur.setText(2*((JSlider)event.getSource()).getValue()-1 + \" cases :\");\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tpanneauHauteur.setBorder(BorderFactory.createTitledBorder(\"Hauteur du labyrinthe\"));\n\t\t\t\t\tpanneauHauteur.add(labelHauteur);\n\t\t\t\t\tpanneauHauteur.add(sliderHauteur);\n\n\t\t\t\t\t//On cree un second panneau qui contient un texte et un slider afin de regler la largeur du labyrinthe\n\t\t\t\t\tJPanel panneauLargeur = new JPanel();\n\t\t\t\t\tJLabel labelLargeur = new JLabel(\"25 cases :\");\n\t\t\t\t\tJSlider sliderLargeur = new JSlider();\n\t\t\t\t\tsliderLargeur.setMaximum(38);\n\t\t\t\t\tsliderLargeur.setMinimum(6);\n\t\t\t\t\tsliderLargeur.setValue(13);\n\t\t\t\t\tsliderLargeur.addChangeListener(new ChangeListener(){\n\t\t\t\t\t\tpublic void stateChanged(ChangeEvent event){\n\t\t\t\t\t\t\t//Action liee au deplacement du slider\n\t\t\t\t\t\t\tlabelLargeur.setText(2*((JSlider)event.getSource()).getValue()-1 + \" cases :\");\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tpanneauLargeur.setBorder(BorderFactory.createTitledBorder(\"Largeur du labyrinthe\"));\n\t\t\t\t\tpanneauLargeur.add(labelLargeur);\n\t\t\t\t\tpanneauLargeur.add(sliderLargeur);\n\n\t\t\t\t\t//On cree un bouton \"Continuer\"\n\t\t\t\t\tJButton boutonContinuer = new JButton(\"Continuer\");\n\t\t\t\t\tboutonContinuer.addActionListener(new ActionListener() {\n\t\t\t\t\t\t//Action liee a l'appui sur le bouton \"continuer\"\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\t\t//On efface la fenetre precedente et on en recree une\n\t\t\t\t\t\t\tfenetreDimensions.dispose();\n\t\t\t\t\t\t\tJFrame fenetreFilons = new JFrame();\n\n\t\t\t\t\t\t\t//On enregistre les valeurs des sliders precedents\n\t\t\t\t\t\t\tpartie.largeur = 2*sliderLargeur.getValue()-1;\n\t\t\t\t\t\t\tpartie.hauteur = 2*sliderHauteur.getValue()-1;\n\n\t\t\t\t\t\t\t//On cree un nouveau panneau qui contient un texte et un slider afin de regler le nombre de filons\n\t\t\t\t\t\t\tJPanel panneauFilons = new JPanel();\n\t\t\t\t\t\t\tJLabel labelFilons = new JLabel(1 + \" filon(s) :\");\n\t\t\t\t\t\t\tJSlider sliderFilons = new JSlider();\n\t\t\t\t\t\t\tsliderFilons.setMinimum(0);\n\t\t\t\t\t\t\tsliderFilons.setMaximum((partie.largeur*partie.hauteur-partie.largeur-partie.hauteur+3)/4);\n\t\t\t\t\t\t\tsliderFilons.setValue(1);\n\t\t\t\t\t\t\tsliderFilons.setMajorTickSpacing((partie.largeur*partie.hauteur-partie.largeur-partie.hauteur+3)/8);\n\t\t\t\t\t\t\tsliderFilons.setPaintTicks(true);\n\t\t\t\t\t\t\tsliderFilons.setPaintLabels(true);\n\t\t\t\t\t\t\tsliderFilons.addChangeListener(new ChangeListener(){\n\t\t\t\t\t\t\t\tpublic void stateChanged(ChangeEvent event) {\n\t\t\t\t\t\t\t\t\t//Action liee au deplacement du slider\n\t\t\t\t\t\t\t\t\tlabelFilons.setText(((JSlider)event.getSource()).getValue() + \" filons :\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tpanneauFilons.setBorder(BorderFactory.createTitledBorder(\"Nombre de filons\"));\t\n\t\t\t\t\t\t\tpanneauFilons.add(labelFilons);\n\t\t\t\t\t\t\tpanneauFilons.add(sliderFilons);\t\n\n\t\t\t\t\t\t\t//On cree un bouton \"Jouer\"\n\t\t\t\t\t\t\tJButton boutonJouer = new JButton(\"Jouer\");\n\t\t\t\t\t\t\tboutonJouer.addActionListener(new ActionListener() {\n\t\t\t\t\t\t\t\t//Action liee a l'appui sur le bouton \"jouer\"\n\t\t\t\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\t\t\t\tfenetreFilons.dispose();\n\t\t\t\t\t\t\t\t\tpartie.nbFilons = sliderFilons.getValue();\n\t\t\t\t\t\t\t\t\tinitialisation();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t//On cree un bouton \"Annuler\"\n\t\t\t\t\t\t\tJButton annulerFilons = new JButton(\"Annuler\");\n\t\t\t\t\t\t\tannulerFilons.addActionListener(new ActionListener() {\n\t\t\t\t\t\t\t\t//Action liee a l'appui sur le bouton \"jouer\"\n\t\t\t\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\t\t\t\tfenetreFilons.dispose();\n\t\t\t\t\t\t\t\t\tpartie.quitter();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t//On cree un panneau recueillant deux bontons\n\t\t\t\t\t\t\tJPanel boutonsFilons = new JPanel();\n\t\t\t\t\t\t\tboutonsFilons.add(boutonJouer);\n\t\t\t\t\t\t\tboutonsFilons.add(annulerFilons);\t\n\n\t\t\t\t\t\t\t//On parametre la fenetre et agence les differents panneaux, puis on l'affiche\n\t\t\t\t\t\t\tfenetreFilons.setSize(320, 140);\n\t\t\t\t\t\t\tfenetreFilons.setTitle(\"Choix du nombre de filons\");\n\t\t\t\t\t\t\tfenetreFilons.setIconImage(new ImageIcon(getClass().getResource(\"/images/icone.gif\")).getImage());\n\t\t\t\t\t\t\tfenetreFilons.setLocationRelativeTo(null);\n\t\t\t\t\t\t\tfenetreFilons.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t\t\t\t\tfenetreFilons.getContentPane().add(panneauFilons, BorderLayout.CENTER);\n\t\t\t\t\t\t\tfenetreFilons.getContentPane().add(boutonsFilons, BorderLayout.SOUTH);\n\t\t\t\t\t\t\tfenetreFilons.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\t//On cree un bouton \"Annuler\"\n\t\t\t\t\tJButton annulerDimension = new JButton(\"Annuler\");\n\t\t\t\t\tannulerDimension.addActionListener(new ActionListener() {\n\t\t\t\t\t\t//Un appui sur le bouton \"annuler\" quitte le jeu\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\t\tfenetreDimensions.dispose();\n\t\t\t\t\t\t\tpartie.quitter();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\t//On cree un panneau recueillant deux bontons\n\t\t\t\t\tJPanel boutonsDimensions = new JPanel();\n\t\t\t\t\tboutonsDimensions.add(boutonContinuer);\n\t\t\t\t\tboutonsDimensions.add(annulerDimension);\t\n\n\t\t\t\t\t//On parametre la fenetre et agence les differents panneaux, puis on l'affiche\n\t\t\t\t\tfenetreDimensions.setSize(575, 120);\n\t\t\t\t\tfenetreDimensions.setTitle(\"Choix des dimensions du labyrinthe\");\n\t\t\t\t\tfenetreDimensions.setIconImage(new ImageIcon(getClass().getResource(\"/images/icone.gif\")).getImage());\n\t\t\t\t\tfenetreDimensions.setLocationRelativeTo(null);\n\t\t\t\t\tfenetreDimensions.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t\t\tfenetreDimensions.getContentPane().add(panneauHauteur, BorderLayout.EAST);\n\t\t\t\t\tfenetreDimensions.getContentPane().add(panneauLargeur, BorderLayout.WEST);\n\t\t\t\t\tfenetreDimensions.getContentPane().add(boutonsDimensions, BorderLayout.SOUTH);\n\t\t\t\t\tfenetreDimensions.setVisible(true);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Un appui sur le bouton \"annuler\" quitte le jeu\n\t\t\telse {\n\t\t\t\tpartie.quitter();\n\t\t\t}\n\t\t}\n\t\t//Un appui sur le bouton \"annuler\" quitte le jeu\n\t\telse {\n\t\t\tpartie.quitter();\n\t\t}\n\t}",
"private void btnAgregarUsuarioActionPerformed(java.awt.event.ActionEvent evt) {\n String v_nombre=\" \";\n\n if(txtNombreAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Digite un nombre, por favor\", \"Informacion\");\n return;\n }\n v_nombre=txtNombreAU.getText(); \n //Valido la contrasenia\n if(txtContraseniaAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Es obligatorio ingresar una contraseña\", \"Informacion\");\n return;\n }\n if(!validarContraseniaUsuario(txtContraseniaAU.getText())){\n return;\n }\n String v_contrasenia=txtContraseniaAU.getText();\n //Valido nombre completo\n if(txtNombreCompletoAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Es obligatorio ingresar el nombre completo\", \"Informacion\");\n return;\n }\n String v_nombreCompleto=txtNombreCompletoAU.getText();\n \n //Valido que se escogio un valor para el cargo\n int v_cargo=0;\n //10 = Administrador, 20=Funcionario\n if(rbtnAdministradorAU.isSelected()){\n v_cargo=10;\n }else if(rbtnFuncionarioAU.isSelected()){\n v_cargo=20;\n }else{\n Utilidades.mensajeInformacion(\"Escoga un cargo\", \"Informacion\");\n return;\n }\n \n //Creo y agreggo un usuario dependiendo del cargo escogido (Administrador o funcionario)\n try{\n boolean agregado=false;\n if(v_cargo==10){\n Administrador nuevoUsuario=new Administrador(v_nombre, v_contrasenia, v_nombreCompleto, null);\n agregado = administrador.agregarUsuario(nuevoUsuario);\n\n } \n if(v_cargo==20){\n Funcionario nuevoUsuario=new Funcionario(v_nombre, v_contrasenia, v_nombreCompleto, null);\n agregado = administrador.agregarUsuario(nuevoUsuario);\n }\n\n\n if(agregado){\n Utilidades.mensajeExito(\"Se agrego el Usuario\", \"Agregacion Exitosa\");\n limpiarCamposAgregarUsuario();\n }else{\n Utilidades.mensajeError(\"El Usuario a agregar ya existe\", \"Error\");\n }\n\n }catch (IOException ex) {\n Logger.getLogger(Funcionario.class.getName()).log(Level.SEVERE, null, ex);\n Utilidades.mensajeAdvertencia(\"Se ha interrumpido la conexion con el servidor\", \"Error\");\n }\n \n }",
"Ops(String filePath){\r\n\t\t\r\n\t\t//If the user doesnt give any specific location for storing of data\r\n\tif(filePath==null)\r\n\t\tthis.filePath=\"E:\\\\assignment.json\";\r\n\t\r\n\t\telse this.filePath=filePath;\t//If the file path is mentioned\r\n\t}",
"private void abrirFichero() {\r\n\t\tJFileChooser abrir = new JFileChooser();\r\n\t\tFileNameExtensionFilter filtro = new FileNameExtensionFilter(\"obj\",\"obj\");\r\n\t\tabrir.setFileFilter(filtro);\r\n\t\tif(abrir.showOpenDialog(abrir) == JFileChooser.APPROVE_OPTION){\r\n\t\t\ttry {\r\n\t\t\t\tGestion.liga = (Liga) Gestion.abrir(abrir.getSelectedFile());\r\n\t\t\t\tGestion.setAbierto(true);\r\n\t\t\t\tGestion.setFichero(abrir.getSelectedFile());\r\n\t\t\t\tGestion.setModificado(false);\r\n\t\t\t\tfrmLigaDeFtbol.setTitle(Gestion.getFichero().getName());\r\n\t\t\t} catch (ClassNotFoundException | IOException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No se ha podido abrir el fichero\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"@SuppressWarnings(\"Duplicates\")\n public void crearSala(String nombre, String actividad, int capacidad, int computadores, int datas, int mesas,\n int pizarras, int telones, int sillas) {\n\n setNombreSala(nombre);\n setActividad(actividad);\n setCapacidad(capacidad);\n for (int i = 1; i <= computadores; i++) {\n registrarInsumoT(1, i);\n }\n setConfirmada(false);\n for (int i = 1; i <= datas; i++) {\n registrarInsumoT(2, i);\n }\n setMesas(mesas);\n setPizarras(pizarras);\n setPropuesta(false);\n setTelones(telones);\n setSillas(sillas);\n\n\n }",
"private void guardarFoto() {\n if (foto != null && is != null) {\n\n Image foto_Nueva;\n foto_Nueva = foto.getScaledInstance(frmPersona.getLblFoto().getWidth(), frmPersona.getLblFoto().getHeight(), Image.SCALE_SMOOTH);\n frmPersona.getLblFoto().setIcon(new ImageIcon(foto_Nueva));\n cancelarFoto();\n ctrFrmPersona.pasarFoto(is);\n } else {\n JOptionPane.showMessageDialog(vtnWebCam, \"Aun no se a tomado una foto.\");\n }\n\n }",
"private void uploadLblMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_uploadLblMouseClicked\n if (HF != null) {\n int n = JOptionPane.showConfirmDialog(this,\n \"Would you like to save your changes first\",\n \"Warning\", JOptionPane.YES_NO_CANCEL_OPTION);\n if (n == JOptionPane.YES_OPTION) {\n FileHandling.saveToFile(this, HF);\n }\n }\n HF = (HELPFit) FileHandling.readFromFile(this);\n HF.updateSequences();\n }",
"public void uploadFile() throws IOException {\n\n\t\t// Provera da li ima jos mesta za upload (samo za standard korisnike -\n\t\t// ogranicenje je 4 fajla)\n\t\tfor (User u : Server.dataBase)\n\t\t\tif (username.equals(u.getUsername()))\n\t\t\t\tif (u.getTipKorisnika().toString().equals(\"STANDARD\"))\n\t\t\t\t\tif (u.getBrojFajlova() > 3)\n\t\t\t\t\t\tpom = \"***ogranicenje\";\n\n\t\tif (pom.equals(\"***ogranicenje\")) {\n\t\t\tclientOutput.println(\"Dostignut je maksimalan broj fajlova!\");\n\t\t\treturn;\n\t\t} else {\n\n\t\t\tclientOutput.println(\n\t\t\t\t\t\">>> Unesite relativnu putanju do fajla koji zelite da upload-ujete, zajedno sa imenom fajla: \");\n\t\t\tuserInput = clientInput.readLine();\n\n\t\t\tclientOutput.println(\n\t\t\t\t\t\">>> Unesite relativnu putanju do mesta gde zelite da upload-ujete fajl, zajedno sa imenom fajla: \");\n\t\t\tuserInput = clientInput.readLine();\n\n\t\t\tuserInput = \"drive/\" + username + \"/\" + userInput;\n\t\t\tdestinacija = new File(userInput);\n\t\t\tdestinacija.createNewFile();\n\n\t\t\tif (destinacija.getName().endsWith(\".txt\")) {\n\t\t\t\tPrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(userInput)));\n\t\t\t\tpom = null;\n\n\t\t\t\tdo {\n\t\t\t\t\tuserInput = clientInput.readLine();\n\t\t\t\t\tif (userInput.equals(\"***kraj\"))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tif (pom != null)\n\t\t\t\t\t\tpw.print(\"\\n\");\n\t\t\t\t\tpw.print(userInput);\n\t\t\t\t\tpom = \"upis\";\n\t\t\t\t\tclientOutput.println(userInput);\n\t\t\t\t} while (true);\n\t\t\t\tpw.close();\n\t\t\t\tfor (User u : Server.dataBase)\n\t\t\t\t\tif (username.equals(u.getUsername()))\n\t\t\t\t\t\tu.setBrojFajlova(u.getBrojFajlova() + 1);\n\t\t\t} else {\n\t\t\t\tuserInput = clientInput.readLine();\n\t\t\t\ttry {\n\t\t\t\t\tFileOutputStream fOut = new FileOutputStream(destinacija);\n\t\t\t\t\tbyte[] b = Base64.getDecoder().decode(userInput);\n\t\t\t\t\tfOut.write(b);\n\t\t\t\t\tfOut.close();\n\t\t\t\t\tfor (User u : Server.dataBase)\n\t\t\t\t\t\tif (username.equals(u.getUsername()))\n\t\t\t\t\t\t\tu.setBrojFajlova(u.getBrojFajlova() + 1);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void saveAsConfirmButton(){\n //Check if the input is valid (lcase and no spaces)\n String input = SaveAsLabNameTextField.getText();\n \n if(input.contains(\" \") || !input.equals(input.toLowerCase())){ \n SaveAsErrorLabel.setText(\"Lab name must be lowercase and contain no spaces!\");\n SaveAsErrorLabel.setVisible(true);\n }\n //Check if lab already exists\n else if(Arrays.asList(labsPath.list()).contains(input)){ \n SaveAsErrorLabel.setText(\"Lab already exists!\");\n SaveAsErrorLabel.setVisible(true);\n }\n else{\n SaveAsErrorLabel.setVisible(false);\n saveAs(input);\n SaveAsDialog.setVisible(false);\n } \n }",
"private void createContents() {\r\n this.shell = new Shell(this.getParent(), this.getStyle());\r\n this.shell.setText(\"自動プロキシ構成スクリプトファイル生成\");\r\n this.shell.setLayout(new GridLayout(1, false));\r\n\r\n Composite composite = new Composite(this.shell, SWT.NONE);\r\n composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n composite.setLayout(new GridLayout(1, false));\r\n\r\n Label labelTitle = new Label(composite, SWT.NONE);\r\n labelTitle.setText(\"自動プロキシ構成スクリプトファイルを生成します\");\r\n\r\n String server = Filter.getServerName();\r\n if (server == null) {\r\n Group manualgroup = new Group(composite, SWT.NONE);\r\n manualgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n manualgroup.setLayout(new GridLayout(2, false));\r\n manualgroup.setText(\"鎮守府サーバーが未検出です。IPアドレスを入力して下さい。\");\r\n\r\n Label iplabel = new Label(manualgroup, SWT.NONE);\r\n iplabel.setText(\"IPアドレス:\");\r\n\r\n final Text text = new Text(manualgroup, SWT.BORDER);\r\n GridData gdip = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n gdip.widthHint = SwtUtils.DPIAwareWidth(150);\r\n text.setLayoutData(gdip);\r\n text.setText(\"0.0.0.0\");\r\n text.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent e) {\r\n CreatePacFileDialog.this.server = text.getText();\r\n }\r\n });\r\n\r\n this.server = \"0.0.0.0\";\r\n } else {\r\n this.server = server;\r\n }\r\n\r\n Button storeButton = new Button(composite, SWT.NONE);\r\n storeButton.setText(\"保存先を選択...\");\r\n storeButton.addSelectionListener(new FileSelectionAdapter(this));\r\n\r\n Group addrgroup = new Group(composite, SWT.NONE);\r\n addrgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n addrgroup.setLayout(new GridLayout(2, false));\r\n addrgroup.setText(\"アドレス(保存先のアドレスより生成されます)\");\r\n\r\n Label ieAddrLabel = new Label(addrgroup, SWT.NONE);\r\n ieAddrLabel.setText(\"IE用:\");\r\n\r\n this.iePath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdIePath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdIePath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.iePath.setLayoutData(gdIePath);\r\n\r\n Label fxAddrLabel = new Label(addrgroup, SWT.NONE);\r\n fxAddrLabel.setText(\"Firefox用:\");\r\n\r\n this.firefoxPath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdFxPath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdFxPath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.firefoxPath.setLayoutData(gdFxPath);\r\n\r\n this.shell.pack();\r\n }",
"BucsUserFile(File f,String unm,UserFileType ft)\n{\n this();\n set(f,unm,ft);\n}",
"public void criaTrolls() throws FileNotFoundException, IOException{\n \n String[] vetorNomes;\n vetorNomes = new String[20];\n int i = 0;\n String endereco = System.getProperty(\"user.dir\");\n endereco = endereco + \"/nomes/Nomes.txt\";\n Scanner leitor = new Scanner(new FileReader(endereco));\n while(leitor.hasNext() && i < 20){\n \n vetorNomes[i] = leitor.next();\n ++i;\n }\n // Atribuindo nomes aos trolls.\n Random gerador = new Random();\n int qtde = gerador.nextInt(2);\n for(i = 0; i < qtde; ++i){\n \n int rd = gerador.nextInt(20);\n setNome(vetorNomes[rd], i);\n }\n setQtdeTrolls(qtde);\n }",
"private void loadDataFromFile() {\n boolean isLoggedInNew = na.isLoggedIn();\n boolean isLoggedIn = uL.isLoggedIn();\n // load data for new users after sucsessful new account creation\n if (isLoggedInNew) {\n String username = na.getUsername();\n String fileExt = \"_data.txt\";\n String workingDirectory = System.getProperty(\"user.dir\");\n String filePath = workingDirectory + \"\\\\\" + username + fileExt;\n File file = new File(filePath);\n try {\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n Object[] lines = br.lines().toArray();\n for (int i = 0; i < lines.length; i++) {\n String[] row = lines[i].toString().split(\"\\t\");\n model.addRow(row);\n }\n } catch (FileNotFoundException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // load data for existing users after sucsessful login\n if (isLoggedIn) {\n String username = uL.getUsername();\n String fileExt = \"_data.txt\";\n String workingDirectory = System.getProperty(\"user.dir\");\n String filePath = workingDirectory + \"\\\\\" + username + fileExt;\n File file = new File(filePath);\n try {\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n Object[] lines = br.lines().toArray();\n for (int i = 0; i < lines.length; i++) {\n String[] row = lines[i].toString().split(\"\\t\");\n model.addRow(row);\n }\n } catch (FileNotFoundException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }",
"public void btn_action_abrirArchivo() {\n FileChooser fileChooser = new FileChooser();\n\n //Set extension filter\n FileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter(\"TXT files (*.txt)\", \"*.txt\");\n fileChooser.getExtensionFilters().add(extFilter);\n\n //Show save file dialog\n File file = fileChooser.showOpenDialog(miPrimaryStage);\n //File file = new File(\"fichero.txt\");\n if(file != null){\n // ta_insertar_texto_id.setText(readFile(file));\n ca_insertar_texto_id.replaceText(readFile(file));\n }\n }",
"@Override\r\n\tpublic Object dashboardGestaoFilasPorAtor(User usuarioLogado, TaskProcess processoSelecionado, Actor atorSelecionado) throws BonitaException {\n\t\treturn null;\r\n\t}",
"public void crearPrincipal(String nameFile, String fileClases,int tipoClase, Boolean f_gc, Boolean f_nucl, Boolean f_cod, Boolean f_k, int k) throws IOException{\n //Primero leer las clases para agregarlas al final\n ReadClasses c= new ReadClasses();\n classes=c.leer(fileClases, tipoClase);\n cat=c.getCat();\n phylum=c.getPhylum();\n specie= c.getSpecie();\n if (tipoClase==1)\n clasDif=c.getCatDif();\n //clasDif=c.getCat();\n else\n if (tipoClase==2)\n clasDif=c.getPhylumDif();\n //clasDif=c.getPhylum();\n else\n clasDif=c.getSpecieDif();\n id=c.getId();\n if (f_cod)\n crearCodon();\n if (f_k)\n crearKmers4();\n //Crear encabezado de Arff\n BufferedWriter bufferArff =crearEncArff(nameFile,f_gc, f_nucl,f_cod,f_k,k, tipoClase);\n //Adicionar los datos a la base (mismo orden)\n leerFichero(nameFile, bufferArff,f_gc, f_nucl, f_cod, f_k, k, tipoClase);\n\n }",
"private void teclouEnter() {\n //menu principal\n if (this.getFocusOwner() == listaMenuPrincipal) {\n if (listaMenuPrincipal.getSelectedIndex() == 0 || listaMenuPrincipal.getSelectedIndex() == 1) {\n LoginGerenteSupervisor janelaLoginGerenteSupervisor = new LoginGerenteSupervisor(this, true);\n janelaLoginGerenteSupervisor.setLocationRelativeTo(null);\n janelaLoginGerenteSupervisor.setVisible(true);\n //supervisor\n if (listaMenuPrincipal.getSelectedIndex() == 0) {\n if (janelaLoginGerenteSupervisor.loginSupervisor(true)) {\n panelSubMenu.setVisible(true);\n ((CardLayout) panelCard.getLayout()).show(panelCard, \"cardSupervisor\");\n listaSubMenuSupervisor.requestFocus();\n listaSubMenuSupervisor.setSelectedIndex(0);\n }\n }\n //gerente\n if (listaMenuPrincipal.getSelectedIndex() == 1) {\n if (janelaLoginGerenteSupervisor.loginGerente(true)) {\n panelSubMenu.setVisible(true);\n ((CardLayout) panelCard.getLayout()).show(panelCard, \"cardGerente\");\n listaSubMenuGerente.requestFocus();\n listaSubMenuGerente.setSelectedIndex(0);\n }\n }\n }\n //saida temporaria\n if (listaMenuPrincipal.getSelectedIndex() == 2) {\n if ((SessaoUsuario.statusCaixa == SC_ABERTO)) {\n int escolha = JOptionPane.showOptionDialog(this, \"Deseja fechar o caixa temporariamente?\", \"Pergunta do Sistema\",\n JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE,\n null, opcoesResposta, null);\n if (escolha == JOptionPane.YES_OPTION) {\n try {\n NfceControllerGenerico<NfceMovimentoVO> movimentoController = new NfceControllerGenerico<>();\n SessaoUsuario.movimento.setStatusMovimento(\"T\");\n SessaoUsuario.usuario = null;\n movimentoController.atualizar(SessaoUsuario.movimento);\n\n telaPadrao();\n\n MovimentoAberto ma = new MovimentoAberto(this, true);\n ma.setLocationRelativeTo(null);\n ma.setVisible(true);\n telaPadrao();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, \"Erro ao registrar a saída temporária.\\n\" + ex.getMessage(), \"Aviso do Sistema\", JOptionPane.ERROR_MESSAGE);\n }\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Status do caixa não permite saída temporária.\", \"Aviso do Sistema\", JOptionPane.WARNING_MESSAGE);\n }\n }\n }\n //menu principal - submenu supervisor\n if (this.getFocusOwner() == listaSubMenuSupervisor) {\n //inicia movimento\n if (listaSubMenuSupervisor.getSelectedIndex() == 0) {\n iniciaMovimento();\n }\n //encerra movimento\n if (listaSubMenuSupervisor.getSelectedIndex() == 1) {\n encerraMovimento();\n }\n //suprimento\n if (listaSubMenuSupervisor.getSelectedIndex() == 3) {\n suprimento();\n }\n //sangria\n if (listaSubMenuSupervisor.getSelectedIndex() == 4) {\n sangria();\n }\n\n }\n //menu principal - submenu gerente\n if (this.getFocusOwner() == listaSubMenuGerente) {\n //inicia movimento\n if (listaSubMenuGerente.getSelectedIndex() == 0) {\n iniciaMovimento();\n }\n //encerra movimento\n if (listaSubMenuGerente.getSelectedIndex() == 1) {\n encerraMovimento();\n }\n //suprimento\n if (listaSubMenuGerente.getSelectedIndex() == 3) {\n suprimento();\n }\n //sangria\n if (listaSubMenuGerente.getSelectedIndex() == 4) {\n sangria();\n }\n }\n //menu operacoes\n if (this.getFocusOwner() == listaMenuOperacoes) {\n //carrega dav\n if (listaMenuOperacoes.getSelectedIndex() == 0) {\n if (SessaoUsuario.statusCaixa == SC_ABERTO) {\n CarregaOrcamento janelaCarregaOrcamento = new CarregaOrcamento(this, true);\n janelaCarregaOrcamento.setLocationRelativeTo(null);\n janelaCarregaOrcamento.setVisible(true);\n if (!janelaCarregaOrcamento.cancelado) {\n dav = janelaCarregaOrcamento.getOrcamento();\n if (dav != null) {\n fechaMenuOperacoes();\n try {\n carregaDAV();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Erro ao carregar o orçamento.\\n\" + e.getMessage(), \"Erro do Sistema\", JOptionPane.ERROR_MESSAGE);\n }\n }\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Já existe uma venda em andamento.\", \"Aviso do Sistema\", JOptionPane.INFORMATION_MESSAGE);\n }\n }\n\n //seleciona certificado digital\n if (listaMenuOperacoes.getSelectedIndex() == 1) {\n if (SessaoUsuario.statusCaixa != SC_VENDA_EM_ANDAMENTO) {\n selecionaCertificado();\n } else {\n JOptionPane.showMessageDialog(this, \"Existe uma venda em andamento.\", \"Aviso do Sistema\", JOptionPane.INFORMATION_MESSAGE);\n }\n }\n\n //consulta status serviço\n if (listaMenuOperacoes.getSelectedIndex() == 2) {\n SessaoUsuario.statusServico();\n }\n\n }\n }",
"public static void imprimeUsuarios( ) {\n\t\ttry {\n\t\t\tFileInputStream arq = new FileInputStream(\"database/usuarios.dat\");\n\t\t\tObjectInputStream in = new ObjectInputStream(arq);\n\t\t\tint i = 0;\n\t\t\n\t\t\tArrayList<Usuario> usuarios = new ArrayList<Usuario>();\n\t\t\t\n\t\t\ttry {\n\t\t\t for (;;) {\n\t\t\t \tUsuario aux;\n\t\t\t\t\taux = (Usuario) in.readObject();\n\t\t\t\t\tSystem.out.println(i + \"=\" + aux.getNome() + \";\" + aux.getCrm() + \";\" \n\t\t\t\t\t\t\t\t\t\t+ aux.getLogin() + \";\" + aux.getSenha());\n\t\t\t\t\tusuarios.add(aux);\n\t\t\t\t\ti++;\n\t\t\t }\n\t\t\t}\n\t\t\tcatch (EOFException exc) {\n\t\t\t // end of stream\n\t\t\t}\n\t\t\tcatch (IOException exc) {\n\t\t\t // some other I/O error: print it, log it, etc.\n\t\t\t exc.printStackTrace(); // for example\n\t\t\t}\n\t\t\t\t\n\t\t\tin.close();\n\t\t}\n\t\tcatch ( IOException exc2 ) {\n\t\t\tSystem.out.println(\"Erro ao ler o arquivo.\");\t\t\t\n\t\t}\n\t\tcatch ( ClassNotFoundException cnfex ) {\n\t\t\tSystem.out.println(\"Não achou a classe.\");\n\t\t}\n\t}",
"public void inserir(Filme obj) throws Exception {\n System.out.println(\"Salvar o objeto filme\");\r\n }",
"public void inicializar(Coleccion coleccion){\n cargador.inicializar();\n analizador.inicializar();\n gestorAlmacenamiento.inicializar(coleccion);\n\n }",
"private void inizia() throws Exception {\n this.setNomeChiave(CHIAVE_NAV);\n this.setUsaNuovo(false);\n this.setUsaElimina(false);\n this.setUsaRicerca(true);\n this.setUsaSelezione(true);\n this.setUsaStampaLista(false);\n this.setUsaProietta(false);\n this.setAggiornamentoTotaliContinuo(true);\n }",
"private void inicializarTablero() {\r\n\t\t\r\n\t\tfor(int i = 0; i < filas; i++) {\r\n\t\t\tfor(int j = 0; j < columnas; j++) {\r\n\t\t\t\tsuperficie[i][j] = null;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public ComprobanteContable createComprobante(\n Aerolinea a, Boleto boleto, Cliente cliente, String tipo) throws CRUDException {\n Optional op;\n ComprobanteContable comprobante = new ComprobanteContable();\n //ComprobanteContablePK pk = new ComprobanteContablePK();\n //pk.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n comprobante.setEstado(ComprobanteContable.EMITIDO);\n //comprobante.setComprobanteContablePK(pk);\n //creamos el concepto\n StringBuilder buff = new StringBuilder();\n\n // DESCRIPCION \n // AEROLINEA/ # Boleto / Pasajero / Rutas\n buff.append(a.getNumero());\n\n buff.append(\"/\");\n\n //numero boleto\n buff.append(\"#\");\n buff.append(boleto.getNumero());\n buff.append(\"/\");\n\n //Pasajero\n buff.append(boleto.getNombrePasajero().toUpperCase());\n\n // Rutas\n buff.append(\"/\");\n buff.append(boleto.getIdRuta1() != null ? boleto.getIdRuta1() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta2() != null ? boleto.getIdRuta2() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta3() != null ? boleto.getIdRuta3() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta4() != null ? boleto.getIdRuta4() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta5() != null ? boleto.getIdRuta5() : \"\");\n\n //jala el nombre cliente\n comprobante.setIdCliente(cliente);\n comprobante.setConcepto(buff.toString());\n comprobante.setFactorCambiario(boleto.getFactorCambiario());\n comprobante.setFecha(boleto.getFechaEmision());\n comprobante.setFechaInsert(boleto.getFechaInsert());\n comprobante.setIdEmpresa(boleto.getIdEmpresa());\n comprobante.setIdUsuarioCreador(boleto.getIdUsuarioCreador());\n comprobante.setTipo(tipo);\n\n //ComprobanteContablePK numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n Integer numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n comprobante.setIdNumeroGestion(numero);\n comprobante.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n\n return comprobante;\n }"
]
| [
"0.6447047",
"0.552751",
"0.52150106",
"0.51846343",
"0.50933486",
"0.5084806",
"0.50732905",
"0.5024617",
"0.50168765",
"0.5007771",
"0.5000473",
"0.49877328",
"0.49435103",
"0.49163505",
"0.49128678",
"0.4910142",
"0.48618197",
"0.48358425",
"0.4828412",
"0.4782984",
"0.47779012",
"0.4777151",
"0.4777151",
"0.47608545",
"0.4741938",
"0.4741093",
"0.47315866",
"0.4723269",
"0.47179714",
"0.47047943",
"0.46850097",
"0.4674492",
"0.46733043",
"0.46727604",
"0.46541232",
"0.46452063",
"0.4638251",
"0.4632903",
"0.46219558",
"0.46218413",
"0.46028528",
"0.459447",
"0.45938617",
"0.4582599",
"0.45765525",
"0.45566407",
"0.4539228",
"0.45361462",
"0.45237604",
"0.4522819",
"0.45182118",
"0.45165607",
"0.45159054",
"0.45083135",
"0.4501597",
"0.44980034",
"0.44966307",
"0.44916737",
"0.44902194",
"0.44877008",
"0.44874462",
"0.4487233",
"0.4485194",
"0.4482315",
"0.44817883",
"0.44797456",
"0.4479511",
"0.4478592",
"0.44761866",
"0.4468955",
"0.44671136",
"0.4463224",
"0.4463014",
"0.44578218",
"0.44567612",
"0.4440448",
"0.44388855",
"0.44379273",
"0.44354355",
"0.4431968",
"0.4429503",
"0.4425584",
"0.4425432",
"0.44245797",
"0.44206905",
"0.4411723",
"0.4407247",
"0.44058764",
"0.43965772",
"0.43923628",
"0.43919513",
"0.43910456",
"0.43906298",
"0.4386887",
"0.4386403",
"0.43836907",
"0.4379008",
"0.4378644",
"0.4378332",
"0.4373548"
]
| 0.627391 | 1 |
Permite salvar o labirinto escrito, valindandoo. Habilita o botao de execucao do labirinto, abrindo uma janela para selecionar a pasta a ser salvo o arquivo, copiando o conteudo do visor para o mesmo. Posteriormente, o lab e instanciado com esse conteudo e, caso houver alguma incongruencia com o labirinto a ser salvo, e exibido o erro no log de erros e o arquivo e apagado. Caso nao ocorra nenhum erro, o metodo e finalizado. | private void btnSalvarLabirinto(){
info.setText(" ");
botao[3].setEnabled(true);
log.setText("Log de erros");
JFileChooser arquivo = new JFileChooser();
arquivo.setDialogTitle("Salvar Arquivo");
int userSelection = arquivo.showSaveDialog(visor);
FileWriter salvar = null;
File f = null;
try{
if (userSelection == JFileChooser.APPROVE_OPTION) {
salvar = new FileWriter(arquivo.getSelectedFile());
f = arquivo.getSelectedFile();
nome = f.getName();
int n = visor.getLineCount();
salvar.write(n + "\n");
salvar.write(visor.getText());
salvar.close();
}
}catch(IOException e){}
CriaLabirinto texto = new CriaLabirinto();
try{
lab = texto.labirinto(nome);
}
catch(Exception erro1){
log.setText(erro1.getMessage());
f.delete();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void salir(){\r\n\t\tif(Gestion.isModificado()){\r\n\t\t\tint opcion = JOptionPane.showOptionDialog(null, \"¿Desea guardar los cambios?\", \"Salir\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null,null, null);\r\n\t\t\tswitch(opcion){\r\n\t\t\tcase JOptionPane.YES_OPTION:\r\n\t\t\t\tguardar();\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.NO_OPTION:\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.CANCEL_OPTION:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.exit(0);\r\n\t}",
"@Override\n\tpublic void salvaSuFile() {\n\t\tString path = \"alimenti.txt\";\n\t\tString allergeni = Alimento.getStringaAllergeni(getElencoAllergeni());\n\t\ttry {\n\t\t\tFile file = new File(path);\n\t\t\tFileWriter fw = new FileWriter(file, true);\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\tbw.write(getNome() + \" - \" + getPrezzo() + \"€\\n\");\n\t\t\tbw.write(\"Adatto a vegani: \" + (getVegano() ? \"sì\\n\" : \"no\\n\"));\n\t\t\tbw.write(\"Adatto a vegetariani: \" + (getVegetariano() ? \"sì\\n\" : \"no\\n\"));\n\t\t\tbw.write(\"Tipologia: \" + getTipoPortata().getNome().toUpperCase() + \"\\n\");\n\t\t\tbw.write(\"Cottura: \" + getTipoCottura().getNome().toUpperCase() + \"\\n\");\n\t\t\tbw.write(\"Allergeni: \" + (allergeni.isEmpty() ? \"--\" : allergeni) + \"\\n\\n\");\n\t\t\tbw.flush();\n\t\t\tbw.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void btnExecutarLabirinto(){\n log.setText(\"Log de erros\");\n botao[2].setEnabled(false);\n try{\n lab.encontrarAdj();\n lab.andadinha();\n info.setText(\" \");\n visor.setText(lab.toString());\n\n Pilha<Coordenada> caminho = lab.getCaminho();\n Pilha<Coordenada> inverso = new Pilha<Coordenada>();\n while(!caminho.isVazia())\n {\n inverso.guardeUmItem(caminho.recupereUmItem());\n caminho.removaUmItem();\n }\n\n log.setText(\"Caminho percorrido: \");\n while(!inverso.isVazia())\n {\n log.setText(log.getText() + inverso.recupereUmItem().toString() + \" \");\n inverso.removaUmItem();\n }\n }\n catch(Exception erro1){\n log.setText(erro1.getMessage());\n }\n\t\t}",
"private void btnAbrirLabirinto(){\n\t\t\tbotao[2].setEnabled(true);\n botao[3].setEnabled(true);\n log.setText(\"Log de erros\");\n\t\t\tinfo.setText(\" \");\n JFileChooser arquivo = new JFileChooser();\n\t\t\tarquivo.setCurrentDirectory(new File(System.getProperty(\"user.home\")));\n\t\t\tint result = arquivo.showOpenDialog(visor);\n\t\t\tif (result == JFileChooser.APPROVE_OPTION) {\n \t\tFile selectedFile = arquivo.getSelectedFile();\n nome = selectedFile.getName();\n\t\t\t}\n \n BufferedReader in = null;\n try{\n in = new BufferedReader(new FileReader(nome));\n in.readLine();\n visor.setText(\"\");\n String str;\n str = in.readLine();\n visor.setText(str);\n while((str = in.readLine()) != null){\n visor.setText(visor.getText() + \"\\n\" + str);\n }\n in.close();\n } catch(IOException e){}\n \n CriaLabirinto texto = new CriaLabirinto();\n try{\n\t\t lab = texto.labirinto(nome);\n\t }\n\t catch(Exception erro1){\n\t\t\t log.setText(erro1.getMessage());\n\t }\n }",
"static void cerrarSalida(){\n if (escritor!=null){\n try {\n escritor.close();\n } catch (IOException ex) {\n System.out.println(\"Error al cerrar el archivo\");\n }\n }\n }",
"public void salvaAula()\n { \n JFileChooser fileChooser = new JFileChooser();\n String strFilePlan = \"out/\" + this.myAula.getNome()+ \"_plan\"+ \".png\";\n System.out.println(\"scrivo su file \"+ strFilePlan);\n File fp = new File(strFilePlan);\n String strFileDati = \"out/\" + this.myAula.getNome()+ \"_dati\"+ \".png\";\n File fd = new File(strFileDati);\n fileChooser.setSelectedFile(fd);\n try\n { \n ImageIO.write(this.getPlan(), \"png\", fp);\n ImageIO.write(this.getDati(), \"png\", fd);\n }\n catch (Exception ex)\n {\n System.out.println(\"errore in Salvataggio aula su file\");\n }\n \n JOptionPane.showMessageDialog(this, \"file salvati correttamente sotto cartella /out\",\"Info\", JOptionPane.INFORMATION_MESSAGE);\n }",
"private void guardar() {\n\t\t//JFileChooser fglobal = principal.getFglobal();\n\t\tprincipal.getFglobal().setDialogTitle(ic.buscar(38)); // Tag 38\n\n\t\t\tprincipal.getFglobal().setDialogType(JFileChooser.SAVE_DIALOG);\n\n\t\tAccesorio pep = new Accesorio(principal.getFglobal(),t, principal.getIC());\n\t\tprincipal.getFglobal().setAccessory(pep);\n\t\tpep.setProfundidad(true);\n\t\t\n principal.getFglobal().resetChoosableFileFilters();\n \n ExampleFileFilter filtroT = new ExampleFileFilter (\n new String [] {\"tiff\",\n \"tif\",\n },\n ic.buscar(3)); // Tag 3\n \n\n \n\t\t\t\n ExampleFileFilter filtroJ = new ExampleFileFilter (\n new String [] {\"jpeg\",\n \"jpg\"\n },\n ic.buscar(4)); // Tag 4\n principal.getFglobal().addChoosableFileFilter(filtroT);\n principal.getFglobal().addChoosableFileFilter(filtroJ);\n\t\t\n\t\t\n\t\t\n\t\tint retval = principal.getFglobal().showDialog(t, null);\n\t\tif (retval == JFileChooser.APPROVE_OPTION) \n\t\t{\t\t\n\t\t\tFile guardar = principal.getFglobal().getSelectedFile();\n \n\t\t\tif (\tprincipal.getFglobal().getFileFilter().getDescription().equals(filtroJ.getDescription()) )\n\t\t\t{// Guardar como JPEG\n \n\t\t\t\tJAI.create(\"filestore\",imagen_original,guardar.getPath(),\"JPEG\", new JPEGEncodeParam());\n\t\t\t}\n\t\t\telse if (principal.getFglobal().getFileFilter().getDescription().equals(filtroT.getDescription()))\n\t\t\t{// Guardar como TIFF\n\t\t\t\tint profundidad = pep.getEP().getMarcada();\n\t\t\t\t// Cubre todas las posibilidades (¿esto guarda los metadatos?)\n\t\t\t\tTiledImage tiled = null;\n\t\t\t\tif (profundidad != ElegirProfundidad.OCHO)\n\t\t\t\t{\n\t\t\t\t\ttiled = \n ElegirProfundidad.crearProfundidadReducida(\n ipixel_o, \n profundidad, \n imagen_original.getWidth(), \n imagen_original.getHeight());\n\t\t\t\t}\n\n\t\t\t\t//imgGuardar = djai.getSource();\n\t\t\t\tParameterBlock pb = new ParameterBlock();\n\t\t\t\tif (profundidad != ElegirProfundidad.OCHO)\n\t\t\t\t{\n\t\t\t\t\tpb.addSource(tiled);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tpb.addSource(imagen_original);\n\t\t\t\t}\n\t\t\t\tpb.add(guardar);\n\t\t\t\tpb.add(\"TIFF\");\n\t\t\t\tpb.add(false); //UseProperties\n\t\t\t\tpb.add(false); //Transcode\n\t\t\t\tpb.add(true); //VerifyOutput\n\t\t\t\tpb.add(false); //AllowPixelReplacement\n\t\t\t\tpb.add(null); //TileSize\n\t\t\t\tpb.add(streamData);\n\t\t\t\tpb.add(imageData);\n\t \t\t\tJAI.create(\"imagewrite\", pb);\n\t\t\t\t\n\t\t\t\t//JAI.create(\"imagewrite\",tiled,guardar.getPath(),\"TIFF\");\n\t\t\t}\n\t\t\telse\n\t\t\t{// No tiene extensión o es una extensión extraña\n\t\t\t\tJAI.create(\"imagewrite\",imagen_original,guardar.getPath()+\".tif\",\"TIFF\");\n\t\t\t}\n\t\t\t\n\t\t}\t\t\t \n\t\telse \n\t\t{\n\t\t\tdibujarMensajesError(retval);\n\t\t} \n\t\t\n\t\t\n\t}",
"public void insercionMasiva() {\r\n\t\tif (!precondInsert())\r\n\t\t\treturn;\r\n\t\tUploadItem fileItem = seleccionUtilFormController.crearUploadItem(\r\n\t\t\t\tfName, uFile.length, cType, uFile);\r\n\t\ttry {\r\n\t\t\tlLineasArch = FileUtils.readLines(fileItem.getFile(), \"ISO-8859-1\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tstatusMessages.add(Severity.INFO, \"Error al subir el archivo\");\r\n\t\t}\r\n\r\n\t\tStringBuilder cadenaSalida = new StringBuilder();\r\n\t\tString estado = \"EXITO\";\r\n\t\tcantidadLineas = 0;\r\n\t\t//Ciclo para contar la cantdad de adjudicados o seleccionados que se reciben\r\n\t\tfor (String linea : lLineasArch) {\r\n\t\t\tcantidadLineas++;\r\n\t\t\tif(cantidadLineas > 1){\r\n\t\t\t\tseleccionados++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Condicion para verificar si la cantidad de seleccionados es mayor a la cantidad de vacancias (en cuyo caso se procede a abortar el proceso e imprimir\r\n\t\t//un mensaje de error) o verificar si esta es menor (se imprime el mensaje pero se continua)\r\n\t\t\r\n\t\tif(seleccionados > concursoPuestoAgrNuevo.getCantidadPuestos()){\r\n\t\t\testado = \"FRACASO\";\r\n\t\t\tcadenaSalida.append(estado + \" - CANTIDAD DE AJUDICADOS ES SUPERIOR A LA CANTIDAD DE PUESTOS VACANTES PARA EL GRUPO\");\r\n\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t}\r\n\t\telse if(seleccionados < concursoPuestoAgrNuevo.getCantidadPuestos()){\r\n\t\t\tcadenaSalida.append(\"ADVERTENCIA - CANTIDAD DE ADJUDICADOS ES INFERIOR A LA CANTIDAD DE PUESTOS VACANTES PARA EL GRUPO\");\r\n\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t}\r\n\t\tseleccionados = 0;\r\n\t\t\r\n\t\tif(!estado.equals(\"FRACASO\")){\r\n\r\n\t\tcantidadLineas = 0;\r\n\t\tfor (String linea : lLineasArch) {\r\n\r\n\t\t\tcantidadLineas++;\r\n\t\t\testado = \"EXITO\";\r\n\t\t\tString observacion = \"\";\r\n\t\t\tFilaPostulante fp = new FilaPostulante(linea);\r\n\t\t\tList<Persona> lista = null;\r\n\t\t\tif (cantidadLineas > 1 && fp != null && fp.valido) {\r\n\t\t\t\t//Verifica si la persona leida en el registro del archivo CSV existe en la Tabla Persona\r\n\t\t\t\tString sqlPersona = \"select * from general.persona where persona.documento_identidad = '\"+fp.getDocumento()+ \"'\";\r\n\t\t\t\tQuery q1 = em.createNativeQuery(sqlPersona, Persona.class);\r\n\t\t\t\tPersona personaLocal = new Persona();\r\n\t\t\t\tint banderaEncontroPersonas = 0;\r\n\t\t\t\t//Si existe, se almacena el registro de la tabla\r\n\t\t\t\tif(!q1.getResultList().isEmpty()){\r\n\t\t\t\t\tlista = q1.getResultList();\r\n\t\t\t\t\tif (compararNomApe(lista.get(0).getNombres(), removeCadenasEspeciales(fp.getNombres()))\r\n\t\t\t\t\t\t\t&& compararNomApe(lista.get(0).getApellidos(), removeCadenasEspeciales(fp.getApellidos())) ) {\r\n\t\t\t\t\t\t\tbanderaEncontroPersonas = 1;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\t\t\tobservacion += \" PERSONA NO REGISTRADA EN LA BASE DE DATOS LOCAL\";\r\n\t\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\tobservacion += \" PERSONA NO REGITRADA EN LA BASE DE DATOS LOCAL\";\r\n\t\t\t\t}\r\n\t\t\t\t//Verificamos que la persona figure en la lista corta como seleccionado\r\n\t\t\t\tif(!estado.equals(\"FRACASO\")){\r\n\t\t\t\t\tint banderaExisteEnListaCorta = 0;\t\t\t\t\t\r\n\t\t\t\t\tint i=0;\r\n\t\t\t\t\tif (banderaEncontroPersonas == 1) {\r\n\t\t\t\t\t\twhile(i<lista.size()){\r\n\t\t\t\t\t\t\tpersonaLocal = (Persona) lista.get(i);\r\n\t\t\t\t\t\t\tQuery p = em.createQuery(\"select E from EvalReferencialPostulante E \"\r\n\t\t\t\t\t\t\t\t\t+ \"where E.postulacion.personaPostulante.persona.idPersona =:id_persona and E.concursoPuestoAgr.idConcursoPuestoAgr =:id_concurso_puesto_agr and E.listaCorta=:esta_en_lista_corta\");\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"id_persona\", personaLocal.getIdPersona());\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"id_concurso_puesto_agr\", this.idConcursoPuestoAgr);\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"esta_en_lista_corta\", true);\r\n\t\t\t\t\t\t\tList<EvalReferencialPostulante> listaEvalRefPost = p.getResultList();\r\n\t\t\t\t\t\t\tif (!listaEvalRefPost.isEmpty()) {\r\n\t\t\t\t\t\t\t\tbanderaExisteEnListaCorta = 1;\r\n\t\t\t\t\t\t\t\ti = lista.size();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (banderaExisteEnListaCorta == 0) {\r\n\t\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\t\tobservacion += \" NO SELECCIONADO/ELEGIBLE EN LISTA CORTA\";\r\n\t\t\t\t\t} else if (banderaExisteEnListaCorta == 1){\r\n\t\t\t\t\t\tobservacion += \" SELECCIONADO/ELEGIBLE EN LISTA CORTA\";\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tQuery p = em.createQuery(\"select E from EvalReferencialPostulante E \"\r\n\t\t\t\t\t\t\t\t+ \"where E.postulacion.personaPostulante.persona.idPersona =:id_persona and E.concursoPuestoAgr.idConcursoPuestoAgr =:id_concurso_puesto_agr and E.listaCorta=:esta_en_lista_corta\");\r\n\t\t\t\t\t\t\t\tp.setParameter(\"id_persona\", personaLocal.getIdPersona());\r\n\t\t\t\t\t\t\t\tp.setParameter(\"id_concurso_puesto_agr\", this.idConcursoPuestoAgr);\r\n\t\t\t\t\t\t\t\tp.setParameter(\"esta_en_lista_corta\", true);\r\n\t\t\t\t\t\tEvalReferencialPostulante auxEvalReferencialPostulante = (EvalReferencialPostulante) p.getResultList().get(0);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Validaciones para actualizaciones\r\n\t\t\t\t\t\t//Bandera indicadora de actualizaciones hechas\r\n\t\t\t\t\t\tint bandera = 0;\r\n\t\t\t\t\t\tif(auxEvalReferencialPostulante.getSelAdjudicado() == null){\r\n\t\t\t\t\t\t\testado = \"EXITO\";\r\n\t\t\t\t\t\t\tauxEvalReferencialPostulante.setSelAdjudicado(true);;\r\n\t\t\t\t\t\t\tbandera = 1;\r\n\t\t\t\t\t\t\tem.merge(auxEvalReferencialPostulante);\r\n\t\t\t\t\t\t\tem.flush();\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\tagregarEstadoMotivo(linea, estado, observacion, cadenaSalida);\r\n\t\t\t}\r\n\t\t\tif (cantidadLineas > 1 && !fp.valido) {\r\n\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\tcadenaSalida\r\n\t\t\t\t\t\t.append(estado\r\n\t\t\t\t\t\t\t\t+ \" - ARCHIVO INGRESADO CON MENOS CAMPOS DE LOS NECESARIOS. DATOS INCORRECTOS EN ALGUNA COLUMNA.\");\r\n\t\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t\t}\r\n\r\n\t\t\t// FIN FOR\r\n\t\t}\r\n\t\t//FIN IF\r\n\t\t}\r\n\t\tif (lLineasArch.isEmpty()) {\r\n\t\t\tstatusMessages.add(Severity.INFO, \"Archivo inválido\");\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tSimpleDateFormat sdf2 = new SimpleDateFormat(\"dd_MM_yyyy_HH_mm_ss\");\r\n\t\t\tString nArchivo = sdf2.format(new Date()) + \"_\" + fName;\r\n\t\t\tString direccion = System.getProperty(\"jboss.home.dir\") + System.getProperty(\"file.separator\") + \"temp\" + System.getProperty(\"file.separator\");\r\n\t\t\tFile archSalida = new File(direccion + nArchivo);\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tFileUtils\r\n\t\t\t\t\t\t.writeStringToFile(archSalida, cadenaSalida.toString());\r\n\t\t\t\tif (archSalida.length() > 0) {\r\n\t\t\t\t\tstatusMessages.add(Severity.INFO, \"Insercion Exitosa\");\r\n\t\t\t\t}\r\n\t\t\t\tJasperReportUtils.respondFile(archSalida, nArchivo, false,\r\n\t\t\t\t\t\t\"application/vnd.ms-excel\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tstatusMessages.add(Severity.ERROR, \"IOException\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void salvar() throws Exception {\n if(stb == null)\n throw new Exception(Main.recursos.getString(\"bd.objeto.nulo\"));\n\n // Restrição provisória para aumentar a performance do programa\n if(stb.getIdSubTipoBanca() != -1)\n return;\n\n // Primeiro verifica se existe o subtipo de banca\n Transacao.consultar(\"SELECT idSubTipoBanca FROM subTipoBanca WHERE nome LIKE '\"+ stb.getNome() +\"'\");\n if(Transacao.getRs().first())\n stb.setIdSubTipoBanca(Transacao.getRs().getInt(\"idSubTipoBanca\"));\n\n String sql = \"\";\n\n if(stb.getIdSubTipoBanca() == -1)\n sql = \"INSERT INTO subTipoBanca VALUES(null, '\"+ stb.getNome() +\"')\";\n else\n sql = \"UPDATE subTipoBanca SET nome = '\"+ stb.getNome() +\"' WHERE idSubTipoBanca = \" + stb.getIdSubTipoBanca();\n\n \n Transacao.executar(sql);\n \n // Se foi uma inserção, deve trazer o id do subtipo para o objeto\n if(stb.getIdSubTipoBanca() == -1){\n Transacao.consultar(\"SELECT LAST_INSERT_ID() AS ultimo_id\");\n if(Transacao.getRs().first())\n stb.setIdSubTipoBanca(Transacao.getRs().getInt(\"ultimo_id\"));\n }\n }",
"static void escribir(Planeta planeta_a_escribir) {\n if (escritor != null) {\n try {\n escritor.writeObject(planeta_a_escribir);\n \n } catch (IOException ex) {\n System.out.println(\"Error al escribir el archivo\");\n }\n }\n }",
"public void salvarArquivo() throws ACBrException {\n int ret = ACBrAACInterop.INSTANCE.AAC_SalvarArquivo(getHandle());\n checkResult(ret);\n }",
"@Override\n public void incluir(Colaborador objeto)throws Exception {\n try {\n System.out.println(\"Estou Gravando no Arquivo\" + nomeDoArquivoNoDisco);\n FileWriter fw = new FileWriter(nomeDoArquivoNoDisco, true);\n //Criar o buffer do arquivo\n BufferedWriter bw = new BufferedWriter(fw);\n //Escreve no arquivo\n bw.write(objeto.toString() + \"\\n\");\n //Fechar o arquivo\n bw.close();\n } catch (Exception erro) {\n throw erro;\n }\n }",
"private void saveAs(String newLabName){\n // Call Clone Script, feeding in the new lab name\n // Call python new_lab_script: new_lab_setup.py -c newLabName\n String cmd = \"new_lab_setup.py -c \"+newLabName;\n doLabCommand(cmd); \n // Rename to current lab and set the path to the new lab\n this.labName = newLabName;\n LabnameLabel.setText(\"Lab: \"+this.labName);\n this.currentLab = new File(labsPath+File.separator+this.labName);\n this.labDataCurrent.setName(this.labName);\n this.labDataCurrent.setPath(this.currentLab);\n\n // Write the current state to the new lab's start.config\n try {\n saveLab();\n } \n catch (FileNotFoundException ex) {\n Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n // Make the Save As Dialo disappear\n SaveAsDialog.setVisible(false);\n }",
"private void createNewLab(){\n String newLabName = NewLabNameTextfield.getText();\n // If lab doesn't exist make the new lab\n if(!Arrays.asList(labsPath.list()).contains(newLabName)){ \n try{\n LabExistLabel.setVisible(false);\n NewLabDialog.revalidate();\n //call python new_lab_script: new_lab_setup.py -b basename \n File labdir = new File(labsPath+File.separator+newLabName);\n labdir.mkdir();\n this.labName = newLabName;\n String cmd = \"new_lab_setup.py -b \"+NewLabBaseImageComboBox.getSelectedItem();\n doLabCommand(cmd);\n \n // Close the new lab dialog and open the new lab\n NewLabDialog.setVisible(false);\n openLab(new File(labsPath+File.separator+newLabName));\n } \n catch (IOException e){\n System.out.println(e);\n }\n }\n else{\n LabExistLabel.setVisible(true);\n NewLabDialog.revalidate();\n System.out.println(\"Lab already exists. Make the lab with a different name other than:\");\n printExistingLabs();\n }\n }",
"public void errorFileEscenario() {\n\t\tvisorEscenario.errorFileEscenario();\t\n\t}",
"public void Sair() {\r\n\t\t\t\r\n\t\t\tnome = JOptionPane.showInputDialog(\"Informe o seu nome ou SAIR para finalizar\");\r\n }",
"private void cerrarSalRegistro(){\n try{\n if(salRegistro != null)\n salRegistro.close();\n }\n catch(IOException iOException){\n System.err.println(\"Error al cerrar el archivo. Terminado.\");\n System.exit(1);\n }\n }",
"private void cerrarSalNuevoMaest(){\n try{\n if(salNuevoMaest != null)\n salNuevoMaest.close();\n }\n catch(IOException iOException){\n System.err.println(\"Error al cerrar el archivo. Terminado.\");\n System.exit(1);\n }\n }",
"private void salvar() {\n setaCidadeBean();\n //Instanciamos o DAO\n CidadeDAO dao = new CidadeDAO();\n //verifica qual será a operação de peristência a ser realizada\n if (operacao == 1) {\n dao.inserir(cidadeBean);\n }\n if (operacao == 2) {\n dao.alterar(cidadeBean);\n }\n habilitaBotoesParaEdicao(false);\n reiniciaTela();\n }",
"public void crearSala(String color, int SalaoLab, String nombre, String actividad, int capacidad, int computadores, int datas, int mesas,\n int pizarras, int telones, int sillas) {\n for (int i = 0; i < edificios.size(); i++) {\n Edificio edificioActual = edificios.get(i);\n if (edificioActual.getColor().equals(color)) {\n if (SalaoLab == 0){\n edificioActual.agregarSalaClases(nombre, actividad, capacidad, computadores, datas, mesas,\n pizarras, telones, sillas);\n }\n else{\n edificioActual.agregarLaboratorio(nombre, actividad, capacidad, computadores, datas, mesas, pizarras,\n telones, sillas);\n }\n }\n }\n\n }",
"public void salvarNoBanco() {\n\n try {\n ofertaDisciplinaFacade.save(oferta);\n// JsfUtil.addSuccessMessage(\"Pessoa \" + pessoa.getNome() + \" criado com sucesso!\");\n oferta= null;\n// recriarModelo();\n } catch (Exception e) {\n JsfUtil.addErrorMessage(e, \"Ocorreu um erro de persistência\");\n }\n }",
"public void arquivoSaida() {\r\n\r\n try {\r\n File file = new File(\"arquivoSaida.txt\");\r\n try (FileWriter arquivoSaida = new FileWriter(file, true)) {\r\n arquivoSaida.write(\"Rota do menor caminho entre as cidades escolhidas: \\n\\n\");\r\n Vertice v;\r\n \r\n //Escreve no arquivo a rota de ida de entrega nas cidades\r\n for (int i = 0; i < rota.getLista_de_rota().size() - 1; i++) {\r\n for (int j = 0; j < rota.getLista_de_rota().get(i).size(); j++) {\r\n v = rota.getLista_de_rota().get(i).get(j);\r\n arquivoSaida.write(v.getId() + \"; \");\r\n }\r\n }\r\n \r\n arquivoSaida.write(\"\\n\\nRota do menor caminho de volta: (Considerando que não há mais nenhuma entrega)\\n\\n\");\r\n // pegando a ultima posição da lista geral em que está a lista do menor caminho de volta\r\n int t = rota.getLista_de_rota().size() - 1; \r\n \r\n //Escreve a rota do caminho de volta, verificando a distancia entre a cidade origem e a cidade destino\r\n for (int j = rota.getLista_de_rota().get(t).size() - 1; j >= 0; j--) {\r\n v = (Vertice) rota.getLista_de_rota().get(t).get(j);\r\n arquivoSaida.write(v.getId() + \"; \");\r\n }\r\n arquivoSaida.write(\"Distancia percorrida: \"+rota.getDistancia()+\"\\n\");\r\n arquivoSaida.close();\r\n }\r\n } catch (IOException ex) { //caso nao seja possivel abrir algum dos arquivos\r\n System.out.println(\"Não foi possivel abrir arquivo\");\r\n }\r\n }",
"@Override\n\tpublic void salir() {\n\t\t\n\t}",
"private void doSalvar() {\n populaContato();\n dispatcher.execute(new SalvarContatoAction(contato),\n new AsyncCallback<SalvarContatoResult>() {\n @Override\n public void onFailure(Throwable caught) {\n ShowMsgEvent.fire(CadastroContatoPresenter.this, \"Erro: \" + caught.getLocalizedMessage(),\n AlertType.ERROR);\n }\n\n @Override\n public void onSuccess(SalvarContatoResult result) {\n for (String msg : result.getMensagem()) {\n ShowMsgEvent.fire(CadastroContatoPresenter.this, msg,\n result.isOk() ? AlertType.SUCCESS : AlertType.ERROR);\n }\n contato = result.getContatoAtualizado();\n AtualizarListaDeContatosEvent.fire(CadastroContatoPresenter.this);\n }\n });\n }",
"@Override\n\tpublic void ejecutar() {\n\t\tcontrolador.resetPartida();\n\n\t}",
"public static void deixarDeSeguir() throws IOException, InterruptedException {\n\n clearScreen();\n Scanner input = new Scanner(System.in);\n System.out.println(\"Qual tópico deseja deixar de seguir?\");\n System.out.print(\"> \");\n String topico = input.next();\n\n File file = new File(user+\".txt\");\n FileWriter writer = new FileWriter(user+\".txt\",true);\n BufferedReader reader = new BufferedReader(new FileReader(file));\n\n x = new Scanner(new File(user+\".txt\")); // ficheiro com o nome do utilizador onde guarda as suas subscricoes\n \n\n boolean existe = false;\n\n while(x.hasNext()){\n String a = x.next();\n String b = x.next();\n\n if(a.equals(topico)) // verificar se segue o topico que colocou\n existe = true;\n }\n\n if(existe == false){\n System.out.println(\"\\033[1mO tópico \"+ topico + \" não existe!\\033[0m\"); // verificar se o topico existe\n TimeUnit.SECONDS.sleep(2);\n deixarDeSeguir();\n return;\n }\n \n try\n {\n \n String line = \"\", oldtext = \"\",linha=\"\", newTexto=\"\";\n while((line = reader.readLine()) != null)\n {\n oldtext += line + \"\\r\\n\";\n if(line.contains(topico))\n linha = line + \"\\r\\n\";\n }\n reader.close();\n\n newTexto = oldtext.replaceAll(linha,\"\"); // apagar a linha que contem o topico subscrito, apagando-o\n PrintWriter pw = new PrintWriter(user+\".txt\");\n writer.write(newTexto);writer.close();\n\n System.out.println(\"\\033[1mDeixou de seguir \" + topico + \" com sucesso!\\033[0m\");\n \n }\n \n catch (IOException ioe)\n {\n ioe.printStackTrace();\n }\n\n }",
"@Override\n\tpublic void executeOp() {\n try {\n // Make a bunch of shit that will allow us to write to the file\n FileWriter fw = new FileWriter(file.getAbsoluteFile());\n BufferedWriter bw = new BufferedWriter(fw);\n\n // Write the text that's in our notepad to the file\n bw.write(textArea.getText());\n\n // Close the \"stream\"\n bw.close();\n\n // If the attempt fails, display the error message - then give up.\n } catch (IOException ioe) {\n JOptionPane.showMessageDialog(frame, \"PROBLEM SAVING\");\n }\n\t}",
"public void guardarArchivo(String objeto, String nombre,Context context) throws FileSaverException{\n String msg;\n switch(TIPO_ESCRITURA){\n case MEMORIA_EXTERNA:{\n contexto = context;\n msg = contexto.getResources().getString(R.string.fileSaverInicioEscrituraExterna);\n Log.v(TAG,msg);\n guardarArchivoMemoriaExterna(objeto,nombre,Activity.MODE_PRIVATE);\n break;\n }\n case MEMORIA_INTERNA:{\n contexto=context;\n msg = contexto.getResources().getString(R.string.fileSaverInicioEscrituraInterna);\n Log.v(TAG,msg);\n guardarArchivoMemoriaInterna(objeto,nombre,Activity.MODE_PRIVATE);\n break;\n }\n default:\n msg = context.getResources().getString(R.string.fileSaverErrorEscrituraLocal);\n throw new FileSaverException(msg);\n }\n }",
"private void saveLab(boolean usetmp) throws FileNotFoundException{\n //Get path to start.config\n String startConfigPath;\n if(!usetmp){\n startConfigPath = currentLab.getPath()+File.separator+\"config\"+File.separator+\"start.config\";\n }else{\n startConfigPath = currentLab.getPath()+File.separator+\"config\"+File.separator+\"start.config\";\n }\n PrintWriter writer = new PrintWriter(startConfigPath);\n String startConfigText = \"\"; \n \n // Write Global Params\n for(String line : labDataCurrent.getGlobals()){\n startConfigText += line+\"\\n\";\n }\n\n // Cycle through network objects and write\n Component[] networks = NetworkPanePanel.getComponents();\n for(Component network : networks){\n NetworkData data = ((NetworkObjPanel)network).getConfigData();\n startConfigText += \"NETWORK \"+data.name+\"\\n\";\n startConfigText += \" MASK \"+data.mask+\"\\n\";\n startConfigText += \" GATEWAY \"+data.gateway+\"\\n\";\n \n if(data.macvlan > 0){\n startConfigText += \" MACVLAN \"+data.macvlan+\"\\n\";\n }\n if(data.macvlan_ext > 0){\n startConfigText += \" MACVLAN_EXT\" +data.macvlan_ext+\"\\n\";\n }\n \n if(!data.ip_range.isEmpty()){\n startConfigText += \" IP_RANGE \"+data.ip_range+\"\\n\";\n } \n\n if(data.tap){\n startConfigText += \" TAP YES\"+\"\\n\";\n }\n for(String unknownParam : data.unknownNetworkParams){\n startConfigText += \" \"+unknownParam+\"\\n\";\n }\n }\n \n // Cycle through container objects and write \n Component[] containers = ContainerPanePanel.getComponents();\n for(Component container : containers){\n ContainerData data = ((ContainerObjPanel)container).getConfigData(); \n startConfigText += \"CONTAINER \"+data.name+\"\\n\";\n startConfigText += \" USER \"+data.user+\"\\n\";\n if(data.script.isEmpty()){\n startConfigText += \" SCRIPT NONE\\n\";\n }\n else{\n startConfigText += \" SCRIPT \"+data.script+\"\\n\"; \n }\n \n if(data.x11){\n startConfigText += \" X11 YES\\n\"; \n }\n else{\n startConfigText += \" X11 NO\\n\";\n }\n // Not default\n if(data.terminal_count != 1)\n startConfigText += \" TERMINALS \"+data.terminal_count+\"\\n\";\n if(!data.terminal_group.isEmpty())\n startConfigText += \" TERMINAL_GROUP \"+data.terminal_group+\"\\n\";\n if(!data.xterm_title.isEmpty())\n startConfigText += \" XTERM \"+data.xterm_title+\" \"+data.xterm_script+\"\\n\";\n if(!data.password.isEmpty())\n startConfigText += \" PASSWORD \"+data.password+\"\\n\";\n for(LabData.ContainerAddHostSubData addHost : data.listOfContainerAddHost){\n if(addHost.type.equals(\"network\"))\n startConfigText += \" ADD-HOST \"+addHost.add_host_network+\"\\n\";\n else if(addHost.type.equals(\"ip\"))\n startConfigText += \" ADD-HOST \"+addHost.add_host_host+\":\"+addHost.add_host_ip+\"\\n\"; \n }\n for(LabData.ContainerNetworkSubData network : data.listOfContainerNetworks){\n startConfigText += \" \"+network.network_name+\" \"+network.network_ipaddress+\"\\n\"; \n }\n if(data.clone > 0){\n startConfigText += \" CLONE \"+data.clone+\"\\n\";\n }\n if(!data.lab_gateway.isEmpty()){\n startConfigText += \" LAB_GATEWAY \"+data.lab_gateway+\"\\n\";\n }\n if(data.no_gw){\n startConfigText += \" NO_GW YES\\n\";\n }\n if(!data.base_registry.isEmpty()){\n startConfigText += \" BASE_REGISTRY \"+data.base_registry+\"\\n\";\n }\n if(!data.thumb_volume.isEmpty()){\n startConfigText += \" THUMB_VOLUME \"+data.thumb_volume+\"\\n\";\n }\n if(!data.thumb_command.isEmpty()){\n startConfigText += \" THUMB_COMMAND \"+data.thumb_command+\"\\n\";\n }\n if(!data.thumb_stop.isEmpty()){\n startConfigText += \" THUMB_STOP \"+data.thumb_stop+\"\\n\";\n }\n if(!data.publish.isEmpty()){\n startConfigText += \" PUBLISH \"+data.publish+\"\\n\";\n }\n if(data.hide){\n startConfigText += \" HIDE YES\\n\";\n }\n if(data.no_privilege){\n startConfigText += \" NO_PRIVILEGE YES\\n\";\n }\n if(data.no_pull){\n startConfigText += \" NO_PULL YES\\n\";\n }\n if(data.mystuff){\n startConfigText += \" MYSTUFF YES\\n\";\n }\n if(data.tap){\n startConfigText += \" TAP YES\\n\";\n }\n if(!data.mount1.isEmpty() && !data.mount2.isEmpty()){\n startConfigText += \" MOUNT \"+data.mount1+\":\"+data.mount2+\"\\n\";\n }\n \n }\n \n //Write to File\n writer.print(startConfigText);\n writer.close();\n \n //Save results.config and goals.config file\n labDataCurrent.getResultsData().writeResultsConfig(usetmp);\n labDataCurrent.getGoalsData().writeGoalsConfig(usetmp);\n labDataCurrent.getParamsData().writeParamsConfig(usetmp);\n \n System.out.println(\"Lab Saved\");\n }",
"public void criar() throws IOException {\nif (!directorio.exists()) {\n directorio.mkdir();\n System.out.println(\"Directorio criado\");\n } else {\n System.out.println(\"Directorio existe\");\n }\n if (!fileAdmin.exists()) {\n fileAdmin.createNewFile();\n System.out.println(\"file de Administrador criado com sucesso\");\n escrever(lista);\n } else {\n System.out.println(\"ficheiro existe\");\n }\n\n }",
"public void salvar(BancoLcto bancoLcto) throws Exception {\r\n\t\ttry {\r\n\t\t\tvalidarSalvar(bancoLcto);\r\n\t\t\trepBancoLcto.save(bancoLcto);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new Exception(e.getMessage());\r\n\t\t}\r\n\t}",
"private void inizia() throws Exception {\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"public void ejecutarCargue() {\n String respuesta = null;\n try {\n loggerApp.info(\"Cargues masivos timbres - ejecutar cargue\");\n if (!validarExtension(Constantes.EXTENSIONES_ARCHIVO_EXCEL, file)) {\n abrirModal(\"SARA\", \"Error: El archivo \" + (null == file ? \" \" : file.getName()) + \" no cumple con el formato de extensión válido \" + Constantes.EXTENSIONES_ARCHIVO_EXCEL, null);\n return;\n }\n generarListaData();\n cargarTimbresMasivosObjectContext.setAtributo(\"listaTimbres\", listaData);\n this.servletHelper = new CargarTimbresMasivosServletHelper(sessionLocal, cargarTimbresMasivosObjectContext, objectContext, sessionAjustes, cuadreCifrasSessionLocal, cajeroSession);\n if (this.servletHelper != null) {\n respuesta = servletHelper.obtenerDatos();\n }\n if (respuesta != null && !respuesta.trim().isEmpty()) {\n abrirModal(\"SARA\", respuesta, null);\n }\n } catch (FileStructureException ex) {\n ex.printStackTrace();\n loggerApp.log(Level.SEVERE, ex.getMessage(), ex);\n abrirModal(\"SARA\", ex.getMessage(), null);\n } catch (Exception ex) {\n ex.printStackTrace();\n loggerApp.log(Level.SEVERE, ex.getMessage(), ex);\n abrirModal(\"SARA\", Constantes.MSJ_ERROR_INTERNO, null);\n }\n\n }",
"public static void salvarFichero(ArrayList<Libro> catalogo) {\n\t\tScanner teclado = new Scanner(System.in);\n\t\tString nombre_archivo;\n\n\t\tSystem.out.println(\"Indique el nombre del fichero en el que va a guardar su biblioteca: \");\n\t\tnombre_archivo = teclado.next();\n\n\t\ttry {\n\t\t\tFile biblioteca = new File(nombre_archivo);\n\t\t\tif (biblioteca.createNewFile()) {\n\t\t\t\tSystem.out.println(\"Archivo creado: \" + biblioteca.getName());\n\t\t\t\tSystem.out.println(biblioteca.getAbsoluteFile());\n\t\t\t\tescribirArchivo(catalogo, biblioteca);\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"El archivo ya existe.\");\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Ha ocurrido un error.\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public void salvar() throws Exception {\t\r\n\t\t\t\t\r\n\t\tDate date = new Date();\r\n\t\tString url = evento.getUrl();\r\n\t\tevento.setNmStatus(EventoService.getStatus(url));\r\n\t\tevento.setDataHora(date);\r\n\t\teventoRepository.save(evento); // COLOCAMOS NO BANCO\r\n\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage(\"Cadastro inserido\"));\r\n\t\tif (!modoEdicao)\r\n\t\t\teventos.add(evento); // COLOCAMOS NA LISTA\r\n\t\tevento = new Evento();\r\n\t\tmodoEdicao = false;\r\n\t}",
"public void aprova(Orcamento orcamento) {\n\t\tthrow new RuntimeException(\"Orçamento já está em estado finalizado e não pode voltar para aprovado\");\n\t}",
"public void reprova(Orcamento orcamento) {\n\t\tthrow new RuntimeException(\"Orçamento já está em estado finalizado e não pode ser reprovado\");\n\t}",
"public void guardarOActualizarArchivo(String objeto, String nombre, Context context) throws FileSaverException{\n String msg;\n switch(TIPO_ESCRITURA){\n case MEMORIA_EXTERNA:{\n contexto = context;\n msg = contexto.getResources().getString(R.string.fileSaverInicioEscrituraExterna);\n Log.v(TAG,msg);\n guardarArchivoMemoriaExterna(objeto,nombre, MODE_APPEND);\n break;\n }\n case MEMORIA_INTERNA:{\n contexto=context;\n msg = contexto.getResources().getString(R.string.fileSaverInicioEscrituraInterna);\n Log.v(TAG,msg);\n guardarArchivoMemoriaInterna(objeto,nombre, MODE_APPEND);\n break;\n }\n default:\n msg = contexto.getResources().getString(R.string.fileSaverErrorEscrituraLocal);\n Log.v(TAG,msg);\n throw new FileSaverException(msg);\n }\n }",
"public void guardar() {\r\n\t\t\r\n\t\tmanejadorArchivos.guardar(palabras);\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void guardar() {\n\t\tLOG.info(\"El equipo \"+equipo.getNombre()+\" y el Estadio \"+equipo.getEstadio().getNombre()+\" fueron guardados con exito\");\r\n\t}",
"@Override\n\tpublic void salvar() {\n\t\t\n\t\tPedidoCompra PedidoCompra = new PedidoCompra();\n\t\t\n\t\tPedidoCompra.setAtivo(true);\n//\t\tPedidoCompra.setNome(nome.getText());\n\t\tPedidoCompra.setStatus(StatusPedido.valueOf(status.getSelectionModel().getSelectedItem().name()));\n//\t\tPedidoCompra.setSaldoinicial(\"0.00\");\n\t\t\n\t\tPedidoCompra.setData(new Date());\n\t\tPedidoCompra.setIspago(false);\n\t\tPedidoCompra.setData_criacao(new Date());\n\t\tPedidoCompra.setFornecedor(cbfornecedores.getSelectionModel().getSelectedItem());\n\t\tPedidoCompra.setTotal(PedidoCompra.CalcularTotal(PedidoCompra.getItems()));\n\t\tPedidoCompra.setTotalpago(PedidoCompra.CalculaTotalPago(PedidoCompra.getFormas()));\n\t\t\n\t\tgetservice().save(PedidoCompra);\n\t\tsaveAlert(PedidoCompra);\n\t\tclearFields();\n\t\tdesligarLuz();\n\t\tloadEntityDetails();\n\t\tatualizar.setDisable(true);\n\t\tsalvar.setDisable(false);\n\t\t\n\t\tsuper.salvar();\n\t}",
"public void comenzarDiaLaboral() {\n\t\tSystem.out.println(\"AEROPUERTO: Inicio del dia laboral, se abren los puestos de informe, atención y freeshops al público, el conductor del tren llega a tiempo como siempre\");\n\t\tthis.turnoPuestoDeInforme.release();\n\t\t}",
"public void finaliza(Orcamento orcamento) {\n\t\tthrow new RuntimeException(\"Orçamento já está em estado finalizado\");\n\t}",
"public void carroAgregado(){\n System.out.println(\"Su carro fue agregado con exito al sistema\");\n }",
"public void _taskworkGuardar(){\n\t\tboolean si_a_todo=false;\n\t\tboolean no_a_todo=false;\n\t\tboolean omitir_errores=false;\n\t\tboolean omitir_errores_formacion=false;\n\t\t\n\t\tthis.lenght=this.getSelected();\n\t\tcurrent=0;\n\t\t\n\t\tif (frame.getJTable()!=null){\n\t\t\tint i=0; \n\t\t\twhile (i<frame.getJTable().getRowCount() & !canceled){\n\t\t\t\tboolean b=false;\n\t\t\t\tString idarticulo=\"\";\n\t\t\t\tString idarticulo2=\"\";\n\t\t\t\ttry {\n\t\t\t\t\tb=(Boolean) frame.getJTable().getValueAt(i,0);\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString q=\"\";\n\t\t\t\t\n\t\t\t\tif (b){\n\t\t\t\t\testado=\"Guardando \"+idarticulo;\n\t\t\t\t\tcurrent++;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tidarticulo=(String)frame.getJTable().getValueAt(i,1);\n\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tidarticulo2=(String)frame.getJTable().getValueAt(i,3);\n\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tboolean check=(idarticulo.compareTo(\"\")!=0 & idarticulo2.compareTo(\"\")!=0);\n\t\t\t\t\tif (check){\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (data.exist_equivalencia(idarticulo, idarticulo2)){\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tq=data.getInsert(idarticulo, idarticulo2);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else {\n\t\t\t\t\t\tthis.errors++;\n\t\t\t\t\t\tif (!omitir_errores_formacion){\n\t\t\t\t\t\t\tint n=this._preguntar_si_omite_error_en_formacion_de_alias(idarticulo);\n\t\t\t\t\t\t\tif (n==1){\n\t\t\t\t\t\t\t\tomitir_errores_formacion=true;\n\t\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\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (q.compareTo(\"\")!=0){\n\t\t\t\t\tboolean check=(idarticulo.compareTo(\"\")!=0 & idarticulo2.compareTo(\"\")!=0);\n\t\t\t\t\tif (check){\n\t\t\t\t\t\tif (q.compareTo(\"\")!=0){\n\t\t\t\t\t\t\tdata.clearBatch();\n\t\t\t\t\t\t\tdata.addBatch(q);\n\t\t\t\t\t\t\tboolean error=data.executeBatch();\n\t\t\t\t\t\t\tif (error){\n\t\t\t\t\t\t\t\terrors++;\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}else {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (!omitir_errores_formacion){\n\t\t\t\t\t\t\t\tint n=this._preguntar_si_omite_error_en_formacion_de_alias(idarticulo);\n\t\t\t\t\t\t\t\tif (n==1){\n\t\t\t\t\t\t\t\t\tomitir_errores_formacion=true;\n\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\terrors++;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\t\n\t\t}\n\t\tif (this.getSelected()>0){\n\t\t\t\tif (!canceled){\n\t\t\t\t\tthis._aviso_operacion_completa(\"Guardar\");\t\n\t\t\t\t}else{\n\t\t\t\t\tthis._aviso_operacion_cancelada(\"Guardar\");\n\t\t\t\t}\n\t\t}else {\n\t\t\t\tthis._aviso_requiere_seleccion();\t\n\t\t}\t\n\t\tdone = true;\n\t\t\n\t\t\n\t}",
"private void atualizarTela() {\n\t\tif(this.primeiraJogada == true) {//SE FOR A PRIMEIRA JOGADA ELE MONTA O LABEL DOS NUMEROS APOS ESCOLHER A POSICAO PELA PRIMEIRA VEZ\r\n\t\t\tthis.primeiraJogada = false;\r\n\t\t\tthis.montarLabelNumeros();\r\n\t\t}\r\n\r\n\t\tthis.esconderBotao();\r\n\t\t\r\n\t\tthis.acabarJogo();\r\n\t}",
"@Override\r\n public void salir() {\n }",
"public void save()\n\t{\n\t\ttry\n\t\t{\n\t\t\tgetConnection().commit();\n\t\t\tgetPreparedStatement(\"SET FILES SCRIPT FORMAT COMPRESSED\").execute();\n\t\t\t// causes a checkpoint automatically.\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\tm_logger.error(\"Couldn't cleanly save.\", e);\n\t\t}\n\t}",
"public void salvarFornecedor()\r\n {\r\n /*\r\n * Implementação da lógica de salvar um fornecedor. Tratando as\r\n * mensagens conforme solicitado no desafio 1\r\n */\r\n try\r\n {\r\n fornecedorBusiness.salvarFornecedor(fornecedorResource);\r\n FacesContext.getCurrentInstance().addMessage(\"formFornecedor:messages\",\r\n new FacesMessage(FacesMessage.SEVERITY_INFO, \"Fornecedor Adicionado com Sucesso!\", \"\"));\r\n } catch (RuntimeException e)\r\n {\r\n FacesContext.getCurrentInstance().addMessage(\"formFornecedor:messages\",\r\n new FacesMessage(FacesMessage.SEVERITY_ERROR, e.getMessage(), \"\"));\r\n }\r\n }",
"public void leeArchivo() throws IOException {\n // defino el objeto de Entrada para tomar datos\n BufferedReader brwEntrada;\n try {\n // creo el objeto de entrada a partir de un archivo de texto\n brwEntrada = new BufferedReader(new FileReader(\"datos.txt\"));\n } catch (FileNotFoundException e) {\n // si marca error es que el archivo no existia entonces lo creo\n File filPuntos = new File(\"datos.txt\");\n PrintWriter prwSalida = new PrintWriter(filPuntos);\n // le pongo datos ficticios o de default\n // lo cierro para que se grabe lo que meti al archivo\n prwSalida.close();\n // lo vuelvo a abrir porque el objetivo es leer datos\n brwEntrada = new BufferedReader(new FileReader(\"datos.txt\"));\n }\n // con el archivo abierto leo los datos que estan guardados\n brwEntrada.close();\n }",
"static void LeerArchivo(){ \r\n \t//iniciamos el try y si no funciona se hace el catch\r\n\r\n try{ \r\n \t//se crea un objeto br con el archivo de txt\r\n \tBufferedReader br = new BufferedReader( \r\n \tnew FileReader(\"reporte.txt\")\r\n );\r\n String s;\r\n //Mientras haya una linea de texto se imprime\r\n while((s = br.readLine()) != null){ \r\n System.out.println(s);\r\n }\r\n //se cierra el archivo de texto\r\n br.close(); \r\n } catch(Exception ex){\r\n \t//si no funciona se imprime el error\r\n System.out.println(ex); \r\n }\r\n }",
"@Override\r\n\tpublic void salvar(Plano t) {\n\t\tEntityManager em = new Conexao().getInstance();\r\n\t\tem.getTransaction().begin();\r\n\t\tem.persist(t);\r\n\t\tem.getTransaction().commit();\r\n\t\tem.close();\r\n\t}",
"public void salvarProfessor(){\n \n this.professor.setName(nome);\n this.professor.setEmail(email);\n this.professor.setSenha(senha);\n\n try {\n \n this.professorServico.persistence(this.professor);\n \n } catch (CadastroUsuarioException ex) {\n \n //Precisa tratar aqui!\n }\n \n setNome(null);\n setEmail(null);\n setSenha(null);\n }",
"public void stopSessie() throws BiffException, WriteException, IOException {\n this.spelVerloopPaneController.getSpelFacade().getSpelerDB().save();\n System.exit(0);\n }",
"public static void saludo(){\n System.out.println(\"Bienvenido al Sistema\");\n }",
"private void guardarArchivoMemoriaInterna(String objeto,String fileName,int modoGuardado) throws FileSaverException{\n String msg = contexto.getResources().getString(R.string.fileSaverErrorEscrituraLocal);\n FileOutputStream mOutput;\n if(objeto!=null) {\n try {\n Log.v(TAG,\"Guardando el archivo \"+fileName+\" en memoriaInterna\");\n mOutput = contexto.openFileOutput(fileName, modoGuardado);\n mOutput.write(objeto.toString().getBytes());\n mOutput.flush();\n mOutput.close();\n msg = contexto.getResources().getString(R.string.fileSaverAlmacenExitoso);\n Log.v(TAG,msg);\n }\n catch(FileNotFoundException e){\n throw new FileSaverException(msg);\n }\n catch(IOException e){\n throw new FileSaverException(msg);\n }\n }\n else{\n throw new FileSaverException(msg);\n }\n }",
"private void escoger(){\n partida.escoger(ficha1,ficha2);\n ficha1=null;\n ficha2=null;\n this.ok=partida.ok;\n }",
"@Override\r\n\tpublic void salvar(Registro registro) {\n\t\t\r\n\t}",
"public void salir() {\n if (bandera == 1) {\n altoTabla = \"310\";\n formulaProceso = (Column) FacesContext.getCurrentInstance().getViewRoot().findComponent(\"form:datosFormulaProceso:formulaProceso\");\n formulaProceso.setFilterStyle(\"display: none; visibility: hidden;\");\n\n formulaPeriodicidad = (Column) FacesContext.getCurrentInstance().getViewRoot().findComponent(\"form:datosFormulaProceso:formulaPeriodicidad\");\n formulaPeriodicidad.setFilterStyle(\"display: none; visibility: hidden;\");\n\n RequestContext.getCurrentInstance().update(\"form:datosFormulaProceso\");\n bandera = 0;\n filtrarListFormulasProcesos = null;\n tipoLista = 0;\n }\n listFormulasProcesosBorrar.clear();\n listFormulasProcesosCrear.clear();\n listFormulasProcesosModificar.clear();\n index = -1;\n secRegistro = null;\n k = 0;\n listFormulasProcesos = null;\n guardado = true;\n RequestContext.getCurrentInstance().update(\"form:ACEPTAR\");\n formulaActual = null;\n lovProcesos = null;\n }",
"public void salvar() throws Exception {\n // Verifica se o bean existe\n if(b == null)\n throw new Exception(Main.recursos.getString(\"bd.objeto.nulo\"));\n\n // Primeiro salva o subtipo de banca\n new SubTipoBancaBD(b.getSubTipoBanca()).salvar();\n\n String sql = \"INSERT INTO banca (idBanca, idTipoBanca, idSubTipoBanca, descricao, ano, idCurriculoLattes, idLattes) \" +\n \"VALUES (null, \"+ b.getTipoBanca().getIdTipoBanca() +\", \"+ b.getSubTipoBanca().getIdSubTipoBanca() +\", \" +\n \"'\"+ b.getDescricao() +\"', \"+ b.getAno() +\", \"+ idCurriculoLattes + \" , \"+ b.getIdLattes() +\")\";\n\n\n Transacao.executar(sql);\n }",
"@Override\n public void escribirExcel(String pathPlan, String pathDeex, String nombResa) throws Exception {\n LOGGER.info(\"Iniciando escritura del archivo en excel\");\n\n LOGGER.debug(\"Ruta de la plantilla {}\", pathPlan);\n LOGGER.debug(\"Ruta donde se va a escribir la plantilla {} \", pathDeex);\n\n //Archivo Origen\n File archOrig = null;\n //Archivo Destino\n File archDest = null;\n //ruta completa de la plantilla\n String pathDefi = pathDeex + File.separator + nombResa;\n //Registra del archivo de excel\n Row row = null;\n //Celda en el archivo de excel\n Cell cell;\n //Hoja de excel\n Sheet sheet = null;\n //Numero de hojas en el libro de excel\n int numberOfSheets;\n //Constantes\n final String NOMBRE_HOJA = \"RESULTADOS EVALUACION\";\n // Fila y columna para \n int fila = 0;\n int columna = 0;\n //Fila inicio evidencia\n int filaEvid;\n\n try {\n archOrig = new File(pathPlan);\n\n if (!archOrig.exists()) {\n LOGGER.debug(\"Plantilla no existe en la ruta {} \", pathPlan);\n throw new IOException(\"La plantilla no existe en la ruta \" + pathPlan);\n }\n\n archDest = new File(pathDeex);\n\n if (!archDest.exists()) {\n LOGGER.debug(\"Ruta no existe donde se va a depositar el excel {} , se va a crear\", pathDeex);\n archDest.mkdirs();\n }\n\n LOGGER.info(\"Ruta del archivo a crear {}\", pathDefi);\n archDest = new File(pathDefi);\n\n if (!archDest.exists()) {\n LOGGER.info(\"No existe el archivo en la ruta {}, se procede a la creacion \", pathDefi);\n archDest.createNewFile();\n } else {\n\n LOGGER.info(\"el archivo que se requiere crear, ya existe {} se va a recrear\", pathDefi);\n archDest.delete();\n LOGGER.info(\"archivo en la ruta {}, borrado\", pathDefi);\n archDest.createNewFile();\n\n LOGGER.info(\"archivo en la ruta {}, se vuelve a crear\", pathDefi);\n\n }\n\n LOGGER.info(\"Se inicia con la copia de la plantilla de la ruta {} a la ruta {} \", pathPlan, pathDefi);\n try (FileChannel archTror = new FileInputStream(archOrig).getChannel();\n FileChannel archTrDe = new FileOutputStream(archDest).getChannel();) {\n\n archTrDe.transferFrom(archTror, 0, archTror.size());\n\n LOGGER.info(\"Termina la copia del archivo\");\n\n } catch (Exception e) {\n LOGGER.info(\"Se genera un error con la transferencia {} \", e.getMessage());\n throw new Exception(\"Error [\" + e.getMessage() + \"]\");\n }\n\n LOGGER.info(\"Se inicia con el diligenciamiento del formato \");\n\n LOGGER.info(\"Nombre Archivo {}\", archDest.getName());\n if (!archDest.getName().toLowerCase().endsWith(\"xls\")) {\n throw new Exception(\"La plantilla debe tener extension xls\");\n }\n\n try (FileInputStream fis = new FileInputStream(archDest);\n Workbook workbook = new HSSFWorkbook(fis);\n FileOutputStream fos = new FileOutputStream(archDest);) {\n\n if (workbook != null) {\n numberOfSheets = workbook.getNumberOfSheets();\n LOGGER.debug(\"Numero de hojas {}\", numberOfSheets);\n\n LOGGER.info(\"Hoja seleccionada:{}\", NOMBRE_HOJA);\n sheet = workbook.getSheetAt(0);\n\n fila = 5;\n\n LOGGER.info(\"Se inicia con la escritura de las oportunidades de mejora\");\n\n LOGGER.info(\"Creando las celdas a llenar\");\n\n for (int numeFila = fila; numeFila < this.listOpme.size() + fila; numeFila++) {\n\n LOGGER.info(\"Fila {} \", numeFila);\n if (numeFila > 8) {\n\n copyRow(workbook, sheet, numeFila - 2, numeFila - 1);\n sheet.addMergedRegion(new CellRangeAddress(numeFila - 1, numeFila - 1, 1, 4));\n sheet.addMergedRegion(new CellRangeAddress(numeFila - 1, numeFila - 1, 6, 7));\n\n }\n\n }\n\n LOGGER.info(\"Terminando de llenar celdas\");\n LOGGER.info(\"Poblar registros desde {} \", fila);\n\n for (OptuMejo optuMejo : this.listOpme) {\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 1. Valor Capacitacion tecnica {}\", fila, optuMejo.getCapaTecn());\n row = null;\n cell = null;\n\n row = sheet.getRow(fila);\n cell = row.getCell(1);\n\n cell.setCellValue(optuMejo.getCapaTecn());\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 6. Valor compromisos del area {}\", fila, optuMejo.getComporta());\n row = null;\n cell = null;\n\n row = sheet.getRow(fila);\n cell = row.getCell(6);\n\n cell.setCellValue(optuMejo.getComporta());\n\n fila++;\n\n }\n LOGGER.info(\"Termino de poblar el registro hasta {} \", fila);\n //Ajustando los formulario\n if (fila > 8) {\n sheet.addMergedRegion(new CellRangeAddress(fila, fila, 1, 7));\n sheet.addMergedRegion(new CellRangeAddress(fila + 1, fila + 1, 2, 6));\n } else {\n fila = 9;\n }\n\n /* sheet.addMergedRegion(new CellRangeAddress(fila, fila, 1, 7));\n sheet.addMergedRegion(new CellRangeAddress(fila + 1, fila + 1, 2, 6));*/\n LOGGER.info(\"Fin de la escritura de las oportunidades de mejora\");\n\n LOGGER.info(\"Se inicia la escritura de las evidencias \");\n\n fila += 2;\n filaEvid = fila + 5;\n\n LOGGER.info(\"Se inicia la creacion de las celdas desde el registro {} \", fila);\n\n for (Evidenci evidenci : this.listEvid) {\n\n if (filaEvid < fila) {\n copyRow(workbook, sheet, fila - 1, fila);\n\n }\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 1. Valor Fecha {}\", fila, evidenci.getFecha());\n row = null;\n cell = null;\n\n row = sheet.getRow(fila);\n cell = row.getCell(1);\n\n cell.setCellValue(evidenci.getFecha());\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 6. Valor compromisos del area {}\", fila, evidenci.getDescripc());\n row = null;\n cell = null;\n\n row = sheet.getRow(fila);\n cell = row.getCell(2);\n\n cell.setCellValue(evidenci.getDescripc());\n\n sheet.addMergedRegion(new CellRangeAddress(fila, fila, 2, 6));\n\n fila++;\n\n }\n\n LOGGER.info(\"Fin de la escritura de las Evidencias\");\n\n LOGGER.info(\"Inicio de escritura de calificaciones\");\n //Ajustando los formulario - resultado\n\n /*sheet.addMergedRegion(new CellRangeAddress(fila, fila, 1, 7));*/\n if (fila > filaEvid) {\n LOGGER.info(\"Fila a ejecutar {} \", fila);\n sheet.addMergedRegion(new CellRangeAddress(fila + 1, fila + 1, 2, 5));\n sheet.addMergedRegion(new CellRangeAddress(fila + 2, fila + 2, 2, 5));\n sheet.addMergedRegion(new CellRangeAddress(fila + 3, fila + 3, 2, 5));\n sheet.addMergedRegion(new CellRangeAddress(fila + 4, fila + 4, 2, 5));\n sheet.addMergedRegion(new CellRangeAddress(fila + 1, fila + 1, 6, 7));\n sheet.addMergedRegion(new CellRangeAddress(fila + 2, fila + 4, 6, 7));\n //Firma del evaluado ajuste\n sheet.addMergedRegion(new CellRangeAddress(fila + 5, fila + 5, 1, 3));\n sheet.addMergedRegion(new CellRangeAddress(fila + 5, fila + 5, 4, 6));\n\n //Ajustando recursos\n sheet.addMergedRegion(new CellRangeAddress(fila + 6, fila + 6, 1, 7));\n\n sheet.addMergedRegion(new CellRangeAddress(fila + 8, fila + 8, 1, 7));\n sheet.addMergedRegion(new CellRangeAddress(fila + 10, fila + 10, 1, 7));\n\n } else {\n fila = filaEvid + 1;\n LOGGER.info(\"Fila a ejecutar {} \", fila);\n }\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 2. Valor Excelente {}\", fila + 2, this.excelent);\n row = null;\n cell = null;\n\n row = sheet.getRow(fila + 2);\n cell = row.getCell(2);\n\n cell.setCellValue((this.excelent != null ? this.excelent : \"\"));\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 2. Valor satisfactorio {}\", fila + 3, this.satisfac);\n row = null;\n cell = null;\n\n row = sheet.getRow(fila + 3);\n cell = row.getCell(2);\n\n cell.setCellValue((this.satisfac != null ? this.satisfac : \"\"));\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 3. Valor no satisfactorio {}\", fila + 4, this.noSatisf);\n row = null;\n cell = null;\n\n row = sheet.getRow(fila + 4);\n cell = row.getCell(2);\n\n cell.setCellValue((this.noSatisf != null ? this.noSatisf : \"\"));\n\n //Ajustando Total Calificacion en Numero\n LOGGER.debug(\"Se va actualizar la linea {} celda 2. Valor total calificacion {}\", fila + 2, this.numeToca);\n row = null;\n cell = null;\n\n row = sheet.getRow(fila + 2);\n cell = row.getCell(6);\n\n cell.setCellValue(this.numeToca);\n\n LOGGER.info(\"Fin de escritura de calificaciones\");\n\n LOGGER.info(\"Inicio de escritura de interposicion de recursos\");\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 5. Valor si interpone recursos {}\", fila + 7, this.siinRecu);\n row = null;\n cell = null;\n\n row = sheet.getRow(fila + 7);\n cell = row.getCell(6);\n\n cell.setCellValue(\"SI:\" + (this.siinRecu != null ? this.siinRecu : \"\"));\n\n LOGGER.debug(\"Se va actualizar la linea {} celda 5. Valor si interpone recursos {}\", fila + 7, this.noinRecu);\n row = null;\n cell = null;\n\n row = sheet.getRow(fila + 7);\n cell = row.getCell(7);\n\n cell.setCellValue(\"NO:\" + (this.noinRecu != null ? this.noinRecu : \"\"));\n \n \n LOGGER.debug(\"Se va actualizar la linea {} celda 5. Valor si interpone recursos {}\", fila + 8, this.fech);\n \n row = null;\n cell = null;\n\n row = sheet.getRow(fila + 8);\n cell = row.getCell(1);\n\n cell.setCellValue(\"FECHA:\" + (this.fech != null ? this.fech : \"\"));\n \n \n\n LOGGER.info(\"Fin de escritura de interposicion de recursos\");\n\n //Ajustando recursos\n workbook.write(fos);\n\n } else {\n throw new Exception(\"No se cargo de manera adecuada el archivo \");\n }\n\n } catch (Exception e) {\n System.out.println(\"\" + e.getMessage());\n }\n\n } catch (Exception e) {\n LOGGER.error(e.getMessage());\n throw new Exception(e.getMessage());\n }\n }",
"@Override\r\n\tpublic void guardar() {\n\t\ttab_nivel_funcion_programa.guardar();\r\n\t\tguardarPantalla();\r\n\t\t\r\n\t}",
"public void save() throws FileNotFoundException, IOException, ClassNotFoundException ;",
"@Override\n public void actionPerformed(ActionEvent e) {\n if(!src.isEmpty()) {\n String texto= textArea.getText();\n String[] textArray= texto.split(\"\\n\");\n WriteFile data= new WriteFile(src,true);\n File file= new File(src);\n file.delete();\n for(int i=0;i<textArray.length;i++) {\n //System.out.println(\"lineas\");\n //System.out.println(textArray[i]);\n try {\n data.writeToFile(textArray[i]);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n textSalida.append(\"\\nguardado exitoso\");\n }\n else\n {\n src=guardarGUI();\n if(!src.isEmpty()) {\n\t String texto= textArea.getText();\n\t String[] textArray= texto.split(\"\\n\");\n\t WriteFile data= new WriteFile(src,true);\n\t File file= new File(src);\n\t file.delete();\n\t for(int i=0;i<textArray.length;i++) {\n\t //System.out.println(\"lineas\");\n\t //System.out.println(textArray[i]);\n\t try {\n\t data.writeToFile(textArray[i]);\n\t } catch (IOException e1) {\n\t e1.printStackTrace();\n\t }\n\t }\n\t textSalida.append(\"\\nguardado exitoso\");\n }\n }\n }",
"public void botonSalir(View view)\n {\n \tfinalizar();\n }",
"private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"public void salir() {\n\t\tgetUi().salir();\r\n\t}",
"public void executarLogica() {\n\t\tchecarTarefaValida();\n\t\texecutar();\n\t\texecutandoTarefa();\n\t\tfinalizarTarefa();\n\t}",
"@Override\n void procesarSalida(Simulacion s, Evento e) {\n e.consulta.estadistEjec_Sentencias.tiempoSalidaModulo = e.tiempo;\n e.consulta.estadistEjec_Sentencias.tiempoEnModulo = e.tiempo - e.consulta.estadistEjec_Sentencias.tiempoLlegadaModulo;\n Evento evento = new Evento(e.consulta);\n evento.tipoE = Evento.TipoEvento.ENTRADA;\n evento.modulo = Evento.TipoModulo.ADM_CONEXIONES;\n evento.tiempo = e.tiempo;\n numServOcupados--;\n s.listaE.add(evento);\n\n if (!colaC.isEmpty()) { //Si despues de una salida hay algo en cola\n Consulta consulta = colaC.remove();\n consulta.estadistEjec_Sentencias.tiempoSalidaCola = e.tiempo - consulta.estadistEjec_Sentencias.tiempoLlegadaModulo;\n s.estadisticasT.promedioColaES += colaC.size();\n Evento eventoS = new Evento(consulta);\n eventoS.tipoE = Evento.TipoEvento.SALIDA;\n eventoS.modulo = Evento.TipoModulo.EJEC_SENTENCIAS;\n ejecucionSentencia(consulta);\n eventoS.tiempo = e.tiempo + tiempoEjecucion;\n s.listaE.add(eventoS);\n numServOcupados++;\n }\n\n }",
"private void modificarReserva() throws Exception {\r\n\t\tif (mngRes.existeReservaPeriodo(getSitio().getId())) {\r\n\t\t\tif (mayorEdad) {\r\n\t\t\t\tmngRes.modificarReserva(getEstudiante(), periodo.getPrdId(), getSitio(), null);\r\n\t\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\t} else {\r\n\t\t\t\tmngRes.modificarReserva(getEstudiante(), periodo.getPrdId(), getSitio(),\r\n\t\t\t\t\t\tgetDniRepresentante() + \";\" + getNombreRepresentante());\r\n\t\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\t}\r\n\t\t\tMensaje.crearMensajeINFO(\"Reserva realizada correctamente, no olvide descargar su contrato.\");\r\n\t\t} else {\r\n\t\t\tMensaje.crearMensajeWARN(\"El sitio seleccionado ya esta copado, favor eliga otro.\");\r\n\t\t}\r\n\t}",
"private void save()\n\t{\n\t\t//get the text\n\t\tString spssTxt = spssText.getText();\n\t\t//save it to a JS place where Java can find it\n\t\tsaveToJS(spssTxt);\n\t\t//make up a file name\n\t\tString fileName = form.getText().replace(\" \", \"_\").replace(\"\\\\\", \"\").replace(\"/\",\"\").replace(\"*\", \"\").replace(\"\\\"\", \"\")\n\t\t\t\t.replace(\"<\", \"\").replace(\">\", \"\").replace(\"#\", \"\").replace(\"'\", \"\") + \".spss\";\t\t\n\t\t\n\t\t\n\t\t\n\t\tappletHtml.setHTML(\"<APPLET codebase=\\\"fileioapplets/\\\"+\" +\n\t\t\t\t\" archive=\\\"kobo_fileIOApplets.jar, plugin.jar\\\" \"+\n\t\t\t\t\" code=\\\"org.oyrm.kobo.fileIOApplets.ui.FileSaveApplet.class\\\" \"+\n\t\t\t\t\" width=\\\"5\\\" HEIGHT=\\\"5\\\" MAYSCRIPT> \"+\n\t\t\t\t\"<param name=\\\"formName\\\" value=\\\"\"+fileName+\"\\\"/>\"+\n\t\t\t\t\"<param name=\\\"save\\\" value=\\\"\"+LocaleText.get(\"SaveSPSSFile\")+\"\\\"/>\"+\n\t\t\t\t\"</APPLET>\");\n\t}",
"private void saveAsConfirmButton(){\n //Check if the input is valid (lcase and no spaces)\n String input = SaveAsLabNameTextField.getText();\n \n if(input.contains(\" \") || !input.equals(input.toLowerCase())){ \n SaveAsErrorLabel.setText(\"Lab name must be lowercase and contain no spaces!\");\n SaveAsErrorLabel.setVisible(true);\n }\n //Check if lab already exists\n else if(Arrays.asList(labsPath.list()).contains(input)){ \n SaveAsErrorLabel.setText(\"Lab already exists!\");\n SaveAsErrorLabel.setVisible(true);\n }\n else{\n SaveAsErrorLabel.setVisible(false);\n saveAs(input);\n SaveAsDialog.setVisible(false);\n } \n }",
"@Override\n public void execute(TaskList task, Ui ui, Storage storage) {\n this.isExit = true;\n ui.goodbye();\n try {\n storage.writeFileContents(task);\n } catch (DukeException DE) {\n ui.showError(DE);\n }\n }",
"public void salvarAluno() {\n \n this.aluno.setName(nome);\n this.aluno.setEmail(email);\n this.aluno.setSenha(senha);\n\n try {\n \n this.alunoServico.persistence(this.aluno);\n \n } catch (CadastroUsuarioException ex) {\n \n //Precisa tratar aqui!\n }\n \n setNome(null);\n setEmail(null);\n setSenha(null);\n\n }",
"public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}",
"private void guardar() {\r\n\t\tif(Gestion.isModificado() && Gestion.getFichero()!=null){\r\n\t\t\ttry {\r\n\t\t\t\tGestion.escribir(Gestion.getFichero());\r\n\t\t\t\tGestion.setModificado(false);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(Gestion.isModificado() && Gestion.getFichero()==null){\r\n\t\t\tguardarComo();\r\n\t\t}\r\n\t\telse if(frmLigaDeFtbol.getTitle()==\"Liga de Fútbol\" && !Gestion.isModificado())\r\n\t\t\tguardarComo();\r\n\t}",
"public void fileSave()\n {\n try\n {\n // construct the default file name using the instance name + current date and time\n StringBuffer currentDT = new StringBuffer();\n try {\n currentDT = new StringBuffer(ConnectWindow.getDatabase().getSYSDate());\n }\n catch (Exception e) {\n displayError(e,this) ;\n }\n\n // construct a default file name\n String defaultFileName;\n if (ConnectWindow.isLinux()) {\n defaultFileName = ConnectWindow.getBaseDir() + \"/Output/RichMon \" + instanceName + \" \" + currentDT.toString() + \".html\";\n }\n else {\n defaultFileName = ConnectWindow.getBaseDir() + \"\\\\Output\\\\RichMon \" + instanceName + \" \" + currentDT.toString() + \".html\";\n }\n JFileChooser fileChooser = new JFileChooser();\n fileChooser.setSelectedFile(new File(defaultFileName));\n File saveFile;\n BufferedWriter save;\n\n // prompt the user to choose a file name\n int option = fileChooser.showSaveDialog(this);\n if (option == JFileChooser.APPROVE_OPTION)\n {\n saveFile = fileChooser.getSelectedFile();\n\n // force the user to use a new file name if the specified filename already exists\n while (saveFile.exists())\n {\n JOptionPane.showConfirmDialog(this,\"File already exists\",\"File Already Exists\",JOptionPane.ERROR_MESSAGE);\n option = fileChooser.showOpenDialog(this);\n if (option == JFileChooser.APPROVE_OPTION)\n {\n saveFile = fileChooser.getSelectedFile();\n }\n }\n save = new BufferedWriter(new FileWriter(saveFile));\n saveFile.createNewFile();\n\n // create a process to format the output and write the file\n try {\n OutputHTML outputHTML = new OutputHTML(saveFile,save,\"Database\",databasePanel.getResultCache());\n outputHTML.savePanel(\"Performance\",performancePanel.getResultCache(),null);\n// outputHTML.savePanel(\"Scratch\",scratchPanel.getResultCache(),scratchPanel.getSQLCache());\n\n JTabbedPane scratchTP = ScratchPanel.getScratchTP();\n \n for (int i=0; i < scratchTP.getComponentCount(); i++) {\n try {\n System.out.println(\"i=\" + i + \" class: \" + scratchTP.getComponentAt(i).getClass());\n if (scratchTP.getComponentAt(i) instanceof ScratchDetailPanel) {\n ScratchDetailPanel t = (ScratchDetailPanel)scratchTP.getComponentAt(i);\n System.out.println(\"Saving: \" + scratchTP.getTitleAt(i));\n outputHTML.savePanel(scratchTP.getTitleAt(i), t.getResultCache(), t.getSQLCache());\n }\n } catch (Exception e) {\n // do nothing \n }\n }\n }\n catch (Exception e) {\n displayError(e,this);\n }\n\n // close the file\n save.close();\n }\n }\n catch (IOException e)\n {\n displayError(e,this);\n }\n }",
"private void guardarFoto() {\n if (foto != null && is != null) {\n\n Image foto_Nueva;\n foto_Nueva = foto.getScaledInstance(frmPersona.getLblFoto().getWidth(), frmPersona.getLblFoto().getHeight(), Image.SCALE_SMOOTH);\n frmPersona.getLblFoto().setIcon(new ImageIcon(foto_Nueva));\n cancelarFoto();\n ctrFrmPersona.pasarFoto(is);\n } else {\n JOptionPane.showMessageDialog(vtnWebCam, \"Aun no se a tomado una foto.\");\n }\n\n }",
"protected void salvarLotofacil(Lotofacil l) {\r\n\t\tLotofacilListagemResultados.repositorio.Salvar(l);\r\n\t}",
"public static void guardarArchivo(LinkedList<LinkedList<Integer>> permutacionParaCadaSubconjunto,\n int numeroDePuntos, float p) {\n final String nombreDelArchivo = \"respuesta-ejemplo-U=\" + numeroDePuntos + \"-p=\" + p + \".txt\";\n try {\n PrintWriter escritor = new PrintWriter(nombreDelArchivo, \"UTF-8\");\n for (LinkedList<Integer> lista : permutacionParaCadaSubconjunto) {\n for (Integer duenoDeVehiculo : lista)\n escritor.print(duenoDeVehiculo + \" \");\n escritor.println();\n }\n escritor.close();\n } catch (IOException ioe) {\n System.out.println(\"Error escribiendo el archivo de salida \" + ioe.getMessage());\n }\n }",
"private void nuevaLiga() {\r\n\t\tif(Gestion.isModificado()){\r\n\t\t\tint opcion = JOptionPane.showOptionDialog(null, \"¿Desea guardar los cambios?\", \"Nueva Liga\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null,null, null);\r\n\t\t\tswitch(opcion){\r\n\t\t\tcase JOptionPane.YES_OPTION:\r\n\t\t\t\tguardar();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.NO_OPTION:\r\n\t\t\t\tGestion.reset();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.CANCEL_OPTION:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\tGestion.reset();\r\n\t\tfrmLigaDeFtbol.setTitle(\"Liga de Fútbol\");\r\n\t}",
"public void carroRemovido(){\n System.out.println(\"Su carro fue removido exitosamente\");\n }",
"public String guardar()\r\n/* 104: */ {\r\n/* 105: */ try\r\n/* 106: */ {\r\n/* 107:132 */ this.servicioDimensionContable.guardar(this.dimensionContable);\r\n/* 108:133 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_guardar\"));\r\n/* 109:134 */ setEditado(false);\r\n/* 110:135 */ cargarDatos();\r\n/* 111: */ }\r\n/* 112: */ catch (Exception e)\r\n/* 113: */ {\r\n/* 114:137 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_guardar\"));\r\n/* 115:138 */ LOG.error(\"ERROR AL GUARDAR DATOS\", e);\r\n/* 116: */ }\r\n/* 117:140 */ return \"\";\r\n/* 118: */ }",
"public void salvaDati(Object dati){\n\t\ttry{\n\t\t\tFileOutputStream fos = new FileOutputStream(file);\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\t\toos.writeObject(dati);\n\t\t\toos.close();\n\t\t\tfos.close();\n\t\t\tSystem.out.println(\"File \" + file + \" salvato\");\n\t\t} catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\t\n\t}",
"public void save(){\n Player temp = Arena.CUR_PLAYER;\n try{\n FileOutputStream outputFile = new FileOutputStream(\"./data.sec\");\n ObjectOutputStream objectOut = new ObjectOutputStream(outputFile);\n objectOut.writeObject(temp);\n objectOut.close();\n outputFile.close();\n }\n catch(FileNotFoundException e){\n System.out.print(\"Cannot create a file at that location\");\n }\n catch(SecurityException e){\n System.out.print(\"Permission Denied!\");\n }\n catch(IOException e){\n System.out.println(\"Error 203\");\n } \n }",
"public void terminarDiaLaboral() {\n\t\ttry {this.turnoPuestoDeInforme.acquire();} catch (InterruptedException e) {}\n\t\tSystem.out.println(\"AEROPUERTO: Todo el personal va a dormir luego de una larga jornada laboral\");\n\t\t}",
"private void uploadLblMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_uploadLblMouseClicked\n if (HF != null) {\n int n = JOptionPane.showConfirmDialog(this,\n \"Would you like to save your changes first\",\n \"Warning\", JOptionPane.YES_NO_CANCEL_OPTION);\n if (n == JOptionPane.YES_OPTION) {\n FileHandling.saveToFile(this, HF);\n }\n }\n HF = (HELPFit) FileHandling.readFromFile(this);\n HF.updateSequences();\n }",
"private void atualizarSituacaoArquivo(HttpServletResponse response, \r\n\t\tOutputStream out, long idArquivoTextoVisitaCampo) throws IOException {\r\n\t\ttry {\r\n\t\t\t//Atualiza o arquivo em campo\r\n\t\t\tSystem.out.println(\"INICIO: Atualizando a situacao do arquivo ID: \"+idArquivoTextoVisitaCampo);\r\n\t\t\t\r\n\t\t\tFiltroArquivoTextoVisitaCampo filtro = new FiltroArquivoTextoVisitaCampo();\r\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroArquivoTextoVisitaCampo.ID, idArquivoTextoVisitaCampo));\r\n\t\t\t\r\n\t\t\tCollection<ArquivoTextoVisitaCampo> colArquivoTexto = \r\n\t\t\t\t\tthis.getFachada().pesquisar(filtro, ArquivoTextoVisitaCampo.class.getName());\r\n\t\t\t\r\n\t\t\tArquivoTextoVisitaCampo arquivoTextoVisitaCampo = (ArquivoTextoVisitaCampo) Util.retonarObjetoDeColecao(colArquivoTexto);\r\n\t\t\t\r\n\t\t\tif(arquivoTextoVisitaCampo != null){\r\n\t\t\t\tSituacaoTransmissaoLeitura situacao = new SituacaoTransmissaoLeitura(SituacaoTransmissaoLeitura.EM_CAMPO);\r\n\t\t\t\tarquivoTextoVisitaCampo.setSituacaoTransmissaoLeitura(situacao);\r\n\t\t\t\tarquivoTextoVisitaCampo.setDataEnvioArquivo(new Date());\r\n\t\t\t\t\r\n\t\t\t\tthis.getFachada().atualizar(arquivoTextoVisitaCampo);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tout.write(RESPOSTA_OK);\r\n\t\t\tout.flush();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"FIM: Atualizando a situacao do arquivo ID: \"+idArquivoTextoVisitaCampo);\r\n\t\t\t\r\n\t\t} catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"ERROR: Ao atualizar situacao do arquivo em campo ID:\"+idArquivoTextoVisitaCampo);\r\n\t\t\tresponse.setContentLength(1);\r\n\t\t\t\r\n\t\t\tout.write(RESPOSTA_ERRO);\r\n\t\t\tout.flush();\r\n\t\t}\r\n\r\n\r\n\r\n\t}",
"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}",
"private void grabarArchivo() {\n\t\tPrintWriter salida;\n\t\ttry {\n\t\t\tsalida = new PrintWriter(new FileWriter(super.salida));\n\t\t\tsalida.println(this.aDevolver);\n\t\t\tsalida.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void abrirArchivo() {\r\n try {\r\n entrada = new Scanner(new File(\"estudiantes.txt\"));\r\n } // fin de try\r\n catch (FileNotFoundException fileNotFoundException) {\r\n System.err.println(\"Error al abrir el archivo.\");\r\n System.exit(1);\r\n } // fin de catch\r\n }",
"public static void main(String[] args)throws java.io.IOException {\n\t\tString idEmpleado, nomEmpleado, apellEmpleado, telefono, email;\r\n\t\t\r\n\t\tout.println(\"Digite el id del empleado\");\r\n\t\tidEmpleado = in.readLine();\r\n\t\tout.println(\"Digite el nombre del empleado\");\r\n\t\tnomEmpleado = in.readLine();\r\n\t\tout.println(\"Digite el apellido del empleado\");\r\n\t\tapellEmpleado = in.readLine();\r\n\t\tout.println(\"Digite el telefono del empleado\");\r\n\t\ttelefono = in.readLine();\r\n\t\tout.println(\"Digite el email del empleado\");\r\n\t\temail = in.readLine();\r\n\t\t\r\n\t\t/*Los datos se deben mandar al gestor*/\r\n\t\t\r\n\t\tSupervisor empleado = new Supervisor(idEmpleado, nomEmpleado, apellEmpleado, telefono, email);\r\n\t\tSoporTecnico contratado = new SoporTecnico(empleado);\r\n\t\t\r\n\t\t//La variable contratado se almacenarķa en un arreglo\r\n\t\t\r\n\t\tout.println(\"Id: \" + contratado.getIdEmpleado() + \"\\n\" +\r\n\t\t\t\t\t\"Nombre: \" + contratado.getNomEmpleado() + \"\\n\" +\r\n\t\t\t\t\t\"Apellido: \" + contratado.getApellEmpleado() + \"\\n\" +\r\n\t\t\t\t\t\"Telefono: \" + contratado.getTelefono() + \"\\n\" +\r\n\t\t\t\t\t\"Email: \" + contratado.getEmail() + \"\\n\" +\r\n\t\t\t\t\t\"Codigo del puesto: \" + contratado.codPuesto() + \"\\n\" +\r\n\t\t\t\t\t\"Nombre del puesto: \" + contratado.nomPuesto() + \"\\n\" +\r\n\t\t\t\t\t\"Nombre del departamento: \" + contratado.departamento());\r\n\t\t\r\n\t\t/*Si se desea cambiar el puesto o el departamento del empleado, se extraen los datos \r\n\t\t * personales del empleado, se elimina el objeto y los datos personales se almacenan\r\n\t\t * en un nuevo objeto del puesto deseado y del departamento deseado*/\r\n\t}",
"public boolean salvar()\r\n\t{\n\t\ttry \r\n\t\t{\r\n\t\t\tif(caixaCpf.getText()!=null)\r\n\t\t\t{\r\n\t\t\t\tTecnico tecnico = new Tecnico();\r\n\t\t\t\tUnidade unidade = new UnidadeDAO().buscaSigla(comboUnidadeTrab.getSelectedItem().toString());\r\n\t\t\t\t\r\n\t\t\t\tDate data = new Date (Integer.parseInt(caixaAno.getText())-1900,Integer.parseInt(caixaMes.getText()) -1 , \r\n\t\t\t\t\t\t\t\t\t Integer.parseInt(caixaDia.getText()));\r\n\t\t\t\t\r\n\t\t\t\ttecnico.setCpf(caixaCpf.getText());\r\n\t\t\t\ttecnico.setNome(caixaNome.getText());\r\n\t\t\t\ttecnico.setNascimento(data);\r\n\t\t\t\ttecnico.setEmailInstitucional(caixaEmailInstitucional.getText());\r\n\t\t\t\ttecnico.setEmailSecundario(caixaEmailSecundario.getText());\r\n\t\t\t\ttecnico.setSiape(caixaSiape.getText());\r\n\t\t\t\ttecnico.setUnidade(unidade);\r\n\r\n\t\t\t\t\r\n\t\t\t\tTecnicoDAO tecnicoInsere = new TecnicoDAO();\r\n\t\t\t\t\r\n\t\t\t\tif(tecnicoInsere.insereTecnico(tecnico))\r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Ops algo deu erroado, confirme seus dados!\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t} \r\n\t\tcatch (ClassNotFoundException e1) \r\n\t\t{\r\n\t\t\t\r\n\t\t\te1.printStackTrace();\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Ops algo deu erroado, confirme seus dados!\");\r\n\t\t} \r\n\t\tcatch (SQLException e1) \r\n\t\t{\r\n\t\t\te1.printStackTrace();\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Ops algo deu erroado, confirme seus dados!\");\r\n\t\t}\r\n\t\tcatch (NumberFormatException e)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Ops algo deu erroado, confirme seus dados!\");\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@SuppressWarnings(\"Duplicates\")\n public void crearSala(String nombre, String actividad, int capacidad, int computadores, int datas, int mesas,\n int pizarras, int telones, int sillas) {\n\n setNombreSala(nombre);\n setActividad(actividad);\n setCapacidad(capacidad);\n for (int i = 1; i <= computadores; i++) {\n registrarInsumoT(1, i);\n }\n setConfirmada(false);\n for (int i = 1; i <= datas; i++) {\n registrarInsumoT(2, i);\n }\n setMesas(mesas);\n setPizarras(pizarras);\n setPropuesta(false);\n setTelones(telones);\n setSillas(sillas);\n\n\n }",
"public void makeSQLSinonimos(String insertStament, boolean[] isString, String patho, String nameFile, int columnaActive, HashSet<String> listaDrogasID, HashSet<String> listaDrogasIDTermino){ \n\t\tFile[] listOfFiles = new File(patho).listFiles();\n\t\tint i=0;\n\t\twhile ( i<listOfFiles.length && !listOfFiles[i].toString().contains(nameFile) )\n\t\t\ti++;\n\n\t\t// Si encontre el archivo creo la tabla, genero un scrip de insertar, lo ejecuto desde la consola y lo borro e inserto los datos\n\t\tif (i<listOfFiles.length){\n\n\n\t\t\tif (managerDB.createExecutorFile(\"C:\\\\\", \"prueba\")){\n\t\t\t\tParserSNOMED.fileToSqlScriptSinonimos(patho,listOfFiles[i].getName().toString(),insertStament, columnaActive, listaDrogasID, listaDrogasIDTermino);\n\t\t\t\tSystem.out.println(patho + listOfFiles[i].getName().toString());\n\t\t\t\ttry{\n\t\t\t\t\tThread.sleep(1000); \n\n\t\t\t\t\tRuntime.getRuntime().exec(\"cmd /c start C:\\\\prueba.bat\");\n\t\t\t\t\tmanagerDB.waitUntisFinishConsole(\"C://\",\"done.prov\" );\n\n\t\t\t\t\t// Borro todos los archivos luego de que termine el script\n\t\t\t\t\tFile file = new File(\"C:\\\\done.prov\"); \tfile.delete();\n\t\t\t\t\t//\t\t\tfile = new File(\"C:\\\\auxFile.sql\"); \tfile.delete();\n\t\t\t\t\tfile = new File(\"C:\\\\prueba.bat\");\t\tfile.delete();\n\t\t\t\t}\n\t\t\t\tcatch (Exception e1) {\n\t\t\t\t\te1.printStackTrace();}\t\t\t\t}\n\t\t}\n\t}",
"public void run() {\n \t\t\tlogger.info(\"Saving settings ...\");\n \n \t\t\tif (exitSavables != null) {\n \t\t\t\tEnumeration enumeration = exitSavables.elements();\n \t\t\t\twhile (enumeration.hasMoreElements()) {\n \t\t\t\t\tSavable savable = (Savable) enumeration.nextElement();\n \t\t\t\t\ttry {\n \t\t\t\t\t\tsavable.save();\n \t\t\t\t\t} catch (StorageException se) {\n \t\t\t\t\t\tlogger.log(Level.SEVERE,\n \t\t\t\t\t\t\t\t\"Error while saving a resource inside the shutdown hook.\", se);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tFileAccess.cleanKeypool(MainFrame.keypool);\n \n \t\t\tlogger.info(\"Bye!\");\n \t\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) \n\t{\n\t\t\n\t\t\n\t\tJFileChooser fileChooser = new JFileChooser(); //fichero a grabar.\n\t\t\n\t\tint seleccion=fileChooser.showSaveDialog(null);\t\t\n\t\t\n\t\t\n\t\tString mensajeError=\"\";\n\t\tswitch (seleccion) {// si es o.k pues lo guardo.\n\t\tcase JFileChooser.APPROVE_OPTION:\t\t\t\t\t\n\t\t\ttry {\n\t\t\t\telementosBackup.getClasificacion().escribirFicheroTexto(fileChooser.getSelectedFile().getPath()+\".txt\");\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif(mensajeError.length()==0) {\n\t\t\t\tJLabel label = new JLabel(\"Datos guardados correctamente en \"+fileChooser.getSelectedFile().getPath()+\".txt\");\n\t\t\t\tObject[] ob = {label};\n\t\t\t\tJOptionPane.showMessageDialog(null, ob, \"Guardar datos\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\t\t\telse \n\t\t\t\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, mensajeError, \"Guardar datos\", JOptionPane.ERROR_MESSAGE);\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault:\n\n\t\t}\n\t}",
"public void escritor(String path, int tvetor, int contador) throws IOException {\n\n BufferedWriter buffWrite = new BufferedWriter(new FileWriter(path));\n\n String linha = \"\";\n\n buffWrite.append(\"O tamanho do vetor é: \" + tvetor + \"\\n\");\n\n buffWrite.append(\"Quantidade de operações realizadas: \" + contador + \"\\n\");\n\n buffWrite.close();\n\n }",
"public void crearArchivoDeTexto(String rutas,String nombre, String texto){\n try{\n archivo = new File(rutas + File.separator + nombre);\n String rutaCompleta=archivo.getAbsolutePath();\n \n System.out.println(rutaCompleta);\n FileWriter archivoEscritura= new FileWriter(rutaCompleta,true);\n BufferedWriter escritura= new BufferedWriter(archivoEscritura);\n escritura.append(texto+\"\\n\");\n escritura.close();\n archivoEscritura.close();\n }catch(FileNotFoundException e1){\n System.out.println(\"Ruta de archivo no encontrada\");\n }catch(IOException e2){\n System.out.println(\"Error de escritura\");\n }catch(Exception e3){\n System.out.println(\"Error General\");\n }\n }",
"Persoana(Tools t, int cr) { ob = null; ti = t; currentrowi = cr; }"
]
| [
"0.61954784",
"0.6070511",
"0.59526414",
"0.56642133",
"0.5654073",
"0.5592348",
"0.55444235",
"0.5499549",
"0.5494415",
"0.5448755",
"0.54252344",
"0.54159296",
"0.5404716",
"0.5389065",
"0.5386918",
"0.53792053",
"0.53770965",
"0.5370893",
"0.5356226",
"0.53539336",
"0.53485197",
"0.5332813",
"0.53216547",
"0.53070855",
"0.53066784",
"0.53042585",
"0.529369",
"0.5284743",
"0.524411",
"0.52426326",
"0.52398396",
"0.52386415",
"0.5234788",
"0.52111685",
"0.5209505",
"0.5205683",
"0.5198309",
"0.5197067",
"0.518741",
"0.5156696",
"0.51562303",
"0.5155529",
"0.5135137",
"0.5134633",
"0.5131998",
"0.5124066",
"0.51168895",
"0.51030064",
"0.5097827",
"0.50755787",
"0.507304",
"0.50656617",
"0.50619054",
"0.50618273",
"0.50610805",
"0.5059074",
"0.5054034",
"0.5047409",
"0.5043167",
"0.5033139",
"0.5026284",
"0.5017431",
"0.50171685",
"0.5010709",
"0.50102586",
"0.5001611",
"0.4995746",
"0.49923724",
"0.49878746",
"0.49826798",
"0.49732494",
"0.4971947",
"0.49668604",
"0.49667528",
"0.49538177",
"0.4950907",
"0.4934828",
"0.49339992",
"0.4932564",
"0.49280712",
"0.4923712",
"0.4910658",
"0.49053714",
"0.48951137",
"0.4890157",
"0.48830792",
"0.48805434",
"0.48758647",
"0.48722327",
"0.4869845",
"0.4867748",
"0.4863715",
"0.48610306",
"0.48579955",
"0.48556882",
"0.48535502",
"0.485246",
"0.48467228",
"0.48426145",
"0.48420063"
]
| 0.74885076 | 0 |
Permite a execucao de um labirinto previamente salvo, informando se foi posivel encontrar a saida ou nao, exibindo o resultado no visor. O botao de salvar e bloqueado, nao permitindo salvar o labirinto resolvido. O lab que foi previamente instanciado e utilizado para chamar os metodos encontrarAdj e andadinha, que iniciam a resolucao do labirinto. Por fim, e exibido no log de erros o caminho percorrido. Caso ocorra algum erro, o erro e exibido no log de erros. | private void btnExecutarLabirinto(){
log.setText("Log de erros");
botao[2].setEnabled(false);
try{
lab.encontrarAdj();
lab.andadinha();
info.setText(" ");
visor.setText(lab.toString());
Pilha<Coordenada> caminho = lab.getCaminho();
Pilha<Coordenada> inverso = new Pilha<Coordenada>();
while(!caminho.isVazia())
{
inverso.guardeUmItem(caminho.recupereUmItem());
caminho.removaUmItem();
}
log.setText("Caminho percorrido: ");
while(!inverso.isVazia())
{
log.setText(log.getText() + inverso.recupereUmItem().toString() + " ");
inverso.removaUmItem();
}
}
catch(Exception erro1){
log.setText(erro1.getMessage());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean validaTerminalesLSSegunEmpresaLocal(int CodEmp,int CodLoc, int CodCot){\n boolean blnRes=true;\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n java.sql.Connection conLoc;\n try{\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(), objParSis.getUsuarioBaseDatos(), objParSis.getClaveBaseDatos());\n if (conLoc!=null){\n stmLoc=conLoc.createStatement();\n strSql=\"\"; \n strSql+=\" SELECT a1.co_emp, a1.co_loc, a1.co_cot, a2.tx_codALt, trim(SUBSTR (UPPER(a2.tx_codalt), length(a2.tx_codalt) ,1)) as terminal,\\n\";\n strSql+=\" CASE WHEN ( (trim(SUBSTR (UPPER(a3.tx_codalt), length(a3.tx_codalt) ,1)) IN ( \\n\";\n strSql+=\" SELECT UPPER(trim(tx_cad)) FROM tbm_reginv WHERE co_emp=\"+CodEmp+\" AND co_loc=\"+CodLoc+\" \\n\";\n strSql+=\" AND co_tipdoc=228 AND co_usr=(SELECT co_usrIng from tbm_cabCotVen WHERE co_emp=\"+CodEmp+\" AND co_loc=\"+CodLoc+\" AND co_cot=\"+CodCot+\" ) AND st_reg='A' /* AND st_tipmov='C' */ \\n\";\n strSql+=\" ))) THEN 'S' ELSE 'N' END as isterL \\n\";\n strSql+=\" FROM tbm_cabCotVen as a1 \\n\";\n strSql+=\" INNER JOIN tbm_detCotVen as a2 ON (a1.co_emp=a2.co_emp AND a1.co_loc=a2.co_loc AND a1.co_cot=a2.co_cot) \\n\";\n strSql+=\" INNER JOIN tbm_inv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_itm=a3.co_itm) \\n\";\n strSql+=\" WHERE a1.co_emp=\"+CodEmp+\" and a1.co_loc=\"+CodLoc+\" and a1.co_cot=\"+CodCot+\" \\n\";\n System.out.println(\"validaTerminalesLSSegunEmpresaLocal... \"+ strSql);\n rstLoc = stmLoc.executeQuery(strSql);\n while(rstLoc.next()){\n if(rstLoc.getString(\"terminal\").equals(\"L\") ){\n if(rstLoc.getString(\"isterL\").equals(\"N\")){\n blnRes=false;\n } \n }\n }\n rstLoc.close();\n rstLoc=null;\n stmLoc.close();\n stmLoc=null;\n conLoc.close();\n conLoc=null;\n }\n }\n catch (java.sql.SQLException e){\n objUti.mostrarMsgErr_F1(this, e);\n blnRes=false; \n }\n catch(Exception e){\n objUti.mostrarMsgErr_F1(null, e);\n blnRes=false;\n }\n return blnRes;\n }",
"public Resultado executarConsulta(Requisicao requisicao) throws Exception {\r\n return null;\r\n }",
"@Override\n public Nodo ejecutar() {\n listaNodos.add(nodoRaiz);\n //nodo almacenado temporalmente\n Nodo nodoActual;\n //cola de hijos producto de aplicar ops\n ArrayList <Nodo> cola;\n \n NODO:while(!(listaNodos.isEmpty()))\n {\n nodoActual=listaNodos.get(0);\n listaNodos.remove(0);\n //Detecto el nodo como un ciclo y salto si sí es luego verifico meta\n if(nodoCiclo(nodoActual))\n {\n \n// System.out.println(\"Es Ciclo: \"+nodoActual.getOperador());\n continue NODO;\n }\n else if(esMeta(nodoActual)){\n solucion(nodoActual);\n JOptionPane.showMessageDialog(null, \"nodos expandidos\"+nodoexpandidos+\"profundidad\"+profundidad);\n return nodoActual;\n }\n //Expando Nodo\n cola=expandirNodo(nodoActual);\n nodoexpandidos++;\n for(int i=0;i<cola.size();i++)\n {\n Nodo temporal=cola.get(i);\n cola.set(i, temporal);\n \n }\n //Armo cola general\n cola.addAll(listaNodos);\n listaNodos=(ArrayList <Nodo>)cola.clone();\n }\n return null;\n }",
"public static void localVotouEleitor() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tRegistoVoto ans = null;\n\t\tString cc, idEleicao;\n\t\tSystem.out.println(\"Insira o CC do eleitor que pretende pesquisar: \");\n\t\tcc = sc.nextLine();\n\t\tSystem.out.println(\"Insira o ID da eleicao que pretende pesquisar: \");\n\t\tidEleicao = sc.nextLine();\n\t\t\n\t\tint check = 0;\n\t\tint tries = 0;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tans = rmiserver.pesquisaLocalVoto(cc, idEleicao);\n\t\t\t\tif(ans != null) {\n\t\t\t\t\tSystem.out.println(\"\\nCC: \"+ans.cc+\"\\nID Eleicao: \"+idEleicao+\"\\nLocal: \"+ans.nomeDep+\"Data/Hora: \"+ans.dataVoto.toString());\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"Voto nao encontrado.\");\n\t\t\t\t}\n\t\t\t\tcheck = 1;\n\t\t\t} catch (RemoteException e1) {\n\t\t\t\t// Tratamento da Excepcao da chamada RMI addCandidatos\n\t\t\t\tif(tries == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries > 0 && tries < 24) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries >= 24) {\n\t\t\t\t\tSystem.out.println(\"Impossivel realizar a operacao devido a falha tecnica (Servidores RMI desligados).\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(check==0);\n\t\tcheck = 0;\n\n\t}",
"public int executarIr(int direcao) {\r\n //@todo T1 - invocar metodo do Model - atuar no ambiente\r\n model.ir(direcao);\r\n return 1; // deu certo\r\n }",
"public int executarIr(int direcao) {\r\n //@todo T1 - invocar metodo do Model - atuar no ambiente\r\n model.ir(direcao);\r\n return 1; // deu certo\r\n }",
"public void ejecutarConsola() {\n\n try {\n this._agente = new SearchAgent(this._problema, this._busqueda);\n this._problema.getInitialState().toString();\n this.imprimir(this._agente.getActions());\n this.imprimirPropiedades(this._agente.getInstrumentation());\n if (_esSolucion) {\n Logger.getLogger(Juego.class.getName()).log(Level.INFO, \"SOLUCIONADO\");\n } else {\n Logger.getLogger(Juego.class.getName()).log(Level.INFO, \"No lo he podido solucionar...\");\n }\n } catch (Exception ex) {\n System.out.println(ex);\n }\n }",
"public void EjecutarConsulta() {\n try {\n Consultar(\"select * from \"+table);\n this.resultSet = preparedStatement.executeQuery();\n } catch (Exception e) {\n// MessageEmergent(\"Fail EjecutarConsulta(): \"+e.getMessage());\n }\n }",
"private boolean validaTerminalesLReservaLocal(int CodEmp,int CodLoc, int CodCot){\n boolean blnRes=true;\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n java.sql.Connection conLoc;\n try{\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(), objParSis.getUsuarioBaseDatos(), objParSis.getClaveBaseDatos());\n if (conLoc!=null){\n stmLoc=conLoc.createStatement();\n strSql=\"\"; \n strSql+=\" SELECT a1.co_emp, a1.co_loc, a1.co_cot, a2.tx_codALt, trim(SUBSTR (UPPER(a2.tx_codalt), length(a2.tx_codalt) ,1)) as terminal \\n\";\n strSql+=\" FROM tbm_cabCotVen as a1 \\n\";\n strSql+=\" INNER JOIN tbm_detCotVen as a2 ON (a1.co_emp=a2.co_emp AND a1.co_loc=a2.co_loc AND a1.co_cot=a2.co_cot) \\n\";\n strSql+=\" INNER JOIN tbm_inv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_itm=a3.co_itm) \\n\";\n strSql+=\" WHERE a1.co_emp=\"+CodEmp+\" and a1.co_loc=\"+CodLoc+\" and a1.co_cot=\"+CodCot+\" \\n\";\n System.out.println(\"validaTerminalesLReservaLocal... \"+ strSql);\n rstLoc = stmLoc.executeQuery(strSql);\n while(rstLoc.next()){\n if(rstLoc.getString(\"terminal\").equals(\"L\")){\n blnRes=false;\n }\n }\n rstLoc.close();\n rstLoc=null;\n stmLoc.close();\n stmLoc=null;\n conLoc.close();\n conLoc=null;\n }\n }\n catch (java.sql.SQLException e){\n objUti.mostrarMsgErr_F1(this, e);\n blnRes=false; \n }\n catch(Exception e){\n objUti.mostrarMsgErr_F1(null, e);\n blnRes=false;\n }\n return blnRes;\n }",
"private static void dbempresasNotExists(){\n new Thread(() -> {\n \n try {\n \n //Grt the connection params to dbempresas\n final ConfigFileModel ConfigFileModel = ConfigFileUtil.getSingleton().getConfigFileModel();\n \n //Create the jdbc datanase\n MysqlScriptsUtil.getInstance().creaDBJDBC(ConfigFileModel.getDb(), ConfigFileModel.getUser(), ConfigFileModel.getPassword(), ConfigFileModel.getInstance(), Integer.valueOf(ConfigFileModel.getPort()));\n \n //Create hibernate schemes and initial connection for dbempresas\n HibernateUtil.getSingleton().createDbEmpresas(); \n \n //Insert base catalogs in dbempresa\n MysqlScriptsUtil.getInstance().loadDBEmpresasCatalogFileIntoDatabase(ConfigFileModel.getDb(), ConfigFileModel.getUser(), ConfigFileModel.getPassword(), ConfigFileModel.getInstance(), Integer.valueOf(ConfigFileModel.getPort()));\n \n //Continue with the normal system flow\n veryLicense();\n \n } catch (Exception ex) {\n LoggerUtility.getSingleton().logError(Start.class, ex);\n\n try {\n //Rollback\n final HibernateConfigModel HibernateConfigModel_ = HibernateUtil.getSingleton().getHibernateConfigModelDbempresas();\n MysqlScriptsUtil.getInstance().rollbackDBEmpresas(HibernateConfigModel_.getUser(), HibernateConfigModel_.getPassword(), HibernateConfigModel_.getInstance(), HibernateConfigModel_.getPort());\n \n } catch (Exception ex1) {\n LoggerUtility.getSingleton().logError(Start.class, ex1);\n }\n \n ViewsFactory.getSingleton().getDialogJFrame(ex.getMessage()).setVisible();\n \n System.exit(-1);\n }\n \n }).start();\n }",
"private void esegui() {\n /* variabili e costanti locali di lavoro */\n OperazioneMonitorabile operazione;\n\n try { // prova ad eseguire il codice\n\n /**\n * Lancia l'operazione di analisi dei dati in un thread asincrono\n * al termine il thread aggiorna i dati del dialogo\n */\n operazione = new OpAnalisi(this.getProgressBar());\n operazione.avvia();\n\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n }",
"@Override\r\n public Resultado consultar(EntidadeDominio entidade) {\n String nmClass = entidade.getClass().getName();\r\n // instanciando DAO de acordo com a classe\r\n IDAO dao = daos.get(nmClass);\r\n //executando validações de regras de negocio \r\n String msg = executarRegras(entidade, \"PESQUISAR\");\r\n if (msg.isEmpty()) {\r\n if (dao.consultar(entidade).isEmpty()) {\r\n //caso dados não foram encontrados\r\n resultado.setMsg(\"dados nao encontrados\");\r\n } else {\r\n //caso dados foram encontrados \r\n resultado.setMsg(\"pesquisa feita com sucesso\");\r\n }\r\n resultado.setEntidades(dao.consultar(entidade));\r\n } else {\r\n resultado.setMsg(msg.toString());\r\n }\r\n return resultado;\r\n }",
"private void limpiar() {\n // Si se llega a usar este método es porque ha habido una excepción (ya sea por un verdadero\n // error o porque el cliente ha terminado la conexión o porque han pasado\n // TIEMPO_DESCONEXION_AUTOMATICA milisegundos sin comunicación del cliente).\n // Nótese que el código de cierre es riguroso: una versión más abreviada podría limitarse\n // a intentar cerrar el socket (los flujos de E/S se cierran al cerrarse éste); el único problema\n // que podría aparecer en esa versión del código es que podrían quedarse abiertos los flujos si\n // no se pudiera cerrar el socket (esta posibilidad es inhabitual: normalmente, si el socket no\n // se puede cerrar es porque ya se había cerrado antes).\n // El igualar entrada, salida y socket a null es una buena práctica cuando se puede llamar\n // varias veces a limpiar(); así se evita intentar cerrar dos veces un objeto.\n if ( entrada != null ) {\n try {\n entrada.close();\n }\n catch (IOException e1) {}\n entrada = null;\n }\n if ( salida != null ) {\n salida.close();\n salida = null;\n }\n if ( socket != null ) {\n try {\n socket.close();\n } \n catch (IOException e2) {}\n socket = null;\n }\n }",
"public Resultado executar(Requisicao requisicao) throws Exception {\r\n if (Logger.estaHabilitadoDebug(this)) {\r\n Logger.debug(this, \"***** Chamada ao servico de inclusao de Cesta de Garantias ***** \");\r\n }\r\n\r\n RequisicaoServicoRegistraCadastroCestaGarantias req = (RequisicaoServicoRegistraCadastroCestaGarantias) requisicao;\r\n ResultadoServicoRegistraCadastroCestaGarantias res = new ResultadoServicoRegistraCadastroCestaGarantias();\r\n\r\n // validacao na mesma transacao?\r\n Booleano valida = req.obterGARANTIAS_CODIGO_Booleano();\r\n if (!Condicional.vazio(valida) && valida.ehVerdadeiro()) {\r\n RequisicaoServicoValidaCadastroCestaGarantias reqV = new RequisicaoServicoValidaCadastroCestaGarantias();\r\n reqV.atribuirGARANTIAS_PARTICIPANTE_CodigoContaCetip(req.obterGARANTIAS_PARTICIPANTE_CodigoContaCetip());\r\n reqV.atribuirGARANTIAS_CONTRAPARTE_CodigoContaCetip(req.obterGARANTIAS_CONTRAPARTE_CodigoContaCetip());\r\n ServicoValidaCadastroCestaGarantias servicoValida = new ServicoValidaCadastroCestaGarantias();\r\n servicoValida.setGarantias(getFactory());\r\n servicoValida.executarConsulta(reqV);\r\n }\r\n\r\n gp = getGp();\r\n\r\n CestaGarantiasDO nrCesta = criaEntradaCesta(req);\r\n Id codigo = nrCesta.getNumIdCestaGarantias();\r\n res.atribuirGARANTIAS_CODIGO_Id(codigo);\r\n return res;\r\n }",
"private void checkExecutionStatus() {\r\n\t\tif (detenido) {\r\n\t\t\tthrow new RejectedExecutionException(\"el procesador está detenido. no puede aceptar más tareas\");\r\n\t\t}\r\n\t}",
"public Resultado executar(Requisicao requisicao) throws Exception {\r\n if (Logger.estaHabilitadoDebug(this)) {\r\n Logger.debug(this, \"***** Manutencao de Itens na Cesta de Garantias Via Arquivo ***** \");\r\n }\r\n\r\n idAtivos = new HashMap();\r\n\r\n Servico validacao = new ServicoValidaCadastroItensCestaGarantias();\r\n Servico inclusaoAporte = new ServicoRegistraItensCestaGarantias();\r\n Servico delecao = new ServicoDelecaoItensCestaGarantias();\r\n\r\n // Primeiro valida todas as linhas\r\n AtributosColunados ac = requisicao.obterAtributosColunados();\r\n while (ac.avancarLinha()) {\r\n populaValores(ac);\r\n if (!funcaoItem.mesmoConteudo(ICestaDeGarantias.EXCLUIR_GARANTIA)) {\r\n RequisicaoServicoValidaCadastroItensCestaGarantias reqV = new RequisicaoServicoValidaCadastroItensCestaGarantias();\r\n reqV.atribuirGARANTIAS_PARTICIPANTE_CodigoContaCetip(parte);\r\n reqV.atribuirGARANTIAS_CONTRAPARTE_CodigoContaCetip(contraParte);\r\n reqV.atribuirGARANTIAS_CODIGO_TIPO_CodigoTipoIF(codigoTipoIF);\r\n reqV.atribuirGARANTIAS_CODIGO_IF_CodigoIF(codigoIF);\r\n reqV.atribuirGARANTIAS_QUANTIDADE_Quantidade(quantidade);\r\n reqV.atribuirGARANTIAS_ITENS_Booleano(indEventosGarantidor);\r\n reqV.atribuirGARANTIAS_ITENS_DescricaoLimitada(descricao);\r\n reqV.atribuirGARANTIAS_DATA_CRIACAO_Data(data);\r\n reqV.atribuirGARANTIAS_CODIGO_IdTipoGarantia(idTipoGarantia);\r\n reqV.atribuirGARANTIAS_TIPO_ACESSO_Funcao(tipoAcesso);\r\n reqV.atribuirACAO_Funcao(funcaoItem);\r\n reqV.atribuirGARANTIAS_CODIGO_NumeroCestaGarantia(numeroCestaGarantia);\r\n reqV.atribuirOPERACAO_NumeroOperacao(numOperacao);\r\n\r\n // Valida a linha\r\n validacao.executarConsulta(reqV);\r\n }\r\n\r\n }\r\n\r\n ac.reiniciarLinha();\r\n while (ac.avancarLinha()) {\r\n populaValores(ac);\r\n\r\n // Insere ou Aporta / Deleta\r\n if (funcaoItem.mesmoConteudo(ICestaDeGarantias.INCLUIR_GARANTIA)\r\n || funcaoItem.mesmoConteudo(ICestaDeGarantias.APORTAR_GARANTIA)) {\r\n RequisicaoServicoRegistraItensCestaGarantias reqItem = new RequisicaoServicoRegistraItensCestaGarantias();\r\n\r\n reqItem.atribuirACAO_Funcao(funcaoItem);\r\n reqItem.atribuirGARANTIAS_CODIGO_Id(codigoIdCesta);\r\n reqItem.atribuirGARANTIAS_CODIGO_IF_CodigoIF(codigoIF);\r\n reqItem.atribuirGARANTIAS_PARTICIPANTE_CodigoContaCetip(parte);\r\n reqItem.atribuirGARANTIAS_CONTRAPARTE_CodigoContaCetip(contraParte);\r\n reqItem.atribuirGARANTIAS_CODIGO_TIPO_CodigoTipoIF(codigoTipoIF);\r\n reqItem.atribuirGARANTIAS_CODIGO_IdTipoGarantia(idTipoGarantia);\r\n reqItem.atribuirGARANTIAS_QUANTIDADE_Quantidade(quantidade);\r\n reqItem.atribuirGARANTIAS_ITENS_Booleano(indEventosGarantidor);\r\n reqItem.atribuirGARANTIAS_ITENS_DescricaoLimitada(descricao);\r\n reqItem.atribuirGARANTIAS_TIPO_ACESSO_Funcao(tipoAcesso);\r\n reqItem.atribuirOPERACAO_NumeroOperacao(numOperacao);\r\n\r\n inclusaoAporte.executar(reqItem);\r\n\r\n } else if (funcaoItem.mesmoConteudo(ICestaDeGarantias.EXCLUIR_GARANTIA)) {\r\n RequisicaoServicoDelecaoItensCestaGarantias reqItemDelecao = new RequisicaoServicoDelecaoItensCestaGarantias();\r\n reqItemDelecao.atribuirGARANTIAS_CODIGO_Id(codigoIdCesta);\r\n reqItemDelecao.atribuirGARANTIAS_CODIGO_NumeroCestaGarantia(numeroCestaGarantia);\r\n reqItemDelecao.atribuirGARANTIAS_CODIGO_IF_CodigoIF(codigoIF);\r\n reqItemDelecao.atribuirGARANTIAS_PARTICIPANTE_CodigoContaCetip(parte);\r\n reqItemDelecao.atribuirGARANTIAS_CONTRAPARTE_CodigoContaCetip(contraParte);\r\n reqItemDelecao.atribuirGARANTIAS_CODIGO_TIPO_CodigoTipoIF(codigoTipoIF);\r\n reqItemDelecao.atribuirGARANTIAS_CODIGO_IdTipoGarantia(idTipoGarantia);\r\n reqItemDelecao.atribuirGARANTIAS_QUANTIDADE_Quantidade(quantidade);\r\n reqItemDelecao.atribuirGARANTIAS_ITENS_Booleano(indEventosGarantidor);\r\n reqItemDelecao.atribuirOPERACAO_NumeroOperacao(numOperacao);\r\n reqItemDelecao.atribuirGARANTIAS_ITENS_DescricaoLimitada(descricao);\r\n\r\n delecao.executar(reqItemDelecao);\r\n }\r\n }\r\n\r\n return new ResultadoServicoManutencaoItensCestaGarantiasViaArquivo();\r\n }",
"public static void consultaEleicoesPassadas() {\n\t\tArrayList<Eleicao> lista;\n\t\t\n\t\tint check = 0;\n\t\tint tries = 0;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tlista = rmiserver.getEleicoesPassadas();\n\t\t\t\tif(lista.isEmpty()) {\n\t\t\t\t\tSystem.out.println(\"Nao existem eleicoes para mostrar.\");\n\t\t\t\t}else {\n\t\t\t\t\tfor(Eleicao x: lista) {\n\t\t\t\t\t\tSystem.out.println(\"\\nEleicao \"+x.titulo);\n\t\t\t\t\t\tSystem.out.println(\"\\tID: \"+x.id);\n\t\t\t\t\t\tSystem.out.println(\"\\tDescricao: \"+x.descricao);\n\t\t\t\t\t\tSystem.out.println(\"\\tData Inicio: \"+x.dataInicio.toString());\n\t\t\t\t\t\tSystem.out.println(\"\\tData Fim: \"+x.dataInicio.toString());\n\t\t\t\t\t\tSystem.out.println(\"Resultados: \");\n\t\t\t\t\t\tif(x.tipo == 1) {\n\t\t\t\t\t\t\tif(x.registoVotos.size()>0) {\n\t\t\t\t\t\t\t\tfor(Lista y: x.listaCandidaturas) {\n\t\t\t\t\t\t\t\t\tdouble perc = y.contagem/(double)x.registoVotos.size() * 100;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(x.registoVotos.size()>0) {\n\t\t\t\t\t\t\t\tint alunos = 0, docentes = 0, funcs = 0;\n\t\t\t\t\t\t\t\tfor(Lista y:x.listaCandidaturas) {\n\t\t\t\t\t\t\t\t\tif(y.tipoLista.equals(\"1\")) {\n\t\t\t\t\t\t\t\t\t\talunos += y.contagem;\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"2\")) {\n\t\t\t\t\t\t\t\t\t\tfuncs += y.contagem;\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"3\")) {\n\t\t\t\t\t\t\t\t\t\tdocentes += y.contagem;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor(Lista y: x.listaCandidaturas) {\n\t\t\t\t\t\t\t\t\tif(y.tipoLista.equals(\"1\")) {\n\t\t\t\t\t\t\t\t\t\tif(alunos>0) {\n\t\t\t\t\t\t\t\t\t\t\tdouble perc = (double)y.contagem/(double)alunos * 100;\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": 0% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"2\")) {\n\t\t\t\t\t\t\t\t\t\tif(funcs>0) {\n\t\t\t\t\t\t\t\t\t\t\tdouble perc = (double)y.contagem/(double)funcs * 100;\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": 0% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"3\")) {\n\t\t\t\t\t\t\t\t\t\tif(docentes>0) {\n\t\t\t\t\t\t\t\t\t\t\tdouble perc = (double)y.contagem/(double)docentes * 100;\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": 0% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"4\")) {\n\t\t\t\t\t\t\t\t\t\tdouble perc = y.contagem/(double)x.registoVotos.size() * 100;\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% sobre Total (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcheck = 1;\n\t\t\t} catch (RemoteException e1) {\n\t\t\t\t// Tratamento da Excepcao da chamada RMI addCandidatos\n\t\t\t\tif(tries == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries > 0 && tries < 24) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries >= 24) {\n\t\t\t\t\tSystem.out.println(\"Impossivel realizar a operacao devido a falha tecnica (Servidores RMI desligados).\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(check==0);\n\t\tcheck = 0;\n\t\t\n\t\t\n\t}",
"@Override\r\n public ExpedienteGSMDTO veriActuFlgTramFinalizadoDsr(Long idExpediente,Long idOrdenServicio,Long idResultadoSupervision,UsuarioDTO usuarioDTO) throws ExpedienteException{\r\n LOG.info(\"veriActuFlgTramFinalizadoDsr\");\r\n ExpedienteGSMDTO retorno=null;\r\n try{\r\n PghResultadoSupervision resSup = crud.find(idResultadoSupervision, PghResultadoSupervision.class);\r\n \r\n PghExpediente expe = crud.find(idExpediente, PghExpediente.class);\r\n if(resSup.getCodigo().equals(Constantes.CODIGO_RESULTADO_SUPERVISION_CUMPLE) || resSup.getCodigo().equals(Constantes.CODIGO_RESULTADO_SUPERVISION_CUMPLE_OBSTACULIZADO)){\r\n expe.setFlagTramiteFinalizado(Constantes.ESTADO_ACTIVO);\r\n }else if(resSup.getCodigo().equals(Constantes.CODIGO_RESULTADO_SUPERVISION_NOCUMPLE) || resSup.getCodigo().equals(Constantes.CODIGO_RESULTADO_SUPERVISION_NOCUMPLE_OBSTACULIZADO)){\r\n expe.setFlagTramiteFinalizado(Constantes.ESTADO_INACTIVO);\r\n }else{\r\n throw new ExpedienteException(\"Casuistica no encontrada para Finalizar la Orden de Servicio. Revisar Supervision.\",null);\r\n }\r\n expe.setDatosAuditoria(usuarioDTO);\r\n crud.update(expe);\r\n retorno=ExpedienteGSMBuilder.toExpedienteDto(expe);\r\n }catch(Exception e){\r\n LOG.error(\"error en veriActuFlgTramFinalizadoDsr\",e);\r\n ExpedienteException ex = new ExpedienteException(e.getMessage(), e);\r\n throw ex;\r\n }\r\n return retorno;\r\n }",
"private void enviarCorreoSolicitudDenegada(int CodEmp, int CodLoc, int CodCot){\n java.sql.Connection conLoc;\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n try{\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(), objParSis.getUsuarioBaseDatos(), objParSis.getClaveBaseDatos());\n if(conLoc!=null){\n stmLoc=conLoc.createStatement();\n strSql= \" SELECT a2.tx_corEle \\n\";\n strSql+=\" FROM tbm_cabCotVen as a1 \\n\";\n strSql+=\" INNER JOIN tbm_usr as a2 ON (a1.co_usrIng=a2.co_usr) \\n\";\n strSql+=\" WHERE a1.co_emp=\"+CodEmp+\" AND a1.co_loc=\"+CodLoc+\" AND a1.co_cot=\"+CodCot+\" \";\n rstLoc = stmLoc.executeQuery(strSql);\n if(rstLoc.next()){\n objCorEle.enviarCorreoMasivo(rstLoc.getString(\"tx_corEle\"), \"Sistema de Reservas: \", \"La solicitud de reserva, que corresponde a la cotizacion \"+CodCot+\" ha sido denegada.\");\n }\n rstLoc.close();\n rstLoc=null;\n stmLoc.close();\n stmLoc=null;\n conLoc.close();\n conLoc=null;\n }\n }\n catch (java.sql.SQLException e) { \n \n objUti.mostrarMsgErr_F1(this, e); \n }\n catch(Exception Evt){ \n objUti.mostrarMsgErr_F1(this, Evt);\n } \n }",
"private void verificar_comando(String comando, InterfazRemota interfaz, int puerto) {\n\tString cmd[] = comando.split(\"[\\\\s]+\");\n\tString aux[];\n\tString servidor;\n\tString archivo;\n\n\tif (cmd[0].equalsIgnoreCase(\"C\") && cmd.length == 3){\n\t if (cmd[1].equalsIgnoreCase(\"-t\") || cmd[1].equalsIgnoreCase(\"-k\")){\n\t\ttry {\n\t\t SalidaDFS salida = interfaz.dfs_distribuido(cmd[1] + \" \" + cmd[2], new Vector<String>());\n\t\t if ((salida.resultado).equals(\"\")){\n\t\t\tSystem.out.println(\"No hubo resultados \\n\");\n\t\t }\n\t\t else {\n\t\t\tSystem.out.println(salida.resultado);\n\t\t }\n\t\t \n\t\t}\n\t\tcatch (java.rmi.RemoteException r) {\n\t\t System.err.println(\"No se pudo establecer conexion con el servidor\");\n\t\t}\n\t\tfinally {\n\t\t return;\n\t\t}\n\t }\n\t /* Comando invalido */\n\t else System.out.println(\"Codigo Invalido\");\n\t}\n\t/* Solicitar una foto */\n\telse if (cmd[0].equalsIgnoreCase(\"D\") && cmd.length == 2 && cmd[1].matches(\"[\\\\S]+[:][\\\\S]+jpg\")){\n\t aux = cmd[1].split(\":\");\n\t servidor = aux[0];\n\t archivo = aux[1];\n\t try {\n\t\tInterfazRemota transferencia = null;\n\t\t\n\t\ttry {\n\t\t transferencia = (InterfazRemota)java.rmi.Naming.lookup(\"//\" + servidor + \":\" + puerto + \"/fotop2p\");\n\t\t}\n\t\tcatch (NotBoundException e) {\n\t\t System.err.println(\"No existe el servicio solicitado en \" + servidor + \":\" + puerto);\n\t\t System.exit(-1);\n\t\t}\n\t\tcatch (MalformedURLException m) {\n\t\t System.err.println(\"No se pudo establecer conexion con el servidor: URL incorrecta\");\n\t\t System.exit(-1);\n\t\t}\n\t\tcatch (java.rmi.RemoteException r) {\n\t\t System.err.println(\"No se pudo establecer conexion con el servidor\");\n\t\t System.exit(-1);\n\t\t}\n\n\t\tbyte [] foto = transferencia.archivo_a_bytes(archivo);\n\t\t\n\t\tif (foto == null) {\n\t\t System.out.println(\"Foto no encontrada o error al abrirla en el servidor\");\n\t\t}\n\t\telse {\n\t\t FileOutputStream fos = new FileOutputStream(\"./\" + archivo);\n\t\t BufferedOutputStream bos = new BufferedOutputStream(fos);\n\t\t bos.write(foto,0,foto.length);\n\t\t System.out.println(\"Foto recibida exitosamente \\n\");\n\n\t\t}\n\t }\n\t catch (java.rmi.RemoteException r) {\n\t\tSystem.err.println(\"No se pudo establecer conexion con el servidor\");\n\t }\n\t catch(IOException i) {\n\t\tSystem.err.println(\"Error al escribir el archivo\");\n\t }\n\t finally {\n\t\treturn;\n\t }\n\t}\n\t/* obterner numero de alcanzables */\n\telse if (cmd[0].equalsIgnoreCase(\"A\") && cmd.length == 1){\n\t try {\n\t\tVector<String> alc = interfaz.alcanzables(new Vector<String>());\n\t\tSystem.out.println(\"Alcanzables: \" + alc.size());\n\t }\n\t catch (java.rmi.RemoteException r) {\n\t\tSystem.out.println(\"No se pudo establecer conexion con el servidor\");\n\t\t\n\t\tSystem.out.println(r.getMessage());\n\t\tr.printStackTrace();\n\t }\n\t finally {\n\t\treturn;\n\t }\n\t}\n\t/* Salir */\n\telse if (cmd[0].equalsIgnoreCase(\"Q\") && cmd.length == 1 ){\n\t System.out.println(\"Chao\");\n\t System.exit(0);\n\t}\n \telse {\n\t System.out.println(\"Comando Invalido\");\n\t return;\n\t}\n }",
"private boolean getEstadoProceso(int indiceProceso ,int CodEmp, int CodLoc, int CodCot){\n boolean blnRes=false;\n java.sql.Connection conLoc;\n java.sql.ResultSet rstLoc;\n java.sql.Statement stmLoc;\n try{ //null=No tiene;P=Pendiente;C=Completa\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(),objParSis.getUsuarioBaseDatos(),objParSis.getClaveBaseDatos());\n if(conLoc!=null){\n stmLoc = conLoc.createStatement();\n strSql=\"\";\n strSql+=\" SELECT a1.co_emp,a1.co_loc,a1.co_cot, \\n\";\n strSql+=\" CASE WHEN a1.st_solResInv IS NULL THEN 'N' ELSE a1.st_solResInv END as st_solResInv \\n\";\n strSql+=\" FROM tbm_cabCotVen as a1 \\n\";\n strSql+=\" WHERE a1.co_emp=\"+CodEmp+\" AND a1.co_loc=\"+CodLoc+\" AND a1.co_cot=\"+CodCot+\" \\n\";\n rstLoc = stmLoc.executeQuery(strSql);\n if(rstLoc.next()){\n switch(indiceProceso){\n case 1: \n if(rstLoc.getString(\"st_solResInv\").equals(\"N\")) \n blnRes=true; \n break;\n case 2: \n if(rstLoc.getString(\"st_solResInv\").equals(\"P\"))\n blnRes=true;\n break;\n case 3: \n if(rstLoc.getString(\"st_solResInv\").equals(\"C\"))\n blnRes=true;\n break;\n } \n }\n rstLoc.close();\n rstLoc=null;\n stmLoc.close();\n stmLoc=null;\n conLoc.close();\n conLoc=null;\n }\n \n }\n catch (java.sql.SQLException e){\n blnRes=false;\n objUti.mostrarMsgErr_F1(this, e);\n }\n catch (Exception e){\n blnRes=false;\n objUti.mostrarMsgErr_F1(this, e);\n }\n return blnRes;\n }",
"public void executarLogica() {\n\t\tchecarTarefaValida();\n\t\texecutar();\n\t\texecutandoTarefa();\n\t\tfinalizarTarefa();\n\t}",
"private void testePerformaceUtilizandoPesquisaLinear(String arquivo) {\n\t\tleituraDo(arquivo);\r\n\t\t\r\n\t\t// QUANDO EU EXECUTAR A PESQUISA LINEAR\r\n\t\tlong tempoInicial = System.currentTimeMillis(); \r\n\t\t@SuppressWarnings(\"static-access\")\r\n\t\tint posicaoPalavraPesquisada = algoritimoDePesquisa.pesquisaLinear(leitor.getConjuntoPalavrasArquivo(), \"casa\");\r\n\t\tlong tempoFinal = System.currentTimeMillis(); \r\n\t\t\r\n\t\t// ENTÃO ELE DEVE ACHAR A PALAVRA CHAVE E DEVO PRINTAR O TEMPO DE EXECUÇÃO NA TELA\r\n\t\tprintResultado(arquivo, \"Linear\", posicaoPalavraPesquisada,tempoFinal - tempoInicial);\r\n\t}",
"public void execute()\n/* */ throws Pausable, Exception\n/* */ {\n/* 378 */ errNotWoven(this);\n/* */ }",
"public void PoblarINFO(String llamado) {//C.P.M Aqui llega como argumento llamado\r\n try {\r\n rs = modelo.Obteninfo();//C.P.M Mandamos a poblar la informacion de negocio\r\n if (llamado.equals(\"\")) {//C.P.M si el llamado llega vacio es que viene de la interface\r\n while (rs.next()) {//C.P.M recorremos el resultado para obtener los datos\r\n vista.jTNombreempresa.setText(rs.getString(1));//C.P.M los datos los enviamos a la vista de la interface\r\n vista.jTDireccion.setText(rs.getString(2));\r\n vista.jTTelefono.setText(rs.getString(3));\r\n vista.jTRFC.setText(rs.getString(4));\r\n }\r\n }\r\n if (llamado.equals(\"factura\")) {//C.P.M de lo contrario es llamado de factura y los valores se van a la vista de vactura \r\n while (rs.next()) {//C.P.M recorremos el resultado \r\n vistafactura.jTNombreempresa.setText(rs.getString(1));//C.P.M enviamos los datos a la vista de factura\r\n vistafactura.jTDireccion.setText(rs.getString(2));\r\n vistafactura.jTTelefono.setText(rs.getString(3));\r\n vistafactura.jTRFC.setText(rs.getString(4));\r\n }\r\n }\r\n } catch (SQLException ex) {//C.P.M Notificamos a el usuario si ocurre algun error\r\n JOptionPane.showMessageDialog(null,\"Ocurio un error al intentar consultar la informacion del negocio\");\r\n }\r\n }",
"public boolean ejecutar() {\n\n try {\n\n this._agente = new SearchAgent(this._problema, this._busqueda);\n this._problema.getInitialState().toString();\n //this.imprimir(this._agente.getActions());\n //this.imprimirPropiedades(this._agente.getInstrumentation());\n if (_esSolucion) {\n // Logger.getLogger(Juego.class.getName()).log(Level.INFO, \"¡SOLUCIONADO!\");\n return true;\n } else {\n // Logger.getLogger(Juego.class.getName()).log(Level.INFO, \"No lo he podido solucionar...\");\n return false;\n }\n } catch (Exception ex) {\n System.out.println(ex);\n return false;\n }\n\n }",
"private void validarPessoa(Lancamento lancamento) {\n\t\tPessoa pessoa = null;\n\t\tif (lancamento.getPessoa().getId() != null)\n\t\t\tpessoa = pessoaRepository.findPessoaById(lancamento.getPessoa().getId());\n\t\tif (pessoa == null || !pessoa.getAtivo())\n\t\t\tthrow new PessoaInexistenteOuInativaException();\n\t}",
"@Test\r\n\tpublic void CT03ConsultarLivroComRaNulo() {\r\n\t\ttry {\r\n\t\t\t// cenario\r\n\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\tUsuario usuario;\r\n\t\t\t// acao\r\n\t\t\tusuario = ObtemUsuario.comRA_nulo();\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\t// verificacao\r\n\t\t\tassertEquals(\"RA inválido\", e.getMessage());\r\n\t\t}\r\n\t}",
"@Override\r\n public Resultado salvar(EntidadeDominio entidade) {\n String nmClass = entidade.getClass().getName();\r\n //executando validações de regras de negocio \r\n String msg = executarRegras(entidade, \"SALVAR\");\r\n //chamando DAO em caso de todas as validações atendidas\r\n if (msg.isEmpty()) {\r\n IDAO dao = daos.get(nmClass);\r\n dao.salvar(entidade);\r\n resultado.setMsg(\"Dados salvos no Banco de Dados\");\r\n List<EntidadeDominio> entidades = new ArrayList<>();\r\n entidades.add(entidade);\r\n resultado.setEntidades(entidades);\r\n // retornando msg de falha de validação sem poder acessar o DAO\r\n } else {\r\n resultado.setMsg(msg.toString());\r\n }\r\n return resultado;\r\n }",
"public Resultado executarConsulta(Requisicao requisicao) throws Exception {\r\n throw new UnsupportedOperationException();\r\n }",
"private String executarRegras(EntidadeDominio entidade, String operacao) {\n String nmClasse = entidade.getClass().getName();\r\n //para construção de String de mensagens\r\n StringBuilder msg = new StringBuilder();\r\n //mapeando classes com lista de estrategies\r\n Map<String, List<IStrategy>> regrasOperacao = rns.get(nmClasse);\r\n //caso tenha regras de negocio associada à classe\r\n if (!regrasOperacao.isEmpty()) {\r\n List<IStrategy> regras = regrasOperacao.get(operacao);\r\n //caso tenha regras de negocio associada à operação da classe\r\n if (!regras.isEmpty()) {\r\n for (IStrategy s : regras) {\r\n //checando mensagens de regras de negocio\r\n String m = s.processar(entidade);\r\n if (!m.isEmpty()) {\r\n //adicionando mensagens na StringBuilder\r\n msg.append(m);\r\n }\r\n }\r\n }\r\n }\r\n if (msg.length() > 0) {\r\n return msg.toString();\r\n } else {\r\n return \"\";\r\n }\r\n }",
"public void consultasSeguimiento() {\r\n try {\r\n switch (opcionMostrarAnalistaSeguim) {\r\n case \"Cita\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(2, mBsesion.codigoMiSesion());\r\n break;\r\n case \"Entrega\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(3, mBsesion.codigoMiSesion());\r\n break;\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".consultasSeguimiento()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }",
"public void okFind()\n {\n ASPManager mgr = getASPManager();\n\n trans.clear();\n q = trans.addQuery(headblk);\n q.addWhereCondition(\"WO_NO<(SELECT Number_Serie_API.Get_Last_Wo_Number FROM DUAL) AND CONTRACT IN(SELECT User_Allowed_Site_API.Authorized(CONTRACT) FROM DUAL)\");\n q.addWhereCondition(\"CONNECTION_TYPE_DB = 'EQUIPMENT'\");\n q.includeMeta(\"ALL\");\n\n // nimhlk - Begin\n if (mgr.dataTransfered())\n {\n ASPBuffer retBuffer = mgr.getTransferedData();\n if (retBuffer.itemExists(\"WO_NO\"))\n {\n String ret_wo_no = retBuffer.getValue(\"WO_NO\");\n q.addWhereCondition(\"WO_NO = ?\");\n q.addParameter(\"WO_NO\",ret_wo_no);\n }\n else\n q.addOrCondition(mgr.getTransferedData());\n }\n // nimhlk - End\n\n mgr.querySubmit(trans,headblk);\n\n if (headset.countRows() == 0)\n {\n mgr.showAlert(mgr.translate(\"PCMWACTIVESEPARATENODATA: No data found.\"));\n headset.clear();\n }\n if (headset.countRows() == 1)\n {\n lay.setLayoutMode(lay.SINGLE_LAYOUT);\n }\n mgr.createSearchURL(headblk);\n }",
"private void avaliar(ArrayList<ArmazenaErroOuAvisoAntigo> erros) {\r\n\r\n\t\tArmazenaErroOuAvisoAntigo erro = null;\r\n\r\n\t\t/*\r\n\t\t * Itera os erros.\r\n\t\t */\r\n\t\tfor (Iterator<ArmazenaErroOuAvisoAntigo> iteracao = erros.iterator(); iteracao.hasNext();) {\r\n\r\n\t\t\terro = iteracao.next();\r\n\r\n\t\t\t/*\r\n\t\t\t * Identacao da tag.\r\n\t\t\t */\r\n\t\t\terro.setEspaco(Espaco2Tag);\r\n\r\n\t\t\t/*\r\n\t\t\t * Tag em texto.\r\n\t\t\t */\r\n\t\t\terro.setTagCompleta(tagCompleta);\r\n\r\n\t\t\t/*\r\n\t\t\t * Posicao da tag.\r\n\t\t\t */\r\n\t\t\terro.setPosicao(new Posicao2(linhaTag, colunaTag));\r\n\r\n\t\t\t// System.out.print(\"erro.getProcurado()=\"+erro.getProcurado()+\"\\n\");\r\n\t\t\t// System.out.print(\"erro.isTag()=\"+erro.isTag()+\"\\n\");\r\n\t\t\t// if((currentTagName.equals(\"option\") ||\r\n\t\t\t// (currentTagName.equals(\"input\") &&\r\n\t\t\t// tagCompleta.toLowerCase().contains(\"hidden\"))) &&\r\n\t\t\t// erro.getProcurado().equals(\"VALUE\")){\r\n\t\t\t// Esses erros nao existem, tentar otimizar depois\r\n\t\t\t// }else{\r\n\t\t\tif (currentTagName.equals(\"input\")\r\n\t\t\t\t\t&& (tagCompleta.toLowerCase().contains(\"submit\") || tagCompleta.toLowerCase().contains(\"buttom\"))\r\n\t\t\t\t\t&& erro.getProcurado().equals(\"ONCLICK\")) {\r\n\r\n\t\t\t\t// System.out.print(\"erro.getProcurado()=\" + erro.getProcurado()\r\n\t\t\t\t// + \"\\n\");\r\n\t\t\t\t// System.out.print(\"Erro omitido\\n\");\r\n\r\n\t\t\t\treturn;\r\n\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t * Se erro deve ser passado pela avaliacao de tag, senao agrupe\r\n\t\t\t * direto na lista de erros.\r\n\t\t\t */\r\n\r\n\t\t\tif (erro.isTag()) {\r\n\r\n\t\t\t\tsetErrados(erro);\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\t// agrupar na lista de erros\r\n\t\t\t\terrados.add(erro);\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// }\r\n\r\n\t\t}\r\n\t}",
"protected NbaSearchVO lookupWork() throws NbaBaseException {\t//SPR2992 changed method signature\n\t\t//NBA213 deleted code\n\t\t\tNbaSearchVO searchVO = new NbaSearchVO();\n\t\t\tString entryPoints[] = { NbaVpmsAdaptor.EP_REIN_PRIMARY_SEARCH_FIELDS, NbaVpmsAdaptor.EP_REIN_SECONDARY_SEARCH_FIELDS };\n\t\t\tfor (int i = 0; i < entryPoints.length; i++) {\n\t\t\t\tNbaVpmsResultsData data = getDataFromVpms(entryPoints[i]);\n\t\t\t\t//begin SPR2806\n\t\t\t\tArrayList aList = data.getResultsData();\n\t\t\t\t//check if sufficient lob data is present on work, if not just skip this matching criteria\n\t\t\t\tif (!checkLobPresence(getWork().getNbaLob(), aList)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tsetLookupDataFound(true);\t//SPR2992\t\t\t\t\t\n\t\t\t\tsearchVO.setNbaLob(getNbaLobForLookup(aList));\n\t\t\t\t//Code moved ALS5171\n\t\t\t\t// end SPR2806\n\t\t\t\tif (getWork().getTransaction().getWorkType().equalsIgnoreCase(A_WT_REINSURANCE)) {\n\t\t\t\t\tsearchVO.setWorkType(A_WT_TEMP_REINSURANCE);\n\t\t\t\t\tsearchVO.setStatus(A_STATUS_REINSURANCE_INDEXED);//ALS5171\n\t\t\t\t} else {\n\t\t\t\t\tsearchVO.setWorkType(A_WT_REINSURANCE);\n\t\t\t\t\tif(isAdditionalInfo) {//ALS5494\n\t\t\t\t\t\tsearchVO.setQueue(END_QUEUE);//ALS5494\n\t\t\t\t\t}else {\n\t\t\t\t\t\tsearchVO.setStatus(A_STATUS_REINSURANCE_ORDERED);//ALS5171\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsearchVO.setResultClassName(\"NbaTransactionSearchResultVO\");\n\t\t\t\tsearchVO = lookupWork(getUser(), searchVO);\t//SPR3009, NBA213\n\t\t if (searchVO.isMaxResultsExceeded()){\t//NBA146\n\t\t throw new NbaBaseException(NbaBaseException.SEARCH_RESULT_EXCEEDED_SIZE, NbaExceptionType.FATAL);\t//NBA146\n\t\t }\t//NBA146\n\t\t\t\tif (!(searchVO.getSearchResults().isEmpty())) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn searchVO;\n\t\t//NBA213 deleted code\n\t}",
"public Object executar() throws TarefaException {\n\t\t\r\n\t\tCollection colecaoRotasParaExecucao = (Collection) getParametro(ConstantesSistema.COLECAO_UNIDADES_PROCESSAMENTO_BATCH);\r\n\t\tIterator iterator = colecaoRotasParaExecucao.iterator();\r\n\r\n\t\twhile (iterator.hasNext()) {\r\n\r\n\t\t\tInteger idRota = (Integer) iterator.next();\r\n\r\n\t\t\tSystem.out.println(\"ROTA GERAR CARTAS \" + idRota + \" *********************************************************\");\r\n\r\n\t\t\tenviarMensagemControladorBatch(\r\n\t\t\t\t\tConstantesJNDI.BATCH_GERAR_CARTAS_CAMPANHA_SOLIDARIEDADE_CRIANCA_PARA_NEGOCIACAO_A_VISTA_MDB,\r\n\t\t\t\t\tnew Object[]{idRota, this.getIdFuncionalidadeIniciada()});\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}",
"private boolean cotizacionReservaDespachoAntesFactura(java.sql.Connection conExt, int CodEmp, int CodLoc, int CodCot){\n boolean blnRes=false;\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n try{\n if(conExt!=null){\n stmLoc = conExt.createStatement();\n strSql=\"\";\n strSql+=\" SELECT a1.co_emp, a1.co_loc,a1.co_cot,a1.fe_cot, ROUND(a1.nd_tot,2) as nd_tot, a1.st_reg,a1.st_solResInv,a1.co_tipSolResInv, a1.fe_solResInv, \\n\";\n strSql+=\" a1.st_pedOtrBod, a1.st_solEnvPed, a1.st_autSolResInv, a1.st_autEnvPed, a5.tx_desLar, a5.tx_tipResInv, a5.st_facPriDiaLabSigMes,a5.tx_momDes \\n\";\n strSql+=\" FROM tbm_cabCotVen as a1 \";\n strSql+=\" INNER JOIN tbm_tipSolResInv as a5 ON (a1.co_tipSolResInv=a5.co_tipSolResInv AND a5.st_reg='A') \";\n strSql+=\" WHERE a1.co_emp=\"+CodEmp+\" AND a1.co_loc=\"+CodLoc+\" AND a1.co_cot=\"+CodCot+\" AND (a1.st_solResInv IS NOT NULL) AND \";\n strSql+=\" a1.st_autSolResInv LIKE ('A') AND a5.tx_momDes='A' \";\n strSql+=\" ORDER BY a1.co_emp,a1.co_loc,a1.co_cot \";\n System.out.println(\"cotizacionReservaDespachoAntesFactura \" + strSql);\n rstLoc=stmLoc.executeQuery(strSql);\n if(rstLoc.next()){\n blnRes=true;\n }\n rstLoc.close();\n rstLoc=null;\n stmLoc.close();\n stmLoc=null;\n }\n }\n catch (java.sql.SQLException e) { \n blnRes = false;\n objUti.mostrarMsgErr_F1(this, e); \n }\n catch (Exception Evt) {\n blnRes = false;\n objUti.mostrarMsgErr_F1(this, Evt);\n }\n return blnRes;\n }",
"@Override\r\n\tpublic Object dashboardGestaoFilasPorAtor(User usuarioLogado, TaskProcess processoSelecionado, Actor atorSelecionado) throws BonitaException {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Tramite_presentan_info_impacto consulta(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.consulta(nuevo);\r\n\t}",
"public void bienvenida(){\n System.out.println(\"Bienvenid@ a nuestro programa de administracion de parqueos\");\n }",
"public ResultSet Compreg(String compname, String address, String city, String state,\r\n\t\tLong offno, Long faxno, String website, String eMail, String username,\r\n\t\tString password, String security, String answer) throws SQLException {\n\tLong logid=null;\r\n\tint i=DbConnect.getStatement().executeUpdate(\"insert into login values(login_seq.nextval,'\"+username+\"'||username_seq.nextval,'\"+password+\"','not approved','company','\"+security+\"','\"+answer+\"') \");\r\n\tint j=DbConnect.getStatement().executeUpdate(\"insert into company values(comp_seq.nextval,'\"+compname+\"','\"+address+\"','\"+city+\"','\"+state+\"',\"+offno+\",\"+faxno+\",'\"+website+\"','\"+eMail+\"',login_seq.nextval-1,sysdate)\");\r\n\tResultSet rss=DbConnect.getStatement().executeQuery(\"select login_seq.nextval-2 from dual\");\r\n\tif(rss.next())\r\n\t{\r\n\t\tlogid=rss.getLong(1);\r\n\t}\r\n\trs=DbConnect.getStatement().executeQuery(\"select username from login where login_id=\"+logid+\"\");\r\n\treturn rs;\r\n}",
"private String enviarSolicitud(VSolicitudesDTO regSol, int idNav, File anexo, int helpDesk, String elUsuario) {\n/* 224 */ if (regSol == null) {\n/* 225 */ return \"ErrorInterno\";\n/* */ }\n/* */ \n/* 228 */ ServiciosDAO serf = new ServiciosDAO();\n/* 229 */ ServiciosDTO servicio = serf.cargarRegistro(regSol.getCodigoServicio());\n/* 230 */ serf.close();\n/* */ \n/* 232 */ SisUsuariosDAO pers = new SisUsuariosDAO();\n/* 233 */ SisUsuariosDTO persona = pers.cargarRegistro(regSol.getEmpleadoProveedor());\n/* */ \n/* 235 */ if (!persona.getEstado().equals(\"A\")) {\n/* 236 */ return \"ProveedorInactivo\";\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 242 */ CaracteristicasDAO rsCaracteristica = new CaracteristicasDAO();\n/* 243 */ int faltantes = rsCaracteristica.pendientes(regSol.getNumero(), servicio.getCodigo(), \"C\");\n/* 244 */ CaracteristicasDTO car = rsCaracteristica.cargarValorTiempo(regSol.getNumero(), servicio.getCodigo());\n/* 245 */ rsCaracteristica.close();\n/* */ \n/* 247 */ if (faltantes > 0) {\n/* 248 */ return \"CamposObligatorios\";\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 253 */ if (car != null) {\n/* 254 */ regSol.setDuracion(car.getDuracion());\n/* 255 */ regSol.setUnidadMedida(car.getUnidadMedida());\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 261 */ String fechaVigencia = Utilidades2.fechaVigencia(regSol.getUnidadMedida());\n/* */ \n/* */ \n/* 264 */ String fechaterminacion = Utilidades2.fechaTerminacion(fechaVigencia, regSol.getDuracion(), regSol.getUnidadMedida());\n/* */ \n/* */ \n/* */ \n/* 268 */ String observacion = \"\";\n/* */ \n/* 270 */ EstadoDAO efa = new EstadoDAO();\n/* 271 */ efa.cargarTodosTipo(\"PRV\");\n/* 272 */ EstadoDTO esta = efa.next();\n/* 273 */ efa.close();\n/* */ \n/* 275 */ boolean enviarMensaje = (helpDesk == 0);\n/* */ \n/* */ \n/* 278 */ Varios oVarios = new Varios();\n/* 279 */ if (anexo == null) {\n/* 280 */ oVarios.enviarSolicitud(idNav, regSol.getCodigoEstado(), esta.getCodigo(), observacion, regSol, enviarMensaje, fechaVigencia, fechaterminacion, 0, regSol.getDuracion(), regSol.getUnidadMedida(), elUsuario);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 295 */ oVarios.enviarSolicitud(idNav, regSol.getCodigoEstado(), esta.getCodigo(), observacion, anexo, regSol, enviarMensaje, fechaVigencia, fechaterminacion, 0, regSol.getDuracion(), regSol.getUnidadMedida(), elUsuario);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 313 */ VSolicitudesDAO sf = new VSolicitudesDAO();\n/* */ \n/* 315 */ regSol = sf.getSolicitud(regSol.getNumero());\n/* 316 */ while (regSol.getSolicitudPadre() != -1) {\n/* 317 */ VSolicitudesDTO regSolPadre = sf.getSolicitud(regSol.getSolicitudPadre());\n/* */ \n/* */ \n/* 320 */ int diasServicio = Utilidades2.diasDelServicio(regSolPadre.getDuracion(), regSolPadre.getUnidadMedida());\n/* */ \n/* 322 */ long diferencia = -1L * Utilidades2.diferenciaEnDias(regSol.getFechaVigencia(), regSolPadre.getFechaVigencia());\n/* */ \n/* 324 */ String nuevaFecha = Utilidades2.fechaMasDias(regSol.getFechaEstimadaTerminacion(), (int)(diasServicio - diferencia));\n/* */ \n/* 326 */ if (Utilidades2.compararFechas(regSolPadre.getFechaEstimadaTerminacion(), nuevaFecha) < 0) {\n/* 327 */ String s = \"fecha_estimada_terminacion=\" + Utilidades.formatoFecha2(Utilidades.darFormatoFecha(nuevaFecha)) + \",\";\n/* 328 */ s = s + \"fecha_base_escalamientos=\" + Utilidades.formatoFecha2(nuevaFecha) + \",\";\n/* 329 */ s = s + \"fecha_modificacion=\" + Utilidades.formatoFecha(Utilidades.ahora()) + \",\";\n/* 330 */ s = s + \"usuario_modificacion='\" + elUsuario + \"'\";\n/* 331 */ sf.actualizarCampos(regSolPadre.getNumero(), s);\n/* */ } \n/* 333 */ regSol = sf.getSolicitud(regSolPadre.getNumero());\n/* */ } \n/* */ \n/* 336 */ sf.close();\n/* */ \n/* 338 */ return null;\n/* */ }",
"public void run() throws IloException {\n\t\t\n\t\t//Instancie la classe Cplex avec le programme lineaire et la nature\n\t\tCplex cplex = new Cplex(prog, nature);\n\t\tboolean st = false;\n\t\tString info;\n\t\tint i = 0;\n\t\t\n\t\t/*Tant que l'on a des sous tours dans le modèle*/\n\t\tdo {\n\t\t\t//Lancement du solve du model de cplex\n\t\t\tcplex.solve();\n\t\t\t\n\t\t\t//Récupère un booléen en fonction de la présence de sous tours après le solve\n\t\t\tst = contrainteSousTour(cplex);\n\t\t\tinfo = \"Contrainte de sous-tours ajouté au modèle\";\n\t\t\tInterface.majAffichage(info);\n\t\t\ti++;\n\t\t} while (st && i!= 5);\n\n\t}",
"public void affichageSolution() {\n\t\t//On commence par retirer toutes les traces pré-existantes du labyrinthe\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Trace) {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j] = new Case();\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//On parcourt toutes les cases du labyrinthe. Si on trouve un filon non extrait dont le chemin qui le sépare au mineur est plus petit que shortestPath, on enregistre la longueur du chemin ainsi que les coordonnees de ledit filon\n\t\tint shortestPath = Integer.MAX_VALUE;\n\t\tint[] coordsNearestFilon = {-1,-1};\n\t\tfor (int i=0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j=0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Filon && ((Filon)this.laby.getLabyrinthe()[i][j]).getExtrait() == false) {\n\t\t\t\t\tif (this.laby.solve(j,i) != null) {\n\t\t\t\t\t\tint pathSize = this.laby.solve(j,i).size();\n\t\t\t\t\t\tif (pathSize < shortestPath) {\n\t\t\t\t\t\t\tshortestPath = pathSize;\n\t\t\t\t\t\t\tcoordsNearestFilon[0] = j;\n\t\t\t\t\t\t\tcoordsNearestFilon[1] = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Si il n'y a plus de filon non extrait atteignable, on cherche les coordonnes de la clef\n\t\tif (coordsNearestFilon[0] == -1) {\n\t\t\tcoordsNearestFilon = this.laby.getCoordsClef();\n\t\t\t//Si il n'y a plus de filon non extrait atteignable et que la clef a deja ouvert la porte, on cherche les coordonnes de la sortie\n\t\t\tif (coordsNearestFilon == null)\tcoordsNearestFilon = this.laby.getCoordsSortie();\n\t\t}\n\n\t\t//On cree une pile qui contient des couples de coordonnees qui correspondent a la solution, puis on depile car le dernier element est l'objectif vise\n\t\tStack<Integer[]> solution = this.laby.solve(coordsNearestFilon[0], coordsNearestFilon[1]);\n\t\tsolution.pop();\n\n\t\t//Tant que l'on n'arrive pas au premier element de la pile (cad la case ou se trouve le mineur), on depile tout en gardant l'element depile, qui contient les coordonnees d'une trace que l'on dessine en suivant dans la fenetre\n\t\twhile (solution.size() != 1) {\n\t\t\tInteger[] coordsTmp = solution.pop();\n\t\t\tTrace traceTmp = new Trace();\n\t\t\tthis.laby.getLabyrinthe()[coordsTmp[1]][coordsTmp[0]] = new Trace();\n\t\t\t((JLabel)grille.getComponents()[coordsTmp[1]*this.laby.getLargeur()+coordsTmp[0]]).setIcon(traceTmp.imageCase());\n\t\t}\n\t\tSystem.out.println(\"\\n========================================== SOLUTION =====================================\\n\");\n\t\tthis.affichageLabyrinthe();\n\t}",
"private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Dati dati;\n\n try { // prova ad eseguire il codice\n\n this.setMessaggio(\"Analisi in corso\");\n this.setBreakAbilitato(true);\n\n /* recupera e registra i dati delle RMP da elaborare */\n dati = getDatiRMP();\n this.setDati(dati);\n\n /* regola il fondo scala dell'operazione */\n this.setMax(dati.getRowCount());\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"public void lerDados(String dadosInstituicao)\n {\n if (dadosInstituicao == null)\n {\n //AxellIO.println(\"[Instituicao]: Parametro dadosInstituicao nulo - funcao lerDados(String)\");\n }\n \n else\n {\n MyString dados = new MyString(dadosInstituicao);\n String[] splitedData = dados.split('\\t');\n int cursor = 0;\n \n try\n {\n setCodigo( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setNome( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setSigla( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setCodigoMantenedora( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setMantenedora( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setCategoria( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setOrganizacao( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setCodigoMunicipio( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setMunicipio( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setUf( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setRegiao( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setTecnico( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setPeriodico( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setLivro( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setReceita( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setTransferencia( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setOutraReceita( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaDocente( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaTecnico( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaEncargo( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaCusteio( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaInvestimento( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaPesquisa( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaOutras( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n }\n\n catch (ArrayIndexOutOfBoundsException exception)\n {\n //AxellIO.println(\"[Instituicao]: Dados da instituicao incompletos - funcao lerDados(String)\");\n }\n \n setDadosInstituicaoTabulado( dados.toString() );\n setDadosInstituicao( concatFields() );\n }\n }",
"private void mostraPesquisa(List<Livro> livros) {\n // Limpa a tabela sempre que for solicitado uma nova pesquisa\n limparTabela();\n\n if (livros.isEmpty()) {\n JOptionPane.showMessageDialog(rootPane, \"Nenhum registro encontrado.\");\n } else {\n // Linha em branco usada no for, para cada registro é criada uma nova linha \n String[] linha = new String[]{null, null, null, null, null, null, null, null, null};\n // P/ cada registro é criada uma nova linha, cada linha recebe os campos do registro\n for (int i = 0; i < livros.size(); i++) {\n tmLivro.addRow(linha);\n tmLivro.setValueAt(livros.get(i).getId(), i, 0);\n tmLivro.setValueAt(livros.get(i).getId_genero(), i, 1);\n tmLivro.setValueAt(livros.get(i).getExemplar(), i, 2);\n tmLivro.setValueAt(livros.get(i).getAutor(), i, 3);\n tmLivro.setValueAt(livros.get(i).getEdicao(), i, 4);\n tmLivro.setValueAt(livros.get(i).getAno(), i, 5);\n tmLivro.setValueAt(livros.get(i).getDisponibilidade(), i, 6);\n }\n }\n }",
"public static void EjecutaEjercicio1PD(String entrada) {\n\t\tEjercicio1.iniDatos(entrada);\n\t\t\n\t\t// Declarar vértice de inicio para el grafo:\n\t\tVerticeAlumno verticeInicial = VerticeAlumno.verticeInicial();\n\t\n\t\t// Inicializar el grafo virtual:\n\t\t/*\n\t\t * 2 vías:\n\t\t * \t· Con peso en el vértice.\n\t\t * \t· Con peso en las aristas. \n\t\t*/ \n\t\t\n\t\t// Inicializa un grafo virtual de tipo simpleVirtualGraph a partir del vértice inicial con peso:\n\t\tEGraph<VerticeAlumno, AristaAlumno> grafoVirtual = Graphs2.simpleVirtualGraph(verticeInicial, x -> x.getEdgeWeight());\t\n\t\t\n\t\t// Invocar el algoritmo de Programación Dinámica: \n\t\t/*\n\t\t * 2 vías: \n\t\t * · Expresando el vértice final de destino.\n\t\t * · Mediante un predicado objetivo.\n\t\t*/\n\t\tDynamicProgrammingReduction<VerticeAlumno, AristaAlumno> algoritmoPD = DPR.dynamicProgrammingReductionGoal(\n\t\t\t\t\t\tgrafoVirtual,\n\t\t\t\t\t\tVerticeAlumno.objetivo(),\n\t\t\t\t\t\tHeuristicaAlumno::heuristica,\n\t\t\t\t\t\tPDType.Max\n\t\t\t\t\t\t);\n\t\t\n\t\t// Proporciona un camino devuelto por PD desde el vértice inicial al objetivo:\n\t\tGraphPath<VerticeAlumno, AristaAlumno> caminoPD = algoritmoPD.search().get();\n\t\t\n\t\t// Solución: lista de aristas recorridos del grafo: \n\t\tList<AristaAlumno> aristas = caminoPD.getEdgeList();\n\t\tSystem.out.println(\"$$$$$$$$$$$$$$$$$ PROGRAMACIÓN DINÁMICA $$$$$$$$$$$$$$$$$$\");\n\t\tSolucion1.solucion(aristas, entrada);\n\t\t\n\t\t// DEBUG:\n\t\t/*\n\t\t * List<VerticeAlumno> vertices = caminoA.getVertexList();\n\t\t * System.out.println(vertices);\n\t\t*/\n\t\t\n\t}",
"@Override\n protected void adicionarLetrasErradas() {\n }",
"public void iniciarPartidaRede(boolean ehMinhaVez) {\r\n\t\tString nomeJogadorAdversario = rede.obterNomeAdversario();\r\n\t\tthis.mapa = Mapa.getInstance();\r\n\t\tint trincheiraDefinida;\r\n\t\tif(ehMinhaVez) {\r\n\t\t\tmapa.criaJogador(this.nomeUsuario, true);\r\n\t\t\tmapa.criarJogadorAdversario(nomeJogadorAdversario, false);\r\n\t\t\ttrincheiraDefinida = 1;\r\n\t\t\tmapa.procedimentoDeLance(1, this);\r\n\t\t} else {\r\n\t\t\tmapa.criaJogador(this.nomeUsuario, false);\r\n\t\t\tmapa.criarJogadorAdversario(nomeJogadorAdversario, true);\r\n\t\t\ttrincheiraDefinida = 0;\r\n\t\t}\r\n\t\t/*\r\n\t\t * tem que chamar todos os metodos de acoes dos botoes do painelJogoExecucao\r\n\t\t * alem de setar valores de labels\r\n\t\t */\r\n\t\tgetContentPane().removeAll();\r\n\t\tpainelJogoExecucao = new PainelJogoExecucao(trincheiraDefinida);\r\n\t\tgetContentPane().add(painelJogoExecucao);\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t\tpainelJogoExecucao.atualizaLabels(mapa.getAntimateria(), mapa.getNumTurnos());\r\n\t\tpainelJogoExecucao.atualizaVidaTorres(mapa.getTrincheira(), mapa.getTrincheiraAdversario());\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic Loja procurar(String nomeEmpresa) {\n\t\treturn null;\r\n\t}",
"public boolean reducir_log(){\n\t\t//se carga la consulta a una varible tipo string\n\t\tString query = \"exec sp_reducir_log_de_transacciones\";\n\t\t//variable distancia a la clase connection\n\t\tConnection con = new Connexion().conexion();\n //se declara la variable que prepara el query primero nula\n\t\tPreparedStatement pstmt = null;\n\t //intenta o carga el error \t\n\t\t\n\t\t\n\t\t\t\n\t\ttry {\n\t \t//se inicializa ala transaccion en falto hasta el commit\n\t\t\tcon.setAutoCommit(false);\n\t\t\t//prepara la coneccion con el query\n\t\t\tpstmt = con.prepareStatement(query);\n\t\t\t//ejecuta el query \n\t\t\tpstmt.execute();\n //si se ejecuta la transaccion la marcara como verdadero \t\t\n \t\t\tcon.commit();\n\t\t\t//cacha el error\n \t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"SQLException: \" + e.getMessage());\n\t\t\tif (con != null){\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\"La transacción ha sido abortada\");\n\t\t\t\t\tcon.rollback();\n\t\t\t\t} catch(SQLException ex) {\n\t\t\t\t\tSystem.out.println(ex.getMessage());\n\t\t\t\t}\n\t\t\t} \n\t\t\treturn false;\n\t\t\t\n\t\t}finally{\n\t\t\ttry {\n\t\t\t\tpstmt.close();\n\t\t\t\tcon.close();\n\t\t\t} catch(SQLException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\t\t\n\t\treturn true;\n\t}",
"@Override\n public void procesarLlegada(Consulta consulta){\n consulta.setTipoModulo(TipoModulo.ClientesYConexiones); //La consulta se encuentra en este módulo.\n\n if(numeroServidores == 0){\n conexionesDescartadas++;\n listaDeEventos.removeIf((Evento ev) -> ev.getConsulta() == consulta); //Quito el timeout si la conexion fue descartada\n }else{\n numeroServidores--;\n consulta.setTiempoIngreso(this.reloj); //Se le da a la consulta el tiempo en el que ingresó al sistema.\n generarLlegadaAdmProcesos(consulta);\n }\n this.generarLlegadaAdmClientes();\n }",
"public void ligar() {\n\t\t\n\t\ttry {\n\t\t\tthis.sistemaOperacional.iniciarSistema();\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(\"Nao foi possivel iniciar o sistema:\");\n\t\t\tSystem.out.println(\"\\t\" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t}",
"public void ingresarEvalPlanVida() throws SQLException {\n if (vistaEvaPlanVid.getTxtCedula().getText().isEmpty()) {\n JOptionPane.showMessageDialog(null, \"Ingrese primero cédula y presione 'Enter'\", \"Ingrese Valores\", JOptionPane.ERROR_MESSAGE);\n } else {\n if (vistaEvaPlanVid.getDtcFecha().getDate() == null) {\n JOptionPane.showMessageDialog(null, \"Ingrese Fecha\", \"Ingrese Valores\", JOptionPane.WARNING_MESSAGE);\n } else {\n if (vistaEvaPlanVid.getDtcFechaEval().getDate() == null) {\n JOptionPane.showMessageDialog(null, \"Ingrese Fecha de Evaluación\", \"Ingrese Valores\", JOptionPane.WARNING_MESSAGE);\n } else {\n evalPlModelDB.setVictima_codigo(Integer.parseInt(vistaEvaPlanVid.getTxtCodigo().getText()));\n evalPlModelDB.setPersonal_codigo(evalPlModelDB.verifiUserP(personal_cod));\n evalPlModelDB.setEvaluacion_fecha(obtenerFecha(vistaEvaPlanVid.getDtcFecha()));\n evalPlModelDB.setEvaluacion_proxima(obtenerFecha(vistaEvaPlanVid.getDtcFechaEval()));\n if (evalPlModelDB.IngresarEvaluacionPlaVida()) {\n JOptionPane.showMessageDialog(null, \"A continuación presione el botón guardar para completar esta sección\");\n vistaEvaPlanVid.getBtnObjetivoGeneral().setEnabled(true);\n vistaEvaPlanVid.getBtnObjetivosEspecificos().setEnabled(true);\n vistaEvaPlanVid.getBtnGuradrarDesa().setEnabled(true);\n vistaEvaPlanVid.getBtnGuradar().setEnabled(false);\n } else {\n JOptionPane.showMessageDialog(null, \"Error al continuar, vuelva a intentar\");\n }\n }\n }\n }\n }",
"com.hps.july.persistence.Worker getTechStuff() throws java.rmi.RemoteException, javax.ejb.FinderException;",
"private void mostraPesquisa(List<BeansLivro> livros) {\n // Limpa a tabela sempre que for solicitado uma nova pesquisa\n limparTabela();\n \n if (livros.isEmpty()) {\n JOptionPane.showMessageDialog(rootPane, \"Nenhum registro encontrado.\");\n } else { \n // Linha em branco usada no for, para cada registro é criada uma nova linha \n String[] linha = new String[] {null, null, null, null, null, null, null};\n // P/ cada registro é criada uma nova linha, cada linha recebe os campos do registro\n for (int i = 0; i < livros.size(); i++) {\n tmLivro.addRow(linha);\n tmLivro.setValueAt(livros.get(i).getId(), i, 0);\n tmLivro.setValueAt(livros.get(i).getExemplar(), i, 1);\n tmLivro.setValueAt(livros.get(i).getAutor(), i, 2);\n tmLivro.setValueAt(livros.get(i).getEdicao(), i, 3);\n tmLivro.setValueAt(livros.get(i).getAno(), i, 4);\n tmLivro.setValueAt(livros.get(i).getDisponibilidade(), i, 5); \n } \n }\n }",
"public static void main(String[] args){\n \r\n Log.registroTraza( \"Iniciando ejecución de la tarea SolicitudesAVencerse\");\r\n \r\n String strSQL, strFechaRecibo, strReqRpta, strRadicado, strIdResp = \"\";\r\n int totalSolAlertadas=0, totalSolVencidas=0;\r\n String[] strTemp = null;\r\n int lgTiempoRpta, lgRestante, lgTiempoConfig; \r\n Vector arrConsecutivos = new Vector();\r\n Vector arrFechasCreacion = new Vector();\r\n Vector arrReqRpta = new Vector();\r\n Vector arrTiempoRpta = new Vector();\r\n Vector arrIdsResp = new Vector();\r\n Comunes comun = new Comunes();\r\n Notificacion n = new Notificacion();\r\n Calendar fechaRecibo = null;\r\n Calendar fechaRpta = null;\r\n Calendar fechaActual = null;\r\n \r\n try{\r\n strSQL = \"select g.txtNroDiasAlerta from buzon.buzon_generales g where g.txtCodigo = 'frmGeneral'\";\r\n String[] strDatosGral = GestionSQL.getFila(strSQL, \"Buzon\");\r\n lgTiempoConfig = Integer.parseInt(strDatosGral[0]);\r\n \r\n strSQL = \"select DISTINCT p.txtRadicado, p.dtFechaCreacion, r.txtReqRpta, r.txtTiempoRpta, p.txtNomCargo from buzon_pqrs p INNER JOIN buzon_retroalimentacion r on (p.txtTipoPQRS = r.txtCodigo) where (p.txtIdEstado <> 'AT' and p.txtIdEstado <> 'CPU') ORDER BY CAST(p.txtRadicado AS SIGNED)\";\r\n Vector arrSols = GestionSQL.consultaSQL(strSQL,\"Buzon\",\"ALERTASSOLS\");\r\n \r\n if (arrSols != null){ \r\n for (int i=0;i<arrSols.size();i++){\r\n strTemp = arrSols.get(i).toString().split(\",\");\r\n arrConsecutivos.add(strTemp[0]);\r\n arrFechasCreacion.add(strTemp[1]);\r\n arrReqRpta.add(strTemp[2]);\r\n arrTiempoRpta.add(strTemp[3]); \r\n arrIdsResp.add(strTemp[4]);\r\n } \r\n\r\n //Obtener los feriados.\r\n\r\n Vector arrFechas = new Vector();\r\n strSQL = \"SELECT d.dtFecha from users.users_dias_no_habiles d order by d.dtFecha\";\r\n arrFechas = GestionSQL.consultaSQL(strSQL, \"Users\", \"FECHAS\"); \r\n\r\n for(int i=0;i<arrConsecutivos.size();i++){\r\n strRadicado = arrConsecutivos.get(i).toString(); \r\n strReqRpta = arrReqRpta.get(i).toString();\r\n strIdResp = arrIdsResp.get(i).toString();\r\n lgRestante = 0; \r\n fechaRecibo = null;\r\n fechaRpta = null;\r\n fechaActual = comun.calcularFechaActual();\r\n\r\n if (strReqRpta.equals(\"S\")){ \r\n lgTiempoRpta = Integer.parseInt(arrTiempoRpta.get(i).toString());\r\n fechaRecibo = Calendar.getInstance(); \r\n\r\n strFechaRecibo = arrFechasCreacion.get(i).toString();\r\n strTemp = strFechaRecibo.split(\"-\"); \r\n fechaRecibo.set(Integer.parseInt(strTemp[0]),(Integer.parseInt(strTemp[1])-1),Integer.parseInt(strTemp[2]));\r\n fechaRecibo.set(Calendar.SECOND, 0);\r\n fechaRecibo.set(Calendar.MILLISECOND, 0); \r\n\r\n fechaRpta= Calendar.getInstance();\r\n fechaRpta.set(Calendar.SECOND, 0);\r\n fechaRpta.set(Calendar.MILLISECOND, 0); \r\n fechaRpta = comun.incrementarDiasHabiles(fechaRecibo, lgTiempoRpta, arrFechas); \r\n\r\n lgRestante = (comun.getDiasHabiles(fechaActual, fechaRpta, arrFechas)-1); \r\n\r\n if ((lgRestante <= lgTiempoConfig) && (lgRestante > 0)){ \r\n n.NotificacionSolAVencer(strRadicado, Long.valueOf(lgRestante + 1), strIdResp); \r\n totalSolAlertadas = totalSolAlertadas + 1;\r\n }else{\r\n if (lgRestante<0){\r\n n.NotificacionSolVencidas(strRadicado, fechaRpta, strIdResp);\r\n totalSolVencidas = totalSolVencidas + 1;\r\n } \r\n } \r\n } \r\n }\r\n }\r\n }catch(Exception e){\r\n Log.registroTraza(\"Se generó un error en la tarea SolicitudesAVencerse: \" + e.getMessage());\r\n }\r\n\r\n SimpleDateFormat formato = new SimpleDateFormat(\"hh:mm:ss\");\r\n Log.registroTraza( \"Tarea SolicitudesAVencerse invocada a la hora: \" + formato.format(new Date()) + \". Solicitudes alertadas: \" + totalSolAlertadas + \". Solicitudes vencidas: \" + totalSolVencidas);\r\n\r\n }",
"private boolean guardarSolicitudReservaFacturaAutomatica(java.sql.Connection conExt,int indice ,int CodEmp,int CodLoc, int CodCot ){\n boolean blnRes=true;\n try{\n if(conExt!=null){\n if(solicitarAutorizacionCxC(CodEmp, CodLoc, CodCot)){\n /* PASO 1: Ventana de Pedidos a otras bodegas */\n if(existenTerminalesPedidos(CodEmp, CodLoc, CodCot)){\n ZafVen42_03 objVen42_03 = new ZafVen42_03(javax.swing.JOptionPane.getFrameForComponent(this), objParSis,CodEmp,CodLoc,CodCot);\n objVen42_03.show();\n if(objVen42_03.acepta()){\n arlDatRes = objVen42_03.getArlDatRes();\n if(!arlDatRes.isEmpty()){\n if(modificaChecksPedOtrBod(CodEmp,CodLoc)){\n objTblMod.setValueAt(true, indice, INT_TBL_DAT_CHK_PED_OTR_BOD); \n }\n }else{blnRes=false;}\n }else{blnRes=false;}\n objVen42_03 = null;\n }\n\n if(blnRes){\n /* PASO 2: Codigos L */\n if(existenCodigosL(CodEmp, CodLoc, CodCot)){\n arlDatCodL = new ArrayList();\n ZafVen42_04 objVen42_04 = new ZafVen42_04(javax.swing.JOptionPane.getFrameForComponent(this), objParSis,CodEmp,CodLoc,CodCot);\n objVen42_04.show();\n if (objVen42_04.acepta()) {\n arlDatCodL = objVen42_04.getArlDatResTerL();\n if(!arlDatCodL.isEmpty()){\n if(modificarCotizacionCompras(conExt)){\n System.out.println(\"ok L \");\n }else{ blnRes = false;MensajeInf(\"Error al Guardar: Modificando los codigo L\");}\n }else{blnRes = false;}\n }else{blnRes = false;}\n objVen42_04 = null;\n }\n }\n /* PASO 3: Configuracion de Despachos por cliente fue inactivada */\n // PENDIENTE DE SALIR -- JM 13/Jul/2017\n// if(blnRes){\n// if(!revisarDespachosCliente(CodEmp, CodLoc, CodCot)){\n// ZafVen42_06 objVen42_06 = new ZafVen42_06(javax.swing.JOptionPane.getFrameForComponent(this), objParSis,intCodEmp,intCodLoc,intCodCot,arlDatRes);\n// objVen42_06.show();\n// if(objVen42_06.acepta()){\n// System.out.println(\"ok Configuracion despachos \");\n// }\n// else{\n// MensajeInf(\"Error al Guardar: Insertando los datos del despacho\");\n// blnRes=false;\n// }\n// objVen42_06 = null;\n// }\n// }\n // PENDIENTE DE SALIR -- JM 13/Jul/2017 \n /* PASO 4: Grabar configuracion y guarda en la tabla de pedidos a otras bodegas */\n if(blnRes){\n if(modificarDatosDetallesCotizacionBodegasReserva(conExt,CodEmp,CodLoc,CodCot,indice)){ // DETALLE DE LA COTIZACION\n if(pedidosBodegaDestino(conExt,CodEmp,CodLoc,CodCot)){\n// if(terminalesStockLocal(conExt,CodEmp,CodLoc,CodCot)){ /* NO EXISTE ESTO es un terminal que debe estar configurado */\n System.out.println(\"ok prestamos \");\n// }else{blnRes=false;MensajeInf(\"Error al Guardar: Insertando pedidos Otras bodegas 3\"); }\n }else{blnRes=false;MensajeInf(\"Error al Guardar: Insertando pedidos Otras bodegas 2\"); }\n }else{blnRes=false;MensajeInf(\"Error al Guardar: Insertando pedidos Otras bodegas\"); }\n }\n /* PASO 5: Tabla grande nueva, items segun la forma de despacho */\n if(blnRes){\n if(existenTerminalesPedidos(CodEmp, CodLoc, CodCot)){\n ZafVen42_07 objVen42_07 = new ZafVen42_07(javax.swing.JOptionPane.getFrameForComponent(this), objParSis,conExt,CodEmp,CodLoc,CodCot);\n objVen42_07.show();\n if (objVen42_07.acepta()){\n strSql=objVen42_07.getCadenaInsertBodegasDespacho();\n if(strSql.length()>0){\n if(modificarDatosBodegaDespacho(conExt,strSql)){\n System.out.println(\"ok Configuracion/Modificacion Despachos \");\n }else{blnRes=false;MensajeInf(\"Error al Guardar: Modificacion en los datos del despacho\");}\n }else{blnRes=false;}\n }\n else{\n blnRes=false;\n MensajeInf(\"Error al Guardar: Modificacion en los datos del despacho\");\n }\n objVen42_07 = null;\n }\n }\n\n /* PASO 6: Modificacion en el estado de la cotizaicon*/\n if(blnRes){\n if(modificarEstadoCotizacion(conExt,CodEmp,CodLoc,CodCot,indice)){\n System.out.println(\"ok modificarEstadoCotizacion\");\n }\n else{\n MensajeInf(\"Error al Guardar: Modificacion de la Cotizacion de venta\");\n blnRes=false;\n }\n }\n }\n else{\n MensajeInf(\"Error al Guardar: Controles de CxC\");\n blnRes=false;\n }\n }\n }\n catch(Exception Evt){ \n objUti.mostrarMsgErr_F1(this, Evt);\n blnRes=false;\n } \n return blnRes;\n }",
"public static void main(String[] args) throws Exception {\n\t\tString folderURL = \"C:\\\\Users\\\\Administrator\\\\Google ÔÆ¶ËÓ²ÅÌ\\\\Slides\\\\CS686\\\\A2\\\\SodukoProblem\\\\problems\\\\\";\n\t\tList<String> nameList = Loader.getAllSdURLFromFolder(folderURL);\n\t\tList<Solution> record = new ArrayList<Solution>();\n\t\tfor (String name:nameList)\n\t\t{\n\t\t\t//System.out.println(name);\n\t\t\tBoard board = Loader.loadInitialBoard(name);\n\t\t\tSudokuSolver solver = SudokuSolver.getInstance();\n\t\t\tSolution solution = solver.solve(board);\n\t\t\trecord.add(solution);\n\t\t\tSystem.out.print(solution.initNum+\" \");\n\t\t\tSystem.out.print(solution.cntState+\" \");\n\t\t\t//System.out.println(solution.board);\n\t\t\tSystem.out.println(solution.isFinished?\"Finished\":\"Failed\");\n\t\t\tif (solution.cntState>0)\n\t\t\t{\n\t\t\t\tSystem.out.println(board);\n\t\t\t\tSystem.out.println(solution.board);\n\t\t\t}\n\t\t\t//if (!solution.isFinished) break;\n\t\t}\n\t\t//printStatistics(record);\n\t\t\n\t}",
"public static void main(String[] args)throws java.io.IOException {\n\t\tString idEmpleado, nomEmpleado, apellEmpleado, telefono, email;\r\n\t\t\r\n\t\tout.println(\"Digite el id del empleado\");\r\n\t\tidEmpleado = in.readLine();\r\n\t\tout.println(\"Digite el nombre del empleado\");\r\n\t\tnomEmpleado = in.readLine();\r\n\t\tout.println(\"Digite el apellido del empleado\");\r\n\t\tapellEmpleado = in.readLine();\r\n\t\tout.println(\"Digite el telefono del empleado\");\r\n\t\ttelefono = in.readLine();\r\n\t\tout.println(\"Digite el email del empleado\");\r\n\t\temail = in.readLine();\r\n\t\t\r\n\t\t/*Los datos se deben mandar al gestor*/\r\n\t\t\r\n\t\tSupervisor empleado = new Supervisor(idEmpleado, nomEmpleado, apellEmpleado, telefono, email);\r\n\t\tSoporTecnico contratado = new SoporTecnico(empleado);\r\n\t\t\r\n\t\t//La variable contratado se almacenarķa en un arreglo\r\n\t\t\r\n\t\tout.println(\"Id: \" + contratado.getIdEmpleado() + \"\\n\" +\r\n\t\t\t\t\t\"Nombre: \" + contratado.getNomEmpleado() + \"\\n\" +\r\n\t\t\t\t\t\"Apellido: \" + contratado.getApellEmpleado() + \"\\n\" +\r\n\t\t\t\t\t\"Telefono: \" + contratado.getTelefono() + \"\\n\" +\r\n\t\t\t\t\t\"Email: \" + contratado.getEmail() + \"\\n\" +\r\n\t\t\t\t\t\"Codigo del puesto: \" + contratado.codPuesto() + \"\\n\" +\r\n\t\t\t\t\t\"Nombre del puesto: \" + contratado.nomPuesto() + \"\\n\" +\r\n\t\t\t\t\t\"Nombre del departamento: \" + contratado.departamento());\r\n\t\t\r\n\t\t/*Si se desea cambiar el puesto o el departamento del empleado, se extraen los datos \r\n\t\t * personales del empleado, se elimina el objeto y los datos personales se almacenan\r\n\t\t * en un nuevo objeto del puesto deseado y del departamento deseado*/\r\n\t}",
"public void verificarExistenciaIPTU(String numeroIptu, Integer idSetorComercial) throws ControladorException {\r\n\r\n\t\tCollection setorComerciais = null;\r\n\t\tif (idSetorComercial != null) {\r\n\t\t\tFiltroSetorComercial filtroSetorComercial = new FiltroSetorComercial();\r\n\t\t\tfiltroSetorComercial\r\n\t\t\t\t\t.adicionarParametro(new ParametroSimples(FiltroSetorComercial.ID, new Integer(idSetorComercial)));\r\n\t\t\tfiltroSetorComercial.adicionarCaminhoParaCarregamentoEntidade(FiltroSetorComercial.MUNICIPIO);\r\n\t\t\tsetorComerciais = getControladorUtil().pesquisar(filtroSetorComercial, SetorComercial.class.getName());\r\n\t\t}\r\n\r\n\t\tFiltroImovel filtroImovel = new FiltroImovel();\r\n\t\tif (setorComerciais != null && !setorComerciais.isEmpty()) {\r\n\t\t\tSetorComercial setorComercial = (SetorComercial) setorComerciais.iterator().next();\r\n\t\t\tfiltroImovel.adicionarParametro(new ParametroSimples(FiltroImovel.SETOR_COMERCIAL_MUNICIPIO_ID,\r\n\t\t\t\t\tsetorComercial.getMunicipio().getId()));\r\n\t\t}\r\n\t\tfiltroImovel.adicionarParametro(new ParametroSimples(FiltroImovel.IPTU, numeroIptu));\r\n\r\n\t\tCollection imoveis = getControladorUtil().pesquisar(filtroImovel, Imovel.class.getName());\r\n\r\n\t\tif (imoveis != null && !imoveis.isEmpty()) {\r\n\t\t\tString idMatricula = \"\" + ((Imovel) ((List) imoveis).get(0)).getId();\r\n\r\n\t\t\tsessionContext.setRollbackOnly();\r\n\t\t\tthrow new ControladorException(\"atencao.imovel.iptu_jacadastrado\", null, idMatricula);\r\n\t\t}\r\n\r\n\t\tFiltroImovelEconomia filtroImovelEconomia = new FiltroImovelEconomia();\r\n\t\t// filtroImovelEconomia.adicionarParametro(new\r\n\t\t// ParametroSimples(FiltroImovelEconomia.IMOVEL_ID, imovel.getId()));\r\n\t\tif (setorComerciais != null && !setorComerciais.isEmpty()) {\r\n\t\t\tSetorComercial setorComercial = (SetorComercial) setorComerciais.iterator().next();\r\n\t\t\tfiltroImovelEconomia.adicionarParametro(\r\n\t\t\t\t\tnew ParametroSimples(FiltroImovelEconomia.MUNICIPIO_ID, setorComercial.getMunicipio().getId()));\r\n\t\t}\r\n\t\tfiltroImovelEconomia.adicionarParametro(new ParametroSimples(FiltroImovelEconomia.IPTU, numeroIptu));\r\n\t\tfiltroImovelEconomia.adicionarCaminhoParaCarregamentoEntidade(\"imovelSubcategoria\");\r\n\t\tfiltroImovelEconomia.adicionarCaminhoParaCarregamentoEntidade(\"imovelSubcategoria.comp_id.imovel\");\r\n\r\n\t\tCollection imoveisEconomiaPesquisadas = getControladorUtil().pesquisar(filtroImovelEconomia,\r\n\t\t\t\tImovelEconomia.class.getName());\r\n\r\n\t\tif (!imoveisEconomiaPesquisadas.isEmpty()) {\r\n\t\t\tImovelEconomia imovelEconomia = (ImovelEconomia) ((List) imoveisEconomiaPesquisadas).get(0);\r\n\r\n\t\t\tString idMatricula = \"\" + imovelEconomia.getImovelSubcategoria().getComp_id().getImovel().getId();\r\n\r\n\t\t\tsessionContext.setRollbackOnly();\r\n\t\t\tthrow new ControladorException(\"atencao.imovel.iptu_jacadastrado\", null, idMatricula);\r\n\t\t}\r\n\t}",
"public void verificarRastro() {\n verificarRastroFormulaProceso();\n index = -1;\n }",
"@Override\n\t@BreadCrumb(\"%{model.titolo}\")\n\tpublic String execute() throws Exception {\n\t\tsetMethodName(\"execute\");\n\t\t//setto il flag prosegui con warning a false:\n\t\tmodel.setProseguiConWarningControlloSoggetti(false);\n\t\t//valuto se ricaricare i contenuti:\n\t\tif(ricaricaDopoInserimento || forceReload){\n\t\t\tricaricaSubAccertamenti(false);\n\t\t}\n\t\t//caricamento delle label:\n\t\tcaricaLabelsAggiornaSub();\n\t\t//SIAC-6032\n\t\tleggiEventualiErroriEWarningAzionePrecedente(true);\n\t return SUCCESS;\n\t}",
"@Override\n public SearchBasedAgentState execute(SearchBasedAgentState s) {\n EstadoDrone agState = (EstadoDrone) s;\n if(agState.getposicion()[0]==2 && (1000-agState.getenergiaUsada()>=CostoBajar)){\n \tagState.incrementarEnergiaUsada(CostoBajar);\n \tagState.irNivelMedio();\n \treturn agState;\n }\n if(agState.getposicion()[0]==0 && (1000-agState.getenergiaUsada()>=CostoSubir)){\n \tint idCuadrante=agState.getposicion()[1];\n \tint idSubcuadrante=agState.getposicion()[2];\n \tint[] esqIdentificadas = agState.getlistaEsquinasIdentificadas(); \n \t\n \t\tArrayList<Esquina> esquinas = agState.getlistaCuadrantesEnDrone().get(idCuadrante-1).getlistaSubcuadrantes().get(idSubcuadrante-1).getlistaEsquinas();\n \t\tfor(Esquina esquina : esquinas){\n \t\t\tif(esqIdentificadas[esquina.getidEsquina()]==0) return null;\n \t\t}\n \tagState.incrementarEnergiaUsada(CostoSubir);\n \tagState.irNivelMedio();\n \treturn agState;\n }\n return null;\n }",
"public void localizarExibirProdutoCodigo(Prateleira prat){\n Produto mockup = new Produto();\r\n \r\n //pede o codigo para porcuara\r\n int Codigo = Integer.parseInt(JOptionPane.showInputDialog(null,\"Forneca o codigo do produto a ser procurado\" ));\r\n \r\n \r\n //ordena a prateleira\r\n Collections.sort(prat.getPrateleira());\r\n //seta o valor do codigo no auxiliar\r\n mockup.setCodigo(Codigo);\r\n \r\n //faz uma busca binaria no arraylist usando o auxiliar como parametro\r\n int resultado = Collections.binarySearch(prat.getPrateleira() ,mockup);\r\n \r\n //caso não encontre um\r\n if(resultado<0) \r\n //exibe essa mensagem\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" nao encontrado\");\r\n //caso encontre\r\n else {\r\n //mostrar o produto encontrado\r\n VisualizarProduto vp = new VisualizarProduto();\r\n vp.ver((Produto) prat.get(resultado));\r\n }\r\n }",
"public int EjecutarOperacion(String sql){\n int respuesta = 0;\n try { \n respuesta = this.s.executeUpdate(sql);\n if(respuesta >= 1){\n respuesta = 1;\n System.out.println(\"Registro Guardado\");\n return respuesta;\n }\n else{\n System.out.println(\"Ocurrio un problema al agregar el registro\"); \n return 0;\n }\n } catch(SQLException ex){\n // Mostramos toda la informacion sobre el error disponible\n System.out.println( \"Error: SQLException\" );\n while (ex != null) {\n System.out.println (\"SQLState: \" + ex.getSQLState ());\n System.out.println (\"Mensaje: \" + ex.getMessage ());\n System.out.println (\"ErrorCode: \" + ex.getErrorCode ());\n ex = ex.getNextException();\n }\n } catch(Exception e) {\n System.out.println(\"Se produjo un error inesperado: \"+e.getMessage());\n return 3;\n }\n return respuesta;\n }",
"private void btnSalvarLabirinto(){\n\t\t\tinfo.setText(\" \");\n botao[3].setEnabled(true);\n log.setText(\"Log de erros\");\n \n JFileChooser arquivo = new JFileChooser();\n\t\t\tarquivo.setDialogTitle(\"Salvar Arquivo\");\n int userSelection = arquivo.showSaveDialog(visor);\n\n FileWriter salvar = null;\n File f = null;\n try{\n if (userSelection == JFileChooser.APPROVE_OPTION) {\n salvar = new FileWriter(arquivo.getSelectedFile());\n f = arquivo.getSelectedFile();\n nome = f.getName();\n int n = visor.getLineCount();\n salvar.write(n + \"\\n\");\n salvar.write(visor.getText());\n salvar.close();\n }\n }catch(IOException e){}\n CriaLabirinto texto = new CriaLabirinto();\n try{\n\t\t lab = texto.labirinto(nome);\n\t }\n\t catch(Exception erro1){\n\t\t\t log.setText(erro1.getMessage());\n\t\t\t f.delete();\n\t }\n }",
"public boolean excribirResultados(String nom, ArrayList<Resultado> resFinal) { \n objDate = new Date(); \n hourdateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\n String fecha = hourdateFormat.format(objDate);\n \n hourdateFormat = new SimpleDateFormat(\"dd-MM-yyyy HH.mm.ss\");\n this.nombre = hourdateFormat.format(objDate) + \" \" +nom;\n try{\n file.abrirArchivo(nombre, true, false);\n file.escribirArchivo(fecha, true); \n file.escribirArchivo(encabezado, true);\n file.escribirArchivo(\"\", true);\n String nombreFun = resFinal.get(0).getFuncion();\n for (Resultado res : resFinal) { \n if(!nombreFun.equals(res.getFuncion())){\n file.escribirArchivo(\"\", true);\n nombreFun = res.getFuncion();\n }\n encabezado = organizarCadena(res);\n //escribir linea en el archivo\n file.escribirArchivo(encabezado, true); \n }\n file.escribirArchivo(\"\\n\", false); \n }catch(Exception e){\n System.out.println(\"error manipulando un archivo. ex = \" + e.getMessage());\n return false;\n }finally{\n // En el finally se cierra el fichero, para asegurarse que se cierra si todo va bien o si salta una excepcion.\n try{ \n if( null != file ){ \n file.cerrarArchivo();\n }\n }catch (Exception e2){ \n System.out.println(\"error cerando un archivo. ex = \" + e2.getMessage());\n return false;\n }\n }\n return true;\n }",
"private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"private boolean validaItemsServicio(int CodEmp, int CodLoc, int CodCot){\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n java.sql.Connection conLoc;\n boolean blnRes=true;\n try{\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(), objParSis.getUsuarioBaseDatos(), objParSis.getClaveBaseDatos());\n if (conLoc != null) {\n stmLoc=conLoc.createStatement();\n strSql=\"\";\n strSql+=\" SELECT a1.co_emp, a1.co_loc, a1.co_cot \\n\";\n strSql+=\" FROM tbm_cabCotVen as a1 \\n\";\n strSql+=\" INNER JOIN tbm_detCotVen as a2 ON (a1.co_emp=a2.co_emp AND a1.co_loc=a2.co_loc AND a1.co_cot=a2.co_cot) \\n\";\n strSql+=\" INNER JOIN tbm_inv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_itm=a3.co_itm) \\n\";\n strSql+=\" WHERE a1.co_emp=\"+CodEmp+\" AND a1.co_loc=\"+CodLoc+\" AND a1.co_cot=\"+CodCot+\" AND (a3.st_ser='S' OR a3.st_ser='T' OR a3.st_ser='O') \\n\";\n rstLoc=stmLoc.executeQuery(strSql);\n if(rstLoc.next()){\n blnRes=false;\n }\n rstLoc.close();\n rstLoc=null;\n stmLoc.close();\n stmLoc=null;\n }\n conLoc.close();\n conLoc=null;\n }\n catch (java.sql.SQLException e){\n objUti.mostrarMsgErr_F1(this, e);\n blnRes=false; \n }\n catch(Exception e){\n objUti.mostrarMsgErr_F1(this, e);\n blnRes=false;\n }\n return blnRes;\n }",
"private void usuario(){\r\n int x=0,y=0,car=0;\r\n boolean aceptar=false, exc=false;\r\n System.out.println(\"Jugador:\"+pj+\" Puntos\");\r\n try{\r\n do{\r\n try{\r\n Scanner leer = new Scanner(System.in);\r\n if(this.ind==true){\r\n System.out.println(\"Dame numero de renglon:\");\r\n try{\r\n x=leer.nextInt();\r\n }catch(InputMismatchException e){\r\n throw new ExcepcionGame(\"Debes Ingresar Numeros no Letras\",\"Modo Contrareloj\");\r\n }\r\n }\r\n else{\r\n exc=true;\r\n throw new ExcepcionGame();\r\n }\r\n if(this.ind==true){\r\n System.out.println(\"Dame numero de columna:\");\r\n try{\r\n y=leer.nextInt();\r\n }catch(InputMismatchException e){\r\n throw new ExcepcionGame(\"Debes Ingresar Numeros no Letras\",\"Modo Contrareloj\");\r\n }\r\n }\r\n else{\r\n exc=true;\r\n throw new ExcepcionGame();\r\n }\r\n try{\r\n if(compmov(x,y)==true){\r\n aceptar=true;\r\n }\r\n else{\r\n aceptar=false;\r\n System.out.println(\"Movimiento no Valido, Escoga Otra Vez\");\r\n }\r\n }catch(ArrayIndexOutOfBoundsException a){\r\n aceptar=false;\r\n System.out.println(\"Posicion No Valida\");\r\n }\r\n \r\n }catch(ExcepcionGame a){\r\n if(exc==false){\r\n aceptar=false;\r\n a.mensaje();\r\n }else{\r\n exc=false;\r\n throw new TimeOut(\"Has Rebasado tu Tiempo Limite\",\"Modo Contrareloj\");\r\n }\r\n }\r\n \r\n }while(aceptar==false); \r\n\r\n car=1;\r\n car=jugada(x,y,car,\"Jugador\");\r\n aceptar=false;\r\n do{\r\n try{\r\n Scanner leer = new Scanner(System.in);\r\n if(this.ind==true){\r\n System.out.println(\"Dame numero de renglon:\");\r\n try{\r\n x=leer.nextInt();\r\n }catch(InputMismatchException e){\r\n throw new ExcepcionGame(\"Debes Ingresar Numeros no Letras\",\"Modo Contrareloj\");\r\n }\r\n }\r\n else{\r\n exc=true;\r\n throw new ExcepcionGame();\r\n }\r\n if(this.ind==true){\r\n System.out.println(\"Dame numero de columna:\");\r\n try{\r\n y=leer.nextInt();\r\n }catch(InputMismatchException e){\r\n throw new ExcepcionGame(\"Debes Ingresar Numeros no Letras\",\"Modo Contrareloj\");\r\n }\r\n }\r\n else{\r\n exc=true;\r\n throw new ExcepcionGame();\r\n }\r\n try{\r\n if(compmov(x,y)==true){\r\n aceptar=true;\r\n }\r\n else{\r\n aceptar=false;\r\n System.out.println(\"Movimiento no Valido, Escoga Otra Vez\");\r\n }\r\n }catch(ArrayIndexOutOfBoundsException ss){\r\n aceptar=false;\r\n System.out.println(\"Posicion no Valida\");\r\n }\r\n \r\n }catch(ExcepcionGame b){\r\n if(exc==false){\r\n aceptar=false;\r\n b.mensaje();\r\n }\r\n else{\r\n exc=false;\r\n throw new TimeOut(\"Has Rebasado tu Tiempo Limite\",\"Modo Contrareloj\");\r\n }\r\n \r\n }\r\n }while(aceptar==false);\r\n jugada(x,y,car,\"Jugador\");\r\n }catch(TimeOut c){\r\n c.mensaje();\r\n }\r\n }",
"@Override\n\t/*Método que se va a utilizar cuando el usuario inicie sesión, para ver si los datos son o no correctos*/\n\tpublic String comprobarinicio(String nombreusuario, String clave) {\n\t\tDBConnection con = new DBConnection();\n\t\tString sql=\"Select * from usuarios where nombreusuario='\"+nombreusuario+\"'and clave='\"+clave+\"'\"; //búsqueda del usuario en la BD\n\t\tBoolean encontrado=false; //Booleano que indicará si el usuario está o no en la BD\n\t\ttry {\n\t\t\tStatement st = con.getConnection().createStatement(); \n\t\t\tResultSet rs = st.executeQuery(sql);\n\t\t\t/*De lo que devuelve la consulta, se va a coger el nombre de usuario y la clave (aunque no haya datos en ellos lo devuelve pero vacio)*/\n\t\t\twhile(rs.next()) {\n\t\t\tString nombre_usu= rs.getString(\"nombreusuario\");\n\t\t\tString pass= rs.getString(\"clave\");\n\t\t\t/*En caso de que los datos coincidan con los que se han pasado como parámetros desde el inicio de sesión, significará que los datos son correctos\n\t\t\t * y la variable encontrado cambia su valor para dejar constancia de que el usuario es correcto*/\n\t\t\tif(nombre_usu.equals(nombreusuario) && pass.equals(clave)) {\n\t\t\t\tencontrado=true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tst.close();\n\t\t\t//En caso del valor de encontrado, se devolverá ok (si se encuentra) o not ok (\"si no se encuentra\")\n\t\t\tif(encontrado) {\n\t\t\t\treturn \"ok\";\n\t\t\t}else {\n\t\t\t\treturn \"not ok\";\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n return(e.getMessage());\n\t\t}finally {\n\t\t\tcon.desconectar();\n\t\t}\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic Object dashboardGestaoFilasPorUsuario(User usuarioLogado, TaskProcess processoSelecionado, Actor atorSelecionado, User usuarioSelecionado) throws BonitaException {\n\t\treturn null;\r\n\t}",
"public void ejecutarCodigoSQLdatos(String nombrebuscado)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tFileReader codigoarchivo = new FileReader ( \"./images/BD/Codigo SQL crebas datos.sql\" );\r\n\t\t\tBufferedReader reader = new BufferedReader (codigoarchivo);\r\n\t\t\tString codigo = reader.readLine();\r\n\t\t\twhile(codigo!= null)\r\n\t\t\t{\r\n\t\t\t\tif(!codigo.equalsIgnoreCase(\"\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tConector conectord = new Conector(nombrebuscado);\r\n\t\t\t\t\tconectord.iniciarConexionBaseDatos();\r\n\t\t\t\t\tCrearBD.ejecutarCodigoSQL(codigo, conectord);\r\n\t\t\t\t\tconectord.terminarConexionBaseDatos();\r\n\t\t\t\t}\r\n\t\t\t\tcodigo = reader.readLine();\r\n\t\t\t}\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Se Instalo la Base de Datos Correctamente.\",\"Instalar Base de Datos\", JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tConector conectorg = new Conector(nombrebuscado);\r\n\t\t\t\tconectorg.iniciarConexionBaseDatos();\r\n\t\t\t\tCrearBD.ejecutarCodigoSQL(\"DROP DATABASE \"+nombrebuscado, conectorg);\r\n\t\t\t\tconectorg.terminarConexionBaseDatos();\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"No se encontro el archivo Codigo SQL crebas datos.sql\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t}\r\n\t\t\tcatch (Exception ex)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}",
"@Override\n\tpublic IContexto[] ejecutar(IContextoEjecucion arg0, IDatosEntradaTx datosEntrada) {\n\t\tlogger.info(\"Inicio ejecucion del SN 029012: Polling Handler\");\n\t\t\n\t\tIContexto[] salida = null;\n\t\t\n\t\tfinal BigDecimal decUser = datosEntrada.getDecimal(CTE_POSICION_USER);\n\t\tInteger user = null;\n\t\tif(decUser != null){\n\t\t\tuser = new Integer(decUser.intValue());\n\t\t}\t\t\n\t\t\n\t\tfinal BigDecimal decPid = datosEntrada.getDecimal(CTE_POSICION_PID);\n\t\tInteger pid = null;\n\t\tif(decPid != null){\n\t\t\tpid = new Integer(decPid.intValue());\n\t\t}\t\t\n\t\t\n\t\tif (pid==99991){return new IContexto[0];\n\t\t}\n\t\n\t\tString host = null;\n\t\t\n\t\ttry {\n\t\t\tInetAddress addr = InetAddress.getLocalHost();\n\t\t\t// Get hostname\n\t\t\thost = addr.getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t}\n\t\t\n\t\t// Tiempo actual para marcar o actualizar el del proceso\n\t\tlong timestamp = System.currentTimeMillis();\n\t\t\n\t\tfinal ProcesoManager manager = ManagerFactory.getInstance().getProcesoManager();\n\t\tfinal UsuariosManager usuariosManager = ManagerFactory.getInstance().getUsuariosManager();\n\t\tUsuarioC usuario = usuariosManager.findById(user);\n\t\t\n\t\tProcesoC proceso = new ProcesoC(); \n\t\tproceso = manager.checkExecutionInfo(user, pid, host);\n\t\t\n\t\tif(proceso!=null){\n\t\t\tCharacter killedByARPIA = proceso.getChKilledByARPIA();\n\t\t\tif(killedByARPIA!=null){\n\t\t\t\tif(killedByARPIA.equals('1')){\n\t\t\t\t\t// Si es ARPIA quien para la ejecución del avatar, se marca el proceso como \"arpia\"\n\t\t\t\t\t// para que desde el listener del polling se complete el cierre del avatar\n\t\t\t\t\tsalida = ContextoMensaje.rellenarContexto(\"arpia\");\n\t\t\t\t\treturn salida;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t// Si la base de datos contiene ya una entrada para ese mismo user y pid\n\t\t\t\t\tproceso.setNuTimestamp(timestamp);\n\t\t\t\t\tmanager.updateExecutionInfo(proceso);\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t}else{\n\t\t\tproceso = new ProcesoC();\n\t\t\t// Obtengo el tipo de cuenta del usuario\n\t\t\tInteger userAccountType = usuario.getCuentaId();\n\t\t\tif(userAccountType.equals(Constantes.CTE_ACCOUNT_FREE) || userAccountType.equals(Constantes.CTE_ACCOUNT_BASIC)){\n\t\t\t\t// Si el usuario es 'free' o 'basic' tendrá un tiempo máximo de ejecución del avatar\n\t\t\t\tString timeAlive = Constantes.getTimeAlive();\t\t\t\t\n\t\t\t\tproceso.setNuTimealive(Integer.parseInt(timeAlive));\n\t\t\t\t\n\t\t\t\tif(userAccountType.equals(Constantes.CTE_ACCOUNT_FREE)){\n\t\t\t\t\tString frozenTime = Constantes.getFrozenTime();\n\t\t\t\t\tproceso.setNuTimeAllowedExecution(timestamp+Integer.parseInt(timeAlive)*1000+Integer.parseInt(frozenTime)*1000);\n\t\t\t\t}else{\n\t\t\t\t\tproceso.setNuTimeAllowedExecution(0); \n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t// Si el usuario es 'pro' o 'corporate' no tendrá tiempo máximo de ejecución.\n\t\t\t\t// Se marca como 0 para que ARPIA sepa que no tiene que matar a estos procesos\n\t\t\t\tproceso.setNuTimealive(0);\n\t\t\t}\t\t\t\t\n\t\t\t\tproceso.setCnUser(user);\n\t\t\t\tproceso.setNuPid(pid);\n\t\t\t\tproceso.setNuTimestamp(timestamp);\n\t\t\t\tproceso.setDcHost(host);\n\t\t\t\tproceso.setNuTimestart(timestamp);\t\t\t\t\n\t\t\t\tproceso.setChKilledByARPIA('0');\n\t\t\t\t\n\t\t\t\tmanager.addExecutionInfo(proceso);\t\t\t\n\t\t}\n\t\t\t\t\n\t\tlogger.info(\"Fin ejecucion del SN 029012: Polling Handler\");\n\t\tsalida = ContextoMensaje.rellenarContexto(\"poll\");\n\t\treturn salida;\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tString[] horasSesiones = {};\r\n\t\tSala sala = new Sala(\"Tiburon\", horasSesiones, 9, 5);\r\n\r\n\t\tsala.incluirSesion(\"20:00\");\r\n\r\n\t\t/*for (String hora : sala.getHorasDeSesionesDeSala())\r\n\t\t\tSystem.out.println(hora);*/\r\n\t//\tsala.borrarSesion(\"15:00\"); // no hace nada\r\n\t\t//sala.borrarSesion(\"20:00\");\r\n\r\n\t\tfor (String hora : sala.getHorasDeSesionesDeSala())\r\n\t\t\tSystem.out.println(hora);\r\n\r\n\t\t// necesitamos la ventanilla para mostrar el estado de la sesion\r\n\t\tVentanillaVirtualUsuario ventanilla = new VentanillaVirtualUsuario(null, true);\r\nSystem.out.println(sala.sesiones.size());\r\nSystem.out.print(sala.getEstadoSesion(1));\r\n\t\tsala.comprarEntrada(1, 2, 1);\r\n\t\tsala.comprarEntrada(1, 9, 3);\r\n\r\n\t\tint idVenta = sala.getIdEntrada(1, 9, 3);\r\n\r\n\t\tSystem.out.println(\"Id de venta es:\" + idVenta);\r\n\r\n\t\tButacasContiguas butacas = sala.recomendarButacasContiguas(1, 1);\r\n\r\n\t\tsala.comprarEntradasRecomendadas(1, butacas);\r\n\r\n\t\tint idVenta1 = sala.getIdEntrada(1, butacas.getFila(), butacas.getColumna());\r\n\r\n\t\tsala.recogerEntradas(idVenta1, 1);\r\n\r\n\t\tventanilla.mostrarEstadoSesion(sala.getEstadoSesion(1));\r\n\r\n\t\tSystem.out.println(\"No. de butacas disponibles: \" + sala.getButacasDisponiblesSesion(1));\r\n\r\n\t\tSystem.out.println(\"Tickets :\" + sala.recogerEntradas(idVenta, 1));\r\n\r\n\t\tSystem.out.println(\"Tickets recomendados:\" + sala.recogerEntradas(idVenta1, 1));\r\n\t\t//System.out.println(sala.sesiones.size());\r\n\t\t//sala.incluirSesion(\"10:56\");\r\n\t\t//sala.incluirSesion(\"10:57\");\r\n\t\t//System.out.println(sala.sesiones.size());\r\n\t\t/*{\r\n\t\t\tfor (int i = 0; i < sala.getHorasDeSesionesDeSala().length; i++) {\r\n\t\t\t\tSystem.out.println(sala.getHorasDeSesionesDeSala()[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t}*/\r\n\t\t\r\n\t}",
"@Override\n void procesarSalida(Simulacion s, Evento e) {\n e.consulta.estadistEjec_Sentencias.tiempoSalidaModulo = e.tiempo;\n e.consulta.estadistEjec_Sentencias.tiempoEnModulo = e.tiempo - e.consulta.estadistEjec_Sentencias.tiempoLlegadaModulo;\n Evento evento = new Evento(e.consulta);\n evento.tipoE = Evento.TipoEvento.ENTRADA;\n evento.modulo = Evento.TipoModulo.ADM_CONEXIONES;\n evento.tiempo = e.tiempo;\n numServOcupados--;\n s.listaE.add(evento);\n\n if (!colaC.isEmpty()) { //Si despues de una salida hay algo en cola\n Consulta consulta = colaC.remove();\n consulta.estadistEjec_Sentencias.tiempoSalidaCola = e.tiempo - consulta.estadistEjec_Sentencias.tiempoLlegadaModulo;\n s.estadisticasT.promedioColaES += colaC.size();\n Evento eventoS = new Evento(consulta);\n eventoS.tipoE = Evento.TipoEvento.SALIDA;\n eventoS.modulo = Evento.TipoModulo.EJEC_SENTENCIAS;\n ejecucionSentencia(consulta);\n eventoS.tiempo = e.tiempo + tiempoEjecucion;\n s.listaE.add(eventoS);\n numServOcupados++;\n }\n\n }",
"private void devolverLivro() throws Exception {\n try {\n long DAY_IN_MS = 1000 * 60 * 60 * 24; // formatar data entrega\n int codigo = Console.scanInt(\"Informe o código da retirada do livro: \");\n retiradaDao = new RetiradaDaoBd();\n Retirada retirada = retiradaDao.procurarPorId(codigo);\n try {\n devolucaoNegocio.salvar(retirada);\n System.out.println(\"Devolucao cadastrado com sucesso!\");\n } catch (Exception ex) {\n UIUtil.mostrarErro(ex.getMessage());\n }\n\n System.out.println(\"Livro \" + retirada.getLivro().getNome() + \" devolvido por \" + retirada.getCliente().getNome());\n } catch (InputMismatchException e) {\n System.err.println(\"ERRO! O ISBN deve ser numérico!\");\n }\n }",
"@SuppressWarnings(\"static-access\")\n\tpublic static void main(String[] args) throws Exception {\n\t\t\n\t\t//Session s = Sessions.getCurrent(false);\n\t\t//s.setAttribute(Config.USUARIO, \"PoPu\");\n\t\t\n\t\t//ControlAgendaEvento agenda = new ControlAgendaEvento();\n\n\t\tlong ceroTime = System.currentTimeMillis();\n\n\t\trr.dropAllTables();\n\t\tlong iniTime = System.currentTimeMillis();\n\n\t\t// Primero cargar todos los tipos\n\t\tDBPopulationTipos tt = new DBPopulationTipos();\n\t\ttt.cargaTipos();\n\t\n\t\tDBVistas.main(null);\n\n\n\t\tMigracionPlanDeCuentas.main(null);\n\t\t\n\t\t// ----------------------------14----------------------------------------------------------------------\n\t\t// Menus, Usuario y Perfil\n\t\t// DBMenuUser menus = new DBMenuUser();\n\t\t// menus.testAddObject();\n\t\tUsuarioPerfilParser.loadMenuConfig();\n\t\t// DBMenuUserParser menus = new DBMenuUserParser();\n\t\t// menus.cargaMenusPerfilesUsuarios();\n\n\t\t// --------------------------------------------------------------------------------------------------\n\n\t\t/************************************** SUCURSALES **************************************/\n\n\t\tSucursalApp sucApp1 = new SucursalApp();\n\t\tsucApp1.setNombre(\"Central\");\n\t\tsucApp1.setDescripcion(\"Casa Central\");\n\t\tsucApp1.setEstablecimiento(\"1\");\n\t\tsucApp1.setDireccion(\"Mcal. Estigarribia\");\n\t\tsucApp1.setTelefono(\"111-222\");\n\n\t\tSucursalApp sucApp2 = new SucursalApp();\n\t\tsucApp2.setNombre(\"Florentin\");\n\t\tsucApp2.setDescripcion(\"Sucursal Florentin\");\n\t\tsucApp2.setEstablecimiento(\"2\");\n\t\tsucApp2.setDireccion(\"Direccion 2\");\n\t\tsucApp2.setTelefono(\"222-333\");\n\n\t\tSucursalApp sucApp3 = new SucursalApp();\n\t\tsucApp3.setNombre(\"Baterias\");\n\t\tsucApp3.setDescripcion(\"Sucursal Baterias\");\n\t\tsucApp3.setEstablecimiento(\"3\");\n\t\tsucApp3.setDireccion(\"Direccion 3\");\n\t\tsucApp3.setTelefono(\"333-444\");\n\n\t\tgrabarDB(sucApp1);\n\t\tgrabarDB(sucApp2);\n\t\tgrabarDB(sucApp3);\n\n\t\tSet<SucursalApp> sucursalesApp = new HashSet<SucursalApp>();\n\t\tsucursalesApp.add(sucApp1);\n\t\tsucursalesApp.add(sucApp2);\n\t\tsucursalesApp.add(sucApp3);\n\n\t\t/************************************* DEPOSITOS **********************************/\n\n\t\tDeposito dep1 = new Deposito();\n\t\tdep1.setDescripcion(\"S1-D1\");\n\t\tdep1.setObservacion(\"Descripcion 1\");\n\n\t\tDeposito dep2 = new Deposito();\n\t\tdep2.setDescripcion(\"S1-D2\");\n\t\tdep2.setObservacion(\"Descripcion 2\");\n\n\t\tDeposito dep3 = new Deposito();\n\t\tdep3.setDescripcion(\"S1-D3\");\n\t\tdep3.setObservacion(\"Descripcion 3\");\n\n\t\tgrabarDB(dep1);\n\t\tgrabarDB(dep2);\n\t\tgrabarDB(dep3);\n\n\t\tSet<Deposito> depositos = new HashSet<Deposito>();\n\t\tdepositos.add(dep1);\n\t\tdepositos.add(dep2);\n\t\tdepositos.add(dep3);\n\t\tsucApp1.setDepositos(depositos);\n\n\t\tDeposito dep4 = new Deposito();\n\t\tdep4.setDescripcion(\"S2-D1\");\n\t\tdep4.setObservacion(\"Descripcion 1\");\n\n\t\tDeposito dep5 = new Deposito();\n\t\tdep5.setDescripcion(\"S2-D2\");\n\t\tdep5.setObservacion(\"Descripcion 2\");\n\n\t\tgrabarDB(dep4);\n\t\tgrabarDB(dep5);\n\n\t\tSet<Deposito> depositos2 = new HashSet<Deposito>();\n\t\tdepositos2.add(dep4);\n\t\tdepositos2.add(dep5);\n\t\tsucApp2.setDepositos(depositos2);\n\n\t\tDeposito dep6 = new Deposito();\n\t\tdep6.setDescripcion(\"S3-D1\");\n\t\tdep6.setObservacion(\"Descripcion 1\");\n\n\t\tDeposito dep7 = new Deposito();\n\t\tdep7.setDescripcion(\"S3-D2\");\n\t\tdep7.setObservacion(\"Descripcion 2\");\n\n\t\tDeposito dep8 = new Deposito();\n\t\tdep8.setDescripcion(\"S3-D3\");\n\t\tdep8.setObservacion(\"Descripcion 3\");\n\n\t\tgrabarDB(dep6);\n\t\tgrabarDB(dep7);\n\t\tgrabarDB(dep8);\n\n\t\tSet<Deposito> depositos3 = new HashSet<Deposito>();\n\t\tdepositos3.add(dep6);\n\t\tdepositos3.add(dep7);\n\t\tdepositos3.add(dep8);\n\t\tsucApp3.setDepositos(depositos3);\n\n\t\tgrabarDB(sucApp1);\n\t\tgrabarDB(sucApp2);\n\t\tgrabarDB(sucApp3);\n\n\t\t/************************************* CUENTAS CONTABLES **********************************/\n\n\t\tCuentaContable ct1 = new CuentaContable();\n\t\tct1.setCodigo(\"CT-0001\");\n\t\tct1.setDescripcion(\"IMPORTACION EN CURSO\");\n\t\tct1.setAlias(Configuracion.ALIAS_CUENTA_IMPORTACION_EN_CURSO);\n\t\tgrabarDB(ct1);\n\n\t\tCuentaContable ct2 = new CuentaContable();\n\t\tct2.setCodigo(\"CT-0002\");\n\t\tct2.setDescripcion(\"IVA CRÉDITO FISCAL\");\n\t\tct2.setAlias(Configuracion.ALIAS_CUENTA_IVA_10_CF);\n\t\tgrabarDB(ct2);\n\n\t\tCuentaContable ct3 = new CuentaContable();\n\t\tct3.setCodigo(\"CT-0003\");\n\t\tct3.setDescripcion(\"EQUIPOS DE INFORMATICA\");\n\t\tct3.setAlias(\"A-EQU-INFORMATICA\");\n\t\tgrabarDB(ct3);\n\n\t\tCuentaContable ct4 = new CuentaContable();\n\t\tct4.setCodigo(\"CT-0004\");\n\t\tct4.setDescripcion(\"AGENCIA CELIA LOPEZ GODOY\");\n\t\tct4.setAlias(\"P-PRV-LOPEZGODOY\");\n\t\tgrabarDB(ct4);\n\n\t\tCuentaContable ct6 = new CuentaContable();\n\t\tct6.setCodigo(\"CT-0006\");\n\t\tct6.setDescripcion(\"VALVOLINE S.A.\");\n\t\tct6.setAlias(\"P-PRV-VALVOLINE\");\n\t\tgrabarDB(ct6);\n\n\t\tCuentaContable ct7 = new CuentaContable();\n\t\tct7.setCodigo(\"CT-0007\");\n\t\tct7.setDescripcion(\"MERCADERÍAS GRAVADAS\");\n\t\tct7.setAlias(Configuracion.ALIAS_CUENTA_MERCADERIAS_GRAVADAS);\n\t\tgrabarDB(ct7);\n\n\t\tCuentaContable ct9 = new CuentaContable();\n\t\tct9.setCodigo(\"CT-0009\");\n\t\tct9.setDescripcion(\"TRANS-MULTIMARCAS\");\n\t\tct9.setAlias(\"P-PRV-TRANSMULTIMARCAS\");\n\t\tgrabarDB(ct9);\n\n\t\tCuentaContable ct10 = new CuentaContable();\n\t\tct10.setCodigo(\"CT-0010\");\n\t\tct10.setDescripcion(\"KS PRODUCTOS\");\n\t\tct10.setAlias(\"P-PRV-KSPRODUCTOS\");\n\t\tgrabarDB(ct10);\n\n\t\tCuentaContable ct11 = new CuentaContable();\n\t\tct11.setCodigo(\"CT-0011\");\n\t\tct11.setDescripcion(\"PARTNER S.A.\");\n\t\tct11.setAlias(\"P-PRV-PARTNER\");\n\t\tgrabarDB(ct11);\n\n\t\tCuentaContable ct12 = new CuentaContable();\n\t\tct12.setCodigo(\"CT-0012\");\n\t\tct12.setDescripcion(\"UTILES E INSUMOS DE OFICINA\");\n\t\tct12.setAlias(\"A-UT-OF\");\n\t\tgrabarDB(ct12);\n\n\t\tCuentaContable ct13 = new CuentaContable();\n\t\tct13.setCodigo(\"CT-0013\");\n\t\tct13.setDescripcion(\"AGUA LUZ TELEFONO\");\n\t\tct13.setAlias(\"A-AG-LUZ-TEL\");\n\t\tgrabarDB(ct13);\n\n\t\tCuentaContable ct14 = new CuentaContable();\n\t\tct14.setCodigo(\"CT-0014\");\n\t\tct14.setDescripcion(\"DESCUENTOS OBTENIDOS\");\n\t\tct14.setAlias(\"A-DESC-OBT\");\n\t\tgrabarDB(ct14);\n\t\t\n\t\tCuentaContable ct15 = new CuentaContable();\n\t\tct15.setCodigo(\"CT-0015\");\n\t\tct15.setDescripcion(\"GASTOS DE IMPORTACIÓN\");\n\t\tct15.setAlias(\"P-GAST-IMP\");\n\t\tgrabarDB(ct15);\n\t\t\n\t\tCuentaContable ct16 = new CuentaContable();\n\t\tct16.setCodigo(\"CT-0016\");\n\t\tct16.setDescripcion(\"DERECHO ADUANERO\");\n\t\tct16.setAlias(\"P-GAST-IMP-DER-ADU\");\n\t\tgrabarDB(ct16);\n\t\t\n\t\tCuentaContable ct17 = new CuentaContable();\n\t\tct17.setCodigo(\"CT-0017\");\n\t\tct17.setDescripcion(\"TAZA INDI\");\n\t\tct17.setAlias(\"P-GAST-IMP-INDI\");\n\t\tgrabarDB(ct17);\n\t\t\n\t\tCuentaContable ct18 = new CuentaContable();\n\t\tct18.setCodigo(\"CT-0018\");\n\t\tct18.setDescripcion(\"SERVICIO DE VALORACION\");\n\t\tct18.setAlias(\"P-GAST-IMP-SERV-VAL\");\n\t\tgrabarDB(ct18);\n\t\t\n\t\tCuentaContable ct19 = new CuentaContable();\n\t\tct19.setCodigo(\"CT-0019\");\n\t\tct19.setDescripcion(\"IVA DESPACHO IMPORTACIÓN\");\n\t\tct19.setAlias(\"P-GAST-IMP-IVA-DESP\");\n\t\tgrabarDB(ct19);\n\t\t\n\t\tCuentaContable ct20 = new CuentaContable();\n\t\tct20.setCodigo(\"CT-0020\");\n\t\tct20.setDescripcion(\"CANON INFORMÁTICO\");\n\t\tct20.setAlias(\"P-GAST-IMP-CAN-INF\");\n\t\tgrabarDB(ct20);\n\t\t\n\n\n\t\t/************************************** DEPARTAMENTOS **************************************/\n\n\t\t// Asignacion de Centros de Costo a los Departamentos\n\t\tSet<CentroCosto> ccs1 = new HashSet<CentroCosto>();\n\t\tSet<CentroCosto> ccs2 = new HashSet<CentroCosto>();\n\t\tSet<CentroCosto> ccs3 = new HashSet<CentroCosto>();\n\t\tSet<CentroCosto> ccs4 = new HashSet<CentroCosto>();\n\t\tSet<CentroCosto> ccs5 = new HashSet<CentroCosto>();\n\n\t\tCentroCosto cc1 = new CentroCosto();\n\t\tcc1.setNumero(\"CC-00001\");\n\t\tcc1.setDescripcion(\"UTILES E INSUMOS - ADMINISTRACION\");\n\t\tcc1.setMontoAsignado(1500000);\n\t\tccs1.add(cc1);\n\n\t\tCentroCosto cc2 = new CentroCosto();\n\t\tcc2.setNumero(\"CC-00002\");\n\t\tcc2.setDescripcion(\"GASTOS IMPREVISTOS - ADMINISTRACION\");\n\t\tcc2.setMontoAsignado(1000000);\n\t\tccs1.add(cc2);\n\n\t\tCentroCosto cc3 = new CentroCosto();\n\t\tcc3.setNumero(\"CC-00003\");\n\t\tcc3.setDescripcion(\"UTILES E INSUMOS - RR.HH\");\n\t\tcc3.setMontoAsignado(1500000);\n\t\tccs2.add(cc3);\n\n\t\tCentroCosto cc4 = new CentroCosto();\n\t\tcc4.setNumero(\"CC-00004\");\n\t\tcc4.setDescripcion(\"GASTOS IMPREVISTOS - RR.HH\");\n\t\tcc4.setMontoAsignado(1500000);\n\t\tccs2.add(cc4);\n\n\t\tCentroCosto cc5 = new CentroCosto();\n\t\tcc5.setNumero(\"CC-00005\");\n\t\tcc5.setDescripcion(\"UTILES E INSUMOS - INFORMATICA\");\n\t\tcc5.setMontoAsignado(1500000);\n\t\tccs3.add(cc5);\n\n\t\tCentroCosto cc6 = new CentroCosto();\n\t\tcc6.setNumero(\"CC-00006\");\n\t\tcc6.setDescripcion(\"GASTOS IMPREVISTOS - INFORMATICA\");\n\t\tcc6.setMontoAsignado(1500000);\n\t\tccs3.add(cc6);\n\n\t\tCentroCosto cc7 = new CentroCosto();\n\t\tcc7.setNumero(\"CC-00007\");\n\t\tcc7.setDescripcion(\"UTILES E INSUMOS - VENTAS\");\n\t\tcc7.setMontoAsignado(1500000);\n\t\tccs4.add(cc7);\n\n\t\tCentroCosto cc8 = new CentroCosto();\n\t\tcc8.setNumero(\"CC-00008\");\n\t\tcc8.setDescripcion(\"GASTOS IMPREVISTOS - VENTAS\");\n\t\tcc8.setMontoAsignado(1500000);\n\t\tccs4.add(cc8);\n\n\t\tCentroCosto cc9 = new CentroCosto();\n\t\tcc9.setNumero(\"CC-00009\");\n\t\tcc9.setDescripcion(\"GASTOS IMPORTACION - COMPRAS\");\n\t\tcc9.setMontoAsignado(15000000);\n\t\tccs5.add(cc9);\n\n\t\t// Asignacion de Cuentas a los Departamentos\n\t\tSet<CuentaContable> ctas1 = new HashSet<CuentaContable>();\n\t\tctas1.add(ct3);\n\t\tctas1.add(ct12);\n\t\tctas1.add(ct15);\n\n\t\tSet<CuentaContable> ctas2 = new HashSet<CuentaContable>();\n\t\tctas2.add(ct3);\n\t\tctas2.add(ct12);\n\t\tctas2.add(ct15);\n\n\t\tSet<CuentaContable> ctas3 = new HashSet<CuentaContable>();\n\t\tctas3.add(ct3);\n\t\tctas3.add(ct12);\n\t\tctas3.add(ct15);\n\n\t\tSet<CuentaContable> ctas4 = new HashSet<CuentaContable>();\n\t\tctas4.add(ct15);\n\n\t\tDepartamentoApp dto1 = new DepartamentoApp();\n\t\tdto1.setNombre(\"Administracion\");\n\t\tdto1.setDescripcion(\"Departamento de Administración\");\n\t\tdto1.setSucursal(sucApp1);\n\t\tdto1.setCentroCostos(ccs1);\n\t\tdto1.setCuentas(ctas1);\n\n\t\tDepartamentoApp dto2 = new DepartamentoApp();\n\t\tdto2.setNombre(\"Recursos Humanos\");\n\t\tdto2.setDescripcion(\"Departamento de RRHH\");\n\t\tdto2.setSucursal(sucApp2);\n\t\tdto2.setCentroCostos(ccs2);\n\t\tdto2.setCuentas(ctas2);\n\n\t\tDepartamentoApp dto3 = new DepartamentoApp();\n\t\tdto3.setNombre(\"Informática\");\n\t\tdto3.setDescripcion(\"Departamento de Informática\");\n\t\tdto3.setSucursal(sucApp1);\n\t\tdto3.setCentroCostos(ccs3);\n\t\tdto3.setCuentas(ctas3);\n\n\t\tDepartamentoApp dto4 = new DepartamentoApp();\n\t\tdto4.setNombre(\"Ventas\");\n\t\tdto4.setDescripcion(\"Departamento de Ventas\");\n\t\tdto4.setSucursal(sucApp1);\n\t\tdto4.setCentroCostos(ccs4);\n\t\tdto4.setCuentas(ctas3);\n\n\t\tDepartamentoApp dto5 = new DepartamentoApp();\n\t\tdto5.setNombre(\"Compras\");\n\t\tdto5.setDescripcion(\"Departamento de Compras\");\n\t\tdto5.setSucursal(sucApp1);\n\t\tdto5.setCentroCostos(ccs5);\n\t\tdto5.setCuentas(ctas4);\n\n\t\tgrabarDB(dto1);\n\t\tgrabarDB(dto2);\n\t\tgrabarDB(dto3);\n\t\tgrabarDB(dto4);\n\t\tgrabarDB(dto5);\n\n\t\t/************************************** ACCESOS **************************************/\n\n\t\tUsuario usr1 = (Usuario) rr.getObject(\n\t\t\t\tcom.coreweb.domain.Usuario.class.getName(), new Long(1));\n\t\tUsuario usr2 = (Usuario) rr.getObject(\n\t\t\t\tcom.coreweb.domain.Usuario.class.getName(), new Long(2));\n\t\tUsuario usr3 = (Usuario) rr.getObject(\n\t\t\t\tcom.coreweb.domain.Usuario.class.getName(), new Long(3));\n\t\tUsuario usr4 = (Usuario) rr.getObject(\n\t\t\t\tcom.coreweb.domain.Usuario.class.getName(), new Long(6)); // Usuario\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// celia..\n\t\tUsuario usr5 = (Usuario) rr.getObject(\n\t\t\t\tcom.coreweb.domain.Usuario.class.getName(), new Long(10)); // Usuario\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// clientes\n\t\tUsuario usr6 = (Usuario) rr.getObject(\n\t\t\t\tcom.coreweb.domain.Usuario.class.getName(), new Long(12)); // Usuario\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// proveedores\n\t\tUsuario usr7 = (Usuario) rr.getObject(\n\t\t\t\tcom.coreweb.domain.Usuario.class.getName(), new Long(13)); // Usuario\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// articulos\n\n\t\tAccesoApp ac1 = new AccesoApp();\n\t\tac1.setDescripcion(\"acceso 1\");\n\t\tac1.setDepartamento(dto1);\n\t\tac1.setSucursales(sucursalesApp);\n\t\tac1.setUsuario(usr1);\n\n\t\tgrabarDB(ac1);\n\n\t\tSet<AccesoApp> accesosApp = new HashSet<AccesoApp>();\n\t\taccesosApp.add(ac1);\n\n\t\tAccesoApp ac2 = new AccesoApp();\n\t\tac2.setDescripcion(\"acceso 2\");\n\t\tac2.setDepartamento(dto1);\n\t\tac2.setSucursales(sucursalesApp);\n\t\tac2.setUsuario(usr2);\n\n\t\tgrabarDB(ac2);\n\n\t\t// acceso sin sucursales\n\t\tAccesoApp ac3 = new AccesoApp();\n\t\tac3.setDescripcion(\"acceso 3\");\n\t\tac3.setDepartamento(dto3);\n\t\tac3.setUsuario(usr3);\n\n\t\tgrabarDB(ac3);\n\n\t\tAccesoApp ac4 = new AccesoApp();\n\t\tac4.setDescripcion(\"acceso 4\");\n\t\tac4.setDepartamento(dto1);\n\t\tac4.setSucursales(sucursalesApp);\n\t\tac4.setUsuario(usr4);\n\n\t\tAccesoApp ac5 = new AccesoApp();\n\t\tac5.setDescripcion(\"acceso 5\");\n\t\tac5.setDepartamento(dto1);\n\t\tac5.setUsuario(usr5);\n\n\t\tAccesoApp ac6 = new AccesoApp();\n\t\tac6.setDescripcion(\"acceso 6\");\n\t\tac6.setDepartamento(dto1);\n\t\tac6.setUsuario(usr6);\n\n\t\tAccesoApp ac7 = new AccesoApp();\n\t\tac7.setDescripcion(\"acceso 7\");\n\t\tac7.setDepartamento(dto1);\n\t\tac7.setUsuario(usr7);\n\n\t\tgrabarDB(ac5);\n\t\tgrabarDB(ac6);\n\t\tgrabarDB(ac7);\n\n\t\tSet<AccesoApp> accesosApp2 = new HashSet<AccesoApp>();\n\t\taccesosApp2.add(ac2);\n\t\taccesosApp2.add(ac3);\n\t\taccesosApp2.add(ac4);\n\t\taccesosApp2.add(ac5);\n\t\taccesosApp2.add(ac6);\n\t\taccesosApp2.add(ac7);\n\n\t\t/******************************************* B.D. CLIENTES **********************************************/\n\n\t\tEmpresaGrupoSociedad egs2 = new EmpresaGrupoSociedad();\n\t\tegs2.setDescripcion(\"GRUPO AUTOMOTOR S.A.\");\n\t\tgrabarDB(egs2);\n\n\t\tEmpresaGrupoSociedad egs3 = new EmpresaGrupoSociedad();\n\t\tegs3.setDescripcion(\"GRUPO TOYOTOSHI\");\n\t\tgrabarDB(egs3);\n\n\t\tEmpresaGrupoSociedad egs4 = new EmpresaGrupoSociedad();\n\t\tegs4.setDescripcion(\"GRUPO HYUNDAI\");\n\t\tgrabarDB(egs4);\n\n\t\t\n\t\tCtaCteLineaCredito l1 = new CtaCteLineaCredito();\n\t\tl1.setLinea(5000000);\n\t\tl1.setDescripcion(\"A\");\n\t\tgrabarDB(l1);\n\n\t\t\n\t\tCtaCteLineaCredito l2 = new CtaCteLineaCredito();\n\t\tl2.setLinea(10000000);\n\t\tl2.setDescripcion(\"B\");\n\t\tgrabarDB(l2);\n\n\t\tSet<Tipo> monedas1 = new HashSet<Tipo>();\n\t\tSet<Tipo> monedas2 = new HashSet<Tipo>();\n\t\tSet<Tipo> monedas3 = new HashSet<Tipo>();\n\t\tSet<Tipo> monedas4 = new HashSet<Tipo>();\n\n\t\tmonedas1.add(tt.guarani);\n\t\tmonedas1.add(tt.dolar);\n\t\tmonedas1.add(tt.peso);\n\n\t\tmonedas2.add(tt.guarani);\n\t\tmonedas2.add(tt.dolar);\n\n\t\tmonedas3.add(tt.guarani);\n\t\tmonedas3.add(tt.dolar);\n\n\t\tmonedas4.add(tt.guarani);\n\t\tmonedas4.add(tt.peso);\n\t\t\n\t\t// CUENTAS CONTABLES..\n\t\tCuentaContable ct5 = new CuentaContable();\n\t\tCuentaContable ct8 = new CuentaContable();\n\t\t\n\t\tct8.setCodigo(\"CT-0008\");\n\t\tct8.setDescripcion(\"CLIENTES OCASIONALES\");\n\t\tct8.setAlias(Configuracion.ALIAS_CUENTA_CLIENTES_OCASIONALES);\n\t\tgrabarDB(ct8);\n\n\t\tct5.setCodigo(\"CT-0005\");\n\t\tct5.setDescripcion(\"PROVEEDORES VARIOS\");\n\t\tct5.setAlias(Configuracion.ALIAS_CUENTA_PROVEEDORES_VARIOS);\n\t\tgrabarDB(ct5);\n\n\t\t// TIMBRADOS..\n\t\tSet<Timbrado> timbrados1 = new HashSet<Timbrado>();\n\n\t\tTimbrado t1 = new Timbrado();\n\t\tt1.setNumero(\"150100\");\n\t\tt1.setVencimiento(DateUtils.addDays(new Date(), 5));\n\t\ttimbrados1.add(t1);\n\n\t\tTimbrado t2 = new Timbrado();\n\t\tt2.setNumero(\"150102\");\n\t\tt2.setVencimiento(DateUtils.addDays(new Date(), 5));\n\t\ttimbrados1.add(t2);\n\n\t\tTimbrado t3 = new Timbrado();\n\t\tt3.setNumero(\"170102\");\n\t\tt3.setVencimiento(DateUtils.addDays(new Date(), 5));\n\t\ttimbrados1.add(t3);\n\n\t\t// Chequeado ok\n\t\tSucursal suc1 = new Sucursal();\n\t\tsuc1.setNombre(\"Sucursal 1-1\");\n\t\tsuc1.setTelefono(\"210 211\");\n\t\tsuc1.setDireccion(\"Bella Vista 320\");\n\t\tsuc1.setCorreo(\"suc1@correo\");\n\n\t\tSucursal suc2 = new Sucursal();\n\t\tsuc2.setNombre(\"Sucursal 1-2\");\n\t\tsuc2.setTelefono(\"210 212\");\n\t\tsuc2.setDireccion(\"Eusebio Ayala 320\");\n\t\tsuc2.setCorreo(\"suc2@correo\");\n\n\t\t// Chequeado ok\n\t\tSucursal suc3 = new Sucursal();\n\t\tsuc3.setNombre(\"Sucursal 1\");\n\t\tsuc3.setTelefono(\"210 211\");\n\t\tsuc3.setDireccion(\"Bella Vista 320\");\n\t\tsuc3.setCorreo(\"suc3@correo\");\n\n\t\t// Chequeado ok\n\t\tSucursal suc4 = new Sucursal();\n\t\tsuc4.setNombre(\"Sucursal 2\");\n\t\tsuc4.setTelefono(\"210 212\");\n\t\tsuc4.setDireccion(\"Eusebio Ayala 320\");\n\t\tsuc4.setCorreo(\"suc4@correo\");\n\n\t\t// Chequeado ok\n\t\tEmpresa empresa5 = new Empresa();\n\t\tempresa5.setNombre(\"Perez, Juan\");\n\t\tempresa5.setCodigoEmpresa(\"5\");\n\t\tempresa5.setFechaIngreso(new Date());\n\t\tempresa5.setObservacion(\"sin obs\");\n\t\tempresa5.setRazonSocial(\"Juan Perez\");\n\t\tempresa5.getRubroEmpresas().add(tt.rubroEmpresaFuncionario);\n\t\tempresa5.setRuc(\"11111111-9\");\n\t\tempresa5.setMoneda(tt.guarani);\n\t\tempresa5.setMonedas(monedas3);\n\t\tempresa5.setPais(tt.paisPry);\n\t\tempresa5.setSigla(\"NDF\");\n\t\tempresa5.setTipoPersona(tt.personaFisica);\n\t\tgrabarDB(empresa5);\n\n\t\t// Chequeado ok\n\t\tEmpresa empresa6 = new Empresa();\n\t\tempresa6.setNombre(\"Sanchez, Sixto\");\n\t\tempresa6.setFechaIngreso(new Date());\n\t\tempresa6.setObservacion(\"sin obs\");\n\t\tempresa6.setRazonSocial(\"Sixto S\");\n\t\tempresa6.getRubroEmpresas().add(tt.rubroEmpresaFuncionario);\n\t\tempresa6.setRuc(\"22222222-9\");\n\t\tempresa6.setMonedas(monedas4);\n\t\tempresa6.setMoneda(tt.guarani);\n\t\tempresa6.setPais(tt.paisPry);\n\t\tempresa6.setSigla(\"NDF\");\n\t\tempresa6.setTipoPersona(tt.personaFisica);\n\t\tgrabarDB(empresa6);\n\n\t\tEmpresa empresa13 = new Empresa();\n\t\tempresa13.setNombre(\"Aguilar, Diana\");\n\t\tempresa13.setFechaIngreso(new Date());\n\t\tempresa13.setObservacion(\"sin obs\");\n\t\tempresa13.setRazonSocial(\"Diana A.\");\n\t\tempresa13.getRubroEmpresas().add(tt.rubroEmpresaFuncionario);\n\t\tempresa13.setRuc(\"33333333-9\");\n\t\tempresa13.setMoneda(tt.guarani);\n\t\tempresa13.setMonedas(monedas4);\n\t\tempresa13.setPais(tt.paisPry);\n\t\tempresa13.setSigla(\"NDF\");\n\t\tempresa13.setTipoPersona(tt.personaFisica);\n\t\tgrabarDB(empresa13);\n\n\t\tEmpresa empresa14 = new Empresa();\n\t\tempresa14.setNombre(\"Alvarenga, Celia\");\n\t\tempresa14.setFechaIngreso(new Date());\n\t\tempresa14.setObservacion(\"sin obs\");\n\t\tempresa14.setRazonSocial(\"Celia A.\");\n\t\tempresa14.getRubroEmpresas().add(tt.rubroEmpresaFuncionario);\n\t\tempresa14.setRuc(\"44444444-9\");\n\t\tempresa14.setMoneda(tt.guarani);\n\t\tempresa14.setMonedas(monedas4);\n\t\tempresa14.setPais(tt.paisPry);\n\t\tempresa14.setSigla(\"NDF\");\n\t\tempresa14.setTipoPersona(tt.personaFisica);\n\t\tgrabarDB(empresa14);\n\n\t\tEmpresa empresa15 = new Empresa();\n\t\tempresa15.setNombre(\"Alviso, Rodrigo\");\n\t\tempresa15.setFechaIngreso(new Date());\n\t\tempresa15.setObservacion(\"sin obs\");\n\t\tempresa15.setRazonSocial(\"Rodrigo A.\");\n\t\tempresa15.getRubroEmpresas().add(tt.rubroEmpresaFuncionario);\n\t\tempresa15.setRuc(\"5555555-9\");\n\t\tempresa15.setMoneda(tt.guarani);\n\t\tempresa15.setMonedas(monedas4);\n\t\tempresa15.setPais(tt.paisPry);\n\t\tempresa15.setSigla(\"NDF\");\n\t\tempresa15.setTipoPersona(tt.personaFisica);\n\t\tgrabarDB(empresa15);\n\n\t\tEmpresa empresa16 = new Empresa();\n\t\tempresa16.setNombre(\"Paredes, Celia\");\n\t\tempresa16.setFechaIngreso(new Date());\n\t\tempresa16.setObservacion(\"sin obs\");\n\t\tempresa16.setRazonSocial(\"Celia Paredes\");\n\t\tempresa16.getRubroEmpresas().add(tt.rubroEmpresaFuncionario);\n\t\tempresa16.setRuc(\"6666666-9\");\n\t\tempresa16.setMoneda(tt.guarani);\n\t\tempresa16.setMonedas(monedas4);\n\t\tempresa16.setPais(tt.paisPry);\n\t\tempresa16.setSigla(\"NDF\");\n\t\tempresa16.setTipoPersona(tt.personaFisica);\n\t\tgrabarDB(empresa16);\n\n\t\t// Chequeado ok\n\t\tFuncionario funcionario1 = new Funcionario();\n\t\tfuncionario1.setEmpresa(empresa5);\n\t\tfuncionario1.setFuncionarioCargo(tt.cargoAuxiliarAdministrativo);\n\t\tfuncionario1.setFuncionarioEstado(tt.funcionarioEstadoActivo);\n\t\t// funcionario1.setFuncionarioCargo(funcionarioCargo3);\n\t\t// funcionario1.setFuncionarioEstado(funcionarioEstado1);\n\t\tfuncionario1.setAccesos(accesosApp);\n\t\tgrabarDB(funcionario1);\n\n\t\t// Chequeado ok\n\t\tFuncionario funcionario2 = new Funcionario();\n\t\tfuncionario2.setEmpresa(empresa6);\n\t\tfuncionario2.setFuncionarioCargo(tt.cargoAuxiliarAdministrativo);\n\t\tfuncionario2.setFuncionarioEstado(tt.funcionarioEstadoActivo);\n\t\t// funcionario2.setFuncionarioCargo(funcionarioCargo2);\n\t\t// funcionario2.setFuncionarioEstado(funcionarioEstado1);\n\t\tfuncionario2.setAccesos(accesosApp2);\n\t\tgrabarDB(funcionario2);\n\n\t\tFuncionario funcionario3 = new Funcionario();\n\t\tfuncionario3.setEmpresa(empresa13);\n\t\tfuncionario3.setFuncionarioCargo(tt.cargoAuxiliarAdministrativo);\n\t\tfuncionario3.setFuncionarioEstado(tt.funcionarioEstadoActivo);\n\t\t// funcionario3.setFuncionarioCargo(funcionarioCargo5);\n\t\t// funcionario3.setFuncionarioEstado(funcionarioEstado1);\n\t\tfuncionario3.setAccesos(accesosApp2);\n\t\tgrabarDB(funcionario3);\n\n\t\tFuncionario funcionario4 = new Funcionario();\n\t\tfuncionario4.setEmpresa(empresa14);\n\t\tfuncionario4.setFuncionarioCargo(tt.cargoAuxiliarAdministrativo);\n\t\tfuncionario4.setFuncionarioEstado(tt.funcionarioEstadoActivo);\n\t\t// funcionario4.setFuncionarioCargo(funcionarioCargo5);\n\t\t// funcionario4.setFuncionarioEstado(funcionarioEstado1);\n\t\tfuncionario4.setAccesos(accesosApp2);\n\t\tgrabarDB(funcionario4);\n\n\t\tFuncionario funcionario5 = new Funcionario();\n\t\tfuncionario5.setEmpresa(empresa15);\n\t\tfuncionario5.setFuncionarioCargo(tt.cargoAuxiliarAdministrativo);\n\t\tfuncionario5.setFuncionarioEstado(tt.funcionarioEstadoActivo);\n\t\t// funcionario5.setFuncionarioCargo(funcionarioCargo5);\n\t\t// funcionario5.setFuncionarioEstado(funcionarioEstado1);\n\t\tfuncionario5.setAccesos(accesosApp2);\n\t\tgrabarDB(funcionario5);\n\n\t\tFuncionario funcionario6 = new Funcionario();\n\t\tfuncionario6.setEmpresa(empresa16);\n\t\tfuncionario6.setFuncionarioCargo(tt.cargoAuxiliarAdministrativo);\n\t\tfuncionario6.setFuncionarioEstado(tt.funcionarioEstadoActivo);\n\t\t// funcionario6.setFuncionarioCargo(funcionarioCargo5);\n\t\t// funcionario6.setFuncionarioEstado(funcionarioEstado1);\n\t\tfuncionario6.setAccesos(accesosApp2);\n\t\tgrabarDB(funcionario6);\n\n\t\t// Chequeado ok\n\t\tEmpresa empresa1 = new Empresa();\n\t\tempresa1.setNombre(\"Valvoline\");\n\t\tempresa1.setCodigoEmpresa(\"1\");\n\t\tempresa1.setFechaIngreso(new Date());\n\t\tempresa1.setObservacion(\"sin obs\");\n\t\tempresa1.setRazonSocial(\"VALVOLINE S.A.\");\n\t\tempresa1.getRubroEmpresas().add(tt.rubroEmpresaDistribuidorLubricantes);\n\t\tempresa1.setRuc(Configuracion.RUC_EMPRESA_EXTERIOR);\n\t\tempresa1.setMoneda(tt.dolar);\n\t\tempresa1.setMonedas(monedas1);\n\t\tempresa1.getSucursales().add(suc1);\n\t\tempresa1.getSucursales().add(suc2);\n\t\tempresa1.getSucursales().add(suc3);\n\t\tempresa1.setPais(tt.paisArg);\n\t\tempresa1.setSigla(\"VAL\");\n\t\tempresa1.setTipoPersona(tt.personaJuridica);\n\t\t\n\t\tCtaCteEmpresa cce1 = new CtaCteEmpresa();\n\t\tcce1.setLineaCredito(l1);\n\t\tcce1.setEstadoComoCliente(tt.ctaCteEmpresaEstado1);\n\t\tcce1.setEstadoComoProveedor(tt.ctaCteEmpresaEstado1);\n\t\tcce1.setFechaAperturaCuentaCliente(new Date());\n\t\tcce1.setFechaAperturaCuentaProveedor(new Date());\n\t\tgrabarDB(cce1);\n\t\tempresa1.setCtaCteEmpresa(cce1);\n\t\tgrabarDB(empresa1);\n\n\t\t// Chequeado ok\n\t\tEmpresa empresa2 = new Empresa();\n\t\tempresa2.setCodigoEmpresa(\"2\");\n\t\tempresa2.setNombre(\"KS PRODUCTOS\");\n\t\tempresa2.setFechaIngreso(new Date());\n\t\tempresa2.setObservacion(\"sin obs\");\n\t\tempresa2.setRazonSocial(\"KS PRODUCTOS\");\n\t\tempresa1.getRubroEmpresas().add(tt.rubroEmpresaDistribuidorBaterias);\n\t\tempresa2.setRuc(Configuracion.RUC_EMPRESA_EXTERIOR);\n\t\tempresa2.setMoneda(tt.dolar);\n\t\tempresa2.setMonedas(monedas2);\n\t\tempresa2.setPais(tt.paisBra);\n\t\tempresa2.setSigla(\"KS\");\n\t\tempresa2.setTipoPersona(tt.personaJuridica);\n\t\tgrabarDB(empresa2);\n\n\t\t// Chequeado ok\n\t\tProveedor prov1 = new Proveedor();\n\t\tprov1.setEmpresa(empresa1);\n\t\tprov1.setEstadoProveedor(tt.tipoProvEstado1);\n\t\tprov1.setTipoProveedor(tt.tipoProveedor1);\n\t\tprov1.setCuentaContable(ct6);\n\t\tgrabarDB(prov1);\t\t\n\n\t\t// Chequeado ok\n\t\tProveedor prov2 = new Proveedor();\n\t\tprov2.setEmpresa(empresa2);\n\t\tprov2.setEstadoProveedor(tt.tipoProvEstado1);\n\t\tprov2.setTipoProveedor(tt.tipoProveedor1);\n\t\tprov2.setCuentaContable(ct10);\n\t\tgrabarDB(prov2);\n\n\t\t// Chequeado ok\n\t\tEmpresa empresa7 = new Empresa();\n\t\tempresa7.setCodigoEmpresa(\"7\");\n\t\tempresa7.setNombre(\"Continental do Brasil\");\n\t\tempresa7.setFechaIngreso(new Date());\n\t\tempresa7.setObservacion(\"sin obs\");\n\t\tempresa7.setRazonSocial(\"CONTINENTAL BRASIL\");\n\t\tempresa7.getRubroEmpresas().add(tt.rubroEmpresaDistribuidorRepuestos);\n\t\tempresa7.setRuc(Configuracion.RUC_EMPRESA_EXTERIOR);\n\t\tempresa7.setMoneda(tt.dolar);\n\t\tempresa7.setMonedas(monedas1);\n\t\tempresa7.setPais(tt.paisBra);\n\t\tempresa7.setSigla(\"CBR\");\n\t\tempresa7.setTipoPersona(tt.personaJuridica);\n\t\t\n\t\tCtaCteEmpresa cce3 = new CtaCteEmpresa();\n\t\tcce3.setLineaCredito(l2);\n\t\tcce3.setEstadoComoCliente(tt.ctaCteEmpresaEstado3);\n\t\tcce3.setFechaAperturaCuentaCliente(new Date());\n\t\tcce3.setFechaAperturaCuentaProveedor(new Date());\n\t\tgrabarDB(cce3);\n\t\t\n\t\tempresa7.setCtaCteEmpresa(cce3);\n\t\t\n\t\tgrabarDB(empresa7);\n\n\t\tTimbrado t = new Timbrado();\n\t\tt.setNumero(\"100102\");\n\t\tt.setVencimiento(new Date());\n\t\tgrabarDB(t);\n\n\t\t// Chequeado ok\n\t\tProveedor prov3 = new Proveedor();\n\t\tprov3.setEmpresa(empresa7);\n\t\tprov3.setEstadoProveedor(tt.tipoProvEstado1);\n\t\tprov3.setTipoProveedor(tt.tipoProveedor1);\n\t\tprov3.setCuentaContable(ct10);\n\t\tprov3.getTimbrados().add(t);\n\t\tgrabarDB(prov3);\n\n\t\t// Chequeado ok\n\t\tEmpresa empresa8 = new Empresa();\n\t\tempresa8.setCodigoEmpresa(\"8\");\n\t\tempresa8.setNombre(\"Giti\");\n\t\tempresa8.setFechaIngreso(new Date());\n\t\tempresa8.setObservacion(\"sin obs\");\n\t\tempresa8.setRazonSocial(\"GITI TIRE S.A.\");\n\t\tempresa8.getRubroEmpresas().add(tt.rubroEmpresaDistribuidorCubiertas);\n\t\tempresa8.setRuc(\"99999999-8\");\n\t\tempresa8.setMoneda(tt.guarani);\n\t\tempresa8.setMonedas(monedas1);\n\t\tempresa8.setPais(tt.paisUsa);\n\t\tempresa8.setSigla(\"GTI\");\n\t\tempresa8.setTipoPersona(tt.personaJuridica);\n\t\tgrabarDB(empresa8);\n\n\t\t// Chequeado ok\n\t\tProveedor prov4 = new Proveedor();\n\t\tprov4.setEmpresa(empresa8);\n\t\tprov4.setEstadoProveedor(tt.tipoProvEstado1);\n\t\tprov4.setTipoProveedor(tt.tipoProveedor1);\n\t\tprov4.setCuentaContable(ct5);\n\t\tgrabarDB(prov4);\n\n\t\t// Chequeado ok\n\t\tEmpresa empresa9 = new Empresa();\n\t\tempresa9.setCodigoEmpresa(\"9\");\n\t\tempresa9.setNombre(\"Trans Multicargas S.A.\");\n\t\tempresa9.setFechaIngreso(new Date());\n\t\tempresa9.setObservacion(\"sin obs\");\n\t\tempresa9.setRazonSocial(\"TRANS MULTICARGAS S.A.\");\n\t\tempresa9.getRubroEmpresas().add(tt.rubroEmpresaCasaRepuestos);\n\t\tempresa9.setRuc(\"12121212-8\");\n\t\tempresa9.setMoneda(tt.guarani);\n\t\tempresa9.setMonedas(monedas1);\n\t\tempresa9.setPais(tt.paisPry);\n\t\tempresa9.setSigla(\"TMC\");\n\t\tempresa9.setTipoPersona(tt.personaJuridica);\n\t\tgrabarDB(empresa9);\n\n\t\t// Chequeado ok\n\t\tProveedor prov5 = new Proveedor();\n\t\tprov5.setEmpresa(empresa9);\n\t\tprov5.setEstadoProveedor(tt.tipoProvEstado1);\n\t\tprov5.setTipoProveedor(tt.tipoProveedor1);\n\t\tprov5.setCuentaContable(ct9);\n\t\tgrabarDB(prov5);\n\n\t\t// Chequeado ok\n\t\tEmpresa empresa10 = new Empresa();\n\t\tempresa10.setCodigoEmpresa(\"10\");\n\t\tempresa10.setNombre(\"Navemar\");\n\t\tempresa10.setFechaIngreso(new Date());\n\t\tempresa10.setObservacion(\"sin obs\");\n\t\tempresa10.setRazonSocial(\"NAVEMAR S.A.\");\n\t\tempresa10.setRuc(\"23232323-8\");\n\t\tempresa10.setMoneda(tt.guarani);\n\t\tempresa10.setMonedas(monedas1);\n\t\tempresa10.setPais(tt.paisPry);\n\t\tempresa10.setSigla(\"NMR\");\n\t\tempresa10.setTipoPersona(tt.personaJuridica);\n\t\tgrabarDB(empresa10);\n\n\t\t// Chequeado ok\n\t\tProveedor prov6 = new Proveedor();\n\t\tprov6.setEmpresa(empresa10);\n\t\tprov6.setEstadoProveedor(tt.tipoProvEstado1);\n\t\tprov6.setTipoProveedor(tt.tipoProveedor1);\n\t\tprov6.setCuentaContable(ct5);\n\t\tgrabarDB(prov6);\n\n\t\t// Chequeado ok\n\t\tEmpresa empresa11 = new Empresa();\n\t\tempresa11.setCodigoEmpresa(\"11\");\n\t\tempresa11.setNombre(\"Jose Ma. Godoy\");\n\t\tempresa11.setFechaIngreso(new Date());\n\t\tempresa11.setObservacion(\"sin obs\");\n\t\tempresa11.setRazonSocial(\"JOSE MA. GODOY S.A.\");\n\t\tempresa11.getRubroEmpresas().add(tt.rubroEmpresaConsumidorFinal);\n\t\tempresa11.setRuc(\"34343434-5\");\n\t\tempresa11.setMoneda(tt.guarani);\n\t\tempresa11.setMonedas(monedas1);\n\t\tempresa11.setPais(tt.paisPry);\n\t\tempresa11.setSigla(\"JMG\");\n\t\tempresa11.setTipoPersona(tt.personaJuridica);\n\t\tgrabarDB(empresa11);\n\n\t\t// Chequeado ok\n\t\tProveedor prov7 = new Proveedor();\n\t\tprov7.setEmpresa(empresa11);\n\t\tprov7.setEstadoProveedor(tt.tipoProvEstado1);\n\t\tprov7.setTipoProveedor(tt.tipoProveedor1);\n\t\tprov7.setCuentaContable(ct4);\n\t\tgrabarDB(prov7);\n\n\t\t// Chequeado ok\n\t\tEmpresa empresa12 = new Empresa();\n\t\tempresa12.setNombre(\"Partner\");\n\t\tempresa12.setCodigoEmpresa(\"12\");\n\t\tempresa12.setFechaIngreso(new Date());\n\t\tempresa12.setObservacion(\"sin obs\");\n\t\tempresa12.setRazonSocial(\"PARTNER S.R.L\");\n\t\tempresa12.getRubroEmpresas().add(tt.rubroEmpresaCasaRepuestos);\n\t\tempresa12.setRuc(\"45454545-5\");\n\t\tempresa12.setMoneda(tt.guarani);\n\t\tempresa12.setMonedas(monedas1);\n\t\tempresa12.getSucursales().add(suc1);\n\t\tempresa12.setPais(tt.paisPry);\n\t\tempresa12.setSigla(\"PNR\");\n\t\tempresa12.setTipoPersona(tt.personaJuridica);\n\t\t\n\t\tCtaCteEmpresa cce2 = new CtaCteEmpresa();\n\t\tcce2.setLineaCredito(l2);\n\t\tcce2.setEstadoComoCliente(tt.ctaCteEmpresaEstado1);\n\t\tcce2.setFechaAperturaCuentaCliente(new Date());\n\t\tcce2.setFechaAperturaCuentaProveedor(new Date());\n\t\tgrabarDB(cce2);\n\t\t\n\t\tempresa12.setCtaCteEmpresa(cce2);\n\t\t\n\t\tgrabarDB(empresa12);\n\n\t\t// Chequeado ok\n\t\tProveedor prov8 = new Proveedor();\n\t\tprov8.setEmpresa(empresa12);\n\t\tprov8.setEstadoProveedor(tt.tipoProvEstado1);\n\t\tprov8.setTipoProveedor(tt.tipoProveedor1);\n\t\tprov8.setTimbrados(timbrados1);\n\t\tprov8.setCuentaContable(ct11);\n\t\tgrabarDB(prov8);\n\n\t\t// Chequeado ok\n\t\tEmpresa empresa3 = new Empresa();\n\t\tempresa3.setCodigoEmpresa(\"3\");\n\t\tempresa3.setNombre(\"Chacomer\");\n\t\tempresa3.setFechaIngreso(new Date());\n\t\tempresa3.setObservacion(\"sin obs\");\n\t\tempresa3.setRazonSocial(\"Chacomer S.A.\");\n\t\tempresa3.getRubroEmpresas().add(tt.rubroEmpresaDistribuidorCubiertas);\n\t\tempresa3.setRuc(\"56565656-9\");\n\t\tempresa3.setMoneda(tt.guarani);\n\t\tempresa3.setMonedas(monedas3);\n\t\tempresa3.setPais(tt.paisPry);\n\t\tempresa3.setSigla(\"NDF\");\n\t\tempresa3.setTipoPersona(tt.personaJuridica);\n\t\tgrabarDB(empresa3);\n\n\t\t// Chequeado ok\n\t\tEmpresa empresa4 = new Empresa();\n\t\tempresa4.setCodigoEmpresa(\"4\");\n\t\tempresa4.setNombre(\"Trincar\");\n\t\tempresa4.setFechaIngreso(new Date());\n\t\tempresa4.setObservacion(\"sin obs\");\n\t\tempresa4.setRazonSocial(\"Trinicar S.A.\");\n\t\tempresa4.getRubroEmpresas().add(tt.rubroEmpresaCasaRepuestos);\n\t\tempresa4.setRuc(\"67676767-9\");\n\t\tempresa4.setMoneda(tt.guarani);\n\t\tempresa4.setMonedas(monedas4);\n\t\tempresa4.getSucursales().add(suc4);\n\t\tempresa4.setPais(tt.paisPry);\n\t\tempresa4.setSigla(\"NDF\");\n\t\tempresa4.setTipoPersona(tt.personaJuridica);\n\t\tgrabarDB(empresa4);\n\n\t\tEmpresa empresa17 = new Empresa();\n\t\tempresa17.setCodigoEmpresa(\"\");\n\t\tempresa17.setNombre(\"Consumidor Final\");\n\t\tempresa17.setFechaIngreso(new Date());\n\t\tempresa17.setObservacion(\"\");\n\t\tempresa17.setRazonSocial(\"Consumidor Final\");\n\t\tempresa17.setRuc(Configuracion.RUC_EMPRESA_LOCAL);\n\t\tempresa17.setPais(tt.paisPry);\n\t\tempresa17.setSigla(\"NDF\");\n\t\tempresa17.setTipoPersona(tt.personaFisica);\n\t\tgrabarDB(empresa17);\n\n\t\tCliente cliente1 = new Cliente();\n\t\tcliente1.setEstadoCliente(rr.getTipoPorSigla_Index(\n\t\t\t\tConfiguracion.SIGLA_ESTADO_CLIENTE, 1));\n\t\tcliente1.setCategoriaCliente(rr.getTipoPorSigla_Index(\n\t\t\t\tConfiguracion.SIGLA_CATEGORIA_CLIENTE, 1));\n\t\tcliente1.setTipoCliente(tt.tipoCliente1);\n\t\t// cliente1.setEstadoCliente(rr.getEstadoClienteById(1));\n\t\t// cliente1.setCategoriaCliente(rr.getCategoriaClienteById(1));\n\t\t// cliente1.setTipoCliente(rr.getTipoClienteById(1));\n\t\tcliente1.setEmpresa(empresa1);\n\t\tcliente1.setCuentaContable(ct8);\n\t\tgrabarDB(cliente1);\n\n\t\tCliente cliente2 = new Cliente();\n\t\tcliente2.setEstadoCliente(rr.getTipoPorSigla_Index(\n\t\t\t\tConfiguracion.SIGLA_ESTADO_CLIENTE, 2));\n\t\tcliente2.setCategoriaCliente(rr.getTipoPorSigla_Index(\n\t\t\t\tConfiguracion.SIGLA_CATEGORIA_CLIENTE, 2));\n\t\tcliente2.setTipoCliente(tt.tipoCliente5);\n\t\t// cliente2.setEstadoCliente(rr.getEstadoClienteById(2));\n\t\t// cliente2.setCategoriaCliente(rr.getCategoriaClienteById(2));\n\t\t// cliente2.setTipoCliente(rr.getTipoClienteById(2));\n\t\tcliente2.setEmpresa(empresa4);\n\t\tcliente2.setCuentaContable(ct8);\n\t\tgrabarDB(cliente2);\n\n\t\tCliente cliente3 = new Cliente();\n\t\tcliente3.setCategoriaCliente(rr.getTipoPorSigla_Index(\n\t\t\t\tConfiguracion.SIGLA_CATEGORIA_CLIENTE, 1));\n\t\tcliente3.setCuentaContable(ct8);\n\t\tcliente3.setEmpresa(empresa17);\n\t\tcliente3.setEstadoCliente(rr.getTipoPorSigla_Index(\n\t\t\t\tConfiguracion.SIGLA_ESTADO_CLIENTE, 1));\n\t\tcliente3.setTipoCliente(tt.tipoCliente1);\n\t\tgrabarDB(cliente3);\n\n\t\t// Chequeado ok\n\t\tContacto cont1 = new Contacto();\n\t\tcont1.setNombre(\"Juan Perez\");\n\t\tcont1.setCargo(\"Comprador\");\n\t\tcont1.setCedula(\"3500400\");\n\t\tcont1.setContactoSexo(tt.sexo1);\n\t\tcont1.setCorreo(\"[email protected]\");\n\t\tcont1.setEstadoCivil(rr.getEstadoCivilById(1));\n\t\tcont1.setFechaCumpleanhos(new Date());\n\t\tcont1.setProfesion(rr.getTipoPorSigla_Index(\n\t\t\t\tConfiguracion.SIGLA_PROFESIONES, 1));\n\t\t// cont1.setProfesion(rr.getProfesionById(1));\n\t\tcont1.setTelefono(\"510 500\");\n\n\t\t// Chequeado ok\n\t\tContacto cont2 = new Contacto();\n\t\tcont2.setNombre(\"Marcos Pereyra\");\n\t\tcont2.setCargo(\"Contador\");\n\t\tcont2.setCedula(\"3500600\");\n\t\tcont2.setContactoSexo(tt.sexo1);\n\t\tcont2.setCorreo(\"[email protected]\");\n\t\tcont2.setEstadoCivil(rr.getEstadoCivilById(1));\n\t\tcont2.setFechaCumpleanhos(new Date());\n\t\tcont2.setProfesion(rr.getTipoPorSigla_Index(\n\t\t\t\tConfiguracion.SIGLA_PROFESIONES, 1));\n\t\t// cont2.setProfesion(rr.getProfesionById(1));\n\t\tcont2.setTelefono(\"510 600\");\n\n\t\t// Chequeado ok\n\t\tContacto cont3 = new Contacto();\n\t\tcont3.setNombre(\"Pedro Ojeda\");\n\t\tcont3.setCargo(\"Comprador\");\n\t\tcont3.setCedula(\"3500800\");\n\t\tcont3.setContactoSexo(tt.sexo1);\n\t\tcont3.setCorreo(\"[email protected]\");\n\t\tcont3.setEstadoCivil(rr.getEstadoCivilById(1));\n\t\tcont3.setFechaCumpleanhos(new Date());\n\t\tcont3.setProfesion(rr.getTipoPorSigla_Index(\n\t\t\t\tConfiguracion.SIGLA_PROFESIONES, 1));\n\t\t// cont3.setProfesion(rr.getProfesionById(1));\n\t\tcont3.setTelefono(\"510 900\");\n\n\t\t// Chequeado ok\n\t\tContacto cont4 = new Contacto();\n\t\tcont4.setNombre(\"Carlos Altamirano\");\n\t\tcont4.setCargo(\"Contador\");\n\t\tcont4.setCedula(\"3100600\");\n\t\tcont4.setContactoSexo(tt.sexo1);\n\t\tcont4.setCorreo(\"[email protected]\");\n\t\tcont4.setEstadoCivil(rr.getEstadoCivilById(1));\n\t\tcont4.setFechaCumpleanhos(new Date());\n\t\tcont4.setProfesion(rr.getTipoPorSigla_Index(\n\t\t\t\tConfiguracion.SIGLA_PROFESIONES, 1));\n\t\t// cont4.setProfesion(rr.getProfesionById(1));\n\t\tcont4.setTelefono(\"511 600\");\n\n\t\t// Chequeado ok\n\t\tContacto cont5 = new Contacto();\n\t\tcont5.setNombre(\"Carlos Aquino\");\n\t\tcont5.setCargo(\"Contador\");\n\t\tcont5.setCedula(\"3100600\");\n\t\tcont5.setContactoSexo(tt.sexo1);\n\t\tcont5.setCorreo(\"[email protected]\");\n\t\tcont5.setEstadoCivil(rr.getEstadoCivilById(1));\n\t\tcont5.setFechaCumpleanhos(new Date());\n\t\tcont5.setProfesion(rr.getTipoPorSigla_Index(\n\t\t\t\tConfiguracion.SIGLA_PROFESIONES, 1));\n\t\t// cont5.setProfesion(rr.getProfesionById(1));\n\t\tcont5.setTelefono(\"511 600\");\n\n\t\t// Chequeado ok\n\t\tContacto cont6 = new Contacto();\n\t\tcont6.setNombre(\"Carlos Frutos\");\n\t\tcont6.setCargo(\"Contador\");\n\t\tcont6.setCedula(\"3100600\");\n\t\tcont6.setContactoSexo(tt.sexo1);\n\t\tcont6.setCorreo(\"[email protected]\");\n\t\tcont6.setEstadoCivil(rr.getEstadoCivilById(1));\n\t\tcont6.setFechaCumpleanhos(new Date());\n\t\tcont6.setProfesion(rr.getTipoPorSigla_Index(\n\t\t\t\tConfiguracion.SIGLA_PROFESIONES, 1));\n\t\t// cont6.setProfesion(rr.getProfesionById(1));\n\t\tcont6.setTelefono(\"511 600\");\n\n\t\t// Chequeado ok\n\t\tContacto cont7 = new Contacto();\n\t\tcont7.setNombre(\"Carlos Lopez\");\n\t\tcont7.setCargo(\"Contador\");\n\t\tcont7.setCedula(\"3100600\");\n\t\tcont7.setContactoSexo(tt.sexo1);\n\t\tcont7.setCorreo(\"[email protected]\");\n\t\tcont7.setEstadoCivil(rr.getEstadoCivilById(1));\n\t\tcont7.setFechaCumpleanhos(new Date());\n\t\tcont7.setProfesion(rr.getTipoPorSigla_Index(\n\t\t\t\tConfiguracion.SIGLA_PROFESIONES, 1));\n\t\t// cont7.setProfesion(rr.getProfesionById(1));\n\t\tcont7.setTelefono(\"511 600\");\n\n\t\tContacto cont8 = new Contacto();\n\t\tcont8.setNombre(\"Pedro Lopez\");\n\t\tcont8.setCargo(\"Comprador\");\n\t\tcont8.setCedula(\"3500400\");\n\t\tcont8.setContactoSexo(tt.sexo1);\n\t\tcont8.setCorreo(\"[email protected]\");\n\t\tcont8.setEstadoCivil(rr.getEstadoCivilById(1));\n\t\tcont8.setFechaCumpleanhos(new Date());\n\t\tcont8.setProfesion(rr.getTipoPorSigla_Index(\n\t\t\t\tConfiguracion.SIGLA_PROFESIONES, 1));\n\t\t// cont8.setProfesion(rr.getProfesionById(1));\n\t\tcont8.setTelefono(\"510 500\");\n\n\t\tempresa1.getContactos().add(cont1);\n\t\tempresa1.getContactos().add(cont2);\n\t\tempresa1.getContactos().add(cont3);\n\t\tempresa1.getContactos().add(cont4);\n\t\tempresa1.getContactos().add(cont5);\n\t\tempresa1.getContactos().add(cont6);\n\t\tempresa1.getContactos().add(cont7);\n\n\t\tcont1.setSucursal(suc1);\n\t\tcont2.setSucursal(suc2);\n\t\tcont3.setSucursal(suc3);\n\t\tcont4.setSucursal(suc3);\n\t\tcont5.setSucursal(suc3);\n\t\tcont6.setSucursal(suc3);\n\t\tcont7.setSucursal(suc3);\n\n\t\tgrabarDB(empresa1);\n\n\t\tempresa4.getContactos().add(cont8);\n\t\tcont8.setSucursal(suc4);\n\t\tgrabarDB(empresa4);\n\n\t\t// Chequeado ok\n\t\tContactoInterno contInterno1 = new ContactoInterno();\n\t\tcontInterno1.setFuncionario(funcionario5);\n\t\tcontInterno1.setTipoContactoInterno(rr.getTipoPorSigla_Index(\n\t\t\t\tConfiguracion.SIGLA_TIPO_CONTACTO_INTERNO, 1));\n\t\t// contInterno1.setTipoContactoInterno(tipoContInt1);\n\t\t// grabarDB(contInterno1);\n\n\t\t// Chequeado ok\n\t\tContactoInterno contInterno2 = new ContactoInterno();\n\t\tcontInterno2.setFuncionario(funcionario5);\n\t\tcontInterno1.setTipoContactoInterno(rr.getTipoPorSigla_Index(\n\t\t\t\tConfiguracion.SIGLA_TIPO_CONTACTO_INTERNO, 2));\n\t\t// contInterno2.setTipoContactoInterno(tipoContInt2);\n\t\t// grabarDB(contInterno2);\n\t\tcliente1.getContactosInternos().add(contInterno1);\n\t\tcliente1.getContactosInternos().add(contInterno2);\n\t\tgrabarDB(cliente1);\n\t\t\n\t\t\n\t\tEmpresa empresa18 = new Empresa();\n\t\tempresa18.setCodigoEmpresa(\"6069\");\n\t\tempresa18.setNombre(\"CINPAL CIA INDUSTRAL DE PECAS P/ AUTOMOVILES\");\n\t\tempresa18.setFechaIngreso(new Date());\n\t\tempresa18.setObservacion(\"\");\n\t\tempresa18.setRazonSocial(\"CINPAL CIA INDUSTRAL DE PECAS P/ AUTOMOVILES\");\n\t\tempresa18.setRuc(Configuracion.RUC_EMPRESA_EXTERIOR);\n\t\tempresa18.setPais(tt.paisBra);\n\t\tempresa18.setSigla(\"NDF\");\n\t\tempresa18.setTipoPersona(tt.personaJuridica);\n\t\tgrabarDB(empresa18);\n\n\t\tProveedor prov9 = new Proveedor();\n\t\tprov9.setEmpresa(empresa18);\n\t\tprov9.setEstadoProveedor(tt.tipoProvEstado1);\n\t\tprov9.setTipoProveedor(tt.tipoProveedor2);\n\t\tgrabarDB(prov9);\n\t\t\n\t\t\n\t\tEmpresa empresa19 = new Empresa();\n\t\tempresa19.setCodigoEmpresa(\"53554\");\n\t\tempresa19.setNombre(\"TRACTOPAR S.A.E\");\n\t\tempresa19.setFechaIngreso(new Date());\n\t\tempresa19.setObservacion(\"\");\n\t\tempresa19.setRazonSocial(\"TRACTOPAR S.A.E\");\n\t\tempresa19.setRuc(\"80013570-9\");\n\t\tempresa19.setPais(tt.paisPry);\n\t\tempresa19.setSigla(\"NDF\");\n\t\tempresa19.setTipoPersona(tt.personaJuridica);\n\t\tgrabarDB(empresa19);\n\n\t\tProveedor prov10 = new Proveedor();\n\t\tprov10.setEmpresa(empresa19);\n\t\tprov10.setEstadoProveedor(tt.tipoProvEstado1);\n\t\tprov10.setTipoProveedor(tt.tipoProveedor2);\n\t\tgrabarDB(prov10);\n\t\t\n\t\t/****************************************************************************************************************/\n\n\t\t/************************************************ B.D. ARTICULO *************************************************/\n\n\t\t// Faltan los precios de los articulos\n\n\t\t// Chequeado ok\n\t\tArticuloPresentacion artPresentacion1 = new ArticuloPresentacion();\n\t\tartPresentacion1.setDescripcion(\"20 x 8\");\n\t\t// artPresentacion1.setObservacion(\"20 Unidades x Caja, 8 Cajas x Pallets\");\n\t\tartPresentacion1.setPeso(10);\n\t\tartPresentacion1.setUnidad(10);\n\t\tartPresentacion1.setUnidadMedida(tt.sinReferenciaTipo);\n\t\t// artPresentacion1.setUnidadMedida(artUnidad1);\n\t\tgrabarDB(artPresentacion1);\n\n\t\t// Chequeado ok\n\t\tArticuloPresentacion artPresentacion2 = new ArticuloPresentacion();\n\t\tartPresentacion2.setDescripcion(\"15 x 8\");\n\t\t// artPresentacion2.setObservacion(\"15 Unidades x Caja, 8 Cajas x Pallets\");\n\t\tartPresentacion2.setPeso(20);\n\t\tartPresentacion2.setUnidad(20);\n\t\tartPresentacion2.setUnidadMedida(tt.sinReferenciaTipo);\n\t\t// artPresentacion2.setUnidadMedida(artUnidad2);\n\t\tgrabarDB(artPresentacion2);\n\n\t\tSet<ArticuloMarcaAplicacion> artMarcAplicaciones1 = new HashSet<ArticuloMarcaAplicacion>();\n\n\t\t// Chequeado ok\n\t\tArticuloMarcaAplicacion artMarcaAplicacion1 = new ArticuloMarcaAplicacion();\n\t\tartMarcaAplicacion1.setDescripcion(\"Mercedez Benz Popu\");\n\t\tartMarcaAplicacion1.setSigla(\"MB-Popu\");\n\t\tgrabarDB(artMarcaAplicacion1);\n\t\tartMarcAplicaciones1.add(artMarcaAplicacion1);\n\n\t\t// Chequeado ok\n\t\tArticuloMarcaAplicacion artMarcaAplicacion2 = new ArticuloMarcaAplicacion();\n\t\tartMarcaAplicacion2.setDescripcion(\"Scania-Popu\");\n\t\tartMarcaAplicacion2.setSigla(\"SC-Popu\");\n\t\tgrabarDB(artMarcaAplicacion2);\n\t\tartMarcAplicaciones1.add(artMarcaAplicacion2);\n\n\t\tSet<ArticuloModeloAplicacion> artModAplicaciones1 = new HashSet<ArticuloModeloAplicacion>();\n\t\tSet<ArticuloModeloAplicacion> artModAplicaciones2 = new HashSet<ArticuloModeloAplicacion>();\n\t\tSet<ArticuloModeloAplicacion> artModAplicaciones3 = new HashSet<ArticuloModeloAplicacion>();\n\t\tSet<ArticuloModeloAplicacion> artModAplicaciones4 = new HashSet<ArticuloModeloAplicacion>();\n\n\t\t// Chequeado ok\n\t\tArticuloModeloAplicacion artModeloAplicacion1 = new ArticuloModeloAplicacion();\n\t\tartModeloAplicacion1.setDescripcion(\"1113-Popu\");\n\t\tartModeloAplicacion1.setArticuloMarcaAplicacion(artMarcaAplicacion1);\n\t\tgrabarDB(artModeloAplicacion1);\n\t\tartModAplicaciones1.add(artModeloAplicacion1);\n\n\t\t// Chequeado ok\n\t\tArticuloModeloAplicacion artModeloAplicacion2 = new ArticuloModeloAplicacion();\n\t\tartModeloAplicacion2.setDescripcion(\"124-Popu\");\n\t\tartModeloAplicacion2.setArticuloMarcaAplicacion(artMarcaAplicacion2);\n\t\tgrabarDB(artModeloAplicacion2);\n\t\tartModAplicaciones1.add(artModeloAplicacion2);\n\n\t\tartModAplicaciones2.add(rr.getArticuloModeloAplicacionById(1));\n\t\tartModAplicaciones2.add(rr.getArticuloModeloAplicacionById(2));\n\n\t\tartModAplicaciones3.add(rr.getArticuloModeloAplicacionById(1));\n\t\tartModAplicaciones3.add(rr.getArticuloModeloAplicacionById(2));\n\n\t\tartModAplicaciones4.add(rr.getArticuloModeloAplicacionById(1));\n\t\tartModAplicaciones4.add(rr.getArticuloModeloAplicacionById(2));\n\n\t\t// Chequeado ok\n\t\tArticulo art1_Valvoline = new Articulo();\n\t\tart1_Valvoline.setDescripcion(\"KIT MOTOR SC 124 360 DSC12 NO ARTICULADO\");\n\t\tart1_Valvoline.setCodigoInterno(\"KS 99.374.962\");\n\t\tart1_Valvoline.setCodigoOriginal(\"KS 99.374.962\");\n\t\tart1_Valvoline.setCodigoBarra(\"KS 99.374.962\");\n\t\tart1_Valvoline.setObservacion(\"Sin Observaciones\");\n\t\tart1_Valvoline.setPeso(1.5);\n\t\tart1_Valvoline.setVolumen(11.5);\n\t\tart1_Valvoline.setArticuloUnidadMedida(tt.sinReferenciaTipo);\n\t\t// art1_Valvoline.setArticuloUnidadMedida(artUnidad3);\n\t // art1_Valvoline.setArticuloModeloAplicaciones(artModAplicaciones1);\n\n\t\tart1_Valvoline.setArticuloMarca(tt.sinReferenciaTipo);\n\t\tart1_Valvoline.setArticuloParte(tt.sinReferenciaTipo);\n\t\tart1_Valvoline.setArticuloLinea(tt.sinReferenciaTipo);\n\t\tart1_Valvoline.setArticuloFamilia(tt.sinReferenciaTipo);\n\t\tart1_Valvoline.setArticuloEstado(tt.estadoArticulo1);\n\n\t\t// art1_Valvoline.setArticuloMarca(artMarca1);\n\t\t// art1_Valvoline.setArticuloParte(artParte1);\n\t\t// art1_Valvoline.setArticuloLinea(artLinea1);\n\t\t// art1_Valvoline.setArticuloFamilia(artFamilia1);\n\t\t// art1_Valvoline.setArticuloEstado(artEstado1);\n\t\tart1_Valvoline.setArticuloPresentacion(artPresentacion1);\n\n\t\tSet<ProveedorArticulo> prart = new HashSet<ProveedorArticulo>();\n\t\tProveedorArticulo pa = new ProveedorArticulo();\n\t\tpa.setProveedor(prov2);\n\t\tpa.setCodigoFabrica(\"KS 99.374.962\");\n\t\tpa.setDescripcionArticuloProveedor(\"KIT MOTOR SC 124 360 DSC12 NO ARTICULADO\");\n\n\t\tprart.add(pa);\n\t\tart1_Valvoline.setProveedorArticulos(prart);\n\n\t\t// System.out.println(\"artUnidad3.getId():\" + artUnidad3.getId());\n\t\tgrabarDB(art1_Valvoline);\n\n\t\t// Chequeado ok\n\t\tArticulo art2_Valvoline = new Articulo();\n\t\tart2_Valvoline.setDescripcion(\"ARO MOTOR 352 STD SEMI CROMADO\");\n\t\tart2_Valvoline.setCodigoInterno(\"KS 50.011.919\");\n\t\tart2_Valvoline.setCodigoOriginal(\"KS 50.011.919\");\n\t\tart2_Valvoline.setCodigoBarra(\"KS 50.011.919\");\n\t\tart2_Valvoline.setObservacion(\"Sin Observaciones\");\n\t\tart2_Valvoline.setArticuloUnidadMedida(tt.sinReferenciaTipo);\n\t\t// art2_Valvoline.setArticuloUnidadMedida(artUnidad3);\n\t\t// art2_Valvoline.setArticuloModeloAplicaciones(artModAplicaciones1);\n\n\t\tart2_Valvoline.setArticuloUnidadMedida(tt.sinReferenciaTipo);\n\t\t// art4_reparo.setArticuloUnidadMedida(artUnidad3);\n\t\t// art2_Valvoline.setArticuloModeloAplicaciones(artModAplicaciones1);\n\t\tart2_Valvoline.setArticuloMarca(tt.sinReferenciaTipo);\n\t\tart2_Valvoline.setArticuloParte(tt.sinReferenciaTipo);\n\t\tart2_Valvoline.setArticuloLinea(tt.sinReferenciaTipo);\n\t\tart2_Valvoline.setArticuloFamilia(tt.sinReferenciaTipo);\n\t\tart2_Valvoline.setArticuloEstado(tt.estadoArticulo1);\n\t\tart2_Valvoline.setArticuloPresentacion(artPresentacion1);\n\t\tart2_Valvoline.setPeso(1.2);\n\t\tart2_Valvoline.setVolumen(3.5);\n\n\t\tSet<ProveedorArticulo> prart2 = new HashSet<ProveedorArticulo>();\n\t\tProveedorArticulo pa2 = new ProveedorArticulo();\n\t\t// pa2.setArticulo(art2_Valvoline);\n\t\tpa2.setProveedor(prov2);\n\t\tpa2.setCodigoFabrica(\"KS 50.011.919\");\n\t\tpa2.setDescripcionArticuloProveedor(\"ARO MOTOR 352 STD SEMI CROMADO\");\n\t\t// ver grabarDB(pa2);\n\t\tprart2.add(pa2);\n\t\tart2_Valvoline.setProveedorArticulos(prart2);\n\n\t\tgrabarDB(art2_Valvoline);\n\n\t\t// Chequeado ok\n\t\tArticulo art3_Valvoline = new Articulo();\n\t\tart3_Valvoline.setDescripcion(\"CAMISA MOTOR STD 352/366\");\n\t\tart3_Valvoline.setCodigoInterno(\"KS 89.177.190\");\n\t\tart3_Valvoline.setCodigoOriginal(\"KS 89.177.190\");\n\t\tart3_Valvoline.setCodigoBarra(\"KS 89.177.190\");\n\t\tart3_Valvoline.setObservacion(\"Sin Observaciones\");\n\t\tart3_Valvoline.setPeso(1.1);\n\t\tart3_Valvoline.setVolumen(4.5);\n\t\tart3_Valvoline.setArticuloUnidadMedida(tt.sinReferenciaTipo);\n\t\t// art3_Valvoline.setArticuloUnidadMedida(artUnidad3);\n\t\tart3_Valvoline.setArticuloMarca(tt.sinReferenciaTipo);\n\t\tart3_Valvoline.setArticuloParte(tt.sinReferenciaTipo);\n\t\tart3_Valvoline.setArticuloLinea(tt.sinReferenciaTipo);\n\t\tart3_Valvoline.setArticuloFamilia(tt.sinReferenciaTipo);\n\t\tart3_Valvoline.setArticuloEstado(tt.estadoArticulo1);\n\n\t\t// art3_Valvoline.setArticuloMarca(rr.getArticuloMarcaById(1));\n\t\t// art3_Valvoline.setArticuloParte(rr.getArticuloParteById(1));\n\t\t// art3_Valvoline.setArticuloLinea(rr.getArticuloLineaById(1));\n\t\t// art3_Valvoline.setArticuloFamilia(rr.getArticuloFamiliaById(2));\n\t\t// art3_Valvoline.setArticuloEstado(rr.getArticuloEstadoById(1));\n\t\tart3_Valvoline.setArticuloPresentacion(rr\n\t\t\t\t.getArticuloPresentacionById(1));\n\n\t\tSet<ProveedorArticulo> prart3 = new HashSet<ProveedorArticulo>();\n\t\tProveedorArticulo pa3 = new ProveedorArticulo();\n\t\t// pa3.setArticulo(art3_Valvoline);\n\t\tpa3.setProveedor(prov2);\n\t\tpa3.setCodigoFabrica(\"KS 89.177.190\");\n\t\tpa3.setDescripcionArticuloProveedor(\"CAMISA MOTOR STD 352/366\");\n\t\t// ver grabarDB(pa3);\n\t\tprart3.add(pa3);\n\t\tart3_Valvoline.setProveedorArticulos(prart3);\n\n\t\tgrabarDB(art3_Valvoline);\n\n\t\t// Chequeado ok\n\t\tArticulo art4_Valvoline = new Articulo();\n\t\tart4_Valvoline.setDescripcion(\"CAMISA MOTOR STD SC P94\");\n\t\tart4_Valvoline.setCodigoInterno(\"KS 89.844.810\");\n\t\tart4_Valvoline.setCodigoOriginal(\"KS 89.844.810\");\n\t\tart4_Valvoline.setCodigoBarra(\"KS 89.844.810\");\n\t\tart4_Valvoline.setObservacion(\"Sin Observaciones\");\n\t\tart4_Valvoline.setPeso(1.4);\n\t\tart4_Valvoline.setVolumen(7.7);\n\t\tart4_Valvoline.setArticuloUnidadMedida(tt.sinReferenciaTipo);\n\t\t// art4_Valvoline.setArticuloUnidadMedida(artUnidad3);\n\t\tart4_Valvoline.setArticuloMarca(tt.sinReferenciaTipo);\n\t\tart4_Valvoline.setArticuloParte(tt.sinReferenciaTipo);\n\t\tart4_Valvoline.setArticuloLinea(tt.sinReferenciaTipo);\n\t\tart4_Valvoline.setArticuloFamilia(tt.sinReferenciaTipo);\n\t\tart4_Valvoline.setArticuloEstado(tt.estadoArticulo1);\n\n\t\t// art4_Valvoline.setArticuloEstado(rr.getArticuloEstadoById(1));\n\t\t// art4_Valvoline.setArticuloFamilia(rr.getArticuloFamiliaById(1));\n\t\t// art4_Valvoline.setArticuloLinea(rr.getArticuloLineaById(1));\n\t\t// art4_Valvoline.setArticuloMarca(rr.getArticuloMarcaById(1));\n\t\t// art4_Valvoline.setArticuloParte(rr.getArticuloParteById(1));\n\t\tart4_Valvoline.setArticuloPresentacion(rr\n\t\t\t\t.getArticuloPresentacionById(1));\n\n\t\tSet<ProveedorArticulo> prart4 = new HashSet<ProveedorArticulo>();\n\t\tProveedorArticulo pa4 = new ProveedorArticulo();\n\t\t// pa4.setArticulo(art4_Valvoline);\n\t\tpa4.setProveedor(prov2);\n\t\tpa4.setCodigoFabrica(\"KS 89.844.810\");\n\t\tpa4.setDescripcionArticuloProveedor(\"CAMISA MOTOR STD SC P94\");\n\t\t// ver grabarDB(pa4);\n\t\tprart4.add(pa4);\n\t\tart4_Valvoline.setProveedorArticulos(prart4);\n\n\t\tgrabarDB(art4_Valvoline);\n\n\t\t// Chequeado ok\n\t\tArticulo art5_Valvoline = new Articulo();\n\t\tart5_Valvoline.setDescripcion(\"KIT MOTOR VW 1600 FUSCA/KOMBI\");\n\t\tart5_Valvoline.setCodigoInterno(\"KS 91.511.960\");\n\t\tart5_Valvoline.setCodigoOriginal(\"KS 91.511.960\");\n\t\tart5_Valvoline.setCodigoBarra(\"KS 91.511.960\");\n\t\tart5_Valvoline.setObservacion(\"Sin Observaciones\");\n\t\t\n\t\tart5_Valvoline.setPeso(10.5);\n\t\tart5_Valvoline.setVolumen(5.6);\n\t\tart5_Valvoline.setArticuloUnidadMedida(tt.sinReferenciaTipo);\n\t\t// art5_Valvoline.setArticuloUnidadMedida(artUnidad3);\n\t\tart5_Valvoline.setArticuloMarca(tt.sinReferenciaTipo);\n\t\tart5_Valvoline.setArticuloParte(tt.sinReferenciaTipo);\n\t\tart5_Valvoline.setArticuloLinea(tt.sinReferenciaTipo);\n\t\tart5_Valvoline.setArticuloFamilia(tt.sinReferenciaTipo);\n\t\tart5_Valvoline.setArticuloEstado(tt.estadoArticulo1);\n\n\t\t// art5_Valvoline.setArticuloEstado(rr.getArticuloEstadoById(1));\n\t\t// art5_Valvoline.setArticuloFamilia(rr.getArticuloFamiliaById(1));\n\t\t// art5_Valvoline.setArticuloLinea(rr.getArticuloLineaById(1));\n\t\t// art5_Valvoline.setArticuloMarca(rr.getArticuloMarcaById(1));\n\t\t// art5_Valvoline.setArticuloParte(rr.getArticuloParteById(1));\n\t\tart5_Valvoline.setArticuloPresentacion(rr\n\t\t\t\t.getArticuloPresentacionById(1));\n\n\t\tSet<ProveedorArticulo> prart5 = new HashSet<ProveedorArticulo>();\n\t\tProveedorArticulo pa5 = new ProveedorArticulo();\n\t\t// pa5.setArticulo(art5_Valvoline);\n\t\tpa5.setProveedor(prov2);\n\t\tpa5.setCodigoFabrica(\"KS 91.511.960\");\n\t\tpa5.setDescripcionArticuloProveedor(\"KIT MOTOR VW 1600 FUSCA/KOMBI\");\n\t\t// ver grabarDB(pa5);\n\t\tprart5.add(pa5);\n\t\tart5_Valvoline.setProveedorArticulos(prart5);\n\n\t\tgrabarDB(art5_Valvoline);\n\n\t\t// Chequeado ok\n\t\tArticulo art6_Valvoline = new Articulo();\n\t\tart6_Valvoline.setDescripcion(\"PISTON MOTOR C/ARO 352 TURBO STD 5R\");\n\t\tart6_Valvoline.setCodigoInterno(\"KS 90.276.604\");\n\t\tart6_Valvoline.setCodigoOriginal(\"KS 90.276.604\");\n\t\tart6_Valvoline.setCodigoBarra(\"KS 90.276.604\");\n\t\tart6_Valvoline.setObservacion(\"Sin Observaciones\");\n\t\tart6_Valvoline.setPeso(3.5);\n\t\tart6_Valvoline.setVolumen(12.3);\n\t\tart6_Valvoline.setArticuloUnidadMedida(tt.sinReferenciaTipo);\n\t\t// art6_Valvoline.setArticuloUnidadMedida(artUnidad3);\n\t\tart6_Valvoline.setArticuloMarca(tt.sinReferenciaTipo);\n\t\tart6_Valvoline.setArticuloParte(tt.sinReferenciaTipo);\n\t\tart6_Valvoline.setArticuloLinea(tt.sinReferenciaTipo);\n\t\tart6_Valvoline.setArticuloFamilia(tt.sinReferenciaTipo);\n\t\tart6_Valvoline.setArticuloEstado(tt.estadoArticulo1);\n\n\t\t// art6_Valvoline.setArticuloEstado(rr.getArticuloEstadoById(1));\n\t\t// art6_Valvoline.setArticuloFamilia(rr.getArticuloFamiliaById(1));\n\t\t// art6_Valvoline.setArticuloLinea(rr.getArticuloLineaById(1));\n\t\t// art6_Valvoline.setArticuloMarca(rr.getArticuloMarcaById(1));\n\t\t// art6_Valvoline.setArticuloParte(rr.getArticuloParteById(1));\n\t\tart6_Valvoline.setArticuloPresentacion(rr\n\t\t\t\t.getArticuloPresentacionById(1));\n\t\t\n\n\t\tSet<ProveedorArticulo> prart6 = new HashSet<ProveedorArticulo>();\n\t\tProveedorArticulo pa6 = new ProveedorArticulo();\n\t\t// pa6.setArticulo(art6_Valvoline);\n\t\tpa6.setProveedor(prov2);\n\t\tpa6.setCodigoFabrica(\"KS 90.276.604\");\n\t\tpa6.setDescripcionArticuloProveedor(\"PISTON MOTOR C/ARO 352 TURBO STD 5R\");\n\t\t// ver grabarDB(pa6);\n\t\tprart6.add(pa6);\n\t\tart6_Valvoline.setProveedorArticulos(prart6);\n\n\t\tgrabarDB(art6_Valvoline);\n\n\t\t// Chequeado ok\n\t\tArticulo art7_Valvoline = new Articulo();\n\t\tart7_Valvoline.setDescripcion(\"PISTON MOTOR STD ECOL.M/N SIN PESTAÑA\");\n\t\tart7_Valvoline.setCodigoInterno(\"KS 92.525.800\");\n\t\tart7_Valvoline.setCodigoOriginal(\"KS 92.525.800\");\n\t\tart7_Valvoline.setCodigoBarra(\"KS 92.525.800\");\n\t\tart7_Valvoline.setObservacion(\"Sin Observaciones\");\n\t\tart7_Valvoline.setPeso(11.5);\n\t\tart7_Valvoline.setVolumen(7.0);\n\t\tart7_Valvoline.setArticuloUnidadMedida(tt.sinReferenciaTipo);\n\t\t// art7_Valvoline.setArticuloUnidadMedida(artUnidad3);\n\t\tart7_Valvoline.setArticuloMarca(tt.sinReferenciaTipo);\n\t\tart7_Valvoline.setArticuloParte(tt.sinReferenciaTipo);\n\t\tart7_Valvoline.setArticuloLinea(tt.sinReferenciaTipo);\n\t\tart7_Valvoline.setArticuloFamilia(tt.sinReferenciaTipo);\n\t\tart7_Valvoline.setArticuloEstado(tt.estadoArticulo1);\n\n\t\t// art7_Valvoline.setArticuloEstado(rr.getArticuloEstadoById(1));\n\t\t// art7_Valvoline.setArticuloFamilia(rr.getArticuloFamiliaById(1));\n\t\t// art7_Valvoline.setArticuloLinea(rr.getArticuloLineaById(1));\n\t\t// art7_Valvoline.setArticuloMarca(rr.getArticuloMarcaById(1));\n\t\t// art7_Valvoline.setArticuloParte(rr.getArticuloParteById(1));\n\t\tart7_Valvoline.setArticuloPresentacion(rr\n\t\t\t\t.getArticuloPresentacionById(1));\n\t\n\n\t\tSet<ProveedorArticulo> prart7 = new HashSet<ProveedorArticulo>();\n\t\tProveedorArticulo pa7 = new ProveedorArticulo();\n\t\t// pa7.setArticulo(art7_Valvoline);\n\t\tpa7.setProveedor(prov2);\n\t\tpa7.setCodigoFabrica(\"KS 92.525.800\");\n\t\tpa7.setDescripcionArticuloProveedor(\"PISTON MOTOR STD ECOL.M/N SIN PESTAÑA\");\n\t\t// ver grabarDB(pa7);\n\t\tprart7.add(pa7);\n\t\tart7_Valvoline.setProveedorArticulos(prart7);\n\n\t\tgrabarDB(art7_Valvoline);\n\n\t\t// Chequeado ok\n\t\tArticulo articulo8 = new Articulo();\n\t\tarticulo8.setDescripcion(\"KIT MOTOR SC124 SERIE 400 ARTICULADO KS\");\n\t\tarticulo8.setCodigoInterno(\"KS 40.368.960\");\n\t\tarticulo8.setCodigoOriginal(\"KS 40.368.960\");\n\t\tarticulo8.setCodigoBarra(\"KS 40.368.960\");\n\t\tarticulo8.setObservacion(\"Sin Observaciones\");\n\t\tarticulo8.setPeso(2.1);\n\t\tarticulo8.setVolumen(9.2);\n\t\tarticulo8.setArticuloUnidadMedida(tt.sinReferenciaTipo);\n\t\t// articulo8.setArticuloUnidadMedida(artUnidad1);\n\t\tarticulo8.setArticuloMarca(tt.sinReferenciaTipo);\n\t\tarticulo8.setArticuloParte(tt.sinReferenciaTipo);\n\t\tarticulo8.setArticuloLinea(tt.sinReferenciaTipo);\n\t\tarticulo8.setArticuloFamilia(tt.sinReferenciaTipo);\n\t\tarticulo8.setArticuloEstado(tt.estadoArticulo1);\n\n\t\t// articulo8.setArticuloEstado(rr.getArticuloEstadoById(1));\n\t\t// articulo8.setArticuloFamilia(rr.getArticuloFamiliaById(1));\n\t\t// articulo8.setArticuloLinea(rr.getArticuloLineaById(1));\n\t\t// articulo8.setArticuloMarca(rr.getArticuloMarcaById(1));\n\t\t// articulo8.setArticuloParte(rr.getArticuloParteById(1));\n\t\tarticulo8.setArticuloPresentacion(rr.getArticuloPresentacionById(1));\n\t\t\n\n\t\tSet<ProveedorArticulo> prart8 = new HashSet<ProveedorArticulo>();\n\t\tProveedorArticulo pa8 = new ProveedorArticulo();\n\t\tpa8.setProveedor(prov2);\n\t\tpa8.setCodigoFabrica(\"KS 40.368.960\");\n\t\tpa8.setDescripcionArticuloProveedor(\"KIT MOTOR SC124 SERIE 400 ARTICULADO KS\");\n\n\t\tprart8.add(pa8);\n\t\tarticulo8.setProveedorArticulos(prart8);\n\n\t\tgrabarDB(articulo8);\n\n\t\tArticulo art_ref1 = new Articulo();\n\t\tart_ref1.setDescripcion(\"@GASTOS\");\n\t\tart_ref1.setCodigoInterno(\"@GASTOS\");\n\t\tart_ref1.setCodigoOriginal(\"@GASTOS\");\n\t\tart_ref1.setCodigoBarra(\"@GASTOS\");\n\t\tart_ref1.setObservacion(\"\");\n\t\tart_ref1.setArticuloMarca(tt.sinReferenciaTipo);\n\t\tart_ref1.setArticuloParte(tt.sinReferenciaTipo);\n\t\tart_ref1.setArticuloLinea(tt.sinReferenciaTipo);\n\t\tart_ref1.setArticuloFamilia(tt.sinReferenciaTipo);\n\t\tart_ref1.setArticuloEstado(tt.estadoArticulo1);\n\n\t\t// articulo9.setArticuloEstado(rr.getArticuloEstadoById(1));\n\t\t// articulo9.setArticuloFamilia(rr.getArticuloFamiliaById(1));\n\t\t// articulo9.setArticuloLinea(rr.getArticuloLineaById(1));\n\t\t// articulo9.setArticuloMarca(rr.getArticuloMarcaById(1));\n\t\t// articulo9.setArticuloParte(rr.getArticuloParteById(1));\n\t\tart_ref1.setArticuloPresentacion(rr.getArticuloPresentacionById(1));\n\t\t\n\n\t\tSet<ProveedorArticulo> prart9 = new HashSet<ProveedorArticulo>();\n\t\tart_ref1.setProveedorArticulos(prart9);\n\n\t\tgrabarDB(art_ref1);\n\n\t\tArticulo art_ref2 = new Articulo();\n\t\tart_ref2.setDescripcion(\"@DESCUENTO\");\n\t\tart_ref2.setCodigoInterno(\"@DESC\");\n\t\tart_ref2.setCodigoOriginal(\"@DESC\");\n\t\tart_ref2.setCodigoBarra(\"@DESC\");\n\t\tart_ref2.setObservacion(\"\");\n\t\tart_ref2.setArticuloMarca(tt.sinReferenciaTipo);\n\t\tart_ref2.setArticuloParte(tt.sinReferenciaTipo);\n\t\tart_ref2.setArticuloLinea(tt.sinReferenciaTipo);\n\t\tart_ref2.setArticuloFamilia(tt.sinReferenciaTipo);\n\t\tart_ref2.setArticuloEstado(tt.estadoArticulo1);\n\n\t\tSet<ProveedorArticulo> prart10 = new HashSet<ProveedorArticulo>();\n\t\tart_ref2.setProveedorArticulos(prart10);\n\n\t\tgrabarDB(art_ref2);\n\n\t\tArticulo art_ref3 = new Articulo();\n\t\tart_ref3.setDescripcion(\"@PRORRATEO\");\n\t\tart_ref3.setCodigoInterno(\"@PRORRATEO\");\n\t\tart_ref3.setCodigoOriginal(\"@PRORRATEO\");\n\t\tart_ref3.setCodigoBarra(\"@PRORRATEO\");\n\t\tart_ref3.setObservacion(\"\");\n\t\tart_ref3.setArticuloMarca(tt.sinReferenciaTipo);\n\t\tart_ref3.setArticuloParte(tt.sinReferenciaTipo);\n\t\tart_ref3.setArticuloLinea(tt.sinReferenciaTipo);\n\t\tart_ref3.setArticuloFamilia(tt.sinReferenciaTipo);\n\t\tart_ref3.setArticuloEstado(tt.estadoArticulo1);\n\n\t\tSet<ProveedorArticulo> prart15 = new HashSet<ProveedorArticulo>();\n\t\tart_ref3.setProveedorArticulos(prart15);\n\n\t\tgrabarDB(art_ref3);\n\n\t\tArticulo art1_reparo = new Articulo();\n\t\tart1_reparo.setDescripcion(\"KIT MOTOR SC P93 SUECO ARO CONICO 115mm.\");\n\t\tart1_reparo.setCodigoInterno(\"KS 90.738.971\");\n\t\tart1_reparo.setCodigoOriginal(\"KS 90.738.971\");\n\t\tart1_reparo.setCodigoBarra(\"KS 90.738.971\");\n\t\tart1_reparo.setObservacion(\"Sin Observaciones\");\n\t\t\n\t\tart1_reparo.setPeso(1.5);\n\t\tart1_reparo.setVolumen(11.5);\n\t\tart1_reparo.setArticuloUnidadMedida(tt.sinReferenciaTipo);\n\t\t// art1_reparo.setArticuloUnidadMedida(artUnidad3);\n\t\t// art1_reparo.setArticuloModeloAplicaciones(artModAplicaciones1);\n\t\tart1_reparo.setArticuloMarca(tt.sinReferenciaTipo);\n\t\tart1_reparo.setArticuloParte(tt.sinReferenciaTipo);\n\t\tart1_reparo.setArticuloLinea(tt.sinReferenciaTipo);\n\t\tart1_reparo.setArticuloFamilia(tt.sinReferenciaTipo);\n\t\tart1_reparo.setArticuloEstado(tt.estadoArticulo1);\n\t\t// art1_reparo.setArticuloMarca(artMarca1);\n\t\t// art1_reparo.setArticuloParte(artParte1);\n\t\t// art1_reparo.setArticuloLinea(artLinea1);\n\t\t// art1_reparo.setArticuloFamilia(artFamilia1);\n\t\t// art1_reparo.setArticuloEstado(artEstado1);\n\t\tart1_reparo.setArticuloPresentacion(artPresentacion1);\n\n\t\tSet<ProveedorArticulo> prart11 = new HashSet<ProveedorArticulo>();\n\t\tProveedorArticulo pa11 = new ProveedorArticulo();\n\t\tpa11.setProveedor(prov2);\n\t\tpa11.setCodigoFabrica(\"KS 90.738.971\");\n\t\tpa11.setDescripcionArticuloProveedor(\"KIT MOTOR SC P93 SUECO ARO CONICO 115mm.\");\n\n\t\tprart11.add(pa11);\n\t\tart1_reparo.setProveedorArticulos(prart11);\n\t\tgrabarDB(art1_reparo);\n\n\t\tArticulo art2_reparo = new Articulo();\n\t\tart2_reparo.setDescripcion(\"ARO MOTOR SC 3 RANURAS CONICO\");\n\t\tart2_reparo.setCodigoInterno(\"KS 800.024.813.000\");\n\t\tart2_reparo.setCodigoOriginal(\"KS 800.024.813.000\");\n\t\tart2_reparo.setCodigoBarra(\"KS 800.024.813.000\");\n\t\tart2_reparo.setObservacion(\"Sin Observaciones\");\n\t\t\n\t\tart2_reparo.setPeso(1.5);\n\t\tart2_reparo.setVolumen(11.5);\n\t\tart2_reparo.setArticuloUnidadMedida(tt.sinReferenciaTipo);\n\t\t// art2_reparo.setArticuloUnidadMedida(artUnidad3);\n\t\t// art2_reparo.setArticuloModeloAplicaciones(artModAplicaciones1);\n\t\tart2_reparo.setArticuloMarca(tt.sinReferenciaTipo);\n\t\tart2_reparo.setArticuloParte(tt.sinReferenciaTipo);\n\t\tart2_reparo.setArticuloLinea(tt.sinReferenciaTipo);\n\t\tart2_reparo.setArticuloFamilia(tt.sinReferenciaTipo);\n\t\tart2_reparo.setArticuloEstado(tt.estadoArticulo1);\n\t\t// art2_reparo.setArticuloMarca(artMarca1);\n\t\t// art2_reparo.setArticuloParte(artParte1);\n\t\t// art2_reparo.setArticuloLinea(artLinea1);\n\t\t// art2_reparo.setArticuloFamilia(artFamilia1);\n\t\t// art2_reparo.setArticuloEstado(artEstado1);\n\t\tart2_reparo.setArticuloPresentacion(artPresentacion1);\n\n\t\tSet<ProveedorArticulo> prart12 = new HashSet<ProveedorArticulo>();\n\t\tProveedorArticulo pa12 = new ProveedorArticulo();\n\t\tpa12.setProveedor(prov2);\n\t\tpa12.setCodigoFabrica(\"KS 800.024.813.000\");\n\t\tpa12.setDescripcionArticuloProveedor(\"ARO MOTOR SC 3 RANURAS CONICO\");\n\n\t\tprart12.add(pa12);\n\t\tart2_reparo.setProveedorArticulos(prart12);\n\t\tgrabarDB(art2_reparo);\n\n\t\tArticulo art3_reparo = new Articulo();\n\t\tart3_reparo.setDescripcion(\"REPARO BOMBA EMBR.AUX PICUDO\");\n\t\tart3_reparo.setCodigoInterno(\"VAR RCCE 0015.3\");\n\t\tart3_reparo.setCodigoOriginal(\"100200300\");\n\t\tart3_reparo.setCodigoBarra(\"100200300\");\n\t\tart3_reparo.setObservacion(\"Sin Observaciones\");\n\t\t\n\t\tart3_reparo.setPeso(1.5);\n\t\tart3_reparo.setVolumen(11.5);\n\t\tart3_reparo.setArticuloUnidadMedida(tt.sinReferenciaTipo);\n\t\t// art3_reparo.setArticuloUnidadMedida(artUnidad3);\n\t\t// art3_reparo.setArticuloModeloAplicaciones(artModAplicaciones1);\n\t\tart3_reparo.setArticuloMarca(tt.sinReferenciaTipo);\n\t\tart3_reparo.setArticuloParte(tt.sinReferenciaTipo);\n\t\tart3_reparo.setArticuloLinea(tt.sinReferenciaTipo);\n\t\tart3_reparo.setArticuloFamilia(tt.sinReferenciaTipo);\n\t\tart3_reparo.setArticuloEstado(tt.estadoArticulo1);\n\t\t// art3_reparo.setArticuloMarca(artMarca1);\n\t\t// art3_reparo.setArticuloParte(artParte1);\n\t\t// art3_reparo.setArticuloLinea(artLinea1);\n\t\t// art3_reparo.setArticuloFamilia(artFamilia1);\n\t\t// art3_reparo.setArticuloEstado(artEstado1);\n\t\tart3_reparo.setArticuloPresentacion(artPresentacion1);\n\n\t\tSet<ProveedorArticulo> prart13 = new HashSet<ProveedorArticulo>();\n\t\tProveedorArticulo pa13 = new ProveedorArticulo();\n\t\tpa13.setProveedor(prov3);\n\t\tpa13.setCodigoFabrica(\"100200300\");\n\t\tpa13.setDescripcionArticuloProveedor(\"REPARO BOMBA EMBR.AUX PICUDO\");\n\n\t\tprart13.add(pa13);\n\t\tart3_reparo.setProveedorArticulos(prart13);\n\t\tgrabarDB(art3_reparo);\n\n\t\tArticulo art4_reparo = new Articulo();\n\t\tart4_reparo.setDescripcion(\"REPARO BOMBA EMBR.M/N PICUDO GRUESO\");\n\t\tart4_reparo.setCodigoInterno(\"VAR RCCE 0032.3\");\n\t\tart4_reparo.setCodigoOriginal(\"100200300\");\n\t\tart4_reparo.setCodigoBarra(\"100200300\");\n\t\tart4_reparo.setObservacion(\"Sin Observaciones\");\n\t\t\n\t\tart4_reparo.setPeso(1.5);\n\t\tart4_reparo.setVolumen(11.5);\n\t\tart4_reparo.setArticuloUnidadMedida(tt.sinReferenciaTipo);\n\t\t// art4_reparo.setArticuloUnidadMedida(artUnidad3);\n\t\t// art4_reparo.setArticuloModeloAplicaciones(artModAplicaciones1);\n\t\tart4_reparo.setArticuloMarca(tt.sinReferenciaTipo);\n\t\tart4_reparo.setArticuloParte(tt.sinReferenciaTipo);\n\t\tart4_reparo.setArticuloLinea(tt.sinReferenciaTipo);\n\t\tart4_reparo.setArticuloFamilia(tt.sinReferenciaTipo);\n\t\tart4_reparo.setArticuloEstado(tt.estadoArticulo1);\n\t\t// art4_reparo.setArticuloMarca(artMarca1);\n\t\t// art4_reparo.setArticuloParte(artParte1);\n\t\t// art4_reparo.setArticuloLinea(artLinea1);\n\t\t// art4_reparo.setArticuloFamilia(artFamilia1);\n\t\t// art4_reparo.setArticuloEstado(artEstado1);\n\t\tart4_reparo.setArticuloPresentacion(artPresentacion1);\n\n\t\tSet<ProveedorArticulo> prart14 = new HashSet<ProveedorArticulo>();\n\t\tProveedorArticulo pa14 = new ProveedorArticulo();\n\t\tpa14.setProveedor(prov3);\n\t\tpa14.setCodigoFabrica(\"100200300\");\n\t\tpa14.setDescripcionArticuloProveedor(\"REPARO BOMBA EMBR.M/N PICUDO GRUESO\");\n\n\t\tprart14.add(pa14);\n\t\tart4_reparo.setProveedorArticulos(prart14);\n\t\tgrabarDB(art4_reparo);\n\n\t\tfor (int i = 20; i < 200; i++) {\n\n\t\t\tArticulo ar = new Articulo();\n\t\t\tar.setDescripcion(\"articulo \" + i);\n\t\t\tar.setCodigoInterno(\"int-\" + i);\n\t\t\tar.setCodigoOriginal(\"ori\" + i);\n\t\t\tar.setCodigoBarra(\"barra-\" + i);\n\t\t\tar.setObservacion(\"\");\n\t\t\tar.setArticuloMarca(tt.sinReferenciaTipo);\n\t\t\tar.setArticuloParte(tt.sinReferenciaTipo);\n\t\t\tar.setArticuloLinea(tt.sinReferenciaTipo);\n\t\t\tar.setArticuloFamilia(tt.sinReferenciaTipo);\n\t\t\tar.setArticuloEstado(tt.estadoArticulo1);\n\t\t\t// ar.setArticuloEstado(rr.getArticuloEstadoById(1));\n\t\t\t// ar.setArticuloFamilia(rr.getArticuloFamiliaById(1));\n\t\t\t// ar.setArticuloLinea(rr.getArticuloLineaById(1));\n\t\t\t// ar.setArticuloMarca(rr.getArticuloMarcaById(1));\n\t\t\t// ar.setArticuloParte(rr.getArticuloParteById(1));\n\t\t\tar.setArticuloPresentacion(rr.getArticuloPresentacionById(1));\n\n\t\t\tSet<ProveedorArticulo> prartAR = new HashSet<ProveedorArticulo>();\n\t\t\tar.setProveedorArticulos(prartAR);\n\n\t\t\tgrabarDB(ar);\n\n\t\t}\n\n\t\t/************************************* ARTICULOS POR DEPOSITO **********************************/\n\n\t\tArticuloDeposito artDep1 = new ArticuloDeposito();\n\t\tartDep1.setStock(50);\n\t\tartDep1.setStockMaximo(50);\n\t\tartDep1.setStockMinimo(5);\n\t\tartDep1.setArticulo(art4_reparo);\n\n\t\tArticuloDeposito artDep2 = new ArticuloDeposito();\n\t\tartDep2.setStock(50);\n\t\tartDep2.setStockMaximo(50);\n\t\tartDep2.setStockMinimo(5);\n\t\tartDep2.setArticulo(art2_Valvoline);\n\n\t\tArticuloDeposito artDep3 = new ArticuloDeposito();\n\t\tartDep3.setStock(50);\n\t\tartDep3.setStockMaximo(50);\n\t\tartDep3.setStockMinimo(5);\n\t\tartDep3.setArticulo(art3_Valvoline);\n\n\t\tArticuloDeposito artDep4 = new ArticuloDeposito();\n\t\tartDep4.setStock(0);\n\t\tartDep4.setStockMaximo(50);\n\t\tartDep4.setStockMinimo(5);\n\t\tartDep4.setArticulo(art4_Valvoline);\n\n\t\tArticuloDeposito artDep5 = new ArticuloDeposito();\n\t\tartDep5.setStock(0);\n\t\tartDep5.setStockMaximo(50);\n\t\tartDep5.setStockMinimo(5);\n\t\tartDep5.setArticulo(art5_Valvoline);\n\n\t\tArticuloDeposito artDep6 = new ArticuloDeposito();\n\t\tartDep6.setStock(50);\n\t\tartDep6.setStockMaximo(50);\n\t\tartDep6.setStockMinimo(5);\n\t\tartDep6.setArticulo(art6_Valvoline);\n\n\t\tArticuloDeposito artDep7 = new ArticuloDeposito();\n\t\tartDep7.setStock(50);\n\t\tartDep7.setStockMaximo(50);\n\t\tartDep7.setStockMinimo(5);\n\t\tartDep7.setArticulo(art7_Valvoline);\n\n\t\tArticuloDeposito artDep8 = new ArticuloDeposito();\n\t\tartDep8.setStock(50);\n\t\tartDep8.setStockMaximo(50);\n\t\tartDep8.setStockMinimo(5);\n\t\tartDep8.setArticulo(articulo8);\n\n\t\tArticuloDeposito artDep9 = new ArticuloDeposito();\n\t\tartDep9.setStock(50);\n\t\tartDep9.setStockMaximo(50);\n\t\tartDep9.setStockMinimo(5);\n\t\tartDep9.setArticulo(art3_Valvoline);\n\n\t\tArticuloDeposito artDep10 = new ArticuloDeposito();\n\t\tartDep10.setStock(50);\n\t\tartDep10.setStockMaximo(50);\n\t\tartDep10.setStockMinimo(5);\n\t\tartDep10.setArticulo(art4_Valvoline);\n\n\t\tArticuloDeposito artDep11 = new ArticuloDeposito();\n\t\tartDep11.setStock(50);\n\t\tartDep11.setStockMaximo(50);\n\t\tartDep11.setStockMinimo(5);\n\t\tartDep11.setArticulo(art5_Valvoline);\n\n\t\tArticuloDeposito artDep12 = new ArticuloDeposito();\n\t\tartDep12.setStock(50);\n\t\tartDep12.setStockMaximo(50);\n\t\tartDep12.setStockMinimo(5);\n\t\tartDep12.setArticulo(art7_Valvoline);\n\n\t\t// agrega los depositos a los articulos\n\t\tartDep1.setDeposito(dep1);\n\t\tartDep2.setDeposito(dep1);\n\n\t\tartDep3.setDeposito(dep2);\n\t\tartDep4.setDeposito(dep2);\n\n\t\tartDep5.setDeposito(dep3);\n\n\t\tartDep6.setDeposito(dep4);\n\t\tartDep12.setDeposito(dep4);\n\n\t\tartDep7.setDeposito(dep5);\n\n\t\tartDep8.setDeposito(dep6);\n\t\tartDep9.setDeposito(dep6);\n\n\t\tartDep10.setDeposito(dep7);\n\t\tartDep11.setDeposito(dep7);\n\t\t\n\t\tgrabarDB(artDep1);\n\t\tgrabarDB(artDep2);\n\t\tgrabarDB(artDep3);\n\t\tgrabarDB(artDep4);\n\t\tgrabarDB(artDep5);\n\t\tgrabarDB(artDep6);\n\t\tgrabarDB(artDep7);\n\t\tgrabarDB(artDep8);\n\t\tgrabarDB(artDep9);\n\t\tgrabarDB(artDep10);\n\t\tgrabarDB(artDep11);\n\t\tgrabarDB(artDep12);\n\n\n\t\t/************************************* ARTICULOS COSTO **********************************/\n\n\t\tArticuloCosto artCosto1 = new ArticuloCosto();\n\t\tartCosto1.setCostoFinalDs(2);\n\t\tartCosto1.setCostoFinalGs(9000);\n\t\tartCosto1.setFechaCompra(new Date());\n\t\tartCosto1.setIdMovimiento((long) 1);\n\t\tartCosto1.setTipoMovimiento(tt.tipoMov3);\n\t\tgrabarDB(artCosto1);\n\n\t\tArticuloCosto artCosto2 = new ArticuloCosto();\n\t\tartCosto2.setCostoFinalDs(3);\n\t\tartCosto2.setCostoFinalGs(13500);\n\t\tartCosto2.setFechaCompra(new Date());\n\t\tartCosto2.setIdMovimiento((long) 1);\n\t\tartCosto2.setTipoMovimiento(tt.tipoMov3);\n\t\tgrabarDB(artCosto2);\n\n\t\tArticuloCosto artCosto3 = new ArticuloCosto();\n\t\tartCosto3.setCostoFinalDs(2);\n\t\tartCosto3.setCostoFinalGs(9000);\n\t\tartCosto3.setFechaCompra(new Date());\n\t\tartCosto3.setIdMovimiento((long) 1);\n\t\tartCosto3.setTipoMovimiento(tt.tipoMov3);\n\t\tgrabarDB(artCosto3);\n\n\t\tArticuloCosto artCosto4 = new ArticuloCosto();\n\t\tartCosto4.setCostoFinalDs(4);\n\t\tartCosto4.setCostoFinalGs(18000);\n\t\tartCosto4.setFechaCompra(new Date());\n\t\tartCosto4.setIdMovimiento((long) 1);\n\t\tartCosto4.setTipoMovimiento(tt.tipoMov3);\n\t\tgrabarDB(artCosto4);\n\n\t\tArticuloCosto artCosto5 = new ArticuloCosto();\n\t\tartCosto5.setCostoFinalDs(5);\n\t\tartCosto5.setCostoFinalGs(22500);\n\t\tartCosto5.setFechaCompra(new Date());\n\t\t// ojo aca decia artDep6 cambie a artDep5 - vere\n\t\tartCosto5.setIdMovimiento((long) 1);\n\t\tartCosto5.setTipoMovimiento(tt.tipoMov3);\n\t\tgrabarDB(artCosto5);\n\n\t\tArticuloCosto artCosto6 = new ArticuloCosto();\n\t\tartCosto6.setCostoFinalDs(3);\n\t\tartCosto6.setCostoFinalGs(13500);\n\t\tartCosto6.setFechaCompra(new Date());\n\t\tartCosto6.setIdMovimiento((long) 1);\n\t\tartCosto6.setTipoMovimiento(tt.tipoMov3);\n\t\tgrabarDB(artCosto6);\n\n\t\tArticuloCosto artCosto7 = new ArticuloCosto();\n\t\tartCosto7.setCostoFinalDs(2);\n\t\tartCosto7.setCostoFinalGs(9000);\n\t\tartCosto7.setFechaCompra(new Date());\n\t\tartCosto7.setIdMovimiento((long) 1);\n\t\tartCosto7.setTipoMovimiento(tt.tipoMov3);\n\t\tgrabarDB(artCosto7);\n\n\t\tArticuloCosto artCosto8 = new ArticuloCosto();\n\t\tartCosto8.setCostoFinalDs(3);\n\t\tartCosto8.setCostoFinalGs(13500);\n\t\tartCosto8.setFechaCompra(new Date());\n\t\tartCosto8.setIdMovimiento((long) 1);\n\t\tartCosto8.setTipoMovimiento(tt.tipoMov3);\n\t\tgrabarDB(artCosto8);\n\n\t\t/*********************************************** B.D. IMPORTACIONES *********************************************/\n\n\t\t// ----------------------- Una Factura con dos detalles\n\n\t\tSet<ImportacionFacturaDetalle> detalle = new HashSet<ImportacionFacturaDetalle>();\n\t\tSet<ImportacionFactura> facturas = new HashSet<ImportacionFactura>();\n\n\t\tImportacionFacturaDetalle detalle1 = new ImportacionFacturaDetalle();\n\t\tdetalle1.setCantidad(10);\n\t\tdetalle1.setCostoDs(10);\n\t\tdetalle1.setCostoGs(45000);\n\t\tdetalle1.setArticulo(art1_Valvoline);\n\t\tdetalle1.setTextoDescuento(\"\");\n\t\tdetalle1.setDescuentoDs(0);\n\t\tdetalle1.setDescuentoGs(0);\n\t\tdetalle.add(detalle1);\n\n\t\tImportacionFacturaDetalle detalle2 = new ImportacionFacturaDetalle();\n\t\tdetalle2.setCantidad(5);\n\t\tdetalle2.setCostoDs(5);\n\t\tdetalle2.setCostoGs(22500);\n\t\tdetalle2.setArticulo(art2_Valvoline);\n\t\tdetalle2.setTextoDescuento(\"\");\n\t\tdetalle2.setDescuentoDs(0);\n\t\tdetalle2.setDescuentoGs(0);\n\t\tdetalle.add(detalle2);\n\n\t\tImportacionFacturaDetalle detalle3Fact1 = new ImportacionFacturaDetalle();\n\t\tdetalle3Fact1.setCantidad(10);\n\t\tdetalle3Fact1.setCostoDs(5);\n\t\tdetalle3Fact1.setCostoGs(22500);\n\t\tdetalle3Fact1.setArticulo(art3_Valvoline);\n\t\tdetalle3Fact1.setTextoDescuento(\"\");\n\t\tdetalle3Fact1.setDescuentoDs(0);\n\t\tdetalle3Fact1.setDescuentoGs(0);\n\t\tdetalle.add(detalle3Fact1);\n\n\t\tImportacionFacturaDetalle detalle4Fact1 = new ImportacionFacturaDetalle();\n\t\tdetalle4Fact1.setCantidad(10);\n\t\tdetalle4Fact1.setCostoDs(5);\n\t\tdetalle4Fact1.setCostoGs(22500);\n\t\tdetalle4Fact1.setArticulo(art4_Valvoline);\n\t\tdetalle4Fact1.setTextoDescuento(\"\");\n\t\tdetalle4Fact1.setDescuentoDs(0);\n\t\tdetalle4Fact1.setDescuentoGs(0);\n\t\tdetalle.add(detalle4Fact1);\n\n\t\tImportacionFacturaDetalle detalle5Fact1 = new ImportacionFacturaDetalle();\n\t\tdetalle5Fact1.setCantidad(10);\n\t\tdetalle5Fact1.setCostoDs(5);\n\t\tdetalle5Fact1.setCostoGs(22500);\n\t\tdetalle5Fact1.setArticulo(art5_Valvoline);\n\t\tdetalle5Fact1.setTextoDescuento(\"\");\n\t\tdetalle5Fact1.setDescuentoDs(0);\n\t\tdetalle5Fact1.setDescuentoGs(0);\n\t\tdetalle.add(detalle5Fact1);\n\n\t\tImportacionFactura factura1 = new ImportacionFactura();\n\t\tfactura1.setNumero(\"001-001-0000100\");\n\t\tfactura1.setFechaOriginal(new Date());\n\t\tfactura1.setFechaCreacion(new Date());\n\t\tfactura1.setDetalles(detalle);\n\t\tfactura1.setConfirmadoImportacion(false);\n\t\tfactura1.setConfirmadoAuditoria(false);\n\t\tfactura1.setConfirmadoVentas(false);\n\t\tfactura1.setConfirmadoAdministracion(false);\n\t\tfactura1.setPropietarioActual(2);\n\t\tfactura1.setFacturaVerificada(false);\n\t\tfactura1.setDescuentoDs(0);\n\t\tfactura1.setDescuentoGs(0);\n\t\tfactura1.setCondicionPago(tt.icp);\n\t\tfactura1.setMoneda(tt.dolar);\n\t\tfactura1.setObservacion(\"\");\n\t\tfactura1.setProveedor(prov1);\n\t\tfactura1.setRecepcionConfirmada(false);\n\t\tfactura1.setTotalAsignadoDs(10);\n\t\tfactura1.setTotalAsignadoGs(45000);\n\t\tfactura1.setTipoMovimiento(tt.tipoMov3);\n\t\tfacturas.add(factura1);\n\n\t\t// --------------------------------- Una factura con dos detalles\n\n\t\tSet<ImportacionFacturaDetalle> detalles2 = new HashSet<ImportacionFacturaDetalle>();\n\n\t\tImportacionFacturaDetalle detalle3 = new ImportacionFacturaDetalle();\n\t\tdetalle3.setCantidad(3);\n\t\tdetalle3.setCostoDs(5);\n\t\tdetalle3.setCostoGs(22500);\n\t\tdetalle3.setArticulo(art5_Valvoline);\n\t\tdetalle3.setTextoDescuento(\"\");\n\t\tdetalle3.setDescuentoDs(0);\n\t\tdetalle3.setDescuentoGs(0);\n\t\tdetalles2.add(detalle3);\n\n\t\tImportacionFacturaDetalle detalle4 = new ImportacionFacturaDetalle();\n\t\tdetalle4.setCantidad(3);\n\t\tdetalle4.setCostoDs(5);\n\t\tdetalle4.setCostoGs(22500);\n\t\tdetalle4.setArticulo(art6_Valvoline);\n\t\tdetalle4.setTextoDescuento(\"\");\n\t\tdetalle4.setDescuentoDs(0);\n\t\tdetalle4.setDescuentoGs(0);\n\t\tdetalles2.add(detalle4);\n\n\t\tImportacionFacturaDetalle detalle3Fact2 = new ImportacionFacturaDetalle();\n\t\tdetalle3Fact2.setCantidad(3);\n\t\tdetalle3Fact2.setCostoDs(5);\n\t\tdetalle3Fact2.setCostoGs(22500);\n\t\tdetalle3Fact2.setArticulo(art7_Valvoline);\n\t\tdetalle3Fact2.setTextoDescuento(\"\");\n\t\tdetalle3Fact2.setDescuentoDs(0);\n\t\tdetalle3Fact2.setDescuentoGs(0);\n\t\tdetalles2.add(detalle3Fact2);\n\n\t\tImportacionFactura factura2 = new ImportacionFactura();\n\t\tfactura2.setNumero(\"001-001-0000101\");\n\t\tfactura2.setFechaOriginal(new Date());\n\t\tfactura2.setFechaCreacion(new Date());\n\t\tfactura2.setDetalles(detalles2);\n\t\tfactura2.setConfirmadoImportacion(false);\n\t\tfactura2.setConfirmadoAuditoria(false);\n\t\tfactura2.setConfirmadoVentas(false);\n\t\tfactura2.setConfirmadoAdministracion(false);\n\t\tfactura2.setPropietarioActual(1);\n\t\tfactura2.setFacturaVerificada(false);\n\t\tfactura2.setDescuentoDs(0);\n\t\tfactura2.setDescuentoGs(0);\n\t\tfactura2.setCondicionPago(tt.icp);\n\t\tfactura2.setMoneda(tt.dolar);\n\t\tfactura2.setObservacion(\"\");\n\t\tfactura2.setProveedor(prov1);\n\t\tfactura2.setRecepcionConfirmada(false);\n\t\tfactura2.setTotalAsignadoDs(10);\n\t\tfactura2.setTotalAsignadoGs(45000);\n\t\tfactura2.setTipoMovimiento(tt.tipoMov3);\n\t\tfacturas.add(factura2);\n\n\t\t// --------------------------------- Una factura con dos detalles\n\n\t\tSet<ImportacionFacturaDetalle> detalles_3 = new HashSet<ImportacionFacturaDetalle>();\n\n\t\tImportacionFacturaDetalle detalle_3 = new ImportacionFacturaDetalle();\n\t\tdetalle_3.setCantidad(3);\n\t\tdetalle_3.setCostoDs(5);\n\t\tdetalle_3.setCostoGs(22500);\n\t\tdetalle_3.setArticulo(art5_Valvoline);\n\t\tdetalle_3.setTextoDescuento(\"\");\n\t\tdetalle_3.setDescuentoDs(0);\n\t\tdetalle_3.setDescuentoGs(0);\n\t\tdetalles_3.add(detalle_3);\n\n\t\tImportacionFacturaDetalle detalle_4 = new ImportacionFacturaDetalle();\n\t\tdetalle_4.setCantidad(3);\n\t\tdetalle_4.setCostoDs(5);\n\t\tdetalle_4.setCostoGs(22500);\n\t\tdetalle_4.setArticulo(art6_Valvoline);\n\t\tdetalle_4.setTextoDescuento(\"\");\n\t\tdetalle_4.setDescuentoDs(0);\n\t\tdetalle_4.setDescuentoGs(0);\n\t\tdetalles_3.add(detalle_4);\n\n\t\tImportacionFacturaDetalle detalle3_Fact2 = new ImportacionFacturaDetalle();\n\t\tdetalle3_Fact2.setCantidad(4);\n\t\tdetalle3_Fact2.setCostoDs(5);\n\t\tdetalle3_Fact2.setCostoGs(22500);\n\t\tdetalle3_Fact2.setArticulo(art7_Valvoline);\n\t\tdetalle3_Fact2.setTextoDescuento(\"\");\n\t\tdetalle3_Fact2.setDescuentoDs(0);\n\t\tdetalle3_Fact2.setDescuentoGs(0);\n\t\tdetalles_3.add(detalle3_Fact2);\n\n\t\tImportacionFactura factura_2 = new ImportacionFactura();\n\t\tfactura_2.setNumero(\"001-001-0000103\");\n\t\tfactura_2.setFechaOriginal(new Date());\n\t\tfactura_2.setFechaCreacion(new Date());\n\t\tfactura_2.setDetalles(detalles_3);\n\t\tfactura_2.setConfirmadoImportacion(false);\n\t\tfactura_2.setConfirmadoAuditoria(false);\n\t\tfactura_2.setConfirmadoVentas(false);\n\t\tfactura_2.setConfirmadoAdministracion(false);\n\t\tfactura_2.setPropietarioActual(1);\n\t\tfactura_2.setFacturaVerificada(false);\n\t\tfactura_2.setDescuentoDs(0);\n\t\tfactura_2.setDescuentoGs(0);\n\t\tfactura_2.setCondicionPago(tt.icp);\n\t\tfactura_2.setMoneda(tt.dolar);\n\t\tfactura_2.setObservacion(\"\");\n\t\tfactura_2.setProveedor(prov1);\n\t\tfactura_2.setRecepcionConfirmada(false);\n\t\tfactura_2.setTotalAsignadoDs(10);\n\t\tfactura_2.setTotalAsignadoGs(45000);\n\t\tfactura_2.setTipoMovimiento(tt.tipoMov3);\n\t\tfacturas.add(factura_2);\n\n\t\t// ----------------------------- Gasto de Despacho\n\n\t\tImportacionResumenGastosDespacho despacho1 = new ImportacionResumenGastosDespacho();\n\t\tdespacho1.setNroDespacho(\"1245YZ\");\n\t\tdespacho1.setNroLiquidacion(\"13008IC4000011A\");\n\t\tdespacho1.setFechaFacturaDespacho(new Date());\n\t\tdespacho1.setTipoCambio(4500);\n\t\tdespacho1.setValorCIFds(1200);\n\t\tdespacho1.setValorCIFgs(400000);\n\t\tdespacho1.setValorFOBds(5000);\n\t\tdespacho1.setValorFOBgs(22500000);\n\t\tdespacho1.setValorFleteDs(100);\n\t\tdespacho1.setValorFleteGs(450000);\n\t\tdespacho1.setValorSeguroDs(50);\n\t\tdespacho1.setValorSeguroGs(225000);\n\t\tdespacho1.setTotalIVAds(600);\n\t\tdespacho1.setTotalIVAgs(100000);\n\t\tdespacho1.setTotalGastosDs(800);\n\t\tdespacho1.setTotalGastosGs(900000);\n\t\tdespacho1.setCambioGastoDespacho(false);\n\t\tdespacho1.setCoeficiente(1.375);\n\t\tdespacho1.setCoeficienteAsignado(1.480);\n\t\tdespacho1.setDespachante(prov7);\n\n\t\t// ------------------------ Un Pedido Compra Confirmado con 7 detalles y\n\t\t// 2 facturas\n\n\t\tSet<ImportacionPedidoCompraDetalle> impPedCompDets = new HashSet<ImportacionPedidoCompraDetalle>();\n\n\t\tImportacionPedidoCompraDetalle impPedCompDet = new ImportacionPedidoCompraDetalle();\n\t\timpPedCompDet.setArticulo(art1_Valvoline);\n\t\timpPedCompDet.setCantidad(5);\n\n\t\timpPedCompDet.setUltimoCostoDs(27000);\n\t\timpPedCompDet.setFechaUltimoCosto(new Date());\n\t\timpPedCompDet.setCostoProformaDs(1);\n\t\timpPedCompDet.setCostoProformaGs(4500);\n\t\timpPedCompDets.add(impPedCompDet);\n\n\t\tImportacionPedidoCompraDetalle impPedCompDet2 = new ImportacionPedidoCompraDetalle();\n\t\timpPedCompDet2.setArticulo(art2_Valvoline);\n\t\timpPedCompDet2.setCantidad(3);\n\n\t\timpPedCompDet2.setUltimoCostoDs(27000);\n\t\timpPedCompDet2.setFechaUltimoCosto(new Date());\n\t\timpPedCompDet2.setCostoProformaDs(1);\n\t\timpPedCompDet2.setCostoProformaGs(4500);\n\t\timpPedCompDets.add(impPedCompDet2);\n\n\t\tImportacionPedidoCompraDetalle impPedCompDet3 = new ImportacionPedidoCompraDetalle();\n\t\timpPedCompDet3.setArticulo(art3_Valvoline);\n\t\timpPedCompDet3.setCantidad(5);\n\n\t\timpPedCompDet3.setUltimoCostoDs(27000);\n\t\timpPedCompDet3.setFechaUltimoCosto(new Date());\n\t\timpPedCompDet3.setCostoProformaDs(2);\n\t\timpPedCompDet3.setCostoProformaGs(9000);\n\n\t\timpPedCompDets.add(impPedCompDet3);\n\n\t\tImportacionPedidoCompraDetalle impPedCompDet4 = new ImportacionPedidoCompraDetalle();\n\t\timpPedCompDet4.setArticulo(art4_Valvoline);\n\t\timpPedCompDet4.setCantidad(5);\n\n\t\timpPedCompDet4.setUltimoCostoDs(27000);\n\t\timpPedCompDet4.setFechaUltimoCosto(new Date());\n\t\timpPedCompDet4.setCostoProformaDs(1);\n\t\timpPedCompDet4.setCostoProformaGs(4500);\n\t\timpPedCompDets.add(impPedCompDet4);\n\n\t\tImportacionPedidoCompraDetalle impPedCompDet5 = new ImportacionPedidoCompraDetalle();\n\t\timpPedCompDet5.setArticulo(art5_Valvoline);\n\t\timpPedCompDet5.setCantidad(5);\n\n\t\timpPedCompDet5.setUltimoCostoDs(27000);\n\t\timpPedCompDet5.setFechaUltimoCosto(new Date());\n\t\timpPedCompDet5.setCostoProformaDs(1);\n\t\timpPedCompDet5.setCostoProformaGs(4500);\n\t\timpPedCompDets.add(impPedCompDet5);\n\n\t\tImportacionPedidoCompraDetalle impPedCompDet6 = new ImportacionPedidoCompraDetalle();\n\t\timpPedCompDet6.setArticulo(art6_Valvoline);\n\t\timpPedCompDet6.setCantidad(3);\n\n\t\timpPedCompDet6.setUltimoCostoDs(27000);\n\t\timpPedCompDet6.setFechaUltimoCosto(new Date());\n\t\timpPedCompDet6.setCostoProformaDs(1);\n\t\timpPedCompDet6.setCostoProformaGs(9000);\n\t\timpPedCompDets.add(impPedCompDet6);\n\n\t\tImportacionPedidoCompraDetalle impPedCompDet7 = new ImportacionPedidoCompraDetalle();\n\t\timpPedCompDet7.setArticulo(art7_Valvoline);\n\t\timpPedCompDet7.setCantidad(5);\n\n\t\timpPedCompDet7.setUltimoCostoDs(27000);\n\t\timpPedCompDet7.setFechaUltimoCosto(new Date());\n\t\timpPedCompDet7.setCostoProformaDs(1.05);\n\t\timpPedCompDet7.setCostoProformaGs(4500);\n\t\timpPedCompDets.add(impPedCompDet7);\n\n\t\tImportacionPedidoCompra impPedComp1 = new ImportacionPedidoCompra();\n\t\timpPedComp1.setNumeroPedidoCompra(\"VAL-00001\");\n\t\timpPedComp1.setFechaCreacion(new Date());\n\t\timpPedComp1.setFechaCierre(new Date());\n\t\timpPedComp1.setConfirmadoImportacion(true);\n\t\timpPedComp1.setConfirmadoVentas(true);\n\t\timpPedComp1.setConfirmadoAdministracion(true);\n\t\timpPedComp1.setPropietarioActual(4);\n\t\timpPedComp1.setPedidoConfirmado(true);\n\t\timpPedComp1.setSubDiarioConfirmado(false);\n\t\timpPedComp1.setImportacionConfirmada(false);\n\t\timpPedComp1.setImportacionPedidoCompraDetalle(impPedCompDets);\n\t\timpPedComp1.setImportacionFactura(facturas);\n\t\timpPedComp1.setResumenGastosDespacho(despacho1);\n\t\timpPedComp1.setEstado(tt.importacionEstado4);\n\t\timpPedComp1.setProveedor(prov1);\n\t\timpPedComp1.setProveedorCondicionPago(tt.icp);\n\t\timpPedComp1.setTipo(tt.tipoImportacion1);\n\t\timpPedComp1.setMoneda(tt.dolar);\n\t\timpPedComp1.setObservacion(\"PEDIDO COMPRA 1\");\n\t\timpPedComp1.setCambio(4500);\n\t\timpPedComp1.setTipoMovimiento(tt.tipoMov8);\n\t\timpPedComp1.setCifProrrateado(false);\n\t\tgrabarDB(impPedComp1);\n\n\t\t/**\n\t\tagenda.addDetalle(agenda.COTIZACION,\n\t\t\t\timpPedComp1.getNumeroPedidoCompra(), 0,\n\t\t\t\t\"Se creo un Pedido de Compra\", null);\n\n\t\tagenda.addDetalle(agenda.COTIZACION,\n\t\t\t\timpPedComp1.getNumeroPedidoCompra(), 0,\n\t\t\t\t\"Se importo una Orden de Compra\",\n\t\t\t\t\"/yhaguy/archivos/ordenCompras/Population.csv\");\n\n\t\tagenda.addDetalle(agenda.COTIZACION,\n\t\t\t\timpPedComp1.getNumeroPedidoCompra(), 0,\n\t\t\t\t\"Se envio un correo de Cotizacion\",\n\t\t\t\t\"/yhaguy/archivos/pedidoCompra/Population.pdf\");\n\n\t\tagenda.addDetalle(agenda.COTIZACION,\n\t\t\t\timpPedComp1.getNumeroPedidoCompra(), 0,\n\t\t\t\t\"Se importo la Proforma\",\n\t\t\t\t\"/yhaguy/archivos/proformas/Population.csv\");\n\n\t\tagenda.addDetalle(agenda.COTIZACION,\n\t\t\t\timpPedComp1.getNumeroPedidoCompra(), 0, \"Se derivo a Ventas\",\n\t\t\t\tnull);\n\n\t\tagenda.addDetalle(agenda.COTIZACION,\n\t\t\t\timpPedComp1.getNumeroPedidoCompra(), 0,\n\t\t\t\t\"Se derivo a Importacion\", null);\n\n\t\tagenda.addDetalle(agenda.COTIZACION,\n\t\t\t\timpPedComp1.getNumeroPedidoCompra(), 0,\n\t\t\t\t\"Se confirmo el Pedido\", null);\n\n\t\tagenda.addDetalle(agenda.COTIZACION,\n\t\t\t\timpPedComp1.getNumeroPedidoCompra(), 0,\n\t\t\t\t\"Se envio un correo de Confirmacion\",\n\t\t\t\t\"/yhaguy/archivos/pedidoCompra/PopulationConfirmado.pdf\");\n\n\t\tagenda.addDetalle(agenda.COTIZACION,\n\t\t\t\timpPedComp1.getNumeroPedidoCompra(), 0,\n\t\t\t\t\"Se derivo a Administracion\", null);\n\n\t\tagenda.addDetalle(agenda.COTIZACION,\n\t\t\t\timpPedComp1.getNumeroPedidoCompra(), 0,\n\t\t\t\t\"Se importo la Factura de Compra\",\n\t\t\t\t\"/yhaguy/archivos/facturaImportacion/Population.csv\");**/\n\n\t\t// --------------------------------------------------------------------------------------------------\n\n\t\t// ----------------------- Una Factura con dos detalles\n\n\t\tSet<ImportacionFacturaDetalle> detalles3 = new HashSet<ImportacionFacturaDetalle>();\n\t\tSet<ImportacionFactura> facturas2 = new HashSet<ImportacionFactura>();\n\n\t\tImportacionFacturaDetalle detalle1Fact3 = new ImportacionFacturaDetalle();\n\t\tdetalle1Fact3.setCantidad(10);\n\t\tdetalle1Fact3.setCostoDs(5);\n\t\tdetalle1Fact3.setCostoGs(22500);\n\t\tdetalle1Fact3.setArticulo(art4_reparo);\n\t\tdetalle1Fact3.setTextoDescuento(\"\");\n\t\tdetalle1Fact3.setDescuentoDs(0);\n\t\tdetalle1Fact3.setDescuentoGs(0);\n\t\tdetalles3.add(detalle1Fact3);\n\n\t\tImportacionFacturaDetalle detalle2Fact3 = new ImportacionFacturaDetalle();\n\t\tdetalle2Fact3.setCantidad(10);\n\t\tdetalle2Fact3.setCostoDs(5);\n\t\tdetalle2Fact3.setCostoGs(22500);\n\t\tdetalle2Fact3.setArticulo(art4_reparo);\n\t\tdetalle2Fact3.setTextoDescuento(\"\");\n\t\tdetalle2Fact3.setDescuentoDs(0);\n\t\tdetalle2Fact3.setDescuentoGs(0);\n\t\tdetalles3.add(detalle2Fact3);\n\n\t\tImportacionFacturaDetalle detalle3Fact3 = new ImportacionFacturaDetalle();\n\t\tdetalle3Fact3.setCantidad(10);\n\t\tdetalle3Fact3.setCostoDs(5);\n\t\tdetalle3Fact3.setCostoGs(22500);\n\t\tdetalle3Fact3.setArticulo(art4_reparo);\n\t\tdetalle3Fact3.setTextoDescuento(\"\");\n\t\tdetalle3Fact3.setDescuentoDs(0);\n\t\tdetalle3Fact3.setDescuentoGs(0);\n\t\tdetalles3.add(detalle3Fact3);\n\n\t\tImportacionFacturaDetalle detalle4Fact3 = new ImportacionFacturaDetalle();\n\t\tdetalle4Fact3.setCantidad(10);\n\t\tdetalle4Fact3.setCostoDs(5);\n\t\tdetalle4Fact3.setCostoGs(22500);\n\t\tdetalle4Fact3.setArticulo(art4_reparo);\n\t\tdetalle4Fact3.setTextoDescuento(\"\");\n\t\tdetalle4Fact3.setDescuentoDs(0);\n\t\tdetalle4Fact3.setDescuentoGs(0);\n\t\tdetalles3.add(detalle4Fact3);\n\n\t\tImportacionFactura factura3 = new ImportacionFactura();\n\t\tfactura3.setNumero(\"001-001-0000102\");\n\t\tfactura3.setFechaOriginal(new Date());\n\t\tfactura3.setFechaCreacion(new Date());\n\t\tfactura3.setDetalles(detalles3);\n\t\tfactura3.setConfirmadoImportacion(false);\n\t\tfactura3.setConfirmadoAuditoria(false);\n\t\tfactura3.setConfirmadoVentas(false);\n\t\tfactura3.setConfirmadoAdministracion(false);\n\t\tfactura3.setPropietarioActual(2);\n\t\tfactura3.setFacturaVerificada(false);\n\t\tfactura3.setDescuentoDs(0);\n\t\tfactura3.setDescuentoGs(0);\n\t\tfactura3.setCondicionPago(tt.icp);\n\t\tfactura3.setMoneda(tt.dolar);\n\t\tfactura3.setObservacion(\"\");\n\t\tfactura3.setProveedor(prov1);\n\t\tfactura3.setRecepcionConfirmada(false);\n\t\tfactura3.setTotalAsignadoDs(10);\n\t\tfactura3.setTotalAsignadoGs(45000);\n\t\tfactura3.setTipoMovimiento(tt.tipoMov3);\n\t\tfacturas2.add(factura3);\n\n\t\t// ----------------------------------------------------------------------------------------------\n\n\t\t// ----------------------------------- Una factura con dos detalles\n\n\t\tSet<ImportacionFacturaDetalle> detalles4 = new HashSet<ImportacionFacturaDetalle>();\n\n\t\tImportacionFacturaDetalle detalle1Fact4 = new ImportacionFacturaDetalle();\n\t\tdetalle1Fact4.setCantidad(10);\n\t\tdetalle1Fact4.setCostoDs(5);\n\t\tdetalle1Fact4.setCostoGs(22500);\n\t\tdetalle1Fact4.setArticulo(art5_Valvoline);\n\t\tdetalle1Fact4.setTextoDescuento(\"\");\n\t\tdetalle1Fact4.setDescuentoDs(0);\n\t\tdetalle1Fact4.setDescuentoGs(0);\n\t\tdetalles4.add(detalle1Fact4);\n\n\t\tImportacionFacturaDetalle detalle2Fact4 = new ImportacionFacturaDetalle();\n\t\tdetalle2Fact4.setCantidad(10);\n\t\tdetalle2Fact4.setCostoDs(5);\n\t\tdetalle2Fact4.setCostoGs(22500);\n\t\tdetalle2Fact4.setArticulo(art6_Valvoline);\n\t\tdetalle2Fact4.setTextoDescuento(\"\");\n\t\tdetalle2Fact4.setDescuentoDs(0);\n\t\tdetalle2Fact4.setDescuentoGs(0);\n\t\tdetalles4.add(detalle2Fact4);\n\n\t\tImportacionFacturaDetalle detalle3Fact4 = new ImportacionFacturaDetalle();\n\t\tdetalle3Fact4.setCantidad(10);\n\t\tdetalle3Fact4.setCostoDs(5);\n\t\tdetalle3Fact4.setCostoGs(22500);\n\t\tdetalle3Fact4.setArticulo(art7_Valvoline);\n\t\tdetalle3Fact4.setDescuentoDs(0);\n\t\tdetalle3Fact4.setDescuentoGs(0);\n\t\tdetalles4.add(detalle3Fact4);\n\n\t\tImportacionFactura factura4 = new ImportacionFactura();\n\t\tfactura4.setNumero(\"001-001-0000105\");\n\t\tfactura4.setFechaOriginal(new Date());\n\t\tfactura4.setFechaCreacion(new Date());\n\t\tfactura4.setDetalles(detalles4);\n\t\tfactura4.setConfirmadoImportacion(false);\n\t\tfactura4.setConfirmadoAuditoria(false);\n\t\tfactura4.setConfirmadoVentas(false);\n\t\tfactura4.setConfirmadoAdministracion(false);\n\t\tfactura4.setPropietarioActual(1);\n\t\tfactura4.setFacturaVerificada(false);\n\t\tfactura4.setDescuentoDs(0);\n\t\tfactura4.setDescuentoGs(0);\n\t\tfactura4.setCondicionPago(tt.icp);\n\t\tfactura4.setMoneda(tt.dolar);\n\t\tfactura4.setObservacion(\"\");\n\t\tfactura4.setProveedor(prov1);\n\t\tfactura4.setRecepcionConfirmada(false);\n\t\tfactura4.setTotalAsignadoDs(10);\n\t\tfactura4.setTotalAsignadoGs(45000);\n\t\tfactura4.setTipoMovimiento(tt.tipoMov3);\n\t\tfacturas2.add(factura4);\n\n\t\t// ----------------------- Una Factura con dos detalles\n\n\t\tSet<ImportacionFacturaDetalle> detallei2 = new HashSet<ImportacionFacturaDetalle>();\n\t\tSet<ImportacionFactura> facturasi2 = new HashSet<ImportacionFactura>();\n\n\t\tImportacionFacturaDetalle detalle1i2 = new ImportacionFacturaDetalle();\n\t\tdetalle1i2.setCantidad(3);\n\t\tdetalle1i2.setCostoDs(10);\n\t\tdetalle1i2.setCostoGs(45000);\n\t\tdetalle1i2.setArticulo(art1_Valvoline);\n\t\tdetalle1i2.setTextoDescuento(\"\");\n\t\tdetalle1i2.setDescuentoDs(0);\n\t\tdetalle1i2.setDescuentoGs(0);\n\t\tdetallei2.add(detalle1i2);\n\n\t\tImportacionFacturaDetalle detalle2i2 = new ImportacionFacturaDetalle();\n\t\tdetalle2i2.setCantidad(3);\n\t\tdetalle2i2.setCostoDs(5);\n\t\tdetalle2i2.setCostoGs(22500);\n\t\tdetalle2i2.setArticulo(art2_Valvoline);\n\t\tdetalle2i2.setTextoDescuento(\"\");\n\t\tdetalle2i2.setDescuentoDs(0);\n\t\tdetalle2i2.setDescuentoGs(0);\n\t\tdetallei2.add(detalle2i2);\n\n\t\tImportacionFacturaDetalle detalle3Fact1i2 = new ImportacionFacturaDetalle();\n\t\tdetalle3Fact1i2.setCantidad(3);\n\t\tdetalle3Fact1i2.setCostoDs(5);\n\t\tdetalle3Fact1i2.setCostoGs(22500);\n\t\tdetalle3Fact1i2.setArticulo(art3_Valvoline);\n\t\tdetalle3Fact1i2.setTextoDescuento(\"\");\n\t\tdetalle3Fact1i2.setDescuentoDs(0);\n\t\tdetalle3Fact1i2.setDescuentoGs(0);\n\t\tdetallei2.add(detalle3Fact1i2);\n\n\t\tImportacionFacturaDetalle detalle4Fact1i2 = new ImportacionFacturaDetalle();\n\t\tdetalle4Fact1i2.setCantidad(3);\n\t\tdetalle4Fact1i2.setCostoDs(5);\n\t\tdetalle4Fact1i2.setCostoGs(22500);\n\t\tdetalle4Fact1i2.setArticulo(art4_Valvoline);\n\t\tdetalle4Fact1i2.setTextoDescuento(\"\");\n\t\tdetalle4Fact1i2.setDescuentoDs(0);\n\t\tdetalle4Fact1i2.setDescuentoGs(0);\n\t\tdetallei2.add(detalle4Fact1i2);\n\n\t\tImportacionFacturaDetalle detalle5Fact1i2 = new ImportacionFacturaDetalle();\n\t\tdetalle5Fact1i2.setCantidad(3);\n\t\tdetalle5Fact1i2.setCostoDs(5);\n\t\tdetalle5Fact1i2.setCostoGs(22500);\n\t\tdetalle5Fact1i2.setArticulo(art5_Valvoline);\n\t\tdetalle5Fact1i2.setTextoDescuento(\"\");\n\t\tdetalle5Fact1i2.setDescuentoDs(0);\n\t\tdetalle5Fact1i2.setDescuentoGs(0);\n\t\tdetallei2.add(detalle5Fact1i2);\n\n\t\tImportacionFactura factura1i2 = new ImportacionFactura();\n\t\tfactura1i2.setNumero(\"001-001-0000200\");\n\t\tfactura1i2.setFechaOriginal(new Date());\n\t\tfactura1i2.setFechaCreacion(new Date());\n\t\tfactura1i2.setDetalles(detallei2);\n\t\tfactura1i2.setConfirmadoImportacion(false);\n\t\tfactura1i2.setConfirmadoAuditoria(false);\n\t\tfactura1i2.setConfirmadoVentas(false);\n\t\tfactura1i2.setConfirmadoAdministracion(false);\n\t\tfactura1i2.setPropietarioActual(2);\n\t\tfactura1i2.setFacturaVerificada(false);\n\t\tfactura1i2.setDescuentoDs(0);\n\t\tfactura1i2.setDescuentoGs(0);\n\t\tfactura1i2.setCondicionPago(tt.icp);\n\t\tfactura1i2.setMoneda(tt.dolar);\n\t\tfactura1i2.setObservacion(\"\");\n\t\tfactura1i2.setProveedor(prov1);\n\t\tfactura1i2.setRecepcionConfirmada(false);\n\t\tfactura1i2.setTotalAsignadoDs(10);\n\t\tfactura1i2.setTotalAsignadoGs(45000);\n\t\tfactura1i2.setTipoMovimiento(tt.tipoMov3);\n\t\tfacturasi2.add(factura1i2);\n\n\t\t// --------------------------------- Una factura con dos detalles\n\n\t\tSet<ImportacionFacturaDetalle> detalles2i2 = new HashSet<ImportacionFacturaDetalle>();\n\n\t\tImportacionFacturaDetalle detalle3i2 = new ImportacionFacturaDetalle();\n\t\tdetalle3i2.setCantidad(10);\n\t\tdetalle3i2.setCostoDs(5);\n\t\tdetalle3i2.setCostoGs(22500);\n\t\tdetalle3i2.setArticulo(art5_Valvoline);\n\t\tdetalle3i2.setTextoDescuento(\"\");\n\t\tdetalle3i2.setDescuentoDs(0);\n\t\tdetalle3i2.setDescuentoGs(0);\n\t\tdetalles2i2.add(detalle3i2);\n\n\t\tImportacionFacturaDetalle detalle4i2 = new ImportacionFacturaDetalle();\n\t\tdetalle4i2.setCantidad(3);\n\t\tdetalle4i2.setCostoDs(5);\n\t\tdetalle4i2.setCostoGs(22500);\n\t\tdetalle4i2.setArticulo(art6_Valvoline);\n\t\tdetalle4i2.setTextoDescuento(\"\");\n\t\tdetalle4i2.setDescuentoDs(0);\n\t\tdetalle4i2.setDescuentoGs(0);\n\t\tdetalles2i2.add(detalle4i2);\n\n\t\tImportacionFacturaDetalle detalle3Fact2i2 = new ImportacionFacturaDetalle();\n\t\tdetalle3Fact2i2.setCantidad(6);\n\t\tdetalle3Fact2i2.setCostoDs(5);\n\t\tdetalle3Fact2i2.setCostoGs(22500);\n\t\tdetalle3Fact2i2.setArticulo(art7_Valvoline);\n\t\tdetalle3Fact2i2.setTextoDescuento(\"\");\n\t\tdetalle3Fact2i2.setDescuentoDs(0);\n\t\tdetalle3Fact2i2.setDescuentoGs(0);\n\t\tdetalles2i2.add(detalle3Fact2i2);\n\n\t\tImportacionFactura factura2i2 = new ImportacionFactura();\n\t\tfactura2i2.setNumero(\"001-001-0000201\");\n\t\tfactura2i2.setFechaOriginal(new Date());\n\t\tfactura2i2.setFechaCreacion(new Date());\n\t\tfactura2i2.setDetalles(detalles2i2);\n\t\tfactura2i2.setConfirmadoImportacion(false);\n\t\tfactura2i2.setConfirmadoAuditoria(false);\n\t\tfactura2i2.setConfirmadoVentas(false);\n\t\tfactura2i2.setConfirmadoAdministracion(false);\n\t\tfactura2i2.setPropietarioActual(1);\n\t\tfactura2i2.setFacturaVerificada(false);\n\t\tfactura2i2.setDescuentoDs(0);\n\t\tfactura2i2.setDescuentoGs(0);\n\t\tfactura2i2.setCondicionPago(tt.icp);\n\t\tfactura2i2.setMoneda(tt.dolar);\n\t\tfactura2i2.setObservacion(\"\");\n\t\tfactura2i2.setProveedor(prov1);\n\t\tfactura2i2.setRecepcionConfirmada(false);\n\t\tfactura2i2.setTotalAsignadoDs(10);\n\t\tfactura2i2.setTotalAsignadoGs(45000);\n\t\tfactura2i2.setTipoMovimiento(tt.tipoMov3);\n\t\tfacturasi2.add(factura2i2);\n\n\t\t// --------------------------------- Una factura con dos detalles\n\n\t\tSet<ImportacionFacturaDetalle> detalles_3i2 = new HashSet<ImportacionFacturaDetalle>();\n\n\t\tImportacionFacturaDetalle detalle_3i2 = new ImportacionFacturaDetalle();\n\t\tdetalle_3i2.setCantidad(10);\n\t\tdetalle_3i2.setCostoDs(5);\n\t\tdetalle_3i2.setCostoGs(22500);\n\t\tdetalle_3i2.setArticulo(art5_Valvoline);\n\t\tdetalle_3i2.setTextoDescuento(\"\");\n\t\tdetalle_3i2.setDescuentoDs(0);\n\t\tdetalle_3i2.setDescuentoGs(0);\n\t\tdetalles_3i2.add(detalle_3i2);\n\n\t\tImportacionFacturaDetalle detalle_4i2 = new ImportacionFacturaDetalle();\n\t\tdetalle_4i2.setCantidad(5);\n\t\tdetalle_4i2.setCostoDs(5);\n\t\tdetalle_4i2.setCostoGs(22500);\n\t\tdetalle_4i2.setArticulo(art6_Valvoline);\n\t\tdetalle_4i2.setTextoDescuento(\"\");\n\t\tdetalle_4i2.setDescuentoDs(0);\n\t\tdetalle_4i2.setDescuentoGs(0);\n\t\tdetalles_3i2.add(detalle_4i2);\n\n\t\tImportacionFacturaDetalle detalle3_Fact2i2 = new ImportacionFacturaDetalle();\n\t\tdetalle3_Fact2i2.setCantidad(5);\n\t\tdetalle3_Fact2i2.setCostoDs(5);\n\t\tdetalle3_Fact2i2.setCostoGs(22500);\n\t\tdetalle3_Fact2i2.setArticulo(art7_Valvoline);\n\t\tdetalle3_Fact2i2.setTextoDescuento(\"\");\n\t\tdetalle3_Fact2i2.setDescuentoDs(0);\n\t\tdetalle3_Fact2i2.setDescuentoGs(0);\n\t\tdetalles_3i2.add(detalle3_Fact2i2);\n\n\t\tImportacionFactura factura_2i2 = new ImportacionFactura();\n\t\tfactura_2i2.setNumero(\"001-001-0000203\");\n\t\tfactura_2i2.setFechaOriginal(new Date());\n\t\tfactura_2i2.setFechaCreacion(new Date());\n\t\tfactura_2i2.setDetalles(detalles_3i2);\n\t\tfactura_2i2.setConfirmadoImportacion(false);\n\t\tfactura_2i2.setConfirmadoAuditoria(false);\n\t\tfactura_2i2.setConfirmadoVentas(false);\n\t\tfactura_2i2.setConfirmadoAdministracion(false);\n\t\tfactura_2i2.setPropietarioActual(1);\n\t\tfactura_2i2.setFacturaVerificada(false);\n\t\tfactura_2i2.setDescuentoDs(0);\n\t\tfactura_2i2.setDescuentoGs(0);\n\t\tfactura_2i2.setCondicionPago(tt.icp);\n\t\tfactura_2i2.setMoneda(tt.dolar);\n\t\tfactura_2i2.setObservacion(\"\");\n\t\tfactura_2i2.setProveedor(prov1);\n\t\tfactura_2i2.setRecepcionConfirmada(false);\n\t\tfactura_2i2.setTotalAsignadoDs(10);\n\t\tfactura_2i2.setTotalAsignadoGs(45000);\n\t\tfactura_2i2.setTipoMovimiento(tt.tipoMov3);\n\t\tfacturasi2.add(factura_2i2);\n\n\t\t// ----------------------------- Gasto de Despacho\n\n\t\tImportacionResumenGastosDespacho despacho1i2 = new ImportacionResumenGastosDespacho();\n\t\tdespacho1i2.setNroDespacho(\"37E1R\");\n\t\tdespacho1i2.setNroLiquidacion(\"13008IC4000011B\");\n\t\tdespacho1i2.setFechaFacturaDespacho(new Date());\n\t\tdespacho1i2.setTipoCambio(4500);\n\t\tdespacho1i2.setValorCIFds(1200);\n\t\tdespacho1i2.setValorCIFgs(400000);\n\t\tdespacho1i2.setValorFOBds(7000);\n\t\tdespacho1i2.setValorFOBgs(31500000);\n\t\tdespacho1i2.setValorFleteDs(100);\n\t\tdespacho1i2.setValorFleteGs(450000);\n\t\tdespacho1i2.setValorSeguroDs(50);\n\t\tdespacho1i2.setValorSeguroGs(225000);\n\t\tdespacho1i2.setTotalIVAds(600);\n\t\tdespacho1i2.setTotalIVAgs(100000);\n\t\tdespacho1i2.setTotalGastosDs(800);\n\t\tdespacho1i2.setTotalGastosGs(900000);\n\t\tdespacho1i2.setCambioGastoDespacho(false);\n\t\tdespacho1i2.setCoeficiente(1.237);\n\t\tdespacho1i2.setCoeficienteAsignado(1.421);\n\t\tdespacho1i2.setDespachante(prov7);\n\n\t\t// ------------------------ Un Pedido Compra Confirmado con 7 detalles y\n\t\t// 2 facturas\n\n\t\tSet<ImportacionPedidoCompraDetalle> impPedCompDetsi2 = new HashSet<ImportacionPedidoCompraDetalle>();\n\n\t\tImportacionPedidoCompraDetalle impPedCompDeti2 = new ImportacionPedidoCompraDetalle();\n\t\timpPedCompDeti2.setArticulo(art1_Valvoline);\n\t\timpPedCompDeti2.setCantidad(5);\n\n\t\timpPedCompDeti2.setUltimoCostoDs(27000);\n\t\timpPedCompDeti2.setFechaUltimoCosto(new Date());\n\t\timpPedCompDeti2.setCostoProformaDs(1);\n\t\timpPedCompDeti2.setCostoProformaGs(4500);\n\t\timpPedCompDetsi2.add(impPedCompDeti2);\n\n\t\tImportacionPedidoCompraDetalle impPedCompDet2i2 = new ImportacionPedidoCompraDetalle();\n\t\timpPedCompDet2i2.setArticulo(art2_Valvoline);\n\t\timpPedCompDet2i2.setCantidad(5);\n\n\t\timpPedCompDet2i2.setUltimoCostoDs(27000);\n\t\timpPedCompDet2i2.setFechaUltimoCosto(new Date());\n\t\timpPedCompDet2i2.setCostoProformaDs(1);\n\t\timpPedCompDet2i2.setCostoProformaGs(4500);\n\t\timpPedCompDetsi2.add(impPedCompDet2i2);\n\n\t\tImportacionPedidoCompraDetalle impPedCompDet3i2 = new ImportacionPedidoCompraDetalle();\n\t\timpPedCompDet3i2.setArticulo(art3_Valvoline);\n\t\timpPedCompDet3i2.setCantidad(10);\n\n\t\timpPedCompDet3i2.setUltimoCostoDs(27000);\n\t\timpPedCompDet3i2.setFechaUltimoCosto(new Date());\n\t\timpPedCompDet3i2.setCostoProformaDs(2);\n\t\timpPedCompDet3i2.setCostoProformaGs(9000);\n\n\t\timpPedCompDetsi2.add(impPedCompDet3i2);\n\n\t\tImportacionPedidoCompraDetalle impPedCompDet4i2 = new ImportacionPedidoCompraDetalle();\n\t\timpPedCompDet4i2.setArticulo(art4_Valvoline);\n\t\timpPedCompDet4i2.setCantidad(10);\n\n\t\timpPedCompDet4i2.setUltimoCostoDs(27000);\n\t\timpPedCompDet4i2.setFechaUltimoCosto(new Date());\n\t\timpPedCompDet4i2.setCostoProformaDs(1);\n\t\timpPedCompDet4i2.setCostoProformaGs(4500);\n\t\timpPedCompDetsi2.add(impPedCompDet4i2);\n\n\t\tImportacionPedidoCompraDetalle impPedCompDet5i2 = new ImportacionPedidoCompraDetalle();\n\t\timpPedCompDet5i2.setArticulo(art5_Valvoline);\n\t\timpPedCompDet5i2.setCantidad(10);\n\n\t\timpPedCompDet5i2.setUltimoCostoDs(27000);\n\t\timpPedCompDet5i2.setFechaUltimoCosto(new Date());\n\t\timpPedCompDet5i2.setCostoProformaDs(1);\n\t\timpPedCompDet5i2.setCostoProformaGs(4500);\n\t\timpPedCompDetsi2.add(impPedCompDet5i2);\n\n\t\tImportacionPedidoCompraDetalle impPedCompDet6i2 = new ImportacionPedidoCompraDetalle();\n\t\timpPedCompDet6i2.setArticulo(art6_Valvoline);\n\t\timpPedCompDet6i2.setCantidad(5);\n\n\t\timpPedCompDet6i2.setUltimoCostoDs(27000);\n\t\timpPedCompDet6i2.setFechaUltimoCosto(new Date());\n\t\timpPedCompDet6i2.setCostoProformaDs(1);\n\t\timpPedCompDet6i2.setCostoProformaGs(9000);\n\t\timpPedCompDetsi2.add(impPedCompDet6i2);\n\n\t\tImportacionPedidoCompraDetalle impPedCompDet7i2 = new ImportacionPedidoCompraDetalle();\n\t\timpPedCompDet7i2.setArticulo(art7_Valvoline);\n\t\timpPedCompDet7i2.setCantidad(10);\n\n\t\timpPedCompDet7i2.setUltimoCostoDs(27000);\n\t\timpPedCompDet7i2.setFechaUltimoCosto(new Date());\n\t\timpPedCompDet7i2.setCostoProformaDs(1.05);\n\t\timpPedCompDet7i2.setCostoProformaGs(4500);\n\t\timpPedCompDetsi2.add(impPedCompDet7i2);\n\n\t\tImportacionPedidoCompra impPedComp1i2 = new ImportacionPedidoCompra();\n\t\timpPedComp1i2.setNumeroPedidoCompra(\"VAL-00002\");\n\t\timpPedComp1i2.setFechaCreacion(new Date());\n\t\timpPedComp1i2.setFechaCierre(new Date());\n\t\timpPedComp1i2.setConfirmadoImportacion(true);\n\t\timpPedComp1i2.setConfirmadoVentas(true);\n\t\timpPedComp1i2.setConfirmadoAdministracion(true);\n\t\timpPedComp1i2.setPropietarioActual(4);\n\t\timpPedComp1i2.setPedidoConfirmado(true);\n\t\timpPedComp1i2.setSubDiarioConfirmado(false);\n\t\timpPedComp1i2.setImportacionConfirmada(false);\n\t\timpPedComp1i2.setImportacionPedidoCompraDetalle(impPedCompDetsi2);\n\t\timpPedComp1i2.setImportacionFactura(facturasi2);\n\t\timpPedComp1i2.setResumenGastosDespacho(despacho1i2);\n\t\timpPedComp1i2.setEstado(tt.importacionEstado4);\n\t\timpPedComp1i2.setProveedor(prov1);\n\t\timpPedComp1i2.setProveedorCondicionPago(tt.icp);\n\t\timpPedComp1i2.setTipo(tt.tipoImportacion1);\n\t\timpPedComp1i2.setMoneda(tt.dolar);\n\t\timpPedComp1i2.setObservacion(\"PEDIDO COMPRA 1\");\n\t\timpPedComp1i2.setCambio(4500);\n\t\timpPedComp1i2.setTipoMovimiento(tt.tipoMov8);\n\t\timpPedComp1i2.setCifProrrateado(false);\n\t\tgrabarDB(impPedComp1i2);\n\n\t\t/**\n\t\tagenda.addDetalle(agenda.COTIZACION,\n\t\t\t\timpPedComp1i2.getNumeroPedidoCompra(), 0,\n\t\t\t\t\"Se creo un Pedido de Compra\", null);\n\n\t\tagenda.addDetalle(agenda.COTIZACION,\n\t\t\t\timpPedComp1i2.getNumeroPedidoCompra(), 0,\n\t\t\t\t\"Se importo una Orden de Compra\",\n\t\t\t\t\"/yhaguy/archivos/ordenCompras/Population.csv\");\n\n\t\tagenda.addDetalle(agenda.COTIZACION,\n\t\t\t\timpPedComp1i2.getNumeroPedidoCompra(), 0,\n\t\t\t\t\"Se envio un correo de Cotizacion\",\n\t\t\t\t\"/yhaguy/archivos/pedidoCompra/Population.pdf\");\n\n\t\tagenda.addDetalle(agenda.COTIZACION,\n\t\t\t\timpPedComp1i2.getNumeroPedidoCompra(), 0,\n\t\t\t\t\"Se importo la Proforma\",\n\t\t\t\t\"/yhaguy/archivos/proformas/Population.csv\");\n\n\t\tagenda.addDetalle(agenda.COTIZACION,\n\t\t\t\timpPedComp1i2.getNumeroPedidoCompra(), 0, \"Se derivo a Ventas\",\n\t\t\t\tnull);\n\n\t\tagenda.addDetalle(agenda.COTIZACION,\n\t\t\t\timpPedComp1i2.getNumeroPedidoCompra(), 0,\n\t\t\t\t\"Se derivo a Importacion\", null);\n\n\t\tagenda.addDetalle(agenda.COTIZACION,\n\t\t\t\timpPedComp1i2.getNumeroPedidoCompra(), 0,\n\t\t\t\t\"Se confirmo el Pedido\", null);\n\n\t\tagenda.addDetalle(agenda.COTIZACION,\n\t\t\t\timpPedComp1i2.getNumeroPedidoCompra(), 0,\n\t\t\t\t\"Se envio un correo de Confirmacion\",\n\t\t\t\t\"/yhaguy/archivos/pedidoCompra/PopulationConfirmado.pdf\");\n\n\t\tagenda.addDetalle(agenda.COTIZACION,\n\t\t\t\timpPedComp1i2.getNumeroPedidoCompra(), 0,\n\t\t\t\t\"Se derivo a Administracion\", null);\n\n\t\tagenda.addDetalle(agenda.COTIZACION,\n\t\t\t\timpPedComp1i2.getNumeroPedidoCompra(), 0,\n\t\t\t\t\"Se importo la Factura de Compra\",\n\t\t\t\t\"/yhaguy/archivos/facturaImportacion/Population.csv\");**/\n\n\t\t// --------------------------------------------------------------------------------------------------\n\n\t\t// ----------------------- Una Factura con dos detalles\n\n\t\tSet<ImportacionFacturaDetalle> detalles3i2 = new HashSet<ImportacionFacturaDetalle>();\n\t\tSet<ImportacionFactura> facturas2i2 = new HashSet<ImportacionFactura>();\n\n\t\tImportacionFacturaDetalle detalle1Fact3i2 = new ImportacionFacturaDetalle();\n\t\tdetalle1Fact3i2.setCantidad(10);\n\t\tdetalle1Fact3i2.setCostoDs(5);\n\t\tdetalle1Fact3i2.setCostoGs(22500);\n\t\tdetalle1Fact3i2.setArticulo(art4_reparo);\n\t\tdetalle1Fact3i2.setTextoDescuento(\"\");\n\t\tdetalle1Fact3i2.setDescuentoDs(0);\n\t\tdetalle1Fact3i2.setDescuentoGs(0);\n\t\tdetalles3i2.add(detalle1Fact3i2);\n\n\t\tImportacionFacturaDetalle detalle2Fact3i2 = new ImportacionFacturaDetalle();\n\t\tdetalle2Fact3i2.setCantidad(10);\n\t\tdetalle2Fact3i2.setCostoDs(5);\n\t\tdetalle2Fact3i2.setCostoGs(22500);\n\t\tdetalle2Fact3i2.setArticulo(art4_reparo);\n\t\tdetalle2Fact3i2.setTextoDescuento(\"\");\n\t\tdetalle2Fact3i2.setDescuentoDs(0);\n\t\tdetalle2Fact3i2.setDescuentoGs(0);\n\t\tdetalles3i2.add(detalle2Fact3i2);\n\n\t\tImportacionFacturaDetalle detalle3Fact3i2 = new ImportacionFacturaDetalle();\n\t\tdetalle3Fact3i2.setCantidad(10);\n\t\tdetalle3Fact3i2.setCostoDs(5);\n\t\tdetalle3Fact3i2.setCostoGs(22500);\n\t\tdetalle3Fact3i2.setArticulo(art4_reparo);\n\t\tdetalle3Fact3i2.setTextoDescuento(\"\");\n\t\tdetalle3Fact3i2.setDescuentoDs(0);\n\t\tdetalle3Fact3i2.setDescuentoGs(0);\n\t\tdetalles3i2.add(detalle3Fact3i2);\n\n\t\tImportacionFacturaDetalle detalle4Fact3i2 = new ImportacionFacturaDetalle();\n\t\tdetalle4Fact3i2.setCantidad(10);\n\t\tdetalle4Fact3i2.setCostoDs(5);\n\t\tdetalle4Fact3i2.setCostoGs(22500);\n\t\tdetalle4Fact3i2.setArticulo(art4_reparo);\n\t\tdetalle4Fact3i2.setTextoDescuento(\"\");\n\t\tdetalle4Fact3i2.setDescuentoDs(0);\n\t\tdetalle4Fact3i2.setDescuentoGs(0);\n\t\tdetalles3i2.add(detalle4Fact3i2);\n\n\t\tImportacionFactura factura3i2 = new ImportacionFactura();\n\t\tfactura3i2.setNumero(\"001-001-0000202\");\n\t\tfactura3i2.setFechaOriginal(new Date());\n\t\tfactura3i2.setFechaCreacion(new Date());\n\t\tfactura3i2.setDetalles(detalles3i2);\n\t\tfactura3i2.setConfirmadoImportacion(false);\n\t\tfactura3i2.setConfirmadoAuditoria(false);\n\t\tfactura3i2.setConfirmadoVentas(false);\n\t\tfactura3i2.setConfirmadoAdministracion(false);\n\t\tfactura3i2.setPropietarioActual(2);\n\t\tfactura3i2.setFacturaVerificada(false);\n\t\tfactura3i2.setDescuentoDs(0);\n\t\tfactura3i2.setDescuentoGs(0);\n\t\tfactura3i2.setCondicionPago(tt.icp);\n\t\tfactura3i2.setMoneda(tt.dolar);\n\t\tfactura3i2.setObservacion(\"\");\n\t\tfactura3i2.setProveedor(prov1);\n\t\tfactura3i2.setRecepcionConfirmada(false);\n\t\tfactura3i2.setTotalAsignadoDs(10);\n\t\tfactura3i2.setTotalAsignadoGs(45000);\n\t\tfactura3i2.setTipoMovimiento(tt.tipoMov3);\n\t\tfacturas2i2.add(factura3i2);\n\n\t\t// ----------------------------------------------------------------------------------------------\n\n\t\t// ----------------------------------- Una factura con dos detalles\n\n\t\tSet<ImportacionFacturaDetalle> detalles4i2 = new HashSet<ImportacionFacturaDetalle>();\n\n\t\tImportacionFacturaDetalle detalle1Fact4i2 = new ImportacionFacturaDetalle();\n\t\tdetalle1Fact4i2.setCantidad(18);\n\t\tdetalle1Fact4i2.setCostoDs(5);\n\t\tdetalle1Fact4i2.setCostoGs(22500);\n\t\tdetalle1Fact4i2.setArticulo(art5_Valvoline);\n\t\tdetalle1Fact4i2.setTextoDescuento(\"\");\n\t\tdetalle1Fact4i2.setDescuentoDs(0);\n\t\tdetalle1Fact4i2.setDescuentoGs(0);\n\t\tdetalles4i2.add(detalle1Fact4i2);\n\n\t\tImportacionFacturaDetalle detalle2Fact4i2 = new ImportacionFacturaDetalle();\n\t\tdetalle2Fact4i2.setCantidad(10);\n\t\tdetalle2Fact4i2.setCostoDs(5);\n\t\tdetalle2Fact4i2.setCostoGs(22500);\n\t\tdetalle2Fact4i2.setArticulo(art6_Valvoline);\n\t\tdetalle2Fact4i2.setTextoDescuento(\"\");\n\t\tdetalle2Fact4i2.setDescuentoDs(0);\n\t\tdetalle2Fact4i2.setDescuentoGs(0);\n\t\tdetalles4i2.add(detalle2Fact4i2);\n\n\t\tImportacionFacturaDetalle detalle3Fact4i2 = new ImportacionFacturaDetalle();\n\t\tdetalle3Fact4i2.setCantidad(10);\n\t\tdetalle3Fact4i2.setCostoDs(5);\n\t\tdetalle3Fact4i2.setCostoGs(22500);\n\t\tdetalle3Fact4i2.setArticulo(art7_Valvoline);\n\t\tdetalle3Fact4i2.setDescuentoDs(0);\n\t\tdetalle3Fact4i2.setDescuentoGs(0);\n\t\tdetalles4i2.add(detalle3Fact4i2);\n\n\t\tImportacionFactura factura4i2 = new ImportacionFactura();\n\t\tfactura4i2.setNumero(\"001-001-0000105\");\n\t\tfactura4i2.setFechaOriginal(new Date());\n\t\tfactura4i2.setFechaCreacion(new Date());\n\t\tfactura4i2.setDetalles(detalles4i2);\n\t\tfactura4i2.setConfirmadoImportacion(false);\n\t\tfactura4i2.setConfirmadoAuditoria(false);\n\t\tfactura4i2.setConfirmadoVentas(false);\n\t\tfactura4i2.setConfirmadoAdministracion(false);\n\t\tfactura4i2.setPropietarioActual(1);\n\t\tfactura4i2.setFacturaVerificada(false);\n\t\tfactura4i2.setDescuentoDs(0);\n\t\tfactura4i2.setDescuentoGs(0);\n\t\tfactura4i2.setCondicionPago(tt.icp);\n\t\tfactura4i2.setMoneda(tt.dolar);\n\t\tfactura4i2.setObservacion(\"\");\n\t\tfactura4i2.setProveedor(prov1);\n\t\tfactura4i2.setRecepcionConfirmada(false);\n\t\tfactura4i2.setTotalAsignadoDs(10);\n\t\tfactura4i2.setTotalAsignadoGs(45000);\n\t\tfactura4i2.setTipoMovimiento(tt.tipoMov3);\n\t\tfacturas2i2.add(factura4i2);\n\n\t\tAutoNumero autoNroImp = new AutoNumero();\n\t\tautoNroImp.setDescripcion(\"Importacion Pedido Compra\");\n\t\tautoNroImp.setFecha(new Date());\n\t\tautoNroImp.setKey(\"VAL\");\n\t\tautoNroImp.setNumero(2); // ultimo numero Pedido Compra\n\t\tgrabarDB(autoNroImp);\n\n\t\tlong referencia1 = 1111;\n\t\tArticuloReferencia art1Ref1 = new ArticuloReferencia();\n\t\tart1Ref1.setIdReferencia(referencia1);\n\t\tart1Ref1.setIdArticulo(1);\n\t\tgrabarDB(art1Ref1);\n\n\t\tArticuloReferencia art1Ref2 = new ArticuloReferencia();\n\t\tart1Ref2.setIdReferencia(referencia1);\n\t\tart1Ref2.setIdArticulo(3);\n\t\tgrabarDB(art1Ref2);\n\n\t\tlong referencia2 = 2222;\n\t\tArticuloReferencia art1Ref3 = new ArticuloReferencia();\n\t\tart1Ref3.setIdReferencia(referencia2);\n\t\tart1Ref3.setIdArticulo(2);\n\t\tgrabarDB(art1Ref3);\n\n\t\tArticuloReferencia art1Ref4 = new ArticuloReferencia();\n\t\tart1Ref4.setIdReferencia(referencia2);\n\t\tart1Ref4.setIdArticulo(4);\n\t\tgrabarDB(art1Ref4);\n\n\t\tArticuloReferencia art1Ref5 = new ArticuloReferencia();\n\t\tart1Ref5.setIdReferencia(referencia2);\n\t\tart1Ref5.setIdArticulo(6);\n\t\tgrabarDB(art1Ref5);\n\t\t\n\n\t\t/************************************* CUENTA CTE PROVEEDORES **********************************/\n\n\t\tCtaCteEmpresaMovimiento ccmp1 = new CtaCteEmpresaMovimiento();\n\t\tccmp1.setIdEmpresa(empresa1.getId());\n\t\tccmp1.setNroComprobante(\"FAC-CRE 001-002-0000540\");\n\t\tccmp1.setImporteOriginal(500000);\n\t\tccmp1.setSaldo(250000);\n\t\tccmp1.setFechaEmision(new Date());\n\t\tccmp1.setFechaVencimiento(new Date());\n\t\tccmp1.setTipoCaracterMovimiento(tt.ctaCteEmpresaCaracterMovimiento2);\n\t\tccmp1.setIdMovimientoOriginal(1);\n\t\tccmp1.setTipoMovimiento(tt.tipoMov2);\n\t\tccmp1.setSucursal(sucApp1);\n\t\tccmp1.setMoneda(tt.guarani);\n\t\tgrabarDB(ccmp1);\t\t\n\n\t\t/************************************** ORDEN PEDIDO GASTO **************************************/\n\n\t\tOrdenPedidoGastoDetalle ordDet1 = new OrdenPedidoGastoDetalle();\n\t\tordDet1.setDepartamento(dto1);\n\t\tordDet1.setCentroCosto(cc1);\n\t\tordDet1.setImporte(105000);\n\n\t\tOrdenPedidoGastoDetalle ordDet2 = new OrdenPedidoGastoDetalle();\n\t\tordDet2.setDepartamento(dto2);\n\t\tordDet2.setCentroCosto(cc4);\n\t\tordDet2.setImporte(150000);\n\n\t\tSet<OrdenPedidoGastoDetalle> ordDets1 = new HashSet<OrdenPedidoGastoDetalle>();\n\t\tordDets1.add(ordDet1);\n\t\tordDets1.add(ordDet2);\n\n\t\tOrdenPedidoGasto ped1 = new OrdenPedidoGasto();\n\t\tped1.setNumero(\"OPG-00001\");\n\t\tped1.setIdUsuarioCarga(1);\n\t\tped1.setNombreUsuarioCarga(\"Juan-Population\");\n\t\tped1.setDepartamento(dto3);\n\t\tped1.setSucursal(sucApp2);\n\t\tped1.setFechaCarga(new Date());\n\t\tped1.setDescripcion(\"COMPRAS EQUIPOS INFORMATICOS RR HH.\");\n\t\tped1.setEstado(\"AUT\");\n\t\tped1.setAutorizado(true);\n\t\tped1.setPresupuesto(false);\n\t\tped1.setIdUsuarioAutoriza(1);\n\t\tped1.setNombreUsuarioAutoriza(\"Supervisor\");\n\t\tped1.setFechaAutorizacion(new Date());\n\t\tped1.setProveedor(prov7);\n\t\tped1.setCondicionPago(tt.icp2);\n\t\tped1.setOrdenPedidoGastoDetalle(ordDets1);\n\n\t\tgrabarDB(ped1);\n\n\t\t/**\n\t\tagenda.addDetalle(agenda.NORMAL, ped1.getNumero(), 0,\n\t\t\t\t\"Se creo el OrdenPedidoGasto\", null);\n\n\t\tagenda.addDetalle(agenda.NORMAL, ped1.getNumero(), 0,\n\t\t\t\t\"Se modifico el OrdenPedidoGasto\", null);\n\n\t\tagenda.addDetalle(agenda.NORMAL, ped1.getNumero(), 0,\n\t\t\t\t\"Se autorizo el OrdenPedidoGasto\", null);**/\n\n\t\tOrdenPedidoGastoDetalle ordDet3 = new OrdenPedidoGastoDetalle();\n\t\tordDet3.setDepartamento(dto3);\n\t\tordDet3.setCentroCosto(cc3);\n\t\tordDet3.setImporte(300000);\n\n\t\tOrdenPedidoGastoDetalle ordDet4 = new OrdenPedidoGastoDetalle();\n\t\tordDet4.setDepartamento(dto4);\n\t\tordDet4.setCentroCosto(cc4);\n\t\tordDet4.setImporte(220000);\n\n\t\tSet<OrdenPedidoGastoDetalle> ordDets2 = new HashSet<OrdenPedidoGastoDetalle>();\n\t\tordDets2.add(ordDet3);\n\t\tordDets2.add(ordDet4);\n\n\t\tOrdenPedidoGasto ped2 = new OrdenPedidoGasto();\n\t\tped2.setNumero(\"OPG-00002\");\n\t\tped2.setIdUsuarioCarga(2);\n\t\tped2.setNombreUsuarioCarga(\"Maria-Population\");\n\t\tped2.setDepartamento(dto4);\n\t\tped2.setSucursal(sucApp1);\n\t\tped2.setFechaCarga(new Date());\n\t\tped2.setDescripcion(\"COMPRAS EQUIPOS INFORMATICOS PARA AUDITORIA\");\n\t\tped2.setEstado(\"PEN\");\n\t\tped2.setAutorizado(false);\n\t\tped2.setPresupuesto(false);\n\t\tped2.setIdUsuarioAutoriza(0);\n\t\tped2.setNombreUsuarioAutoriza(\"\");\n\t\tped2.setFechaAutorizacion(new Date());\n\t\tped2.setProveedor(prov8);\n\t\tped2.setCondicionPago(tt.icp);\n\t\tped2.setOrdenPedidoGastoDetalle(ordDets2);\n\n\t\tgrabarDB(ped2);\n\n\t\t/**\n\t\tagenda.addDetalle(agenda.NORMAL, ped2.getNumero(), 0,\n\t\t\t\t\"Se creo el OrdenPedidoGasto\", null);\n\n\t\tagenda.addDetalle(agenda.NORMAL, ped2.getNumero(), 0,\n\t\t\t\t\"Se modifico el OrdenPedidoGasto\", null);\n\n\t\tagenda.addDetalle(agenda.NORMAL, ped2.getNumero(), 0,\n\t\t\t\t\"Se autorizo el OrdenPedidoGasto\", null);**/\n\n\t\tAutoNumero autoNroPed = new AutoNumero();\n\t\tautoNroPed.setDescripcion(\"Orden Pedido Gasto\");\n\t\tautoNroPed.setFecha(new Date());\n\t\tautoNroPed.setKey(\"OPG\");\n\t\tautoNroPed.setNumero(2); // ultimo numero OrdenPedidoGasto\n\t\tgrabarDB(autoNroPed);\n\n\t\t/************************************** TRASNPORTE ************************************/\n\n\t\tTransporte transporte1 = new Transporte();\n\t\ttransporte1.setDescripcion(\"Camion\");\n\n\t\tTransporte transporte2 = new Transporte();\n\t\ttransporte2.setDescripcion(\"Auto\");\n\n\t\tTransporte transporte3 = new Transporte();\n\t\ttransporte3.setDescripcion(\"Moto\");\n\n\t\tTransporte transporte4 = new Transporte();\n\t\ttransporte4.setDescripcion(\"Camioneta\");\n\n\t\tgrabarDB(transporte1);\n\t\tgrabarDB(transporte2);\n\t\tgrabarDB(transporte3);\n\t\tgrabarDB(transporte4);\n\n\t\t/************************************** TRANSFERENCIA ************************************/\n\n\t\tTransferencia transferencia = new Transferencia();\n\t\ttransferencia.setNumero(\"TRF-00001\");\n\t\ttransferencia.setFechaCreacion(new Date());\n\t\ttransferencia.setFechaRecepcion(new Date());\n\t\ttransferencia.setFuncionarioCreador(funcionario1);\n\t\ttransferencia.setFuncionarioReceptor(funcionario5);\n\t\ttransferencia.setDepositoSalida(dep2);\n\t\ttransferencia.setDepositoEntrada(dep3);\n\n\t\tSet<TransferenciaDetalle> transferenciaDetalles = new HashSet<TransferenciaDetalle>();\n\n\t\tTransferenciaDetalle transfDetalle1 = new TransferenciaDetalle();\n\t\ttransfDetalle1.setCantidadPedida(11);\n\t\ttransfDetalle1.setCantidadEnviada(3);\n\t\ttransfDetalle1.setCosto(18000);\n\t\ttransfDetalle1.setArticulo(art4_Valvoline);\n\t\tTransferenciaDetalle transfDetalle2 = new TransferenciaDetalle();\n\t\ttransfDetalle2.setCantidadPedida(5);\n\t\ttransfDetalle2.setCantidadEnviada(5);\n\t\ttransfDetalle2.setCosto(22500);\n\t\ttransfDetalle2.setArticulo(art3_Valvoline);\n\t\t/*\n\t\t * TransferenciaDetalle transfDetalle3 = new TransferenciaDetalle();\n\t\t * transfDetalle3.setCantidadPedida(8);\n\t\t * transfDetalle3.setCantidadEnviada(7); transfDetalle3.setCosto(13500);\n\t\t * transfDetalle3.setArticulo(art6_Valvoline);\n\t\t */\n\n\t\ttransferenciaDetalles.add(transfDetalle1);\n\t\ttransferenciaDetalles.add(transfDetalle2);\n\t\t// transferenciaDetalles.add(transfDetalle3);\n\t\ttransferencia.setDetalles(transferenciaDetalles);\n\t\ttransferencia.setTransferenciaEstado(tt.transfEstado6);\n\t\ttransferencia.setTransferenciaTipo(tt.transfTipo1);\n\n\t\tgrabarDB(transferencia);\n\n\t\tTransferencia transferencia2 = new Transferencia();\n\t\ttransferencia2.setNumero(\"TRF-00002\");\n\t\ttransferencia2.setFechaCreacion(new Date());\n\t\ttransferencia2.setFechaRecepcion(new Date());\n\t\ttransferencia2.setFuncionarioCreador(funcionario1);\n\t\ttransferencia2.setFuncionarioReceptor(funcionario5);\n\t\ttransferencia2.setDepositoSalida(dep5);\n\t\ttransferencia2.setDepositoEntrada(dep4);\n\n\t\tSet<TransferenciaDetalle> transferenciaDetalles2 = new HashSet<TransferenciaDetalle>();\n\n\t\tTransferenciaDetalle transfDetalle4 = new TransferenciaDetalle();\n\t\ttransfDetalle4.setCantidadPedida(5);\n\t\ttransfDetalle4.setCantidadEnviada(5);\n\t\ttransfDetalle4.setCosto(9000);\n\t\ttransfDetalle4.setArticulo(art7_Valvoline);\n\t\t/*\n\t\t * TransferenciaDetalle transfDetalle5 = new TransferenciaDetalle();\n\t\t * transfDetalle5.setCantidadPedida(9);\n\t\t * transfDetalle5.setCantidadEnviada(9); transfDetalle5.setCosto(18000);\n\t\t * transfDetalle5.setArticulo(art4_Valvoline); TransferenciaDetalle\n\t\t * transfDetalle6 = new TransferenciaDetalle();\n\t\t * transfDetalle6.setCantidadPedida(8);\n\t\t * transfDetalle6.setCantidadEnviada(7); transfDetalle6.setCosto(13500);\n\t\t * transfDetalle6.setArticulo(articulo8);\n\t\t */\n\n\t\ttransferenciaDetalles2.add(transfDetalle4);\n\t\t// transferenciaDetalles2.add(transfDetalle5);\n\t\t// transferenciaDetalles2.add(transfDetalle6);\n\t\ttransferencia2.setDetalles(transferenciaDetalles2);\n\t\ttransferencia2.setTransferenciaEstado(tt.transfEstado2);\n\t\ttransferencia2.setTransferenciaTipo(tt.transfTipo1);\n\n\t\tgrabarDB(transferencia2);\n\n\t\tTransferencia transferencia3 = new Transferencia();\n\t\ttransferencia3.setNumero(\"TRF-00003\");\n\t\ttransferencia3.setFechaCreacion(new Date());\n\t\ttransferencia3.setFechaRecepcion(new Date());\n\t\ttransferencia3.setFuncionarioCreador(funcionario1);\n\t\ttransferencia3.setFuncionarioReceptor(funcionario5);\n\t\ttransferencia3.setDepositoSalida(dep2);\n\t\ttransferencia3.setDepositoEntrada(dep6);\n\n\t\tSet<TransferenciaDetalle> transferenciaDetalles3 = new HashSet<TransferenciaDetalle>();\n\n\t\tTransferenciaDetalle transfDetalle7 = new TransferenciaDetalle();\n\t\ttransfDetalle7.setCantidadPedida(5);\n\t\ttransfDetalle7.setCantidadEnviada(5);\n\t\ttransfDetalle7.setCosto(9000);\n\t\ttransfDetalle7.setArticulo(art3_Valvoline);\n\t\tTransferenciaDetalle transfDetalle8 = new TransferenciaDetalle();\n\t\ttransfDetalle8.setCantidadPedida(10);\n\t\ttransfDetalle8.setCantidadEnviada(10);\n\t\ttransfDetalle8.setCosto(22500);\n\t\ttransfDetalle8.setArticulo(art3_Valvoline);\n\t\t/*\n\t\t * TransferenciaDetalle transfDetalle9 = new TransferenciaDetalle();\n\t\t * transfDetalle9.setCantidadPedida(8);\n\t\t * transfDetalle9.setCantidadEnviada(7); transfDetalle9.setCosto(13500);\n\t\t * transfDetalle9.setArticulo(art3_Valvoline);\n\t\t */\n\n\t\ttransferenciaDetalles3.add(transfDetalle7);\n\t\ttransferenciaDetalles3.add(transfDetalle8);\n\t\t// transferenciaDetalles3.add(transfDetalle9);\n\t\ttransferencia3.setDetalles(transferenciaDetalles3);\n\t\ttransferencia3.setTransferenciaEstado(tt.transfEstado3); // para reparto\n\t\ttransferencia3.setTransferenciaTipo(tt.transfTipo2);\n\n\t\tgrabarDB(transferencia3);\n\n\t\tTransferencia transferencia4 = new Transferencia();\n\t\ttransferencia4.setNumero(\"TRF-00004\");\n\t\ttransferencia4.setFechaCreacion(new Date());\n\t\ttransferencia4.setFechaRecepcion(new Date());\n\t\ttransferencia4.setFuncionarioCreador(funcionario1);\n\t\ttransferencia4.setFuncionarioReceptor(funcionario5);\n\t\ttransferencia4.setDepositoSalida(dep2);\n\t\ttransferencia4.setDepositoEntrada(dep7);\n\n\t\tSet<TransferenciaDetalle> transferenciaDetalles4 = new HashSet<TransferenciaDetalle>();\n\n\t\tTransferenciaDetalle transfDetalle10 = new TransferenciaDetalle();\n\t\ttransfDetalle10.setCantidadPedida(5);\n\t\ttransfDetalle10.setCantidadEnviada(5);\n\t\ttransfDetalle10.setCosto(18000);\n\t\ttransfDetalle10.setArticulo(art4_Valvoline);\n\t\t/*\n\t\t * TransferenciaDetalle transfDetalle11 = new TransferenciaDetalle();\n\t\t * transfDetalle11.setCantidadPedida(15);\n\t\t * transfDetalle11.setCantidadEnviada(15);\n\t\t * transfDetalle11.setCosto(13500);\n\t\t * transfDetalle11.setArticulo(articulo8);\n\t\t */\n\n\t\ttransferenciaDetalles4.add(transfDetalle10);\n\t\t// transferenciaDetalles4.add(transfDetalle11);\n\t\ttransferencia4.setDetalles(transferenciaDetalles4);\n\t\ttransferencia4.setTransferenciaEstado(tt.transfEstado3); // para reparto\n\t\ttransferencia4.setTransferenciaTipo(tt.transfTipo2);\n\n\t\tgrabarDB(transferencia4);\n\n\t\t/************************************* RESERVAS **********************************/\n\n\t\tReserva reserva = new Reserva();\n\t\treserva.setDescripcion(\"reserva de prueba\");\n\t\treserva.setFecha(new Date());\n\t\treserva.setFuncionarioEmisor(funcionario1);\n\t\treserva.setDepositoSalida(dep2);\n\t\treserva.setTipoReserva(tt.reservaReparto);\n\t\treserva.setEstadoReserva(tt.estadoReservaFinalizada);\n\n\t\tReservaDetalle reservaDetalle1 = new ReservaDetalle();\n\t\treservaDetalle1.setCantidadReservada(3);\n\t\treservaDetalle1.setArticulo(art3_Valvoline);\n\t\t//reservaDetalle1\n\t\t//\t\t.setEstadoReserva(Configuracion.ESTADO_RESERVA_FINALIZADA);\n\t\tReservaDetalle reservaDetalle2 = new ReservaDetalle();\n\t\treservaDetalle2.setCantidadReservada(5);\n\t\treservaDetalle2.setArticulo(art4_Valvoline);\n\t\t//reservaDetalle2\n\t\t//\t\t.setEstadoReserva(Configuracion.ESTADO_RESERVA_FINALIZADA);\n\n\t\tSet<ReservaDetalle> reservaDetalles = new HashSet<ReservaDetalle>();\n\t\treservaDetalles.add(reservaDetalle1);\n\t\treservaDetalles.add(reservaDetalle2);\n\t\treserva.setDetalles(reservaDetalles);\n\n\t\tReserva reserva2 = new Reserva();\n\t\treserva2.setDescripcion(\"reserva de prueba\");\n\t\treserva2.setFecha(new Date());\n\t\treserva2.setFuncionarioEmisor(funcionario2);\n\t\treserva2.setDepositoSalida(dep3);\n\t\treserva2.setTipoReserva(tt.reservaReparto);\n\t\treserva2.setEstadoReserva(tt.estadoReservaActiva);\n\n\t\tReservaDetalle reservaDetalle3 = new ReservaDetalle();\n\t\treservaDetalle3.setCantidadReservada(4);\n\t\treservaDetalle3.setArticulo(art5_Valvoline);\n\t\t//reservaDetalle3.setEstadoReserva(Configuracion.ESTADO_RESERVA_ACTIVA);\n\t\t\n\t\tReservaDetalle reservaDetalle05 = new ReservaDetalle();\n\t\treservaDetalle05.setCantidadReservada(9);\n\t\treservaDetalle05.setArticulo(art4_reparo);\n\n\t\tSet<ReservaDetalle> reservaDetalles02 = new HashSet<ReservaDetalle>();\n\t\treservaDetalles02.add(reservaDetalle3);\n\t\treservaDetalles02.add(reservaDetalle05);\n\t\treserva2.setDetalles(reservaDetalles02);\n\n\t\tReserva reserva3 = new Reserva();\n\t\treserva3.setDescripcion(\"reserva de prueba\");\n\t\treserva3.setFecha(new Date());\n\t\treserva3.setFuncionarioEmisor(funcionario3);\n\t\treserva3.setDepositoSalida(dep4);\n\t\treserva3.setTipoReserva(tt.reservaReparto);\n\t\treserva3.setEstadoReserva(tt.estadoReservaActiva);\n\n\t\tReservaDetalle reservaDetalle4 = new ReservaDetalle();\n\t\treservaDetalle4.setCantidadReservada(2);\n\t\treservaDetalle4.setArticulo(art5_Valvoline);\n\t\t//reservaDetalle4.setEstadoReserva(Configuracion.ESTADO_RESERVA_ACTIVA);\n\n\t\tSet<ReservaDetalle> reservaDetalles3 = new HashSet<ReservaDetalle>();\n\t\treservaDetalles3.add(reservaDetalle4);\n\t\treserva3.setDetalles(reservaDetalles3);\n\n\t\treservaDetalle1.setArticuloDeposito(artDep3);// dep2 suc1\n\t\treservaDetalle2.setArticuloDeposito(artDep4); // dep7 suc3\n\t\treservaDetalle3.setArticuloDeposito(artDep5);// dep3 suc1\n\t\treservaDetalle4.setArticuloDeposito(artDep12);// dep4 suc2\n\n\t\tgrabarDB(reserva);\n\t\tgrabarDB(reserva2);\n\t\tgrabarDB(reserva3);\n\n\t\tgrabarDB(artDep3);\n\t\tgrabarDB(artDep4);\n\t\tgrabarDB(artDep5);\n\t\tgrabarDB(artDep12);\n\n\t\t/*\n\t\t * transferencia.setReserva(reserva2); grabarDB(transferencia);\n\t\t * \n\t\t * transferencia3.setReserva(reserva); grabarDB(transferencia3);\n\t\t */\n\n\t\t/****************************************** PAGOS *****************************************/\t\n\n\t\tSet<Funcionario> supvs = new HashSet<Funcionario>();\n\t\tsupvs.add(funcionario4);\n\t\tsupvs.add(funcionario5);\n\t\t\n\t\tCaja caj1 = new Caja();\n\t\tcaj1.setNumero(\"CAJ-00001\");\n\t\tcaj1.setDescripcion(\"CAJA PARA PAGOS A PROVEEDORES\");\n\t\tcaj1.setFecha(new Date());\n\t\tcaj1.setClasificacion(tt.cajaClasificacion1);\n\t\tcaj1.setTipo(tt.cajaTipo1);\n\t\tcaj1.setEstado(tt.cajaEstado1);\n\t\tcaj1.setResponsable(funcionario3);\n\t\tcaj1.setCreador(funcionario4);\n\t\tcaj1.setSupervisores(supvs);\n\t\tcaj1.setSucursal(sucApp1);\n\t\tcaj1.setDuracion(tt.cajaDuracion1);\n\t\tgrabarDB(caj1);\n\n\t\tAutoNumero autoNro2 = new AutoNumero();\n\t\tautoNro2.setDescripcion(\"Caja de Pago\");\n\t\tautoNro2.setFecha(new Date());\n\t\tautoNro2.setKey(\"CAJ\");\n\t\tautoNro2.setNumero(1); // ultimo numero Caja de Pago\n\t\tgrabarDB(autoNro2);\n\n\t\tCajaPeriodo cpp1 = new CajaPeriodo();\n\t\tcpp1.setNumero(\"CJP-00001\");\n\t\tcpp1.setVerificador(funcionario1);\n\t\tcpp1.setResponsable(funcionario3);\n\t\tcpp1.setApertura(new Date());\n\t\tcpp1.setCierre(new Date());\n\t\tcpp1.setCaja(caj1);\n\t\tgrabarDB(cpp1);\n\n\t\tAutoNumero autoNrocpp = new AutoNumero();\n\t\tautoNrocpp.setDescripcion(\"Caja Pago Periodo\");\n\t\tautoNrocpp.setFecha(new Date());\n\t\tautoNrocpp.setKey(\"CJP\");\n\t\tautoNrocpp.setNumero(1); // ultimo numero Caja Pago Periodo\n\t\tgrabarDB(autoNrocpp);\t\t\n\n\t\t/************************************* BANCOS **********************************/\n\n\t\tSet<BancoSucursal> bss = new HashSet<BancoSucursal>();\n\t\tSet<BancoSucursal> bss2 = new HashSet<BancoSucursal>();\n\n\t\tBancoSucursal bs = new BancoSucursal();\n\t\tbs.setDescripcion(\"CONTINENTAL - ENCARNACION\");\n\t\tbs.setDireccion(\"Las Mercedez 1080\");\n\t\tbs.setCorreo(\"[email protected]\");\n\t\tbs.setContacto(\"Carlos Mendez\");\n\t\tbs.setTelefono(\"700-480\");\n\t\tbss.add(bs);\n\n\t\tBancoSucursal bs2 = new BancoSucursal();\n\t\tbs2.setDescripcion(\"ITAU - CIUDAD DEL ESTE\");\n\t\tbs2.setDireccion(\"25 De Mayo 1970\");\n\t\tbs2.setCorreo(\"[email protected]\");\n\t\tbs2.setContacto(\"Jose Mendez\");\n\t\tbs2.setTelefono(\"700-580\");\n\t\tbss2.add(bs2);\n\n\t\tBanco bc = new Banco();\n\t\tbc.setDescripcion(\"CONTINENTAL\");\n\t\tbc.setDireccion(\"Avda Mcal Lopez 780\");\n\t\tbc.setTelefono(\"021-500-400\");\n\t\tbc.setCorreo(\"[email protected]\");\n\t\tbc.setContacto(\"Ricardo Perez\");\n\t\tbc.setSucursales(bss);\n\t\tgrabarDB(bc);\n\n\t\tBanco bc2 = new Banco();\n\t\tbc2.setDescripcion(\"ITAU\");\n\t\tbc2.setDireccion(\"Avda Mcal Lopez 1680\");\n\t\tbc2.setTelefono(\"021-500-600\");\n\t\tbc2.setCorreo(\"[email protected]\");\n\t\tbc2.setContacto(\"Juan Gonzalez\");\n\t\tbc2.setSucursales(bss2);\n\t\tgrabarDB(bc2);\n\t\t//para banco regional grupo elite\n\t\tBanco bc01 = new Banco();\n\t\tbc01.setDescripcion(\"Regional\");\n\t\tgrabarDB(bc01);\n\t\t\n\t\t\n\t\t// banco cuenta guaranies para regional ge\n\t\tBancoCta bcc01 = new BancoCta();\n\t\tbcc01.setBanco(bc01);\n\t\tbcc01.setFechaApertura(Misc.ParseFecha(\"11-11-2013 00:00:00\", \"dd-MM-YYYY HH:mm:ss\")); // setear fecha de apertura 11/11/2013 00:00:00\n\t\tbcc01.setMoneda(tt.guarani);\n\t\tbcc01.setNroCuenta(\"\");\n\t\tbcc01.setTipo(tt.bancoCtaCte);\n\t\tgrabarDB(bcc01);\n\t\t\n\t\t// banco cuenta dolares para regional ge\n\t\t\n\t\tBancoCta bcc02 = new BancoCta();\n\t\tbcc02.setBanco(bc01);\n\t\tbcc02.setFechaApertura(Misc.ParseFecha(\"11-11-2013 00:00:00\", \"dd-MM-YYYY HH:mm:ss\"));// setear fecha de apertura 11/11/2013 00:00:00\n\t\tbcc02.setMoneda(tt.dolar);\n\t\tbcc02.setNroCuenta(\"\");\n\t\tbcc02.setTipo(tt.bancoCtaCte);\n\t\tgrabarDB(bcc02);\n\t\t\n\t\t\n\n\t\t// Set<BancoMovimiento> mvs = new HashSet<BancoMovimiento>();\n\t\t// Set<BancoMovimiento> mvs2 = new HashSet<BancoMovimiento>();\n\n\t\tBancoMovimiento mvt1 = new BancoMovimiento();\n\t\tmvt1.setFecha(new Date());\n\t\tmvt1.setTipoMovimiento(tt.tipoMov27);\n\t\tmvt1.setMonto(1000000);\n\t\tmvt1.setNroReferencia(\"11111\");\n\t\t// mvs.add(mvt1);\n\n\t\tBancoMovimiento mvt2 = new BancoMovimiento();\n\t\tmvt2.setFecha(new Date());\n\t\tmvt2.setTipoMovimiento(tt.tipoMov28);\n\t\tmvt2.setMonto(2000000);\n\t\tmvt2.setNroReferencia(\"22222\");\n\t\t// mvs.add(mvt2);\n\n\t\tBancoMovimiento mvt3 = new BancoMovimiento();\n\t\tmvt3.setFecha(new Date());\n\t\tmvt3.setTipoMovimiento(tt.tipoMov29);\n\t\tmvt3.setMonto(2000000);\n\t\tmvt3.setNroReferencia(\"33333\");\n\t\t// mvs.add(mvt3);\n\n\t\tBancoMovimiento mvt4 = new BancoMovimiento();\n\t\tmvt4.setFecha(new Date());\n\t\tmvt4.setTipoMovimiento(tt.tipoMov30);\n\t\tmvt4.setMonto(2500);\n\t\tmvt4.setNroReferencia(\"11111\");\n\t\t// mvs.add(mvt4);\n\n\t\tBancoMovimiento mvt5 = new BancoMovimiento();\n\t\tmvt5.setFecha(new Date());\n\t\tmvt5.setTipoMovimiento(tt.tipoMov27);\n\t\tmvt5.setMonto(3000);\n\t\tmvt5.setNroReferencia(\"222222\");\n\t\t// mvs2.add(mvt5);\n\n\t\tBancoMovimiento mvt6 = new BancoMovimiento();\n\t\tmvt6.setFecha(new Date());\n\t\tmvt6.setTipoMovimiento(tt.tipoMov28);\n\t\tmvt6.setMonto(6000);\n\t\tmvt6.setNroReferencia(\"333333\");\n\t\t// mvs2.add(mvt6);\n\n\t\tBancoMovimiento mvt7 = new BancoMovimiento();\n\t\tmvt7.setFecha(new Date());\n\t\tmvt7.setTipoMovimiento(tt.tipoMov29);\n\t\tmvt7.setMonto(2500);\n\t\tmvt7.setNroReferencia(\"444444\");\n\t\t// mvs2.add(mvt7);\n\t\t\n\t\tBancoMovimiento mvt8 = new BancoMovimiento();\n\t\tmvt8.setFecha(new Date());\n\t\tmvt8.setTipoMovimiento(tt.tipoMov32);\n\t\tmvt8.setMonto(500000);\n\t\tmvt8.setNroReferencia(\"55555\");\n\t\t\n\t\tBancoMovimiento mvt9 = new BancoMovimiento();\n\t\tmvt9.setFecha(new Date());\n\t\tmvt9.setTipoMovimiento(tt.tipoMov33);\n\t\tmvt9.setMonto(956789);\n\t\tmvt9.setNroReferencia(\"66666\");\n\n\t\tAutoNumero autoNro3 = new AutoNumero();\n\t\tautoNro3.setDescripcion(\"Chequera\");\n\t\tautoNro3.setFecha(new Date());\n\t\tautoNro3.setKey(\"CHQ-00001\");\n\t\tautoNro3.setNumero(52640510); // ultimo numero Orden de Pago\n\t\tautoNro3.setNumeroHasta(52640600);\n\t\tgrabarDB(autoNro3);\n\n\t\tAutoNumero autoNro4 = new AutoNumero();\n\t\tautoNro4.setDescripcion(\"Chequera\");\n\t\tautoNro4.setFecha(new Date());\n\t\tautoNro4.setKey(\"CHQ-00002\");\n\t\tautoNro4.setNumero(50640500); // ultimo numero Orden de Pago\n\t\tautoNro4.setNumeroHasta(50640600);\n\t\tgrabarDB(autoNro4);\n\n\t\tAutoNumero autoNr5 = new AutoNumero();\n\t\tautoNr5.setDescripcion(\"Chequera\");\n\t\tautoNr5.setFecha(new Date());\n\t\tautoNr5.setKey(\"CHQ\");\n\t\tautoNr5.setNumero(2); // ultimo numero Orden de Pago\n\t\tgrabarDB(autoNr5);\n\n\t\tBancoCta bcc = new BancoCta();\n\t\tbcc.setBanco(bc);\n\t\tbcc.setFechaApertura(new Date());\n\t\tbcc.setMoneda(tt.dolar);\n\t\t// bcc.setMovimientos(mvs);\n\t\tbcc.setNroCuenta(\"\");\n\t\tbcc.setTipo(tt.bancoCtaCte);\n\t\tgrabarDB(bcc);\n\n\t\tmvt1.setNroCuenta(bcc);\n\t\tgrabarDB(mvt1);\n\t\tmvt2.setNroCuenta(bcc);\n\t\tgrabarDB(mvt2);\n\t\tmvt3.setNroCuenta(bcc);\n\t\tgrabarDB(mvt3);\n\t\tmvt8.setNroCuenta(bcc);\n\t\tgrabarDB(mvt8);\n\t\tmvt9.setNroCuenta(bcc);\n\t\tgrabarDB(mvt9);\n\n\t\tBancoCta bcc2 = new BancoCta();\n\t\tbcc2.setBanco(bc2);\n\t\tbcc2.setFechaApertura(new Date());\n\t\tbcc2.setMoneda(tt.dolar);\n\t\t// bcc2.setMovimientos(mvs2);\n\t\tbcc2.setNroCuenta(\"\");\n\t\tbcc2.setTipo(tt.bancoCtaCte);\n\t\tgrabarDB(bcc2);\n\t\t\n\t\tmvt4.setNroCuenta(bcc2);\n\t\tgrabarDB(mvt4);\n\t\tmvt5.setNroCuenta(bcc2);\n\t\tgrabarDB(mvt5);\n\t\tmvt6.setNroCuenta(bcc2);\n\t\tgrabarDB(mvt6);\n\t\tmvt7.setNroCuenta(bcc2);\n\t\tgrabarDB(mvt7);\n\n\t\tBancoCta bcc3 = new BancoCta();\n\t\tbcc3.setBanco(bc);\n\t\tbcc3.setFechaApertura(new Date());\n\t\tbcc3.setMoneda(tt.guarani);\n\t\tbcc3.setNroCuenta(\"\");\n\t\tbcc3.setTipo(tt.bancoCtaCte);\n\t\tgrabarDB(bcc3);\n\n\t\tBancoCheque bch = new BancoCheque();\n\t\tbch.setNumero(52600400);\n\t\tbch.setFechaEmision(new Date());\n\t\tbch.setFechaVencimiento(new Date());\n\t\tbch.setBeneficiario(\"Partner S.R.L\");\n\t\tbch.setMoneda(tt.dolar);\n\t\tbch.setMonto(1500);\n\t\tbch.setConcepto(\"ORDEN DE PAGO NRO: PAG-00054\");\n\t\tbch.setMovimiento(mvt1);\n\t\tgrabarDB(bch);\n\n\t\tBancoCheque bch2 = new BancoCheque();\n\t\tbch2.setNumero(52600401);\n\t\tbch2.setFechaEmision(new Date());\n\t\tbch2.setFechaVencimiento(new Date());\n\t\tbch2.setBeneficiario(\"Navemar S.A.\");\n\t\tbch2.setMoneda(tt.dolar);\n\t\tbch2.setMonto(3000);\n\t\tbch2.setConcepto(\"ORDEN DE PAGO NRO: PAG-00055\");\n\t\tbch2.setMovimiento(mvt2);\n\t\tgrabarDB(bch2);\n\n\t\tBancoCheque bch3 = new BancoCheque();\n\t\tbch3.setNumero(52600402);\n\t\tbch3.setFechaEmision(new Date());\n\t\tbch3.setFechaVencimiento(new Date());\n\t\tbch3.setBeneficiario(\"José Ma. Godoy\");\n\t\tbch3.setMoneda(tt.dolar);\n\t\tbch3.setMonto(5000);\n\t\tbch3.setConcepto(\"ORDEN DE PAGO NRO: PAG-00056\");\n\t\tbch3.setMovimiento(mvt3);\n\t\tgrabarDB(bch3);\n\n\t\tBancoCheque bch4 = new BancoCheque();\n\t\tbch4.setNumero(52600403);\n\t\tbch4.setFechaEmision(new Date());\n\t\tbch4.setFechaVencimiento(new Date());\n\t\tbch4.setBeneficiario(\"Sabo S.A.\");\n\t\tbch4.setMoneda(tt.dolar);\n\t\tbch4.setMonto(2500);\n\t\tbch4.setConcepto(\"ORDEN DE PAGO NRO: PAG-00057\");\n\t\tbch4.setMovimiento(mvt1);\n\t\tgrabarDB(bch4);\n\n\t\tBancoCheque bch5 = new BancoCheque();\n\t\tbch5.setNumero(52600404);\n\t\tbch5.setFechaEmision(new Date());\n\t\tbch5.setFechaVencimiento(new Date());\n\t\tbch5.setBeneficiario(\"Navemar S.A.\");\n\t\tbch5.setMoneda(tt.dolar);\n\t\tbch5.setMonto(3000);\n\t\tbch5.setConcepto(\"ORDEN DE PAGO NRO: PAG-00060\");\n\t\tbch5.setMovimiento(mvt2);\n\t\tgrabarDB(bch5);\n\n\t\tBancoCheque bch6 = new BancoCheque();\n\t\tbch6.setNumero(52600405);\n\t\tbch6.setFechaEmision(new Date());\n\t\tbch6.setFechaVencimiento(new Date());\n\t\tbch6.setBeneficiario(\"José Ma. Godoy\");\n\t\tbch6.setMoneda(tt.dolar);\n\t\tbch6.setMonto(5000);\n\t\tbch6.setConcepto(\"ORDEN DE PAGO NRO: PAG-00061\");\n\t\tbch6.setMovimiento(mvt3);\n\t\tgrabarDB(bch6);\n\n\t\tBancoCheque bch7 = new BancoCheque();\n\t\tbch7.setNumero(52600406);\n\t\tbch7.setFechaEmision(new Date());\n\t\tbch7.setFechaVencimiento(new Date());\n\t\tbch7.setBeneficiario(\"Sabo S.A.\");\n\t\tbch7.setMoneda(tt.dolar);\n\t\tbch7.setMonto(2500);\n\t\tbch7.setConcepto(\"ORDEN DE PAGO NRO: PAG-00062\");\n\t\tbch7.setMovimiento(mvt1);\n\t\tgrabarDB(bch7);\n\t\t\n\t\t//grabarDB(bEx1);\n\n\t\t/************************************* COMPRAS LOCALES **********************************/\n\n\t\tSet<CompraLocalFactura> cmlfs1 = new HashSet<CompraLocalFactura>();\n\t\tSet<CompraLocalFacturaDetalle> clfds1 = new HashSet<CompraLocalFacturaDetalle>();\n\n\t\tCompraLocalFacturaDetalle clfd1 = new CompraLocalFacturaDetalle();\n\t\tclfd1.setArticulo(art1_reparo);\n\t\tclfd1.setCantidad(10);\n\t\tclfd1.setCantidadRecibida(0);\n\t\tclfd1.setCostoGs(22500);\n\t\tclfd1.setCostoDs(5);\n\t\tclfd1.setImporteExentaDs(0);\n\t\tclfd1.setImporteExentaGs(0);\n\t\tclfd1.setImporteGravadaGs(225000);\n\t\tclfd1.setImporteGravadaDs(10);\n\t\tclfd1.setDescuentoGs(4500);\n\t\tclfd1.setDescuentoDs(1);\n\t\tclfd1.setTextoDescuento(\"20%\");\n\t\tclfd1.setImporteDescuentoDs(0);\n\t\tclfd1.setImporteDescuentoGs(0);\n\t\tclfd1.setDescuento(false);\n\t\tclfds1.add(clfd1);\n\n\t\tCompraLocalFacturaDetalle clfd2 = new CompraLocalFacturaDetalle();\n\t\tclfd2.setArticulo(art2_reparo);\n\t\tclfd2.setCantidad(10);\n\t\tclfd2.setCantidadRecibida(0);\n\t\tclfd2.setCostoGs(4500);\n\t\tclfd2.setCostoDs(1);\n\t\tclfd2.setImporteExentaDs(0);\n\t\tclfd2.setImporteExentaGs(0);\n\t\tclfd2.setImporteGravadaGs(45000);\n\t\tclfd2.setImporteGravadaDs(10);\n\t\tclfd2.setDescuentoGs(0);\n\t\tclfd2.setDescuentoDs(0);\n\t\tclfd2.setTextoDescuento(\"0\");\n\t\tclfd2.setImporteDescuentoDs(0);\n\t\tclfd2.setImporteDescuentoGs(0);\n\t\tclfd2.setDescuento(false);\n\t\tclfds1.add(clfd2);\n\n\t\tCompraLocalFacturaDetalle clfd3 = new CompraLocalFacturaDetalle();\n\t\tclfd3.setArticulo(art3_reparo);\n\t\tclfd3.setCantidad(10);\n\t\tclfd3.setCantidadRecibida(0);\n\t\tclfd3.setCostoGs(4500);\n\t\tclfd3.setCostoDs(1);\n\t\tclfd3.setImporteExentaDs(0);\n\t\tclfd3.setImporteExentaGs(0);\n\t\tclfd3.setImporteGravadaGs(45000);\n\t\tclfd3.setImporteGravadaDs(10);\n\t\tclfd3.setDescuentoGs(0);\n\t\tclfd3.setDescuentoDs(0);\n\t\tclfd3.setTextoDescuento(\"0\");\n\t\tclfd3.setImporteDescuentoDs(0);\n\t\tclfd3.setImporteDescuentoGs(0);\n\t\tclfd3.setDescuento(false);\n\t\tclfds1.add(clfd3);\n\n\t\tCompraLocalFacturaDetalle clfd4 = new CompraLocalFacturaDetalle();\n\t\tclfd4.setArticulo(art4_reparo);\n\t\tclfd4.setCantidad(10);\n\t\tclfd4.setCantidadRecibida(0);\n\t\tclfd4.setCostoGs(4500);\n\t\tclfd4.setCostoDs(1);\n\t\tclfd4.setImporteExentaDs(0);\n\t\tclfd4.setImporteExentaGs(0);\n\t\tclfd4.setImporteGravadaGs(45000);\n\t\tclfd4.setImporteGravadaDs(10);\n\t\tclfd4.setDescuentoGs(0);\n\t\tclfd4.setDescuentoDs(0);\n\t\tclfd4.setTextoDescuento(\"0\");\n\t\tclfd4.setImporteDescuentoDs(0);\n\t\tclfd4.setImporteDescuentoGs(0);\n\t\tclfd4.setDescuento(false);\n\t\tclfds1.add(clfd4);\n\n\t\tCompraLocalFactura cmlf = new CompraLocalFactura();\n\t\tcmlf.setCondicionPago(tt.icp);\n\t\tcmlf.setFechaCreacion(new Date());\n\t\tcmlf.setFechaOriginal(new Date());\n\t\tcmlf.setMoneda(tt.dolar);\n\t\tcmlf.setNumero(\"001-001-0000755\");\n\t\tcmlf.setTimbrado(t2);\n\t\tcmlf.setObservacion(\"SIN OBSERVACION..\");\n\t\tcmlf.setProveedor(prov1);\n\t\tcmlf.setSucursal(sucApp1);\n\t\tcmlf.setTipoCambio(4500);\n\t\tcmlf.setDetalles(clfds1);\n\t\tcmlf.setTipoMovimiento(tt.tipoMov1);\n\t\tcmlf.setDescuentoGs(4500);\n\t\tcmlf.setDescuentoDs(1);\n\t\tcmlf.setTotalAsignadoGs(265500);\n\t\tcmlf.setTotalAsignadoDs(59);\n\t\tcmlf.setRecepcionConfirmada(false);\n\t\tcmlfs1.add(cmlf);\n\n\t\tSet<CompraLocalGasto> cgs1 = new HashSet<CompraLocalGasto>();\n\n\t\tCompraLocalGasto cg1 = new CompraLocalGasto();\n\t\tcg1.setDescripcion(\"FLETE INTERNO..\");\n\t\tcg1.setMontoDs(10);\n\t\tcg1.setMontoGs(45000);\n\t\tcgs1.add(cg1);\n\n\t\tCompraLocalGasto cg2 = new CompraLocalGasto();\n\t\tcg2.setDescripcion(\"GASTO IMPREVISTO..\");\n\t\tcg2.setMontoDs(5);\n\t\tcg2.setMontoGs(22500);\n\t\tcgs1.add(cg2);\n\n\t\tSet<CompraLocalOrdenDetalle> cldets1 = new HashSet<CompraLocalOrdenDetalle>();\n\n\t\tCompraLocalOrdenDetalle cldet1 = new CompraLocalOrdenDetalle();\n\t\tcldet1.setArticulo(art1_reparo);\n\t\tcldet1.setCostoDs(5);\n\t\tcldet1.setCostoGs(22500);\n\t\tcldet1.setUltCostoGs(22000);\n\t\tcldet1.setCantidad(10);\n\t\tcldets1.add(cldet1);\n\n\t\tCompraLocalOrdenDetalle cldet2 = new CompraLocalOrdenDetalle();\n\t\tcldet2.setArticulo(art2_reparo);\n\t\tcldet2.setCostoDs(5);\n\t\tcldet2.setCostoGs(22500);\n\t\tcldet2.setUltCostoGs(22400);\n\t\tcldet2.setCantidad(10);\n\t\tcldets1.add(cldet2);\n\n\t\tCompraLocalOrdenDetalle cldet3 = new CompraLocalOrdenDetalle();\n\t\tcldet3.setArticulo(art3_reparo);\n\t\tcldet3.setCostoDs(5);\n\t\tcldet3.setCostoGs(22500);\n\t\tcldet3.setUltCostoGs(23000);\n\t\tcldet3.setCantidad(10);\n\t\tcldets1.add(cldet3);\n\n\t\tCompraLocalOrdenDetalle cldet4 = new CompraLocalOrdenDetalle();\n\t\tcldet4.setArticulo(art4_reparo);\n\t\tcldet4.setCostoDs(5);\n\t\tcldet4.setCostoGs(22500);\n\t\tcldet4.setUltCostoGs(22500);\n\t\tcldet4.setCantidad(10);\n\t\tcldets1.add(cldet4);\n\n\t\tCompraLocalOrden clped1 = new CompraLocalOrden();\n\t\tclped1.setNumero(\"OCL-00001\");\n\t\tclped1.setFechaCreacion(new Date());\n\t\tclped1.setTipoCambio(4500);\n\t\tclped1.setObservacion(\"SIN OBSERVACION..\");\n\t\tclped1.setCondicionPago(tt.icp);\n\t\tclped1.setMoneda(tt.dolar);\n\t\tclped1.setProveedor(prov3);\n\t\tclped1.setAutorizado(true);\n\t\tclped1.setSucursal(sucApp1);\n\t\tclped1.setDetalles(cldets1);\n\t\tclped1.setFacturas(cmlfs1);\n\t\tclped1.setTipoMovimiento(tt.tipoMov7);\n\t\tclped1.setResumenGastos(cgs1);\n\t\tclped1.setCerrado(false);\n\t\tgrabarDB(clped1);\n\n\t\tAutoNumero autoNr6 = new AutoNumero();\n\t\tautoNr6.setDescripcion(\"Orden de Compra\");\n\t\tautoNr6.setFecha(new Date());\n\t\tautoNr6.setKey(\"OCL\");\n\t\tautoNr6.setNumero(1); // ultimo numero Orden de Compra..\n\t\tgrabarDB(autoNr6);\n\n\t\t/**\n\t\tagenda.addDetalle(agenda.COTIZACION, clped1.getNumero(), 0,\n\t\t\t\t\"Se creo la Orden de Compra..\", null);\n\t\tagenda.addDetalle(agenda.COTIZACION, clped1.getNumero(), 0,\n\t\t\t\t\"Se autorizo la orden de compra..\", null);\n\t\tagenda.addDetalle(agenda.COTIZACION, clped1.getNumero(), 0,\n\t\t\t\t\"Se agrego una nueva factura nro: 001-001-0000755..\", null);\n\t\tagenda.addDetalle(agenda.COTIZACION, clped1.getNumero(), 0,\n\t\t\t\t\"Se agrego un gasto..\", null);\n\t\tagenda.addDetalle(\n\t\t\t\tagenda.COTIZACION,\n\t\t\t\tclped1.getNumero(),\n\t\t\t\t0,\n\t\t\t\t\"Se confirmo la recepcion de mercaderia de la factura nro: 001-001-0000755\",\n\t\t\t\tnull);**/\n\n\t\t/************************************* VEHICULOS **********************************/\n\t\t\n\t\t//vehiculos grupo Elite\n\t\tVehiculo vehiculo01 = new Vehiculo();\n\t\tvehiculo01.setDescripcion(\"NISSAN SUNNY - GRIS\");\n\t\tvehiculo01.setCodigo(\"001\");\n\t\tvehiculo01.setMarca(\"NISSAN\");\n\t\tvehiculo01.setModelo(\"SUNNY\");\n\t\tvehiculo01.setColor(\"GRIS\");\n\t\tvehiculo01.setChapa(\"PXF-207\");\n\t\tvehiculo01.setConductor(null);\n\t\tgrabarDB(vehiculo01);\n\t\t\n\t\tVehiculo vehiculo02 = new Vehiculo();\n\t\tvehiculo02.setDescripcion(\"KIA K2700\");\n\t\tvehiculo02.setCodigo(\"002\");\n\t\tvehiculo02.setMarca(\"KIA\");\n\t\tvehiculo02.setModelo(\"K2700\");\n\t\tvehiculo02.setColor(\"\");\n\t\tvehiculo02.setChapa(\"PVZ-191\");\n\t\tvehiculo02.setConductor(null);\n\t\tgrabarDB(vehiculo02);\n\t\t\n\t\tVehiculo vehiculo03 = new Vehiculo();\n\t\tvehiculo03.setDescripcion(\"NISSAN SUNNY - BLANCO\");\n\t\tvehiculo03.setCodigo(\"003\");\n\t\tvehiculo03.setMarca(\"NISSAN\");\n\t\tvehiculo03.setModelo(\"SUNNY\");\n\t\tvehiculo03.setColor(\"BLANCO\");\n\t\tvehiculo03.setChapa(\"PVJ-230\");\n\t\tvehiculo03.setConductor(null);\n\t\tgrabarDB(vehiculo03);\n\t\t\n\t\tVehiculo vehiculo04 = new Vehiculo();\n\t\tvehiculo04.setDescripcion(\"MOTO LEOPARD\");\n\t\tvehiculo04.setCodigo(\"004\");\n\t\tvehiculo04.setMarca(\"LEOPARD\");\n\t\tvehiculo04.setModelo(\"\");\n\t\tvehiculo04.setColor(\"\");\n\t\tvehiculo04.setChapa(\"019-BED\");\n\t\tvehiculo04.setConductor(null);\n\t\tgrabarDB(vehiculo04);\n\t\t\n\t\tVehiculo vehiculo1 = new Vehiculo();\n\t\tvehiculo1.setCodigo(\"001\");\n\t\tvehiculo1.setDescripcion(\"Envios rapidos\");\n\t\tvehiculo1.setConsumo(10.5);\n\t\tvehiculo1.setPeso(100);\n\t\tvehiculo1.setVolumen(200);\n\t\tvehiculo1.setMarca(\"TOYOTA\");\n\t\tvehiculo1.setModelo(\"DYNA 387 - 2009\");\n\t\tvehiculo1.setColor(\"BLANCO\");\n\t\tvehiculo1.setChapa(\"AAU-603\");\n\t\tvehiculo1.setObservaciones(\"\");\n\t\tvehiculo1.setConductor(funcionario1);\n\t\tgrabarDB(vehiculo1);\n\n\t\tVehiculo vehiculo2 = new Vehiculo();\n\t\tvehiculo2.setCodigo(\"002\");\n\t\tvehiculo2.setDescripcion(\"Envios lejanos\");\n\t\tvehiculo2.setConsumo(13.5);\n\t\tvehiculo2.setPeso(200);\n\t\tvehiculo2.setVolumen(400);\n\t\tvehiculo2.setMarca(\"FORD\");\n\t\tvehiculo2.setModelo(\"CARGO 2628e\");\n\t\tvehiculo2.setColor(\"BLANCO\");\n\t\tvehiculo2.setChapa(\"BHD-543\");\n\t\tvehiculo2.setObservaciones(\"\");\n\t\tvehiculo2.setConductor(funcionario2);\n\t\tgrabarDB(vehiculo2);\n\n\t\tVehiculo vehiculo3 = new Vehiculo();\n\t\tvehiculo3.setCodigo(\"003\");\n\t\tvehiculo3.setDescripcion(\"Envios lejanos\");\n\t\tvehiculo3.setConsumo(13.5);\n\t\tvehiculo3.setPeso(200);\n\t\tvehiculo3.setVolumen(400);\n\t\tvehiculo3.setMarca(\"HYUNDAI\");\n\t\tvehiculo3.setModelo(\"HD78\");\n\t\tvehiculo3.setColor(\"AZUL\");\n\t\tvehiculo3.setChapa(\"AGD-456\");\n\t\tvehiculo3.setObservaciones(\"\");\n\t\tvehiculo3.setConductor(funcionario3);\n\t\tgrabarDB(vehiculo3);\n\n\t\tVehiculo vehiculo4 = new Vehiculo();\n\t\tvehiculo4.setCodigo(\"004\");\n\t\tvehiculo4.setDescripcion(\"Envios lejanos\");\n\t\tvehiculo4.setConsumo(13.5);\n\t\tvehiculo4.setPeso(200);\n\t\tvehiculo4.setVolumen(400);\n\t\tvehiculo4.setMarca(\"HYUNDAI\");\n\t\tvehiculo4.setModelo(\"HD65\");\n\t\tvehiculo4.setColor(\"AZUL\");\n\t\tvehiculo4.setChapa(\"BAY-693\");\n\t\tvehiculo4.setObservaciones(\"\");\n\t\tvehiculo4.setConductor(funcionario4);\n\t\tgrabarDB(vehiculo4);\n\n\t\tVehiculo vehiculo5 = new Vehiculo();\n\t\tvehiculo5.setCodigo(\"005\");\n\t\tvehiculo5.setDescripcion(\"Envios urgentes\");\n\t\tvehiculo5.setConsumo(9);\n\t\tvehiculo5.setPeso(50);\n\t\tvehiculo5.setVolumen(100);\n\t\tvehiculo5.setMarca(\"HYUNDAI\");\n\t\tvehiculo5.setModelo(\"HD72\");\n\t\tvehiculo5.setColor(\"BLANCO\");\n\t\tvehiculo5.setChapa(\"OBE-777\");\n\t\tvehiculo5.setObservaciones(\"\");\n\t\tvehiculo5.setConductor(funcionario5);\n\t\tgrabarDB(vehiculo5);\n\n\t\t/************************************* REPARTOS **********************************/\n\n\t\tReparto reparto1 = new Reparto();\n\t\treparto1.setNumero(\"REP-YHA-0000001\");\n\t\treparto1.setFechaCreacion(new Date());\n\t\treparto1.setCreador(funcionario2);\n\t\treparto1.setVehiculo(vehiculo1);\n\t\treparto1.setRepartidor(funcionario1);\n\t\treparto1.setEstadoReparto(tt.estadoReparto3);\n\t\treparto1.setTipoReparto(tt.tipoReparto4);\n\t\treparto1.setSucursal(sucApp1);\n\n\t\tRepartoDetalle repartoDet1 = new RepartoDetalle();\n\t\trepartoDet1.setIdMovimiento(new Long(3));\n\t\trepartoDet1.setTipoMovimiento(tt.tipoMov17);\n\t\trepartoDet1.setObservacion(\"\");\n\t\tRepartoDetalle repartoDet2 = new RepartoDetalle();\n\t\trepartoDet2.setIdMovimiento(new Long(4));\n\t\trepartoDet2.setTipoMovimiento(tt.tipoMov18);\n\t\trepartoDet2.setObservacion(\"\");\n\n\t\tSet<RepartoDetalle> rep1detalles = new HashSet<RepartoDetalle>();\n\t\trep1detalles.add(repartoDet1);\n\t\trep1detalles.add(repartoDet2);\n\n\t\treparto1.setDetalles(rep1detalles);\n\t\tgrabarDB(reparto1);\n\n\t\tReparto reparto2 = new Reparto();\n\t\treparto2.setNumero(\"REP-0000002\");\n\t\treparto2.setFechaCreacion(new Date());\n\t\treparto2.setCreador(funcionario1);\n\t\treparto2.setVehiculo(vehiculo2);\n\t\treparto2.setRepartidor(funcionario2);\n\t\treparto2.setEstadoReparto(tt.estadoReparto1);\n\t\treparto2.setTipoReparto(tt.tipoReparto3);\n\t\treparto2.setSucursal(sucApp1);\n\t\treparto2.setProveedor(prov5);\n\t\treparto2.setCosto(150000);\n\n\t\tRepartoDetalle repartoDet3 = new RepartoDetalle();\n\t\trepartoDet3.setIdMovimiento(new Long(3));\n\t\trepartoDet3.setTipoMovimiento(tt.tipoMov6);\n\t\trepartoDet3.setObservacion(\"\");\n\n\t\tSet<RepartoDetalle> rep2detalles = new HashSet<RepartoDetalle>();\n\t\trep2detalles.add(repartoDet3);\n\n\t\treparto2.setDetalles(rep2detalles);\n\t\t//grabarDB(reparto2);\n\n\t\tReparto reparto3 = new Reparto();\n\t\treparto3.setNumero(\"REP-YHA-0000002\");\n\t\treparto3.setFechaCreacion(new Date());\n\t\treparto3.setCreador(funcionario1);\n\t\treparto3.setVehiculo(vehiculo3);\n\t\treparto3.setRepartidor(funcionario3);\n\t\treparto3.setEstadoReparto(tt.estadoReparto1);\n\t\treparto3.setTipoReparto(tt.tipoReparto4);\n\t\treparto3.setSucursal(sucApp1);\n\n\t\tRepartoDetalle repartoDet4 = new RepartoDetalle();\n\t\trepartoDet4.setIdMovimiento(new Long(1));\n\t\trepartoDet4.setTipoMovimiento(tt.tipoMov1);\n\t\trepartoDet4.setObservacion(\"\");\n\t\tRepartoDetalle repartoDet5 = new RepartoDetalle();\n\t\trepartoDet5.setIdMovimiento(new Long(2));\n\t\trepartoDet5.setTipoMovimiento(tt.tipoMov2);\n\t\trepartoDet5.setObservacion(\"\");\n\n\t\tSet<RepartoDetalle> rep3detalles = new HashSet<RepartoDetalle>();\n\t\trep3detalles.add(repartoDet4);\n\t\trep3detalles.add(repartoDet5);\n\n\t\treparto3.setDetalles(rep3detalles);\n\t\t//grabarDB(reparto3);\n\n\t\tAutoNumero autoNroRep = new AutoNumero();\n\t\tautoNroRep.setDescripcion(\"Reparto Yhaguy\");\n\t\tautoNroRep.setFecha(new Date());\n\t\tautoNroRep.setKey(\"REP-YHA\");\n\t\tautoNroRep.setNumero(2); // ultimo numero Venta Reparto Yhaguy\n\t\tgrabarDB(autoNroRep);\n\n\t\t/************************************* TIPOS DE CAMBIO **********************************/\n\n\t\tTipoCambio tc1 = new TipoCambio();\n\t\ttc1.setMoneda(tt.dolar);\n\t\ttc1.setTipoCambio(tt.tipoCambioOficial);\n\t\ttc1.setFecha(new Date());\n\t\ttc1.setCompra(4670);\n\t\ttc1.setVenta(4500);\n\t\tgrabarDB(tc1);\n\n\t\tTipoCambio tc2 = new TipoCambio();\n\t\ttc2.setMoneda(tt.dolar);\n\t\ttc2.setTipoCambio(tt.tipoCambioOficial);\n\t\ttc2.setCompra(4370);\n\t\ttc2.setVenta(4800);\n\t\tgrabarDB(tc2);\n\n\t\tTipoCambio tc3 = new TipoCambio();\n\t\ttc3.setMoneda(tt.peso);\n\t\ttc3.setTipoCambio(tt.tipoCambioOficial);\n\t\ttc3.setCompra(2500);\n\t\ttc3.setVenta(2700);\n\t\tgrabarDB(tc3);\n\n\t\tTipoCambio tc4 = new TipoCambio();\n\t\ttc4.setMoneda(tt.guarani);\n\t\ttc4.setTipoCambio(tt.tipoCambioOficial);\n\t\ttc4.setFecha(new Date());\n\t\ttc4.setCompra(1);\n\t\ttc4.setVenta(1);\n\t\tgrabarDB(tc4);\n\t\t\n\t\tTipoCambio tc5 = new TipoCambio();\n\t\ttc5.setMoneda(tt.guarani);\n\t\ttc5.setTipoCambio(tt.tipoCambioYhaguy);\n\t\ttc5.setFecha(new Date());\n\t\ttc5.setCompra(1);\n\t\ttc5.setVenta(1);\n\t\tgrabarDB(tc5);\n\n\t\tTipoCambio tc6 = new TipoCambio();\n\t\ttc6.setMoneda(tt.dolar);\n\t\ttc6.setTipoCambio(tt.tipoCambioYhaguy);\n\t\ttc6.setFecha(new Date());\n\t\ttc6.setCompra(4550);\n\t\ttc6.setVenta(4450);\n\t\tgrabarDB(tc6);\n\t\t\n\t\tTipoCambio tc7 = new TipoCambio();\n\t\ttc7.setMoneda(tt.peso);\n\t\ttc7.setTipoCambio(tt.tipoCambioYhaguy);\n\t\ttc7.setFecha(new Date());\n\t\ttc7.setCompra(2500);\n\t\ttc7.setVenta(2700);\n\t\tgrabarDB(tc7);\n\t\n\t\tTipoCambio tc8 = new TipoCambio();\n\t\ttc8.setMoneda(tt.euro);\n\t\ttc8.setTipoCambio(tt.tipoCambioOficial);\n\t\ttc8.setFecha(new Date());\n\t\ttc8.setCompra(6200);\n\t\ttc8.setVenta(5980);\n\t\tgrabarDB(tc8);\n\t\t\n\t\tTipoCambio tc9 = new TipoCambio();\n\t\ttc9.setMoneda(tt.euro);\n\t\ttc9.setTipoCambio(tt.tipoCambioYhaguy);\n\t\ttc9.setFecha(new Date());\n\t\ttc9.setCompra(6200);\n\t\ttc9.setVenta(5980);\n\t\tgrabarDB(tc9);\n\t\t\n\t\t// CHISTES\n\t\tDBChistes chistes = new DBChistes();\n\t\tchistes.chistes();\n\n\t\t/************************************* ARTICULO-GASTO **********************************/\n\n\t\tArticuloGasto artG1 = new ArticuloGasto();\n\t\tartG1.setCreadoPor(\"popu\");\n\t\tartG1.setVerificadoPor(\"popu\");\n\t\tartG1.setCuentaContable(ct16);\n\t\tartG1.setDescripcion(\"DERECHO ADUANERO\");\n\t\tgrabarDB(artG1);\n\n\t\tArticuloGasto artG2 = new ArticuloGasto();\n\t\tartG2.setCreadoPor(\"popu\");\n\t\tartG2.setVerificadoPor(\"popu\");\n\t\tartG2.setCuentaContable(ct17);\n\t\tartG2.setDescripcion(\"TAZA INDI\");\n\t\tgrabarDB(artG2);\n\n\t\tArticuloGasto artG3 = new ArticuloGasto();\n\t\tartG3.setCreadoPor(\"popu\");\n\t\tartG3.setVerificadoPor(\"popu\");\n\t\tartG3.setCuentaContable(ct18);\n\t\tartG3.setDescripcion(\"SERVICIO DE VALORACION ADUANERO\");\n\t\tgrabarDB(artG3);\n\n\t\tArticuloGasto artG4 = new ArticuloGasto();\n\t\tartG4.setCreadoPor(\"popu\");\n\t\tartG4.setVerificadoPor(\"popu\");\n\t\tartG4.setCuentaContable(ct19);\n\t\tartG4.setDescripcion(\"IVA DESPACHO IMPORTACIÓN\");\n\t\tgrabarDB(artG4);\n\n\t\tArticuloGasto artG5 = new ArticuloGasto();\n\t\tartG5.setCreadoPor(\"popu\");\n\t\tartG5.setVerificadoPor(\"popu\");\n\t\tartG5.setCuentaContable(ct20);\n\t\tartG5.setDescripcion(\"CANON INFORMÁTICO\");\n\t\tgrabarDB(artG5);\n\n\t\tArticuloGasto artG6 = new ArticuloGasto();\n\t\tartG6.setCreadoPor(\"popu\");\n\t\tartG6.setVerificadoPor(\"popu\");\n\t\tartG6.setCuentaContable(ct15);\n\t\tartG6.setDescripcion(\"GASTO DE IMPORTACION\");\n\t\tgrabarDB(artG6);\n\n\t\t/************************************* GASTO-DIRECTO **********************************/\n\n\t\tSet<GastoDetalle> gdets1 = new HashSet<GastoDetalle>();\n\n\t\tGastoDetalle gdet1 = new GastoDetalle();\n\t\tgdet1.setArticuloGasto(artG1);\n\t\tgdet1.setCantidad(2);\n\t\tgdet1.setCentroCosto(cc1);\n\t\tgdet1.setMontoDs(2);\n\t\tgdet1.setMontoGs(9000);\n\t\tgdet1.setObservacion(\"Test\");\n\t\tgdet1.setTipoIva(tt.tipoIva3);\n\n\t\tGastoDetalle gdet2 = new GastoDetalle();\n\t\tgdet2.setArticuloGasto(artG2);\n\t\tgdet2.setCantidad(2);\n\t\tgdet2.setCentroCosto(cc1);\n\t\tgdet2.setMontoDs(2);\n\t\tgdet2.setMontoGs(9000);\n\t\tgdet2.setObservacion(\"Test\");\n\t\tgdet2.setTipoIva(tt.tipoIva3);\n\n\t\tGastoDetalle gdet3 = new GastoDetalle();\n\t\tgdet3.setArticuloGasto(artG3);\n\t\tgdet3.setCantidad(2);\n\t\tgdet3.setCentroCosto(cc1);\n\t\tgdet3.setMontoDs(2);\n\t\tgdet3.setMontoGs(9000);\n\t\tgdet3.setObservacion(\"Test\");\n\t\tgdet3.setTipoIva(tt.tipoIva3);\n\n\t\tgdets1.add(gdet1);\n\t\tgdets1.add(gdet2);\n\t\tgdets1.add(gdet3);\n\n\t\tGasto g1 = new Gasto();\n\t\tg1.setTipoMovimiento(tt.tipoMov18);\n\t\tg1.setProveedor(prov8);\n\t\tg1.setFecha(new Date());\n\t\tg1.setTimbrado(t1);\n\t\tg1.setNumeroFactura(\"001-001-0000110\");\n\t\tg1.setNumeroTimbrado(\"150100\");\n\t\tg1.setCondicionPago(tt.icp);\n\t\tg1.setVencimiento(new Date());\n\t\tg1.setMoneda(tt.guarani);\n\t\tg1.setTipoCambio(1);\n\t\tg1.setTotalAsignado(400000);\n\t\tg1.setCajaPagoNumero(\"\");\n\t\tg1.setExisteComprobanteFisico(false);\n\t\tg1.setMotivoComprobanteFisico(\"\");\n\t\tg1.setObservacion(\"\");\n\t\tg1.setDetalles(gdets1);\n\t\tgrabarDB(g1);\n\n\t\t/************************************* Venta Pedido **********************************/\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tTipoMovimiento tm = tt.tipoMov18;\n\t\t\tif(i==2) {\n\t\t\t\ttm = tt.tipoMov17;\n\t\t\t}\n\t\t\t\n\t\t\tVenta vp = new Venta();\n\t\t\tvp.setTipoMovimiento(tm);\n\t\t\tvp.setModoVenta(tt.modoVenta_mostrador);\n\t\t\tvp.setSucursal(sucApp1);\n\t\t\tvp.setFecha(new Date());\n\t\t\tvp.setCuotas(0);\n\t\t\tvp.setCliente(cliente1);\n\t\t\tvp.setEstado(tt.venta_pedidoFacturado);\n\t\t\tvp.setMoneda(tt.guarani);\n\t\t\tvp.setTipoCambio(1);\n\t\t\tvp.setNumero(\"V-FAC-000000\" + (i + 1));\n\t\t\tvp.setNumeroPresupuesto(\"V-FAC-0000001\");\n\t\t\tvp.setObservacion(\"factura..\");\n\t\t\tvp.setAtendido(funcionario1);\n\t\t\tvp.setVendedor(funcionario1);\n\t\t\tvp.setCondicionPago(tt.icp);\n\t\t\tvp.setDeposito(dep1);\n\t\t\tif(i==1) {\n\t\t\t\tvp.setReserva(reserva2);\n\t\t\t}\n\t\t\t\n\t\t\tif(i==2) {\n\t\t\t\tvp.setReserva(reserva3);\n\t\t\t}\n\t\t\t\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\t\n\t\t\t\tVentaDetalle vpd = new VentaDetalle();\n\t\t\t\tvpd.setArticulo(art2_Valvoline);\n\t\t\t\tvpd.setDescripcion(art2_Valvoline.getDescripcion());\n\t\t\t\tvpd.setCantidad(10);\n\t\t\t\tvpd.setCostoUnitarioGs(5000);\n\t\t\t\tvpd.setPrecioVentaUnitarioGs(10000);\n\t\t\t\tvpd.setNombreRegla(\"Mayorista\");\n\t\t\t\tvpd.setDescuentoUnitarioGs(2000);\n\t\t\t\tvpd.setPrecioVentaFinalUnitarioGs(8000);\n\t\t\t\tvpd.setImpuestoUnitario(0);\n\t\t\t\tvpd.setPrecioVentaFinalGs(80000);\n\t\t\t\tvpd.setImpuestoFinal(0);\n\t\t\t\tvpd.setReservado(false);\n\n\t\t\t\tvp.getDetalles().add(vpd);\n\t\t\t}\n\t\t\t\n\t\t\tgrabarDB(vp);\t\t\t\n\t\t}\t\n\n\t\tAutoNumero autoNroVP = new AutoNumero();\n\t\tautoNroVP.setDescripcion(\"Venta Factura\");\n\t\tautoNroVP.setFecha(new Date());\n\t\tautoNroVP.setKey(\"V-FAC\");\n\t\tautoNroVP.setNumero(2); // ultimo numero Venta Presupuesto\n\t\tgrabarDB(autoNroVP);\n\n\t\t/*************************** Subdiarios *****************************/\n\n\t\tSubDiarioDetalle subDD1 = new SubDiarioDetalle();\n\t\tsubDD1.setTipo(1);\n\t\tsubDD1.setDescripcion(\"detalle1\");\n\t\tsubDD1.setImporte(200000);\n\n\t\tSubDiarioDetalle subDD2 = new SubDiarioDetalle();\n\t\tsubDD2.setTipo(2);\n\t\tsubDD2.setDescripcion(\"detalle2\");\n\t\tsubDD2.setImporte(200000);\n\n\t\tSet<SubDiarioDetalle> subdDetalles = new HashSet<SubDiarioDetalle>();\n\t\tsubdDetalles.add(subDD1);\n\t\tsubdDetalles.add(subDD2);\n\n\t\tSubDiario subdiario1 = new SubDiario();\n\t\tsubdiario1.setNumero(\"1\");\n\t\tsubdiario1.setFecha(new Date());\n\t\tsubdiario1.setDescripcion(\"test1\");\n\t\tsubdiario1.setDetalles(subdDetalles);\n\n\t\tgrabarDB(subdiario1);\n\n\t\tSubDiarioDetalle subDD3 = new SubDiarioDetalle();\n\t\tsubDD3.setTipo(1);\n\t\tsubDD3.setDescripcion(\"detalle3\");\n\t\tsubDD3.setImporte(500000);\n\n\t\tSubDiarioDetalle subDD4 = new SubDiarioDetalle();\n\t\tsubDD4.setTipo(2);\n\t\tsubDD4.setDescripcion(\"detalle4\");\n\t\tsubDD4.setImporte(500000);\n\n\t\tSet<SubDiarioDetalle> subdDetalles2 = new HashSet<SubDiarioDetalle>();\n\t\tsubdDetalles2.add(subDD3);\n\t\tsubdDetalles2.add(subDD4);\n\n\t\tSubDiario subdiario2 = new SubDiario();\n\t\tsubdiario2.setNumero(\"2\");\n\t\tsubdiario2.setFecha(new Date());\n\t\tsubdiario2.setDescripcion(\"test2\");\n\t\tsubdiario2.setDetalles(subdDetalles2);\n\n\t\tgrabarDB(subdiario2);\n\n\t\t/*************************** Alertas de prueba *********************/\n\n\t\t// dos alertas no canceladas\n\t\tAlerta alert = new Alerta();\n\t\talert.setFechaCreacion(new Date());\n\t\talert.setCreador(\"pepe\");\n\t\talert.setDescripcion(\"Diferencia de cantidades en articulos xx y xx.\");\n\t\talert.setDestino(\",juan,\");\n\t\talert.setCancelada(false);\n\t\talert.setTipo(tt.alertaUno);\n\t\talert.setNivel(tt.alertaError);\n\n\t\tAlerta alert2 = new Alerta();\n\t\talert2.setFechaCreacion(new Date());\n\t\talert2.setCreador(\"pepe\");\n\t\talert2.setDescripcion(\"Cambiaron cantidades enviadas en transferencia xx.\");\n\t\talert2.setDestino(\",juan,,celia,,evelin,\");\n\t\talert.setCancelada(false);\n\t\talert2.setTipo(tt.alertaMuchos);\n\t\talert2.setNivel(tt.alertaInformativa);\n\n\t\t// una alerta cancelada\n\t\tAlerta alert3 = new Alerta();\n\t\talert3.setFechaCreacion(new Date());\n\t\talert3.setCreador(\"pepe\");\n\t\talert3.setDescripcion(\"Diferencia de cantidades en articulos xx y xx.\");\n\t\talert3.setDestino(\",juan,\");\n\t\talert3.setFechaCancelacion(new Date());\n\t\talert3.setObservacion(\"La diferencia ha sido ajustada.\");\n\t\talert3.setCancelada(true);\n\t\talert3.setTipo(tt.alertaUno);\n\t\talert3.setNivel(tt.alertaError);\n\n\t\tgrabarDB(alert);\n\t\tgrabarDB(alert2);\n\t\tgrabarDB(alert3);\n\n\t\t// lsitas de destinos predefinidos para alertas\n\n\t\tAlertaDestinos dest1 = new AlertaDestinos();\n\t\tdest1.setDescripcion(Configuracion.DESTINOS_TRF_INTERNA);\n\t\tdest1.setDestinos(\",juan,,celia,\");\n\n\t\tAlertaDestinos dest2 = new AlertaDestinos();\n\t\tdest2.setDescripcion(Configuracion.DESTINOS_TRF_REMISION);\n\t\tdest2.setDestinos(\",juan,,celia,\");\n\n\t\tgrabarDB(dest1);\n\t\tgrabarDB(dest2);\n\n\t\t/*\n\t\t * for (int j = 0; j < 30 ; j++) { Alerta a = new Alerta();\n\t\t * a.setFechaCreacion(new Date()); a.setCreador(\"pepe\");\n\t\t * a.setDescripcion(\"Prueba \"+j); a.setDestino(\",juan,\");\n\t\t * a.setCancelada(false); a.setTipo(tt.alertaUno);\n\t\t * a.setNivel(tt.alertaError); grabarDB(a); }\n\t\t * \n\t\t * for (int j = 30; j < 60 ; j++) { Alerta a = new Alerta();\n\t\t * a.setFechaCreacion(new Date()); a.setCreador(\"pepe\");\n\t\t * a.setDescripcion(\"Prueba \"+j); a.setDestino(\",juan,\");\n\t\t * a.setCancelada(false); a.setTipo(tt.alertaUno);\n\t\t * a.setNivel(tt.alertaInformativa); grabarDB(a); }\n\t\t * \n\t\t * for (int j = 60; j < 90 ; j++) { Alerta a = new Alerta();\n\t\t * a.setFechaCreacion(new Date()); a.setCreador(\"pepe\");\n\t\t * a.setDescripcion(\"Prueba \"+j); a.setDestino(\",juan,,celia,,evelin,\");\n\t\t * a.setCancelada(true); a.setTipo(tt.alertaMuchos);\n\t\t * a.setNivel(tt.alertaError); grabarDB(a); }\n\t\t * \n\t\t * for (int j = 90; j < 120 ; j++) { Alerta a = new Alerta();\n\t\t * a.setFechaCreacion(new Date()); a.setCreador(\"pepe\");\n\t\t * a.setDescripcion(\"Prueba \"+j); a.setDestino(\",juan,,celia,,evelin,\");\n\t\t * a.setCancelada(true); a.setTipo(tt.alertaMuchos);\n\t\t * a.setNivel(tt.alertaInformativa); grabarDB(a); }\n\t\t */\n\n\t\tlong finTime = System.currentTimeMillis();\n\n\t\tSystem.out.println(\"----- FIN POPULATION ------\\n\" + \"Drop DB: \"\n\t\t\t\t+ (iniTime - ceroTime) + \"\\n\" + \"Cargar BD:\"\n\t\t\t\t+ (finTime - iniTime));\n\n\t\t/************************************* CTA CTE EMPRESA *******************************/\n\n\t\tCtaCteImputacion ccip1 = new CtaCteImputacion();\n\t\tccip1.setDondeImputa(\"FAC-CRE 001-00001\");\n\t\tccip1.setQuienImputa(\"REC 001762\");\n\t\tccip1.setMontoImputado(250000);\n\t\tccip1.setTipoImputacion(tt.ctaCtetipoImputacion1);\n\t\tccip1.setMoneda(tt.guarani);\n\t\tccip1.setTipoCambio(1);\n\t\tgrabarDB(ccip1);\n\n\t\tCtaCteEmpresaMovimiento ccem1 = new CtaCteEmpresaMovimiento();\n\t\tccem1.setIdEmpresa(empresa1.getId());\n\t\tccem1.setNroComprobante(\"FAC-CRE 001-001-0000130\");\n\t\tccem1.setImporteOriginal(250000);\n\t\tccem1.setSaldo(250000);\n\t\tccem1.setFechaEmision(new Date());\n\t\tccem1.setFechaVencimiento(new Date());\n\t\tccem1.setTipoCaracterMovimiento(tt.ctaCteEmpresaCaracterMovimiento1);\n\t\tccem1.setIdMovimientoOriginal(123);\n\t\tccem1.setTipoMovimiento(tt.tipoMov18);\n\t\tccem1.setSucursal(sucApp1);\n\t\tccem1.setMoneda(tt.guarani);\n\t\tccem1.getImputaciones().add(ccip1);\n\t\tgrabarDB(ccem1);\n\n\t\tCtaCteEmpresaMovimiento ccem2 = new CtaCteEmpresaMovimiento();\n\t\tccem2.setIdEmpresa(empresa1.getId());\n\t\tccem2.setNroComprobante(\"FAC-CRE 001-001-0000220\");\n\t\tccem2.setImporteOriginal(1300000);\n\t\tccem2.setSaldo(1300000);\n\t\tccem2.setFechaEmision(new Date());\n\t\tccem2.setFechaVencimiento(new Date());\n\t\tccem2.setTipoCaracterMovimiento(tt.ctaCteEmpresaCaracterMovimiento1);\n\t\tccem2.setIdMovimientoOriginal(321);\n\t\tccem2.setTipoMovimiento(tt.tipoMov18);\n\t\tccem2.setSucursal(sucApp1);\n\t\tccem2.setMoneda(tt.guarani);\n\t\tgrabarDB(ccem2);\n\n\t\tCtaCteEmpresaMovimiento ccem3 = new CtaCteEmpresaMovimiento();\n\t\tccem3.setIdEmpresa(empresa1.getId());\n\t\tccem3.setNroComprobante(\"FAC-CRE 001-001-0000330\");\n\t\tccem3.setImporteOriginal(800000);\n\t\tccem3.setSaldo(800000);\n\t\tccem3.setFechaEmision(new Date());\n\t\tccem3.setFechaVencimiento(new Date());\n\t\tccem3.setTipoCaracterMovimiento(tt.ctaCteEmpresaCaracterMovimiento1);\n\t\tccem3.setIdMovimientoOriginal(45);\n\t\tccem3.setTipoMovimiento(tt.tipoMov18);\n\t\tccem3.setSucursal(sucApp1);\n\t\tccem3.setMoneda(tt.guarani);\n\t\tgrabarDB(ccem3);\n\n\t\tCtaCteEmpresaMovimiento ccem4 = new CtaCteEmpresaMovimiento();\n\t\tccem4.setIdEmpresa(empresa1.getId());\n\t\tccem4.setNroComprobante(\"REC 001762\");\n\t\tccem4.setImporteOriginal(500000);\n\t\tccem4.setSaldo(-250000);\n\t\tccem4.setFechaEmision(new Date());\n\t\tccem4.setFechaVencimiento(new Date());\n\t\tccem4.setTipoCaracterMovimiento(tt.ctaCteEmpresaCaracterMovimiento1);\n\t\tccem4.setIdMovimientoOriginal(12);\n\t\tccem4.setTipoMovimiento(tt.tipoMov23);\n\t\tccem4.getImputaciones().add(ccip1);\n\t\tccem4.setSucursal(sucApp1);\n\t\tccem4.setMoneda(tt.guarani);\n\t\tgrabarDB(ccem4);\n\n\t\tCtaCteEmpresaMovimiento ccem5 = new CtaCteEmpresaMovimiento();\n\t\tccem5.setIdEmpresa(empresa1.getId());\n\t\tccem5.setNroComprobante(\"FAC-CON 001-001-0000150\");\n\t\tccem5.setImporteOriginal(1000);\n\t\tccem5.setSaldo(0);\n\t\tccem5.setFechaEmision(new Date());\n\t\tccem5.setFechaVencimiento(null);\n\t\tccem5.setTipoCaracterMovimiento(tt.ctaCteEmpresaCaracterMovimiento1);\n\t\tccem5.setIdMovimientoOriginal(60);\n\t\tccem5.setTipoMovimiento(tt.tipoMov17);\n\t\tccem5.setSucursal(sucApp1);\n\t\tccem5.setMoneda(tt.dolar);\n\t\tgrabarDB(ccem5);\n\n\t\tCtaCteEmpresaMovimiento ccem6 = new CtaCteEmpresaMovimiento();\n\t\tccem6.setIdEmpresa(empresa1.getId());\n\t\tccem6.setNroComprobante(\"FAC-CRE 001-001-0002310\");\n\t\tccem6.setImporteOriginal(1000);\n\t\tccem6.setSaldo(1000);\n\t\tccem6.setFechaEmision(new Date());\n\t\tccem6.setFechaVencimiento(new Date());\n\t\tccem6.setTipoCaracterMovimiento(tt.ctaCteEmpresaCaracterMovimiento2);\n\t\tccem6.setIdMovimientoOriginal(78);\n\t\tccem6.setTipoMovimiento(tt.tipoMov2);\n\t\tccem6.setSucursal(sucApp1);\n\t\tccem6.setMoneda(tt.dolar);\n\t\tgrabarDB(ccem6);\n\t\t\n\t\tCtaCteEmpresaMovimiento ccem7 = new CtaCteEmpresaMovimiento();\n\t\tccem7.setIdEmpresa(empresa1.getId());\n\t\tccem7.setNroComprobante(\"FAC-CRE 001-001-0008888\");\n\t\tccem7.setImporteOriginal(500);\n\t\tccem7.setSaldo(500);\n\t\tccem7.setFechaEmision(new Date());\n\t\tccem7.setFechaVencimiento(new Date());\n\t\tccem7.setTipoCaracterMovimiento(tt.ctaCteEmpresaCaracterMovimiento2);\n\t\tccem7.setIdMovimientoOriginal(654);\n\t\tccem7.setTipoMovimiento(tt.tipoMov2);\n\t\tccem7.setSucursal(sucApp1);\n\t\tccem7.setMoneda(tt.euro);\n\t\tgrabarDB(ccem7);\n\t\t\n\t\t\n\t\tArticuloPrecioReferencia apr1 = new ArticuloPrecioReferencia();\n\t\tapr1.setActivo(true);\n\t\tapr1.setArticulo(art2_Valvoline);\n\t\tapr1.setDescripcion(\"\");\n\t\tapr1.setMoneda(tt.guarani);\n\t\tapr1.setPrecio(20000);\n\t\t\n\t\tgrabarDB(apr1);\n\t\t\n\t\tArticuloPrecioReferencia apr2 = new ArticuloPrecioReferencia();\n\t\tapr2.setActivo(true);\n\t\tapr2.setArticulo(art4_reparo);\n\t\tapr2.setDescripcion(\"\");\n\t\tapr2.setMoneda(tt.guarani);\n\t\tapr2.setPrecio(50000);\n\t\t\n\t\t\n\t\t/**************************** NOTA DE CREDITO **************************/\n\t\t\n\t\tNotaCredito nc = new NotaCredito();\t\t\n\t\tnc.setTipoMovimiento(tt.tipoMov19);\n\t\tnc.setMoneda(tt.guarani);\n\t\tnc.setCliente(cliente1);\n\t\tnc.setFechaEmision(new Date());\n\t\tnc.setSucursal(sucApp1);\n\t\tnc.setNumero(\"NCV-0000001\");\n\t\tnc.setObservacion(\"ítems con Avería..\");\n\t\tnc.setImporteGs(450000);\n\t\tnc.setImporteDs(100);\n\t\tnc.setMotivo(tt.nc_motivo_descuento);\n\t\tgrabarDB(nc);\n\t\t\n\t\tgrabarDB(apr2);\n\t}",
"private boolean guardarAutorizacionReservaEmpresa(java.sql.Connection conExt, int indice, int CodEmp, int CodLoc, int CodCot){\n boolean blnRes=true;\n try{\n if(conExt!=null){\n if(moverItemsCotizacionReservaEmpresa(conExt,CodEmp, CodLoc, CodCot)){\n if(cambiarEstadoCotizacionAutorizada(conExt, CodEmp, CodLoc, CodCot,indice)){\n if(realizaMovimientoEntreEmpresas(conExt, CodEmp, CodLoc, CodCot)){\n //if(moverInvBodReservado(conLoc,intCodEmp,intCodLoc,intCodCot)){\n if(updateCotizacionProcesoSolicitaTransferenciaInventario(conExt, CodEmp, CodLoc, CodCot)){\n if(insertarCotizacionSeguimiento(conExt, CodEmp, CodLoc, CodCot)){\n if(blnGenSolTra ){\n Librerias.ZafMovIngEgrInv.ZafReaMovInv objReaMovInv = new Librerias.ZafMovIngEgrInv.ZafReaMovInv(objParSis,this ); \n Compras.ZafCom91.ZafCom91 objCom91 = new Compras.ZafCom91.ZafCom91(objParSis,1);\n arlDatSolTra = new ArrayList();\n arlDatSolTra=(objCom91.insertarSolicitudTransferenciaReservas(conExt,arlSolTraDat,CodEmp,CodLoc,CodCot));\n System.out.println(\"GeneraSolicitud\" + arlDatSolTra.toString());\n if(isSolTraInv(conExt,CodEmp,CodLoc,CodCot)){\n if(objReaMovInv.inicia(conExt, arlDat,datFecAux,arlDatSolTra,null)){\n if(modificaDetalleCotizacionCantidadesLocalesRemotasDos(conExt, CodEmp,CodLoc, CodCot)){\n System.out.println(\"OK PRESTAMOS\");\n }\n else{\n MensajeInf(\"Error al Guardar: Reservar mercaderia local\");\n System.out.println(\"GeneraSolicitud NO reservo local.....\");\n blnRes=false;\n }\n }else{\n MensajeInf(\"Error al Guardar: Prestamos entre empresas\");\n System.out.println(\"GeneraSolicitud No Genero la solicitud.....\");\n blnRes=false;\n }\n }\n else{\n MensajeInf(\"Error al Guardar: La solicitud de transferencia\");\n System.out.println(\"No Genero la solicitud.....\");\n blnRes=false;\n }\n objParSis.setCodigoMenu(intCodMnuResVenAut); // AUTORIZACIONES \n objReaMovInv = null;\n objCom91 = null;\n\n }\n else{\n /* Todo es local */\n// if(modificaDetalleCotizacionCantidadesLocalesRemotas(conExt, CodEmp, CodLoc, CodCot)){\n// System.out.println(\"OK PRESTAMOS\");\n// }\n// else{\n// MensajeInf(\"Error al Guardar: Reservar mercaderia local\");\n// System.out.println(\"GeneraSolicitud NO reservo local.....\");\n// blnRes=false;\n// }\n if(cotizacionSinSolicitudTransferencia(conExt,CodEmp,CodLoc,CodCot)){\n if(ponerItemsComoReservaLocal(conExt,CodEmp,CodLoc,CodCot)){\n System.out.println(\"generarEgresoMercaderiaReservada OK\");\n }\n else{\n MensajeInf(\"Error al Guardar: Reservar mercaderia local\");\n System.out.println(\"GeneraSolicitud NO reservo local.....\");\n blnRes=false;\n }\n }\n }\n /* Genera Egreso de reserva */\n }else{blnRes=false;MensajeInf(\"Error al Guardar: Insertando Cotizacion en el seguimiento\");}\n }\n //}\n }else{blnRes=false;MensajeInf(\"Error al Guardar: Realizando Movimiento Entre Empresas \");}\n }\n }\n }\n }\n catch(Exception Evt){ \n objUti.mostrarMsgErr_F1(this, Evt);\n blnRes=false;\n } \n return blnRes;\n }",
"public void gerarReceitaLiquidaIndiretaDeEsgoto() \n\t\t\tthrows ErroRepositorioException;",
"public static void main(String[] args) {\n //System.out.println(CompradorDBOld.searchByNamePreparedStatement(\"son\"));\n //CompradorDBOld.updatePreparedStatement(new Comprador(1, \"147.852.336-78\", \"Maria Jesus de Lima Menezes\"));\n //System.out.println(CompradorDBOld.searchByNomeCallableStatement(\"son\"));\n //System.out.println(CompradorDBOld.searchByNameRowSet(\"welson\"));\n //CompradorDBOld.updateRowSet(new Comprador(1, \"147.852.336-78\", \"Maria Jesus de Lima Menezes\"));\n // CompradorDBOld.updateRowSetCached(new Comprador(1, \"147.852.336-78\", \"Maria Jesus de Lima Menezes\".toUpperCase()));\n //selecionarTudo();\n try {\n CompradorDBOld.saveTransaction();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void menuEncomendasTrans(String username){\n ArrayList<Encomenda> encs=b_dados.buscaEncomendasTransportadora(username);\n if(encs.isEmpty()){\n System.out.println(\"Não existem encomendas disponiveis na sua localização\");\n }\n else{\n Scanner s=new Scanner(System.in);\n while(!encs.isEmpty()) {\n b_dados.buscaEncomendasDisplay(encs);\n System.out.println(\"Digite o código de encomenda que a sua empresa está pronta a entregar\");\n String opcao = s.nextLine();\n int check=0;\n for (Encomenda e : encs) {\n if (e.getcodEncomenda().equals(opcao)) {\n String cod = b_dados.getTrasnportadoras().get(username).getCodEmpresa();\n String nome = b_dados.getTrasnportadoras().get(username).getNome();\n double kms=b_dados.getTrasnportadoras().get(username).getGps().distLocalizacao(b_dados.getLoja(e.getcodLoja()).getGps())+ b_dados.getTrasnportadoras().get(username).getGps().distLocalizacao(b_dados.getUtilizador(e.getcodUtilizador()).getGps());\n b_dados.novaEntrega(cod, nome, e.getcodEncomenda(), e.getcodUtilizador(), e.getcodLoja(), e.getPeso(), e.getLinhas(),kms);\n b_dados.removeEncomendaDisponivel(e);\n check=1;\n encs=b_dados.buscaEncomendasTransportadora(username);\n break;\n }\n }\n if(check==0){\n System.out.println(\"Código errado ou não existe!\");\n }\n }\n System.out.println(\"Não existem mais encomendas disponiveis!\");\n }\n }",
"static boolean ejecutarAccion(int popcion)throws java.io.IOException{\n\n\t\tboolean noSalir = true;\n\t\t\n\t\tif(popcion >= 4 && popcion <= 11 && SELECTNOW == -1){\n\t\t\tif(lista.size() == 0){\n\t\t\t\tout.println(\"!/*!/* No hay lavadoras registradas, y ademas... !/*!/*\");\n\t\t\t}\n\t\t\tout.println(\"!/*!/* No se ha seleccionado ninguna lavadora !/*!/*\");\n\t\t\treturn noSalir;\n\t\t}\n\t\t\n\t\tif(popcion >= 2 && popcion <= 3 && lista.size() == 0){\n\t\t\tout.println(\"!/*!/* No hay lavadoras registradas !/*!/*\");\n\t\t\treturn noSalir;\n\t\t}\n\t\t\n\t\tswitch(popcion){\n\t\t\n\t\t\tcase 1: // Crear lavadora:\n\t\t\t\t\n\t\t\t\tlista.add(new Lavadora());\t\n\t\t\t\tout.println(\"!/*!/* Se ha creado una nueva lavadora !/*!/*\");\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 2:\t// Mostar lavadoras:\n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < lista.size(); i++){\n\t\t\t\t\tout.println(\"Lavadora \" + lista.get(i) + \"\\n\");\n\t\t\t\t}\t\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 3: // Seleccionar lavadora:\n\t\t\t\tboolean resul;\n\t\t\t\tfor(int i = 0; i < lista.size(); i++){\n\t\t\t\t\tout.println((i+1) + \". Lavadora \" + (i+1));\n\t\t\t\t}\n\t\t\t\tdo{\n\t\t\t\t\tout.print(\" Seleccione una lavadora \");\n\t\t\t\t\tSELECTNOW =\tInteger.parseInt(in.readLine());\n\t\t\t\t\t\n\t\t\t\t\tresul = SELECTNOW < 1 || SELECTNOW > lista.size();\n\t\t\t\t\t\n\t\t\t\t\tif(resul){\n\t\t\t\t\t\tout.println(\"\\n!/*!/* Lavadora seleccionada no existe !/*!/*\");\n\t\t\t\t\t}\n\t\t\t\t}while(resul);\n\t\t\t\t\n\t\t\t\tbreak;\n\t\n\t\t\tcase 4: // Cargar agua:\n\t\t\t\t\tout.println(lista.get(SELECTNOW-1).cargarAgua());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 5: // Cargar ropa:\n\t\t\t\tint tipoRopa;\n\t\t\t\tdo{\n\t\t\t\t\tout.println(\"Ingrese el tipo de ropa\\n1. Sucia\\n2. Ligeramente sucia\\n3. Muy sucia\\n4. Limpia\");\n\t\t\t\t\ttipoRopa = Integer.parseInt(in.readLine());\t\n\t\t\t\t}while(tipoRopa < 1 || tipoRopa > 4);\n\t\t\t\t\n\t\t\t\tlista.get(SELECTNOW-1).cargarRopa(tipoRopa);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 6: // Cargar detergente:\n\t\t\t\tlista.get(SELECTNOW-1).cargarDetergente();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 7: // Especificar tiempo:\n\t\t\t\tout.println(lista.get(SELECTNOW-1).especificarTiempo());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 8: // Drenar:\n\t\t\t\tlista.get(SELECTNOW-1).drenar();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 9: // Mostrar estado de la lavadora:\n\t\t\t\tout.println(lista.get(SELECTNOW-1));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 10: // Mostrar estado de la ropa:\n\t\t\t\tswitch(lista.get(SELECTNOW-1).getTipoRopa()){\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tout.println(\"Sucia\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tout.println(\"Ligeramente sucia\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tout.println(\"Muy sucia\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\tout.println(\"Limpia\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tout.println(\"Opcion invalida\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 11: // Pausar o reanudar:\n\t\t\t\tlista.get(SELECTNOW-1).pausarReanudarLavadora();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 12: // Probar sistema.\n\t\t\t\tfor(int i = 0; i < 5; i++){\n\t\t\t\t\tlista.add(new Lavadora());\n\t\t\t\t}\n\t\t\t\tout.println(\" ********************************\");\n\t\t\t\tout.println(\" Modo prueba: Se han creado 5 Lavadoras\");\n\t\t\t\tout.println(\" ********************************\");\n\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\tcase 13: // Reiniciar sistema.\n\t\t\t\tlista = new ArrayList<Lavadora>();\n\t\t\t\tSELECTNOW = -1;\n\t\t\t\t\n\t\t\t\tout.println(\" ********************************\");\n\t\t\t\tout.println(\" Se reincio el sistema\");\n\t\t\t\tout.println(\" ********************************\");\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 22:\n\t\t\t\t\n\t\t\t\tnoSalir = false;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tdefault:\n\t\t\t\tout.println(\"Opcion no valida\");\n\t\t\t\tbreak;\n\t\t}\n\t\treturn noSalir;\n\t}",
"public void consult() throws Exception {\n\t// TODO Consult\n\ttry {\n\t String page = \"con_contadorConsult.jsp\";// defina aqui a p?gina que deve ser chamada \n\t getResponse().sendRedirect(page); \n\t} catch (Exception e){} \n }",
"public void verificarExistenciaCELPE(String numeroCelp, Integer idSetorComercial) throws ControladorException {\r\n\r\n\t\tCollection setorComerciais = null;\r\n\t\tif (idSetorComercial != null) {\r\n\t\t\tFiltroSetorComercial filtroSetorComercial = new FiltroSetorComercial();\r\n\t\t\tfiltroSetorComercial\r\n\t\t\t\t\t.adicionarParametro(new ParametroSimples(FiltroSetorComercial.ID, new Integer(idSetorComercial)));\r\n\t\t\tfiltroSetorComercial.adicionarCaminhoParaCarregamentoEntidade(FiltroSetorComercial.MUNICIPIO);\r\n\t\t\tsetorComerciais = getControladorUtil().pesquisar(filtroSetorComercial, SetorComercial.class.getName());\r\n\t\t}\r\n\r\n\t\tFiltroImovel filtroImovel = new FiltroImovel();\r\n\t\tif (setorComerciais != null && !setorComerciais.isEmpty()) {\r\n\t\t\tSetorComercial setorComercial = (SetorComercial) setorComerciais.iterator().next();\r\n\t\t\tfiltroImovel.adicionarParametro(new ParametroSimples(FiltroImovel.SETOR_COMERCIAL_MUNICIPIO_ID,\r\n\t\t\t\t\tsetorComercial.getMunicipio().getId()));\r\n\t\t}\r\n\t\tfiltroImovel.adicionarParametro(new ParametroSimples(FiltroImovel.NUMERO_CELPE, numeroCelp));\r\n\r\n\t\tCollection imoveis = getControladorUtil().pesquisar(filtroImovel, Imovel.class.getName());\r\n\r\n\t\tif (imoveis != null && !imoveis.isEmpty()) {\r\n\t\t\tString idMatricula = \"\" + ((Imovel) ((List) imoveis).get(0)).getId();\r\n\r\n\t\t\tsessionContext.setRollbackOnly();\r\n\t\t\tthrow new ControladorException(\"atencao.imovel.numero_celpe_jacadastrado\", null, idMatricula);\r\n\t\t}\r\n\r\n\t\tFiltroImovelEconomia filtroImovelEconomia = new FiltroImovelEconomia();\r\n\t\t// filtroImovelEconomia.adicionarParametro(new\r\n\t\t// ParametroSimples(FiltroImovelEconomia.IMOVEL_ID, imovel.getId()));\r\n\t\tif (setorComerciais != null && !setorComerciais.isEmpty()) {\r\n\t\t\tSetorComercial setorComercial = (SetorComercial) setorComerciais.iterator().next();\r\n\t\t\tfiltroImovelEconomia.adicionarParametro(\r\n\t\t\t\t\tnew ParametroSimples(FiltroImovelEconomia.MUNICIPIO_ID, setorComercial.getMunicipio().getId()));\r\n\t\t}\r\n\t\tfiltroImovelEconomia.adicionarParametro(new ParametroSimples(FiltroImovelEconomia.NUMERO_CELPE, numeroCelp));\r\n\t\tfiltroImovelEconomia.adicionarCaminhoParaCarregamentoEntidade(\"imovelSubcategoria\");\r\n\t\tfiltroImovelEconomia.adicionarCaminhoParaCarregamentoEntidade(\"imovelSubcategoria.comp_id.imovel\");\r\n\r\n\t\tCollection imoveisEconomiaPesquisadas = getControladorUtil().pesquisar(filtroImovelEconomia,\r\n\t\t\t\tImovelEconomia.class.getName());\r\n\r\n\t\tif (!imoveisEconomiaPesquisadas.isEmpty()) {\r\n\t\t\tImovelEconomia imovelEconomia = (ImovelEconomia) ((List) imoveisEconomiaPesquisadas).get(0);\r\n\r\n\t\t\tString idMatricula = \"\" + imovelEconomia.getImovelSubcategoria().getComp_id().getImovel().getId();\r\n\r\n\t\t\tsessionContext.setRollbackOnly();\r\n\t\t\tthrow new ControladorException(\"atencao.imovel.numero_celpe_jacadastrado\", null, idMatricula);\r\n\t\t}\r\n\t}",
"public static void consultarContato(Scanner sc, Agenda agenda) {\n\t\t//nome contato receber as informacoes do lerInformacoes \n\t\tString nomeContato = lerInformacaoString(sc, \"entre com o nome do usuarios para ser pesquisado: \");\n\t\ttry {\n\t\t\tif(agenda.consultarContatoPorNome(nomeContato)>=0) {\n\t\t\t\tSystem.out.println(\" contato existe\");\n\t\t\t}\n\t\t}catch(ContatoNaoExisteException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t}",
"@Quando(\"executá-lo$\")\n\tpublic void executáLo() throws Throwable{\n\t\tthrow new PendingException();\n\t}",
"public String execute()\r\n/* 113: */ {\r\n/* 114: */ try\r\n/* 115: */ {\r\n/* 116:153 */ super.prepareReport();\r\n/* 117: */ }\r\n/* 118: */ catch (JRException e)\r\n/* 119: */ {\r\n/* 120:155 */ LOG.info(\"Error JRException\");\r\n/* 121:156 */ e.printStackTrace();\r\n/* 122:157 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_cargar_datos\"));\r\n/* 123: */ }\r\n/* 124: */ catch (IOException e)\r\n/* 125: */ {\r\n/* 126:159 */ LOG.info(\"Error IOException\");\r\n/* 127:160 */ e.printStackTrace();\r\n/* 128:161 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_cargar_datos\"));\r\n/* 129: */ }\r\n/* 130:164 */ return null;\r\n/* 131: */ }",
"public int encerraPartidaComResultado(Integer idJogador) throws RemoteException;",
"public void execute() {\n /*\n r6 = this;\n java.lang.String r0 = \"Failed to close connection after DBUnit operation: \"\n java.util.logging.Logger r1 = log\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"Executing DBUnit operations: \"\n r2.append(r3)\n int r3 = r6.size()\n r2.append(r3)\n java.lang.String r2 = r2.toString()\n r1.info(r2)\n org.dbunit.database.IDatabaseConnection r1 = r6.getConnection() // Catch:{ all -> 0x005a }\n r6.disableReferentialIntegrity(r1) // Catch:{ all -> 0x0058 }\n java.util.Iterator r2 = r6.iterator() // Catch:{ all -> 0x0058 }\n L_0x0027:\n boolean r3 = r2.hasNext() // Catch:{ all -> 0x0058 }\n if (r3 == 0) goto L_0x0037\n java.lang.Object r3 = r2.next() // Catch:{ all -> 0x0058 }\n org.seamless.util.dbunit.DBUnitOperations$Op r3 = (org.seamless.util.dbunit.DBUnitOperations.Op) r3 // Catch:{ all -> 0x0058 }\n r3.execute(r1) // Catch:{ all -> 0x0058 }\n goto L_0x0027\n L_0x0037:\n r6.enableReferentialIntegrity(r1) // Catch:{ all -> 0x0058 }\n if (r1 == 0) goto L_0x0057\n r1.close() // Catch:{ Exception -> 0x0040 }\n goto L_0x0057\n L_0x0040:\n r1 = move-exception\n java.util.logging.Logger r2 = log\n java.util.logging.Level r3 = java.util.logging.Level.WARNING\n java.lang.StringBuilder r4 = new java.lang.StringBuilder\n r4.<init>()\n r4.append(r0)\n r4.append(r1)\n java.lang.String r0 = r4.toString()\n r2.log(r3, r0, r1)\n L_0x0057:\n return\n L_0x0058:\n r2 = move-exception\n goto L_0x005c\n L_0x005a:\n r2 = move-exception\n r1 = 0\n L_0x005c:\n if (r1 == 0) goto L_0x0079\n r1.close() // Catch:{ Exception -> 0x0062 }\n goto L_0x0079\n L_0x0062:\n r1 = move-exception\n java.util.logging.Logger r3 = log\n java.util.logging.Level r4 = java.util.logging.Level.WARNING\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n r5.<init>()\n r5.append(r0)\n r5.append(r1)\n java.lang.String r0 = r5.toString()\n r3.log(r4, r0, r1)\n L_0x0079:\n goto L_0x007b\n L_0x007a:\n throw r2\n L_0x007b:\n goto L_0x007a\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.seamless.util.dbunit.DBUnitOperations.execute():void\");\n }",
"public void verSesionAdministrador(Administrador actualadmin)\r\n\t{\r\n\t\tSesion sesio = new Sesion();\r\n\t\tGregorianCalendar calendario = new GregorianCalendar();\r\n\t\tString fechasesion = calendario.get(Calendar.YEAR)+\"-\"+(calendario.get(Calendar.MONTH)+1)+\"-\"+calendario.get(Calendar.DAY_OF_MONTH);\r\n\t\tString horainicial = calendario.get(Calendar.HOUR_OF_DAY)+\":\"+calendario.get(Calendar.MINUTE)+\":\"+calendario.get(Calendar.SECOND);\r\n\t\tsesio.setFechasesion(fechasesion);\r\n\t\tsesio.setHorainicial(horainicial);\r\n\t\tsesio.setHorafinal(\"NULL\");\r\n\t\ttry \r\n\t\t{\r\n\t\t\tConector conector = new Conector();\r\n\t\t\tconector.iniciarConexionBaseDatos();\r\n\t\t\tSesionBD.insertar(sesio, conector);\r\n\t\t\tconector.terminarConexionBaseDatos();\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t}\r\n\t\tSesion sesioningr = null;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tConector conector = new Conector();\r\n\t\t\tconector.iniciarConexionBaseDatos();\r\n\t\t\tsesioningr = SesionBD.buscarFechaHora(fechasesion, horainicial, conector);\r\n\t\t\tconector.terminarConexionBaseDatos();\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t}\r\n\t\tif(sesioningr != null)\r\n\t\t{\r\n\t\t\tSesionAdministrador nuevasesion = new SesionAdministrador();\r\n\t\t\tnuevasesion.setIdsesion(sesioningr.getIdsesion());\r\n\t\t\tnuevasesion.setIdadministrador(actualadmin.getIdadmin());\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tConector conector = new Conector();\r\n\t\t\t\tconector.iniciarConexionBaseDatos();\r\n\t\t\t\tSesionAdministradorBD.insertar(nuevasesion, conector);\r\n\t\t\t\tconector.terminarConexionBaseDatos();\r\n\t\t\t\t\r\n\t\t\t\tsesionadministrador = new SesionAdministradorI(this, actualadmin, sesioningr);\r\n\t\t\t\tsesionadministrador.setVisible(true);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\r\n /* OSINE791 - RSIS1 - Inicio */\r\n //public ExpedienteDTO generarExpedienteOrdenServicio(ExpedienteDTO expedienteDTO,String codigoTipoSupervisor,UsuarioDTO usuarioDTO) throws ExpedienteException{\r\n public ExpedienteGSMDTO generarExpedienteOrdenServicio(ExpedienteGSMDTO expedienteDTO,String codigoTipoSupervisor,UsuarioDTO usuarioDTO,String sigla) throws ExpedienteException{\r\n LOG.error(\"generarExpedienteOrdenServicio\");\r\n ExpedienteGSMDTO retorno= new ExpedienteGSMDTO();\r\n try{\r\n expedienteDTO.setEstado(Constantes.ESTADO_ACTIVO);\r\n PghExpediente pghExpediente = ExpedienteGSMBuilder.toExpedienteDomain(expedienteDTO);\r\n pghExpediente.setFechaEstadoProceso(new Date());\r\n pghExpediente.setDatosAuditoria(usuarioDTO);\r\n crud.create(pghExpediente);\r\n retorno=ExpedienteGSMBuilder.toExpedienteDto(pghExpediente);\r\n \r\n //reg historicoEstado\r\n MaestroColumnaDTO tipoHistorico=maestroColumnaDAO.findMaestroColumna(Constantes.DOMINIO_TIPO_COMPONENTE, Constantes.APLICACION_INPS, Constantes.CODIGO_TIPO_COMPONENTE_EXPEDIENTE).get(0);\r\n /* OSINE_SFS-480 - RSIS 40 - Inicio */\r\n HistoricoEstadoDTO historicoEstado=historicoEstadoDAO.registrar(pghExpediente.getIdExpediente(), null, pghExpediente.getIdEstadoProceso().getIdEstadoProceso(), pghExpediente.getIdPersonal().getIdPersonal(), pghExpediente.getIdPersonal().getIdPersonal(), tipoHistorico.getIdMaestroColumna(),null,null, null, usuarioDTO);\r\n LOG.info(\"historicoEstado-->\"+historicoEstado);\r\n /* OSINE_SFS-480 - RSIS 40 - Fin */\r\n //inserta ordenServicio\r\n Long idLocador=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)?expedienteDTO.getOrdenServicio().getLocador().getIdLocador():null;\r\n Long idSupervisoraEmpresa=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)?expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa():null;\r\n OrdenServicioDTO OrdenServicioDTO=ordenServicioDAO.registrar(retorno.getIdExpediente(), \r\n expedienteDTO.getOrdenServicio().getIdTipoAsignacion(), expedienteDTO.getOrdenServicio().getEstadoProceso().getIdEstadoProceso(), \r\n /* OSINE791 - RSIS1 - Inicio */\r\n //codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO);\r\n codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO,sigla);\r\n /* OSINE791 - RSIS1 - Fin */\r\n LOG.info(\"OrdenServicioDTO:\"+OrdenServicioDTO.getNumeroOrdenServicio());\r\n //busca idPersonalDest\r\n PersonalDTO personalDest=null;\r\n List<PersonalDTO> listPersonalDest=null;\r\n if(codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)){\r\n //personalDest=personalDAO.find(new PersonalFilter(expedienteDTO.getOrdenServicio().getLocador().getIdLocador(),null)).get(0);\r\n listPersonalDest=personalDAO.find(new PersonalFilter(expedienteDTO.getOrdenServicio().getLocador().getIdLocador(),null));\r\n }else if(codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)){\r\n //personalDest=personalDAO.find(new PersonalFilter(null,expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa())).get(0);\r\n listPersonalDest=personalDAO.find(new PersonalFilter(null,expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa()));\r\n }\r\n if(listPersonalDest==null || listPersonalDest.isEmpty()){\r\n throw new ExpedienteException(\"La Empresa Supervisora no tiene un Personal asignado\",null);\r\n }else{\r\n personalDest=listPersonalDest.get(0);\r\n }\r\n //inserta historico Orden Servicio\r\n EstadoProcesoDTO estadoProcesoDto=estadoProcesoDAO.find(new EstadoProcesoFilter(Constantes.IDENTIFICADOR_ESTADO_PROCESO_OS_REGISTRO)).get(0);\r\n MaestroColumnaDTO tipoHistoricoOS=maestroColumnaDAO.findMaestroColumna(Constantes.DOMINIO_TIPO_COMPONENTE, Constantes.APLICACION_INPS, Constantes.CODIGO_TIPO_COMPONENTE_ORDEN_SERVICIO).get(0);\r\n /* OSINE_SFS-480 - RSIS 40 - Inicio */\r\n HistoricoEstadoDTO historicoEstadoOS=historicoEstadoDAO.registrar(null, OrdenServicioDTO.getIdOrdenServicio(), estadoProcesoDto.getIdEstadoProceso(), expedienteDTO.getPersonal().getIdPersonal(), personalDest.getIdPersonal(), tipoHistoricoOS.getIdMaestroColumna(),null,null, null, usuarioDTO); \r\n LOG.info(\"historicoEstadoOS:\"+historicoEstadoOS);\r\n /* OSINE_SFS-480 - RSIS 40 - Fin */\r\n retorno.setOrdenServicio(new OrdenServicioDTO(OrdenServicioDTO.getIdOrdenServicio(),OrdenServicioDTO.getNumeroOrdenServicio()));\r\n }catch(Exception e){\r\n LOG.error(\"error en generarExpedienteOrdenServicio\",e);\r\n throw new ExpedienteException(e.getMessage(), e);\r\n }\r\n return retorno;\r\n }",
"private static void concretizarRegisto(String nome, int escalao) {\n\t\tif (gestor.registarFuncionario(nome, escalao))\n\t\t\tSystem.out.println(\"REGISTO do funcionario \" + nome + \" com escalao \" + escalao);\n\t\telse \n\t\t\tSystem.out.println(\"ERRO: Nao foi possivel registar o funcionario \" + nome);\n\t}",
"private void consultadadosUtilizador(String username){\n Scanner s = new Scanner(System.in); int opcao = 0;\n try{\n do{\n System.out.println(\"Informações de Conta \");\n System.out.println(b_dados.getUtilizadores().get(username).toString());\n System.out.println(\"1-Mudar localizacao\");\n System.out.println(\"0 - Retroceder\");\n\n opcao = s.nextInt();\n System.out.print(\"\\n\");\n\n switch(opcao){\n case 1:\n mudarLocalizacaoUtilizador(username);\n break;\n default:\n System.out.print(\"Opção inválida\\n\\n\");\n break;\n\n }\n }while(opcao != 0);\n }\n catch(InputMismatchException e){\n System.out.println(\"Entrada inválida\");\n menuCliente(username);\n\n }\n }",
"private boolean markNodHijos(String nodPadSel){\n boolean blnRes=true;\n Connection conNodHij;\n Statement stmNodHij;\n ResultSet rstNodHij;\n String strNodPadSel=nodPadSel==null?\"\":nodPadSel;\n arlDatNodHij.clear();\n try{\n conNodHij=DriverManager.getConnection(objParSis.getStringConexion(), objParSis.getUsuarioBaseDatos(), objParSis.getClaveBaseDatos());\n if(conNodHij!=null){\n stmNodHij=conNodHij.createStatement();\n strSQL=\"\";\n strSQL+=\" SELECT a1.co_emp, a1.co_cta, a1.tx_codCta, a1.ne_pad\";\n strSQL+=\" FROM tbm_plaCta AS a1\";\n strSQL+=\" WHERE a1.co_emp=\" + objParSis.getCodigoEmpresa() + \"\";\n strSQL+=\" AND a1.tx_codCta like('\" + objTblModPlaCta.getValueAt(tblDatPlaCta.getSelectedRow(), INT_TBL_PLA_CTA_NUM_CTA) + \"%')\";\n strSQL+=\" ORDER BY a1.tx_codCta\";\n\n rstNodHij=stmNodHij.executeQuery(strSQL);\n while(rstNodHij.next()){\n arlRegNodHij=new ArrayList();\n arlRegNodHij.add(INT_ARL_COD_EMP, \"\" + rstNodHij.getString(\"co_emp\"));\n arlRegNodHij.add(INT_ARL_COD_CTA_SEL, \"\" + rstNodHij.getString(\"ne_pad\"));\n arlRegNodHij.add(INT_ARL_COD_CTA_HIJ, \"\" + rstNodHij.getString(\"co_cta\"));\n arlDatNodHij.add(arlRegNodHij);\n }\n conNodHij.close();\n conNodHij=null;\n stmNodHij.close();\n stmNodHij=null;\n rstNodHij.close();\n rstNodHij=null;\n }\n }\n catch(java.sql.SQLException e){\n blnRes=false;\n objUti.mostrarMsgErr_F1(this, e);\n }\n catch(Exception e){\n blnRes=false;\n objUti.mostrarMsgErr_F1(this, e);\n }\n return blnRes;\n }",
"@Override\n public void paso0() {\n n = graph.getNodeIndices().indexOf(actual);\n nodo = graph.getNodes().get(n);\n nodo.setEstado(Node.State.CURRENT);\n nodo.pintarNodo(g);\n // comprueba si es objetivo\n if (nodo.getEsObjetivo()) {\n // establece el objetivo encontrado\n miObjetivo = nodo.toString();\n // termina con exito\n Step = 4;\n } else {\n // se prepara para explorar los sucesores\n m = nodo.maxSucesores();\n j = 0;\n // siguiente paso\n Step = 1;\n }\n }",
"public void contarEfectosPorGrupo()\n\t{\n\t\ttry\n\t\t{\n\t\t\tString strEstado = JOptionPane.showInputDialog( this, \"Introduzca el grupo\" );\n\t\t\tJOptionPane.showMessageDialog(this,\t\"La cantidad de efectos encontrados del grupo \"+strEstado+\" es \"+mundo.contarEfectosPorGrupo(strEstado), \"Contar efectos por grupo\",JOptionPane.INFORMATION_MESSAGE);\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\tJOptionPane.showMessageDialog(this, e.getMessage(), \"Contar efectos por grupo\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t\n\t}",
"public boolean existeorden(String ordenservicio){\n boolean existe=false;\n \n conex con=new conex(); \n ResultSet rsR = null; \n String myQuery = \"select tipocorte from to_estetica where (estatus='ABIERTA' or estatus='CERRADA') and tipocorte='\"+ordenservicio+\"'\";\n System.out.println(\"\"+myQuery);\n try {\n Statement st = con.getConnection().createStatement();\n rsR = st.executeQuery(myQuery);\n while(rsR.next()) { \n existe=true; \n } \n rsR.close(); \n st.close();\n con.desconectar();\n } catch (SQLException ex) { \n existe=true; \n JOptionPane.showMessageDialog(null, \"Error al obtener los datos: \"+ex, \"Error\", JOptionPane.ERROR_MESSAGE);\n } \n \n return existe;\n }"
]
| [
"0.5413334",
"0.5304227",
"0.5209121",
"0.51524234",
"0.5148613",
"0.5148613",
"0.5121541",
"0.51081073",
"0.508293",
"0.5058695",
"0.5057897",
"0.5027844",
"0.50187194",
"0.49770838",
"0.49409384",
"0.49402368",
"0.49256942",
"0.49078548",
"0.49039114",
"0.4901473",
"0.4899318",
"0.4899161",
"0.48735723",
"0.4869083",
"0.48560494",
"0.48544407",
"0.48469982",
"0.4844992",
"0.48442626",
"0.48407203",
"0.48285186",
"0.48193574",
"0.48158306",
"0.48104224",
"0.48042682",
"0.48034242",
"0.4801008",
"0.47967044",
"0.47965416",
"0.47937495",
"0.47902125",
"0.47889817",
"0.4787139",
"0.47769275",
"0.47729182",
"0.47708672",
"0.47622508",
"0.4756937",
"0.47561285",
"0.47552484",
"0.47522977",
"0.47469833",
"0.47433066",
"0.47396907",
"0.47357768",
"0.47296903",
"0.472216",
"0.47158086",
"0.47128227",
"0.47110093",
"0.4709446",
"0.47091064",
"0.47090915",
"0.47088256",
"0.47059733",
"0.47050872",
"0.47040424",
"0.4698845",
"0.46924326",
"0.46887898",
"0.4677133",
"0.4672441",
"0.466653",
"0.46650228",
"0.46617854",
"0.4656261",
"0.46544638",
"0.46524924",
"0.46449655",
"0.46444848",
"0.46410292",
"0.46337715",
"0.4623331",
"0.4620662",
"0.4620001",
"0.4618454",
"0.46179435",
"0.46142003",
"0.46110928",
"0.46097142",
"0.46092683",
"0.46089137",
"0.46064293",
"0.4604665",
"0.4603262",
"0.4600101",
"0.45948812",
"0.45937738",
"0.45923468",
"0.4585849"
]
| 0.58729243 | 0 |
Reimplementa o metodo actionPerformed, possibilitando executar os metodos correspondentes aos botoes selecionados. Ao clicar no botao, e verificado qual o texto correspondente que e exibido no visor, levando ao metodo que deve ser executado. | @Override
public void actionPerformed(ActionEvent e) {
String comando = e.getActionCommand();
if (comando == "Novo labirinto")
this.btnNovoLabirinto();
else if (comando == "Abrir labirinto")
this.btnAbrirLabirinto();
else if (comando == "Salvar labirinto")
this.btnSalvarLabirinto();
else // comando=="Executar labirinto"
this.btnExecutarLabirinto();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t// TODO Auto-generated method stub\n\t\tString comando = e.getActionCommand();\n\n\t\tif (comando.equals(\"addCurso\")) {\n\t\t\tinsertarCurso();\n\t\t} else if (comando.equals(\"addPeriodo\")) {\n\t\t\tcrearPeriodo();\n\t\t} else if (comando.equals(\"actualizarTabla\")) {\n\t\t\tactualizarTablaPeriodos();\n\t\t} else if (comando.equals(\"modificar\")) {\n\t\t\tmodificarPeriodo();\n\t\t} else if (comando.equals(\"reservasPeriodo\")) {\n\t\t\tmostrarReservas();\n\t\t} else if (comando.equals(\"actualizarCorreo\")) {\n\t\t\tactualizarMensajeEnvio();\n\t\t}\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == corporativa){\n\t\t\tthis.convenios.setVisible(true);\n\t\t}\n\t\tif((e.getSource()==guardar)&&(this.normal.isSelected())){\n\t\t\tControladorSocios s = ControladorSocios.getInstancia();\n\t\t\ts.generarInscripcionNormal(Integer.parseInt(this.TEXTDNI.getText()),Integer.parseInt(String.valueOf(this.abonos.getSelectedItem())));\n\t\t\t\n\t\t}\n\t\tif((e.getSource() == guardar)&&(this.corporativa.isSelected())){\n\t\t\tControladorSocios s = ControladorSocios.getInstancia();\n\t\t\ts.generarInscripcionCorporativa(Integer.parseInt(this.TEXTDNI.getText()), \n\t\t\t\t\tInteger.parseInt(String.valueOf(this.abonos.getSelectedItem())), \n\t\t\t\t\tInteger.parseInt(String.valueOf(this.convenios.getSelectedItem())),\"\");\n\t\t}\n\t\tif(e.getSource() == this.salir){\n\t\t\tFrameSocio s = FrameSocio.getFrameSocio();\n\t\t\ts.setVisible(true);\n\t\t\tthis.setVisible(false);\n\t\t}\n\t}",
"public void mniBuscarPrestamoActionPerformed(ActionEvent e) {\n }",
"public void optionsActionPerformed(java.awt.event.ActionEvent evt) throws IOException{ \n options();\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\r\n\t\t\t\t\tif(\"\".equals(descripcionTF.getText())) {\r\n\t\t\t\t\t\tthrow new Exception(\"La descripcion debe rellenarse\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(!validarNumero(horasTF.getText())) {\r\n\t\t\t\t\t\tthrow new Exception(\"Las horas deben ser positivo\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(!validarNumero(nivelTF.getText())) {\r\n\t\t\t\t\t\tthrow new Exception(\"El nivel debe ser un número positivo\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(\"\".equals(nombreTF.getText())) {\r\n\t\t\t\t\t\tthrow new Exception(\"El nombre debe rellenarse\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(\"\".equals(tipoTF.getText())) {\r\n\t\t\t\t\t\tthrow new Exception(\"El tipo debe rellenarse\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString nombre = (String) nombreTF.getText();\r\n\t\t\t\t\tInteger horas = Integer.parseInt(horasTF.getText());\r\n\t\t\t\t\tInteger nivel = Integer.parseInt(nivelTF.getText());\r\n\t\t\t\t\tString descripcion = (String) descripcionTF.getText();\r\n\t\t\t\t\tString tipo = (String) tipoTF.getText();\r\n\t\t\t\t\tInteger idEm= Integer.parseInt(empTF.getText());\r\n\t\t\t\t\tController.getInstance().action(\r\n\t\t\t\t\t\t\tnew Contexto(\r\n\t\t\t\t\t\t\t\tEvents.ALTA_CURSO, new TCurso(nombre, true, tipo, descripcion, horas, nivel,idEm)));\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception ex) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, ex.getMessage(),\"ERROR\",JOptionPane.WARNING_MESSAGE);\r\n\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\r\n String command = e.getActionCommand();\r\n if (command.equals(\"OK\")) {\r\n if (validateData()) {\r\n validData = true;\r\n setVisible(false);\r\n int index = aggList.getSelectedIndex();\r\n if (index != 0) {\r\n TASKAggInfo agg = (TASKAggInfo)aggregators.elementAt(aggList.getSelectedIndex()-1);\r\n }\r\n }\r\n }\r\n else if (command.equals(\"Cancel\")) {\r\n setVisible(false);\r\n }\r\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t\tif(e.getActionCommand().equalsIgnoreCase(\"Inserimento insegnamento\"))\n\t\t{\n\t\t\tInserimentoInsegnamento inserisci =new InserimentoInsegnamento(this);\n\t\t\tinserisci.setVisible(true);\n\t\t\tsetVisible(false);\n\t\t}\n\t\t\n\t\tif(e.getActionCommand().equalsIgnoreCase(\"Elenco insegnamenti\"))\n\t\t{\n\t\t\tVisualizzaElencoInsegnamenti elenco=new VisualizzaElencoInsegnamenti();\n\t\t\telenco.setVisible(true);\n\t\t}\n\t\t\n\t\tif(e.getActionCommand().equalsIgnoreCase(\"Associa docente\"))\n\t\t{\n\t\t\tAssociaDocente associa = new AssociaDocente();\n\t\t\tassocia.setVisible(true);\n\t\t}\n\t\t\n\t\tif(e.getActionCommand().equalsIgnoreCase(\"Torna al Menu\"))\n\t\t{\n\t\t\tsetVisible(false);\n\t\t\tf1.setVisible(true);\n\t\t}\n\t\t\n\t\tif(e.getActionCommand().equalsIgnoreCase(\"Inserimento Corso Laurea\"))\n\t\t{\n\t\t\t\n\t\t\t\tString selection= JOptionPane.showInputDialog(getParent(),\"Inserisci il nome del corso di laurea:\",\"INSERIMENTO CORSO DI LAUREA\",JOptionPane.OK_CANCEL_OPTION);\n\t\t\t\tif(selection != null )\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e1)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.err.println(\"Errore nel caricamento del Driver\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tConnection conn=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/schedule_dib\",\"root\",\"\");\n\t\t\t\t\t\tconn.setAutoCommit(false);\n\t\t\t\t\t\tStatement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);\n\t\t\t\t\t\tString query;\n\t\t\t\t\t\t\n\t\t\t\t\t\tquery=\"Insert into `corsi` (`Corso_laurea`)values('\"+selection+\"')\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tint righe=stmt.executeUpdate(query);\n\t\t\t\t\t\tif(righe != 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Errore aggiornamento database\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tconn.commit();\n\t\t\t\t\t\tstmt.close();\n\t\t\t\t\t\tconn.close();\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Operazione avvenuta con successo\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch(Exception exc)\n\t\t\t\t\t{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Errore aggiornamento database\"+exc.getMessage());\n\t\t\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Nessun corso di laurea inserito\");\n\t\t\t\t}\n\t\t\n\t\t\n\t}\n\t\t\n\t\t\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t// TODO Auto-generated method stub\n\t\tswitch (e.getActionCommand()) {\n\t\tcase ACTION_COMMAND_REGISTRARSE:\n\t\t\tif (!(txtnombreequipo.getText().equals(\"\"))) {\n\t\t\t\ttry {\n\t\t\t\t\tgestor.anadirEquipo(txtnombreequipo.getText(), dateChooser.getDate());\n\t\t\t\t} catch (clsExcepcionEquipoRepetido exv) {\n\t\t\t\t\tJOptionPane.showMessageDialog(this, exv.getMessage());\n\t\t\t\t}\n\n\t\t\t\ttxtnombreequipo.setText(\"\");\n\n\t\t\t\tJOptionPane.showMessageDialog(this, \"El usuario es el DNI\");\n\n\t\t\t\tthis.dispose();\n\t\t\t\tsetModal(true);\n\n\t\t\t\t/**\n\t\t\t\t * Sirve para que no puedas usar la ventana anterior\n\t\t\t\t */\n\t\t\t} else {\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Debes rellenar todos los campos\");\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t}",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\ts.setTipusSoci((String)tipusCombo.getSelectedItem());\n\t\t\t\tmSoci.actualitzaSoci(s);\n\t\t\t}",
"private void buscaNomeProdutoActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"@Override\r\n public void actionPerformed(ActionEvent e) {\r\n switch (e.getActionCommand()) {\r\n case \"Mas Customer Chosen\":\r\n if (editing) {\r\n event.setCustomer(cc.getCustomer());\r\n } else {\r\n customer = cc.getCustomer();\r\n jTPhone.setText(customer.getPhone());\r\n jTName.setText(customer.getName());\r\n }\r\n break;\r\n case \"BBQ Customer Chosen\":\r\n if (editing) {\r\n } else {\r\n customer = cc.getCustomer();\r\n jTBBQName.setText(customer.getName());\r\n jTBBQPhone.setText(customer.getPhone());\r\n jTBBQCusAddress.setText(customer.getAddress());\r\n jTBBQCusEmail.setText(customer.getEmail());\r\n }\r\n break;\r\n case \"Category Meat\":\r\n showCategoryItem(\"Meat\");\r\n break;\r\n case \"Category Accompaniment\":\r\n showCategoryItem(\"Accompaniment\");\r\n break;\r\n case \"Category Salad\":\r\n showCategoryItem(\"Salad\");\r\n break;\r\n case \"Category Grill\":\r\n showCategoryItem(\"Grill\");\r\n break;\r\n case \"added to basket\":\r\n addToBasket();\r\n jTBBQTotalPrice.setText(bbqControl.getBuilder().getTotalPrice() + \"\");\r\n break;\r\n }\r\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Instrucciones: \" + \"\\n1. Has de darle al boton iniciar juego \"\n\t\t\t\t\t\t+ \"\\n2. Aparecen los espacios de las letras de una palabra oculta \"\n\t\t\t\t\t\t+ \"\\n3. Has de adivinar la palabra pulsando en el teclado de palabras que hay abajo \"\n\t\t\t\t\t\t+ \"\\n4. Si te equivocas, el ahorcado se ira completando \"\n\t\t\t\t\t\t+ \"\\n5. Tienes 10 intentos antes de que se complete el ahorcado \"\n\t\t\t\t\t\t+ \"\\n6. Puedes usar las pistas las cuales te descubriran una letra, tienes una pista por partida\"\n\t\t\t\t\t\t+ \"\\n7. al principio del juego puedes elegir hasta 5 vidas, cada vez que solicitas una pista perderas una vida \"\n\t\t\t\t\t\t+ \"\\n8. cada vez que pierdes la partida, perderas una vida \");\n\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n super.actionPerformed(e);\n final int numberOfRows = stornoButtons.size();\n int stornoRow=-1;\n for (int i=0; i<numberOfRows; i++){\n if (e.getSource() == stornoButtons.get(i) ){\n stornoRow = i;\n break;\n }\n }\n\t if (stornoRow > -1){\n int answer = JOptionPane.showConfirmDialog(this,\n \"Rechnung \" + (String) data.get(stornoRow).get(1) + \" wirklich stornieren?\", \"Storno\",\n JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n if (answer == JOptionPane.YES_OPTION) {\n stornieren(stornoRow);\n tabbedPane.recreateTabbedPane();\n }\n return;\n }\n }",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\r\n\t\tString cmd = e.getActionCommand();\r\n\t\tComponent comp = (Component) e.getSource();\r\n\t\tswitch (cmd) {\r\n\t\tcase \"validate\": {\r\n\t\t\tif (isValidJSON(getText())) {\r\n\t\t\t\tJOptionPane.showMessageDialog(comp, \"Valid JSON\",\r\n\t\t\t\t\t\t\"Validation Results\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t} else {\r\n\t\t\t\tJFrame frame = (JFrame) SwingUtilities.getRoot(comp);\r\n\t\t\t\tnew ValidationDialog(frame, \"Validation Error\", message);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tcase \"edit-attributes\": {\r\n\r\n\t\t\tint pos = this.viewToModel(this.currentClickPoint);\r\n\t\t\tString text = this.getText().substring(0, pos + 20); // HACK - but\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// should\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// contain\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// what we\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// want\r\n\t\t\t// make a list of all the quoted items\r\n\t\t\tArrayList<Match> list = new ArrayList<Match>();\r\n\t\t\tMatcher matcher = DoubleQuotesPat.matcher(text);\r\n\t\t\twhile (matcher.find()) {\r\n\t\t\t\tlist.add(new Match(matcher.start(1), matcher.end(1), matcher\r\n\t\t\t\t\t\t.group(1)));\r\n\t\t\t}\r\n\t\t\tcheck(1, list);\r\n\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tswitch (e.getActionCommand()) {\n\t\t//用户点击查询\n\t\tcase \"query\":\n\t\t\tSystem.out.println(\"查询\");\n\t\t\t//因为把对表的数据封装到StuModel中,我们就可以比较简单的完成查询\n\t\t\tString name = this.jtf.getText().trim();\n\t\t\t//写一个sql语句\n\t\t\tString sql = \"select * from stu where stuName='\"+name+\"'\";\n\t\t\t//构建新的数据模型类,并更新\n\t\t\tStuModel sm = new StuModel(sql);\n\t\t\t//更新JTable\n\t\t\tjt.setModel(sm);\n\t\t\tbreak;\n\t\t//用户点击添加\n\t\tcase \"add\":\n\t\t\tStuAddDialog sa = new StuAddDialog(this, \"添加学生\", true);\n\t\t\t//重新再获得新的数据模型\n\t\t\tbreak;\n\t\tcase \"alter\":\n\t\t\tbreak;\n\t\tcase \"delete\":\n\t\t\tbreak;\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(frame, \"Questa categoria contiene \" + actualCat.getNumFoto() + \" foto.\");\n\t\t\t}",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t\tMySQLConnect dal = new MySQLConnect();\r\n\t\t\ttry {\r\n\t\t\t\tString name;\r\n\t\t\t\tString date;\r\n\t\t\t\tString desc;\r\n\t\t\t\tString course;\r\n\t\t\t\tString type;\r\n\t\t\t\tString prior;\r\n\t\t\t\tScanner scan = new Scanner(System.in);\r\n\t\t\t\tSystem.out.println(\"Name: \");\r\n\t\t\t\tname = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"Due Date(YYYY-MM-DD): \");\r\n\t\t\t\tdate = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"Description: \");\r\n\t\t\t\tdesc = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"Course: \");\r\n\t\t\t\tcourse = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"Type: \");\r\n\t\t\t\ttype = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"Priority: \");\r\n\t\t\t\tprior = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"The following form was added to the database:\");\r\n\t\t\t\tString[] check = dal.addForm(name.toString(),\"admin\",date.toString(),desc.toString(),course.toString(),type.toString(),prior.toString());\r\n\t\t\t\tfor(int i=0; i<check.length; i++){\r\n\t\t\t\t\tSystem.out.print(check[i] + \" \");\r\n\t\t\t\t}\r\n\t\t\t\t//test confirmation that button works\r\n\t\t\t\ttextArea.append(\"Form Submitted!\\n\");\r\n\t\t\t} catch (SQLException ex) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\tadaptee.botonDescargaSobre_actionPerformed(e);\n\t}",
"private void comCosasActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n sender.sendObject(query.getText());\n \n try {\n // Sender sender = new Sender(ValidAction.START_TRANSACTION);\n // sender.startTransaction(SelectNode());\n if(query.getText().toLowerCase().contains(\"select\")){\n log.getDocument().insertString(0,\"Performing Read\\n\" , null);\n }\n else if(query.getText().toLowerCase().contains(\"update\")){\n log.getDocument().insertString(0,\"Performing Write\\n\" , null);\n }\n } catch (BadLocationException ex) {\n Logger.getLogger(MainView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tString ev = e.getActionCommand();\n\t\tif(ev.equals(\"Buscar Influyentes\")) {\n\t\t\tprincipal.buscarInfluyentes();\n\n\t\t}\n\t\telse if(ev.equals(\"Nivel De Alcance\")){\n\t\t\tprincipal.nivelDeAlcance();\n\t\t}\n\t\t\t\t\n\t\t\n\t}",
"private void itemTextBlockNameActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"abstract void botonDescargaSobre_actionPerformed(ActionEvent e);",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(mainscreen, \"User must enter the sets in the boxes on the left (without brackets), select an opration and click on calculate. \\nResult will be shown in the result box on the right. It can be copied, pasted and edited.\\n\\nSome important points:\\nIn case of complement, the set 1 will be the Universal set\\nIn case of Power Set, only set 1 will be used\");\n\t\t\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tString command = e.getActionCommand();\n\t\tswitch(command) {\n\t\t\tcase \"adaugaClienti\":\n\t\t\t\tmkClient();\n\t\t\t\tbreak;\n\t\t\tcase \"editareClienti\":\n\t\t\t\teditareClient();\n\t\t\t\tbreak;\n\t\t\tcase \"stergereClienti\":\n\t\t\t\tdelClient(\"person\");\n\t\t\t\tbreak;\n\t\t\tcase \"refreshPerson\":\n\t\t\t\tmkRefresh(\"person\");\n\t\t\t\tbreak;\n\t\t\tcase \"contNou\": \n\t\t\t\tcontNou();\n\t\t\t\tbreak;\n\t\t\tcase \"optiuniGenerale\":\n\t\t\t\toptiuniGenerale();\n\t\t\t\tbreak;\n\t\t\tcase \"alegeAccount\":\n\t\t\t\tdetailAccount();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Juego del Ahorcado creado en Java con Swing y AWT \"\n\t\t\t\t\t\t+ \"\\n \\nCreadores: \\nVictor Lozano, Cesar Torrelles, Giovanny Rodriguez\" + \"\\n Version 1.0\");\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif(actualCat.getNumFoto()==0)\n\t\t\t\t\treturn;\n\t\t\t\t\n\t\t\t\tif(getSelectedFoto()==-1)\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Prima devi selezionare la foto\", \"Attenzione!\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tCategoria destinazione;\n\t\t\t\tObject[] possibilities = new Object[a.Size()];\n\t\t\t\t\n\t\t\t\tfor(int i=0;i<a.Size();i++)\n\t\t\t\t{\n\t\t\t\t\tpossibilities[i]=a.getCategoria(i).getNome();\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tString s = (String)JOptionPane.showInputDialog(frame,\"Dove si vuole spostare?\",\"Destinazione della foto\",\n\t\t\t\t JOptionPane.PLAIN_MESSAGE,null, possibilities,null);\n\n\t\t\t\t//If a string was returned, say so.\n\t\t\t\tif ((s != null) && (s.length() > 0)) {\n\t\t\t\t destinazione = a.getCategoria(searchByName(s)); //cerca attraverso il nome,ottiene la categoria destinazione\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsetSelectedFoto(-1);\n\t\t\t\t\tframe.setTitle(actualCat.getNome());\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\ta.spostaFoto(getSelectedFoto(), actualCat,destinazione);\n\t\t\t\tsetSelectedFoto(-1);\n\t\t\t\tframe.setTitle(actualCat.getNome());\n\t\t\t\tredraw(actualCat,panel);\t\t\t\t\n\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n a = crear.guardarAlumno();\n //en la base de datos envio un alumno a guardar\n basealumno.guardarAlumnoBD(a);\n //envio en la venta a limpiar los campos\n crear.limpiarCampos();\n crear.bloquearCampos();\n \n// System.out.println(\"objeto: \"+vca.getName());\n\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgetControleur(). saisirParution() ;}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"<html><center><u><strong>Edité par :</strong></u><br>RAHMANI ABD EL KADER<br>SEIF EL ISLEM<br> Groupe 1 Section 1</center></html>\", \"A propros\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint edad = Integer.parseInt(edad_necesaria.getText());\r\n\t\t\t\tdouble valor = Double.parseDouble(precio.getText());\r\n\r\n\t\t\t\tif (BaseDeDatos.insertarJuego(new Juego(nombre.getText(), edad, categoria.getSelectedItem().toString(),\r\n\t\t\t\t\t\tvalor, false, null))) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Juego añadido\", \"Atencion\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Problemas a la hora de añadir el juego\", \"Atencion\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tCadastroProdutoEstoque cadastroprodutoestoque;\n\t\t\t\ttry {\n\t\t\t\t\tcadastroprodutoestoque = new CadastroProdutoEstoque();\n\t\t\t\t\tcadastroprodutoestoque.setLocationRelativeTo(null);\n\t\t\t\t\tcadastroprodutoestoque.SetMainDashboard(main);\n\n\t\t\t\t\tmain.frmSistemaDeCadastro.setEnabled(false);\n\t\t\t\t\tcadastroprodutoestoque.setVisible(true);\n\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}",
"public void actionPerformed(ActionEvent e){\n\t\t\t\tArrayList<Transaction> transactions = new ArrayList<Transaction>(currentAccount.getTransactionList());\n\t\t\t\tTransactionUI t = new TransactionUI(transactions); //create an interface of the user's selected account transactions\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tCadastroProdutoEstoque cadastroprodutoestoque;\n\t\t\t\ttry {\n\t\t\t\t\tcadastroprodutoestoque = new CadastroProdutoEstoque();\n\t\t\t\t\tcadastroprodutoestoque.setLocationRelativeTo(null);\n\t\t\t\t\tcadastroprodutoestoque.SetMainDashboard(main);\n\n\t\t\t\t\tmain.frmSistemaDeCadastro.setEnabled(false);\n\t\t\t\t\tcadastroprodutoestoque.setVisible(true);\n\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\n\t\t\t\tProduto prod = null;\n\t\t\t\ttry {\n\t\t\t\t\tif (txtTipo.getText().equals(\"\")) {\n\t\t\t\t\t\tprod = new Produto(txtNome.getText(), txtCodigo.getText(), Integer.parseInt(txtValor.getText()),\n\t\t\t\t\t\t\t\tInteger.parseInt(txtQuantidade.getText()));\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tprod = new Produto(txtNome.getText(), txtCodigo.getText(), Integer.parseInt(txtValor.getText()),\n\t\t\t\t\t\t\t\ttxtTipo.getText(), Integer.parseInt(txtQuantidade.getText()));\n\t\t\t\t\t}\n\t\t\t\t\tlistas.adicionarProduto(prod);\n\t\t\t\t\tSystem.out.println(\"BLZ\");\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Produto Cadastrado com sucesso!\", \"OK!!\",\n\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"ERRO! Digite um valor valido\", \"ERRO!!\",\n\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t}\n\t\t\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t\tif(e.getActionCommand().equalsIgnoreCase(\"Torna al Menu\"))\n\t\t{\n\t\t\tsetVisible(false);\n\t\t\tb2.setVisible(true);\n\t\t}\n\t\t\n\t\tif(e.getActionCommand().equalsIgnoreCase(\"Tutti gli insegnamenti\"))\n\t\t{\n\t\t\tA_ReportisticaInsegnamenti1 tutti_insegnamenti = new A_ReportisticaInsegnamenti1(this);\n\t\t\ttutti_insegnamenti.setVisible(true);\n\t\t}\n\t\t\n\t\tif(e.getActionCommand().equalsIgnoreCase(\"Per docente\"))\n\t\t{\n\t\t\tA_ReportisticaInsegnamenti2 insegnamenti_docente = new A_ReportisticaInsegnamenti2(this);\n\t\t\tinsegnamenti_docente.setVisible(true);\n\t\t}\n\t\t\n\t\tif(e.getActionCommand().equalsIgnoreCase(\"Per insegnamento\"))\n\t\t{\n\t\t\tA_ReportisticaInsegnamenti3 insegnamenti_selezionati = new A_ReportisticaInsegnamenti3(this);\n\t\t\tinsegnamenti_selezionati.setVisible(true);\n\t\t}\n\t\t\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\t\trutaseleccionada = (String) rodadura.getSelectedItem();\r\n\r\n\t\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgetControleur(). ConsultOuvrage() ;}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tJOptionPane.showConfirmDialog(null, \"BOTAO CLICADO\", \"VALOR\", JOptionPane.PLAIN_MESSAGE);\n\n\t\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) \n\t{\n\t\t// The select button was pressed\n\t\tif (e.getSource() == selectButton)\n\t\t{\n\t\t\tint index = dropBox.getSelectedIndex();\n\t\t\tcurPK = curCHID[index];\n\t\t\tindex = dropBox_next.getSelectedIndex();\n\t\t\tcrID = crIDs[index];\n\t\t\tupdateGUI(Runner.getDBConnection());\n\t\t\tdropBox.setSelectedIndex(index);\n\t\t}\n\n\t\t// The delete button was pressed, so delete the current entry\n\t\tif (e.getSource() == southButtons[0])\n\t\t{\n\t\t\tint index = dropBox.getSelectedIndex();\n\t\t\tcurPK = curCHID[index];\n\t\t\tPreparedStatement stmt;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tstmt = Runner.getDBConnection().prepareStatement(\"DELETE FROM RELATE_W_CH WHERE Ch_Name=?\");\n\t\t\t\tstmt.setString(1, curPK);\n\t\t\t\tstmt.executeUpdate();\n\t\t\t} catch (SQLException e1)\n\t\t\t{\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tcurPK = null;\n\t\t\tupdateGUI(Runner.getDBConnection());\n\t\t\tdropBox.setSelectedIndex(0);\n\t\t}\n\n\t\t// The update button was pressed, so update the values of each column\n\t\tif (e.getSource() == southButtons[1])\n\t\t{\n\t\t\tint index = dropBox.getSelectedIndex();\n\t\t\tcurPK = curCHID[index];\n\t\t\tPreparedStatement stmt;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tstmt = Runner.getDBConnection().prepareStatement(\n\t\t\t\t\t\t\"UPDATE RELATE_W_CH SET Ch_Name=?, Cr_ID=?, Ch_Hates=?, Ch_Likes=? WHERE Ch_Name=?\");\n\t\t\t\tSystem.out.println(curCHTF.getText().trim());\n\t\t\t\tstmt.setString(1, curCHTF.getText().trim());\n\t\t\t\tstmt.setString(2, relatedCrTF.getText().trim());\n\t\t\t\tstmt.setBoolean(3, crHates.isSelected());\n\t\t\t\tstmt.setBoolean(4, crLikes.isSelected());\n\t\t\t\tstmt.setString(5, curCHTF.getText().trim());\n\t\t\t\tstmt.executeUpdate();\n\t\t\t} catch (SQLException e2)\n\t\t\t{\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t\tcurPK = null;\n\t\t\tupdateGUI(Runner.getDBConnection());\n\t\t\tdropBox.setSelectedIndex(0);\n\t\t}\n\n\t\t// The insert button was pressed, so add the entry to the table\n\t\tif (e.getSource() == southButtons[2])\n\t\t{\n\t\t\tPreparedStatement stmt;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tstmt = Runner.getDBConnection().prepareStatement(\"INSERT INTO RELATE_W_CH VALUES (?,?,?,?)\");\n\t\t\t\tstmt.setString(1, curCHTF.getText().trim());\n\t\t\t\tstmt.setString(2, relatedCrTF.getText().trim());\n\t\t\t\tstmt.setBoolean(3, crHates.isSelected());\n\t\t\t\tstmt.setBoolean(4, crLikes.isSelected());\n\t\t\t\tstmt.executeUpdate();\n\t\t\t} catch (SQLException e3)\n\t\t\t{\n\t\t\t\te3.printStackTrace();\n\t\t\t}\n\t\t\tcurPK = null;\n\n\t\t\tupdateGUI(Runner.getDBConnection());\n\t\t\tdropBox.setSelectedIndex(0);\n\n\t\t}\n\t}",
"@Override\r\n public void actionPerformed(ActionEvent e) {\n String texto = tf.getText();\r\n //lo seteo como texto en el Label\r\n lab.setText(texto);\r\n //refresco los componentes de la ventana\r\n validate();\r\n //combierto a mayuscula el texto del textfield\r\n tf.setText(texto.toUpperCase());\r\n //lo selecciono todo\r\n tf.selectAll();\r\n }",
"@Override\r\n\tpublic void actionPerformed(ActionEvent event) {\n\t\tif()\r\n\t\tif (this.vista.getNombre().equals(asignatura.getNombre()) == false) {\r\n\t\t\tif(this.vista.getNombre().equals(\"\") == false)\r\n\t\t\tthis.asignatura.setNombre(this.vista.getNombre());\r\n\t\t} else if\r\n\t\t\r\n\t\t}\r\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\n\t\t\tString name=\"\";\n\t\t\tname=view.getNameTF().getText();\n\t\t\tString price=\"\";\n\t\t\tprice=view.getPriceTF().getText();\n\t\t\t\n\t\t\tMenuItem item=searchInMenu();\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(!name.equals(bpSelected.get(0)))\n\t\t\t\t{\n\t\t\t\t\tthrow new BadInput(\"Numele nu poate fi editat!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble p=Double.parseDouble(price);\n\t\t\t\t\n\t\t\t\tMenuItem nou=new BaseProduct(name,p);\n\t\t\t\t\n\t\t\t\trestaurant.editMenuItem(item,nou);\n\t\t\n\t\t\t\tview.showError(\"Produsul \"+name+\" a fost editat cu succes!\");\n\t\t\t\t\n\t\t\t}catch(NumberFormatException ex)\n\t\t\t{\n\t\t\t\tview.showError(\"Nu s-a introdus o valoare valida pentru pret!\");\n\t\t\t}\n\t\t\tcatch(BadInput ex)\n\t\t\t{\n\t\t\t\tview.showError(ex.getMessage());\n\t\t\t}\n\t\t\tcatch(AssertionError er)\n\t\t\t{\n\t\t\t\tview.showError(\"Operatia de EDIT a esuat!!!\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}",
"public void actionPerformed(ActionEvent e) {\n gui.activateTerrains(false);\n\n if (gui.getGUIState() == GUIState.MOVESHEEPFROM) {\n gui.activateTerrains(true);\n gui.setGUIState(GUIState.MOVESHEEPSELECTION);\n gui.activateSheepSelection(true, terrain);\n gui.getLAction2().setText(\"Seleziona quale ovino si vuole muovere\");\n } else if (gui.getGUIState() == GUIState.KILLSHEEP) {\n gui.setGUIState(GUIState.KILLSHEEPSELECTION);\n gui.activateSheepSelection(true, terrain);\n gui.getLAction2().setText(\"Seleziona quale ovino vuoi abbatere\");\n } else if (gui.getGUIState() == GUIState.JOINSHEEPS) {\n gui.setGUIState(GUIState.KILLSHEEPSELECTION);\n gui.sendJoinSheeps(terrain);\n } else if (gui.getGUIState() == GUIState.MOVESHEEPTO) {\n gui.activateDropDown(false);\n gui.setGUIState(GUIState.WAITINGFOROTHERPLAYER);\n gui.sendMoveSheep(terrain);\n }\n\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent ae) {\n\t\tif(ae.getActionCommand().equals(\"Ação 3\"));\n\t\tSystem.out.println(\"Clicke no botão 3\");\n\t\t\n\t}",
"private void jTextFieldNomeActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"private void botao_atirarActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"public void actionPerformed(final java.awt.event.ActionEvent e)\n\t\t\t\t{\n\t\t\t\t\tif ( validarCampos() )\n\t\t\t\t\t{\n\t\t\t\t\t\t// obtem uma instacia do menu principal\n\t\t\t\t\t\tfinal ProVMBD proVMBD = ProVMBD.getInstancia();\n\n\t\t\t\t\t\tfinal Map<Long, List<EnumTipoVM>> mapTotalAProcessarPorTipoVM = getMapTotalAProcessarPorTipoVM();\n\n\t\t\t\t\t\t// obtem o tempo de SLA definido em segundos\n\t\t\t\t\t\tfinal Integer slaps = NumberUtils.getInt(jTFSlaps.getText());\n\n\t\t\t\t\t\t// executa os processos e retorna o map com resultado da simulacao\n\t\t\t\t\t\tfinal SortedMap<Long, List<ResultadoVO>> mapResultadoSimulacao = proVMBD\n\t\t\t\t\t\t\t\t.simularVMs(mapTotalAProcessarPorTipoVM, slaps, 1);\n\n\t\t\t\t\t\tatualizarGraficos(mapResultadoSimulacao);\n\n\t\t\t\t\t}\n\t\t\t\t}",
"public void actionPerformed(ActionEvent e){\n\t\t\t\tMsgRequest request = CommonSelectRequest.createSelectMaterialRequest(new MaterialsSelectParameters(null, false, false,false,false));\r\n\t\t\t\trequest.setResponseHandler(new ResponseHandler(){\r\n\t\t\t\t\tpublic void handle(Object returnValue, Object returnValue2, Object returnValue3, Object returnValue4)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tMaterialsItemInfo[] itemList = (MaterialsItemInfo[])returnValue;\r\n\t\t\t\t\t\tfor(MaterialsItemInfo item : itemList){\r\n\t\t\t\t\t\t\tif(selectedGoodsIds.contains(item.getItemData().getId().toString())){\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ttable.addRow(item); // XXX:表格控件提供插入多行数据接口后修改,目前效率\r\n\t\t\t\t\t\t\tselectedGoodsIds.add(item.getItemData().getId().toString());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tgoodsItemCountLabel.setText(String.valueOf(selectedGoodsIds.size()));\r\n\t\t\t\t\t\ttable.renderUpate();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tgetContext().bubbleMessage(request);\r\n\t\t\t}",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tint idMat= Integer.parseInt(IdText.getText().trim());\n\t\t\t\tString CategorieMat=CategText.getText().trim();\n\t\t\t\tString Marque=MarqueText.getText().trim();\n\t\t\t\tString serial=SerialText.getText().trim();\n\t\t\t\tString NomSE=(String) comboBox.getSelectedItem().toString();\n\t\t\t\tString Logiceils=LogiceilText.getText().trim();\n\t\t\t\t\n\t\t\t\tMateriel Materiel1=new Materiel(idMat,CategorieMat,Marque,serial,NomSE,Logiceils);\n\t\t\t\t \n\t\t\t\t MAJMateriel MaterielMAJ=new MAJMateriel();\n\t\t\t\t MaterielMAJ.create(Materiel1);\t\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Le Matériel à été Ajouter avec Succée\");\n\t\t\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (e.getActionCommand().equals(\"查询\")) {\n\t\t\tint vipid = 0;\n\t\t\tString vipname = \"\";\n\t\t\ttry {\n\t\t\t\tif (!this.jTextField.getText().equals(\"\")) {\n\t\t\t\t\tvipid = Integer.parseInt(this.jTextField.getText().trim());\n\t\t\t\t}\n\t\t\t\tif (!this.jTextField2.getText().equals(\"\")) {\n\t\t\t\t\tvipname = this.jTextField2.getText().trim();\n\t\t\t\t}\n\t\t\t\tVipinfo vipinfo = new Vipinfo();\n\t\t\t\tvipinfo.setVipid(vipid);\n\t\t\t\tvipinfo.setVipname(vipname);\n\t\t\t\tArrayList<Vipinfo> vipinfoList = vipinfoServer\n\t\t\t\t\t\t.getVipinfo(vipinfo);\n\t\t\t\tint count = this.dtm.getRowCount();\n\t\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\t\tthis.dtm.removeRow(0);\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < vipinfoList.size(); i++) {\n\t\t\t\t\tthis.dtm.addRow(new Object[] {\n\t\t\t\t\t\t\tvipinfoList.get(i).getVipid(),\n\t\t\t\t\t\t\tvipinfoList.get(i).getVipname(),\n\t\t\t\t\t\t\tvipinfoList.get(i).getVipsex(),\n\t\t\t\t\t\t\tvipinfoList.get(i).getVipcut(), });\n\t\t\t\t}\n\t\t\t} catch (Exception e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tif (e.getActionCommand().equals(\"返回\")) {\n\t\t\tFirstFrame firstFrame = new FirstFrame();\n\t\t\tthis.dispose();\n\t\t}\n\n\t\tif (e.getActionCommand().equals(\"添加会员信息\")) {\n\t\t\tVIPAdd vipAdd = new VIPAdd();\n\t\t\tthis.dispose();\n\t\t}\n\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(cbEdPuesto.getSelectedIndex()!=0) {\n\t\t\t\t\tdouble sueldoP;\n\t\t\t\t\tString sueldo=\"\";\n\t\t\t\t\ttxtENombre.setText((String) cbEdPuesto.getSelectedItem());\n\t\t\t\t\tpuestoViejo=(String) cbEdPuesto.getSelectedItem();\n\t\t\t\t\ttxtENombre.repaint();\n\t\t\t\t\t\n\t\t\t\t\tregistros=(ResultSet) data.getQuery(\"Select * from TipoPuesto\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\twhile(registros.next()) {\n\t\t\t\t\t\t\tif(registros.getString(\"puesto\").equals(puestoViejo)) {\n\t\t\t\t\t\t\tsueldoP=registros.getDouble(\"sueldo\");\n\t\t\t\t\t\t\tsueldo=String.valueOf(sueldoP);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttxtEdSueldo.setText(sueldo);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t//sueldoViejo=(String) cbEdPuesto.getSelectedItem();\n\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t}",
"public void actionPerformed(ActionEvent ae) {\r\n //----Valida txt de Intentario---//\r\n validaTxt();\r\n //----Valida txt de Intentario---//\r\n int i = JOptionPane.showConfirmDialog(II, \"¿Seguro quiere modificar este producto?\");\r\n if (i == 0) {\r\n modificaDato();\r\n DTM.setRowCount(0);\r\n llenartabla();\r\n }\r\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n String con = e.getActionCommand();\n // The first 4 commands are for switching to different categories\n if (con.equals(\"FANTASY\")) {\n \tview.updateBookList(\"Fantasy\");\n //cl.show(this.view.cards, \"FANTASY\");\n } else if (con.equals(\"SCIFI\")) {\n \tview.updateBookList(\"Science Fiction\");\n //cl.show(this.view.cards, \"SCIFI\");\n } else if (con.equals(\"HORROR\")) {\n \tview.updateBookList(\"Horror\");\n //cl.show(this.view.cards, \"HORROR\");\n } else if (con.equals(\"THRILLER\")) {\n \tview.updateBookList(\"Thriller\");\n //cl.show(this.view.cards, \"THRILLER\");\n \n // The BUY command will also contain the name and price of a book, which need to be passed on\n } else if (con.contains(\"SHOWALL\")) {\n this.view.showProducts();\n } else if (con.contains(\"BUYALL\")) {\n this.view.buy();\n } else {\n JOptionPane.showMessageDialog(this.view, \"Unknown Command\", \"Error\", ERROR_MESSAGE);\n }\n // Of course, this must be done as well.\n //this.view.repaint();\n\n }",
"public void actionPerformed(ActionEvent e)\n\t{\n\t\tif(e.getActionCommand().equals(cadastrar.getText()))\n\t\t{\n\t\t\tonClickOkay();\n\t\t}\n\t\t// Caso nao, cancela toda a acao e nao salvas\n\t\telse if(e.getActionCommand().equals(cancelar.getText()))\n\t\t{\n\t\t\tonClickCancel();\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\t\tgetControleur(). saisirOuvrage() ;}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tframe.wartoscMediany.setText(\"= \" + frame.policzMediane());\n\t\tString text = \"Zbior liczb: \";\n\t\tfor(int i = 0; i < frame.liczby.size(); i++) {\n\t\t\ttext = text + frame.liczby.get(i) + \" \";\n\t\t}\n\t\tframe.wypisaneLiczby.setText(text);\n\t\t\n\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\titem1 = tf[0].getText();\n\t\t\t\titem2 = tf[4].getText();\n\t\t\t\tif (!item1.equals(\"\")) {\n\t\t\t\t\tsql = transaction.T3(inx1,item1);\n\t\t\t\t\t\n\t\t\t\t\tDMT_refresh(sql,0);\n\t\t\t\t}\n\t\t\t\telse if(!item2.equals(\"\")){\n\t\t\t\t\tsql = transaction.T4(inx3,item2);\n\t\t\t\t\t\n\t\t\t\t\tDMT_refresh(sql,1);\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tjoueur.piocherCarte(partie.getPioche());\n\n\n\n\t\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tOWLNamedIndividual cf = (OWLNamedIndividual)comboBox.getSelectedItem();\n\t\tOWLNamedIndividual sForm;\n\t\t\n\t\t// If the IDS has more than one associated syntactic form, ask the user to select the form.\n\t\t// Otherwise, just take the default.\n\t\tList<OWLNamedIndividual> synforms = ko.getSynforms(cf);\n\t\tif (synforms.size() > 1){\n\t\t\t// Prompt for specific detector\n\t\t\tsForm = null;\n\t\t} else {\n\t\t\tsForm = synforms.get(0);\n\t\t}\n\t\t\n\t\t// Ask the KO for the syntactic form:\n\t\t//String sf = ko.getSyntacticForm(sForm);\n\t\t//TODO: Update the syntactic form production method in the oracle.\n\t\tString sf = null;\n\t\t\n\t\t// Update the text box with the correct form:\n\t\ttextArea.setText(sf);\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString puestoNuevo=txtENombre.getText();\n\t\t\t\tString sueldoNuevo=txtEdSueldo.getText();\n\t\t\t\tif(!sueldoNuevo.matches(\"[0-9]+\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(btnGuardarE,\"La cantidad de sueldo es incorrecta\");\n\t\t\t\t}else {\n\t\t\t\tdouble sueldoNuevoNew = Double.parseDouble(sueldoNuevo);\n\t\t\t\tdata.setQuery(\"UPDATE TipoPuesto SET puesto = '\"+puestoNuevo+\"', sueldo='\"+sueldoNuevoNew+\"' WHERE puesto='\"+puestoViejo+\"'\");\n\t\t\t\t\n\t\t\t\ttxtENombre.setText(\"\");\n\t\t\t\ttxtEdSueldo.setText(\"\");\n\t\t\t\tif(cbEdPuesto.getSelectedIndex()!=0) {\n\t\t\t\t\tJOptionPane.showMessageDialog(btnGuardarE,\"Edición exitosa\");\n\t\t\t\t\tcbElPuesto.removeAllItems();\n\t\t\t\t\tcbEdPuesto.removeAllItems();\n\t\t\t\t\tcbElPuesto.addItem(\"Seleccione un hospital...\");\n\t\t\t\t\tcbEdPuesto.addItem(\"Seleccione un hospital...\");\n\t\t\t\t\tregistros=(ResultSet) data.getQuery(\"Select * from TipoPuesto\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\twhile(registros.next()) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcbElPuesto.addItem(registros.getString(\"puesto\"));\n\t\t\t\t\t\t\tcbEdPuesto.addItem(registros.getString(\"puesto\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString input = ((String)comboBoxProductAuthor.getSelectedItem()).toLowerCase();\n\t\t\t\t//String input = (productAuthorTextField.getText()).toLowerCase();\t// Convert input text to lower case. \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//All names in array should be stored in lower case.\n\t\t\t\t\n\t\t\t\tif(input.trim().equals(\"select\")){ \t// If no value is selected\n\t\t\t\t\tproductTextArea.setText(\"\");\n\t\t\t\t\tproductTextArea.setCaretPosition(0);\n\t\t\t\t\tlistOfProdIds.setSelectedItem(\"Select\");\n\t\t\t\t\tlistofProductTitle.setSelectedItem(\"Select\");\t\t\t\t\t\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select Product Author From Drop Down Menu\");\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}else{\t\t\t\t\t\t\t// Take in String and Search for it.\n\t\t\t\t\tproductTextArea.setText(product.viewProductByAuthor(input, products));\t\n\t\t\t\t\tproductTextArea.setCaretPosition(0);\t\t// This sets the position of the scroll bar to the top of the page.\n\t\t\t\t\tlistOfProdIds.setSelectedItem(\"Select\");\n\t\t\t\t\tlistofProductTitle.setSelectedItem(\"Select\");\n\t\t\t\t\tlistOfProductAuthor.setSelectedItem(\"Select\");\n\t\t\t\t\tpriceRange.clearSelection();\n\t\t\t\t\tquantity.clearSelection();\n\t\t\t\t}\n\t\t\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t\tString evento = e.getActionCommand();\n\t\t\n\t\tswitch (evento) {\n\t\tcase \"enviar\":\n\t\t\tctrl.enviar();\n\t\t\tpanelEnviar.setMensaje(\"\");\n\t\t\t\n\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tif(cbx == e.getSource()){\n\t\t\tString evento1 = (String) cbx.getSelectedItem();\n\t\t\tif(evento1.equalsIgnoreCase(\"Playfair\")){\n\t\t\t\tctrl.generarMatriz();\n\t\t\t\t//ctrl.cifrar(panelEnviar.getMensaje());\n\t\t\t}\n\t\t\telse if(evento1.equalsIgnoreCase(\"DES\")){\n\t\t\t\tctrl.generarLlavesDes();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\tString s = tfProducer.getText() + \" \" + tfCode.getText() + \" \" + tfName.getText() + \" \" + tfCost.getText() + \"\\n\";\n\t\t\tList<Nastroj> nastroje = model.getListOfNastroj();\n\t\t\tboolean ok = true;\n\t\t\tfor(Nastroj n : nastroje){\n\t\t\t if(n.toString().equals(s)){\n\t\t\t\tok = false;\n\t\t\t\tJOptionPane.showMessageDialog(AddNastrojDialog.this,\n \"Záznam již existuje\",\n \"Špatná data\",\n JOptionPane.WARNING_MESSAGE);\n\t\t\t\tdispose();\n\t\t\t }\n\t\t\t}\n\t\t\t\n\t\t\tif(ok){\n\t\t\t try{\n\t\t\t\t// if the producer is not in the producers table, entity wont bo created\n\t\t\t\tmodel.addNastroj(tfProducer.getText(), tfCode.getText(), tfName.getText(), Integer.parseUnsignedInt(tfCost.getText()));\n\t\t\t\tJOptionPane.showMessageDialog(AddNastrojDialog.this,\n\t\t\t\t \"Ok\",\n\t\t\t\t \"Záznam úspěšně přidán\",\n\t\t\t\t JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t\tdispose();\n\n\t\t\t dispose();\n\t\t\t }catch(IllegalArgumentException iae){\n\t\t\t\tJOptionPane.showMessageDialog(AddNastrojDialog.this,\n\t\t\t\t\"Špatná data\",\n\t\t\t\t\"Špatná data\",\n\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\t\t dispose();\n\t\t\t }\n\t\t\t}\n\t\t }",
"private void materiaSelecionada(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_materiaSelecionada\n if (cbox1Materia.getSelectedIndex() != 0) {\n materiaSeleccionada = true;\n buscarEvaluacion();\n vaciarTabla();\n } else {\n materiaSeleccionada = false;\n vaciarTabla();\n cbox3Evaluacion.removeAllItems();\n cbox3Evaluacion.addItem(\"Seleccione una opción\");\n }\n\n }",
"public void actionPerformed(ActionEvent btnBuscar) {\n\t\t\tSystem.out.println(txtBusqueda.getText()); //imprime en consola el texto que se va a buscar\n\t\t\t//Biblioteca.buscarCliente(txtBusqueda.getText());\n\t\t\t\n\t\t\t\n }",
"public void actionPerformed(ActionEvent arg0) {\n String[] BoutonClick = arg0.getActionCommand().split(\":\");\n // System.out.println(\"buttonClick:\" + BoutonClick[1]);\n String[] Prix = BoutonClick[1].split(\"€\");\n String ProduitChoisi = BoutonClick[0];\n // System.out.println(ProduitChoisi);\n Panier.getListeNomProduit().add(ProduitChoisi);\n Panier.getListePrix().add(BoutonClick[1]);\n this.ajouterProduit(Prix[0].trim());\n \n if (MainBDProgram.debug) {\n System.out.println(\"prix du produit: \" + BoutonClick [1]);\n System.out.println(Panier.getListeNomProduit());\n System.out.println(Panier.getListePrix());\n }\n }",
"protected void actionPerformedBtnProcesarVenta(ActionEvent e) {\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n if (e.getActionCommand() == \"查询\") {\n //String order = e.getActionCommand();\n try {\n new Inquiry(username);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n //new Login(e.getActionCommand());\n } else if (e.getActionCommand() == \"存款\") {\n new SaveMoney(username);\n //new Login(e.getActionCommand());\n } else if (e.getActionCommand() == \"取款\") {\n new DrawMoney(username);\n } else if (e.getActionCommand() == \"转账\") {\n new Transfer(username);\n } else if (e.getActionCommand() == \"改密\") {\n new Modify(username);\n }\n else if (e.getActionCommand() == \"查询记录\") {\n new Test1();\n }\n else if (e.getActionCommand() == \"退卡\") {\n new Menu();\n // System.exit(0);\n }\n\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n Object source = e.getSource();\n if (source == confirmButton) {\n var newResult = new Result(result, name.getText());\n try {\n newResult.saveResult();\n } catch (IOException ioException) {\n ioException.printStackTrace();\n }\n }\n }",
"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}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\t\tint hora = calendario.get(Calendar.HOUR_OF_DAY);\r\n\t\t\t\t\tint minutos = calendario.get(Calendar.MINUTE);\r\n\t\t\t\t\tint segundos = calendario.get(Calendar.SECOND);\r\n\t\t\t\t\tString horaDespegue = hora + \":\" + minutos + \":\" + segundos;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Asigna la hora de despegue a la variable del Avión\r\n\t\t\t\t\tcontrol.llegadaAviones.elementAt(0).setHoraDespegue(horaDespegue);\r\n\r\n\t\t\t\t\t//Asigna al avión que puede proceder a despegar\r\n\t\t\t\t\tcontrol.llegadaAviones.elementAt(0).setApagado(true);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Escribe en el texto del registro la información del avión\r\n\t\t\t\t\tescribeRegistro();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Elimina del vector el avión\r\n\t\t\t\t\tcontrol.llegadaAviones.remove(0);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Elimina de la tabla el avión\r\n\t\t\t\t\tlistaterminal.model.removeRow(0);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Actualiza los paneles\r\n\t\t\t\t\tactualiza();\r\n\r\n\t\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\tString cmd = e.getActionCommand();\n\t\tString inputName = nameField.getText();\n\t\t\n\t\tswitch(cmd) {\n\t\tcase \"Add\":\n\t\t\taddProfile(inputName);\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"Delete\":\n\t\t\tdeleteProfile(inputName);\n\t\t\tbreak;\n\t\t\t \n\t\tcase \"Lookup\":\n\t\t\tlookUp(inputName);\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"Status\":\n\t\t\tupdateStatus();\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"Picture\":\n\t\t\tupdatePicture();\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"Friend\":\n\t\t\taddFriend();\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getActionCommand().equals(\"update\")) {\n\t\t/***********************��ѧ����Ϣ**************************/\n\t\t\tStuModel tmp = new StuModel();\n\t\t\tString sql = \"update stu set stuName=?,stuSex=?,stuAge=?,stuJg=?,stuDept=? where stuId=?\";\n\t\t\tString []paras = {nameTxt.getText(),sexTxt.getText(),ageTxt.getText(),\n\t\t\t\t\t\t\tjgTxt.getText(),deptTxt.getText(),idTxt.getText()};\n\t\t\tif(!tmp.cudStu(sql, paras))\n\t\t\t\tJOptionPane.showMessageDialog(this, \"��ѧ����Ϣʧ��\");\n\t\t\t//========�رմ���\n\t\t\tthis.dispose();\n\t\t} else if(e.getActionCommand().equals(\"cancel\")) {\n\t\t\t//========�رմ���\n\t\t\tthis.dispose();\n\t\t}\n\t}",
"public void actionPerformed(ActionEvent event)\n\t\t\t{\n\t\t\t\tgetText();\n\t\t\t\tsetString();\n\n\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n if (e.getSource() == menu.MenusCliente) {\n vista.setVisible(true);\n }\n if (e.getSource() == vista.btnGuardar) {\n this.insertar();\n }\n if (e.getSource() == vista.btnEliminar) {\n JOptionPane.showMessageDialog(null, \"Hacer doble clic en el registro que desea eliminar\");\n }\n if (e.getSource() == vista.btnEditar) {\n this.modi();\n }\n if (e.getSource() == menu.jmiClientesR) {\n this.reporte();\n }\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdoQuery();\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\t\tString nome = txtNome.getText();\n\t\t\t\t\tdouble nota1 = Integer.parseInt(txtNota1.getText());\n\t\t\t\t\tdouble nota2 = Integer.parseInt(txtNota2.getText());\n\t\t\t\t\tAluno a = new Aluno(nome, nota1, nota2);\n\t\t\t\t\t\t\t\t\n\t\t//INSERIR DADOS NO ARRAYLIST\n\t\t\t\t\talunos.add(a);\n\t\t\t\t\t\n\t\t//LIMPAR OS CAMPOS APOS CADASTRO / VOLTAR CURSOS PARA O CAMPO DO NOME\n\t\t\t\t\ttxtNome.setText(\"\");\n\t\t\t\t\ttxtNota1.setText(\"\");\n\t\t\t\t\ttxtNota2.setText(\"\");\n\t\t\t\t\ttxtNome.requestFocus();\n\t\t\t\t\t\n\t\t//ATUALIZAR DADOS DA TABELA DTM\n\t\t\t\t\tdtm.setRowCount(0);\n\t\t\t\t\tfor (int i=0; i<alunos.size(); i++) {\n\t\t\t\t\t\tdtm.addRow(new Object[] {\n\t\t\t\t\t\t\talunos.get(i).getNome(),\n\t\t\t\t\t\t\talunos.get(i).getNota1(),\n\t\t\t\t\t\t\talunos.get(i).getNota2(),\n\t\t\t\t\t\t\talunos.get(i).getMedia(),\n\t\t\t\t\t\t\talunos.get(i).getSituacao(),\n\t\t\t\t\t\t}); \n\t\t\t\t\t}\n\t\t//DEFINIR OS DADOS DA MINHA DTM\n\t\t\t\t\ttabela.setModel(dtm);\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\n\t\tString szcommand = e.getActionCommand();\n\t\tint nbadline = 0;\n\n\t\tif (szcommand.equals(\"color\")) {\n\n\t\t\tColor newColor = JColorChooser.showDialog(this, \"Choose Color\",\n\t\t\t\t\ttheDREMGui.goLabelColor);\n\t\t\tif (newColor != null) {\n\t\t\t\ttheDREMGui.goLabelColor = newColor;\n\t\t\t\tcolorButton.setForeground(newColor);\n\t\t\t\tsetGOLabelTextColor(rootptr, newColor);\n\t\t\t}\n\t\t} else if (szcommand.equals(\"help\")) {\n\t\t\tString szMessage = \"This window allows one to reduce the set of genes currently displayed \"\n\t\t\t\t\t+ \"on the main interface to those that also belong to a certain GO category. \"\n\t\t\t\t\t+ \"The GO category is selected by clicking on a row of the table. To change \"\n\t\t\t\t\t+ \"the GO category one simply needs to click on a different row of the the table. \"\n\t\t\t\t\t+ \"To no longer select genes by any GO category press the 'Unapply GO Selection \"\n\t\t\t\t\t+ \"Constraints' button. When genes are selected by a GO category, \"\n\t\t\t\t\t+ \"significant p-values appear on the map to the immediate right of nodes on \"\n\t\t\t\t\t+ \"the map. The threshold for significant p-values is defined based on the \"\n\t\t\t\t\t+ \"value on the slider. Let X be the value of the slider then 10^(-X) is the p-value \"\n\t\t\t\t\t+ \"threshold. The 'counts should be based on' can be set to 'All Genes' or 'Selected Genes'. \"\n\t\t\t\t\t+ \"Under the 'All Genes' options the counts and enrichments calculations consider all \"\n\t\t\t\t\t+ \"genes going through the path. Under the 'Selected Genes' \"\n\t\t\t\t\t+ \"option counts and enrichments calculations consider only the set of genes going \"\n\t\t\t\t\t+ \"through the path and meeting the other selection constraints \"\n\t\t\t\t\t+ \"(Selection by TF and Gene Set). There is also the option 'p-values should be', which \"\n\t\t\t\t\t+ \"can be 'Overall Enrichments' or 'Split Enrichments'. Overall enrichments \"\n\t\t\t\t\t+ \"compute p-value where the base set of \"\n\t\t\t\t\t+ \"genes is all genes in the expression data file or the \"\n\t\t\t\t\t+ \"'Pre-filtered Gene File'. Split enrichments are based on just the \"\n\t\t\t\t\t+ \"genes assigned to the prior split. Pressing the 'Hide Labels' button \"\n\t\t\t\t\t+ \"hides these labels on the map. To change the colors of these labels press \"\n\t\t\t\t\t+ \"the 'Change Labels' button. The color of the text of this button will match the \"\n\t\t\t\t\t+ \"color of the GO labels on the map.\";\n\n\t\t\tUtil.renderDialog(theFrame, szMessage, -300, -100);\n\t\t} else if (szcommand.equals(\"hide\")) {\n\t\t\tif (theDREMGui.bshowgolabels) {\n\t\t\t\ttheDREMGui.bshowgolabels = false;\n\t\t\t\thideButton.setText(\"Show GO Labels\");\n\t\t\t\tsetGOLabelTextVisible(rootptr, false);\n\t\t\t} else {\n\t\t\t\ttheDREMGui.bshowgolabels = true;\n\t\t\t\thideButton.setText(\"Hide GO Labels\");\n\t\t\t\tsetGOLabelTextVisible(rootptr, true);\n\t\t\t}\n\n\t\t} else if (szcommand.equals(\"unapply\")) {\n\t\t\ttheDREMGui.bapplygolabels = false;\n\t\t\tunapplyButton.setEnabled(false);\n\t\t\thideButton.setEnabled(false);\n\t\t\ttheDREMGui.unselectGO();\n\t\t\trowSM.clearSelection();\n\t\t\tsetGOLabelTextVisible(rootptr, false);\n\t\t}\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\tnew RelatorioFuncView().iniciaGui2();\t\n\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent ae) {\n String command = ae.getActionCommand();\n switch (command) {\n case \"Conferma\":\n if (convalidaCampi()) {\n salvaPrescrizione(creaPrescrizione());\n Utility.chiudiDialog(ae);\n }\n break;\n case \"Annulla\":\n Utility.chiudiDialog(ae);\n break;\n }\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n JRadioButton radioButton = (JRadioButton) MainUi.map.get(\"xiaoGuoDengSuCaiTypeButton\");\r\n JList suCai_list = (JList) MainUi.map.get(\"suCai_list\");\r\n JList suCaiLightType = (JList) MainUi.map.get(\"suCaiLightType\");\r\n if (suCai_list.getSelectedIndex() != -1) {\r\n String suCaiName = suCai_list.getSelectedValue().toString();\r\n if (!radioButton.isSelected()) {\r\n int suCaiNum = Integer.valueOf(suCaiName.split(\"--->\")[1]).intValue();\r\n new DongZuoSuCaiEditUI().show(suCaiName, suCaiNum);\r\n } else {\r\n int denKuNum = suCaiLightType.getSelectedIndex();\r\n int suCaiNum = Integer.valueOf(suCaiName.split(\"--->\")[1]).intValue();\r\n\r\n new SuCaiEditUI().show(suCaiName, suCaiNum, denKuNum);\r\n }\r\n }\r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\titem5 = tf[7].getText();\n\t\t\t\tif(!item5.equals(\"\")) {\n//\t\t\t\t\tsql = transaction.T5(item5);\n\t\t\t\t\n\t\t\t\t\tDMT_refresh(sql,0);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\titem1 = tf[0].getText();\n\t\t\t\t\titem2 = tf[1].getText();\n\t\t\t\t\titem3 = tf[2].getText();\n//\t\t\t\t\tsql = transaction.T9(inx0,item1,inx1,item2,inx2,item3);\n\t\t\t\t\t\n\t\t\t\t\tDMT_refresh(sql,0);\n\t\t\t\t}\n\t\t\t}",
"private void uocsoActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tString j1 = (String)cob.getSelectedItem();\t\t\t\t\n\t\t\t\tString j2=jtf2.getText();\n\n\t\t\t\tGetSQL db = new GetSQL();\n\t\t\t\tdb.ConnectSQL();\n\t\t\t\tif(j2.isEmpty()){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter data!\", \"Message\",\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\t\t}else{\n\t\t\t\tString sql = \"update sc set degree='\" + j2 + \"' where sno='\"+non+\"' and cno='\" + j1.substring(0, 3) + \"'\";\n\t\t\t\tdb.insert(sql);\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Modified successfully\", \"Message\",\n\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\t\t}\n\t\t\t}",
"private void instanceMenu_ActionPerformed(ActionEvent ae, String instanceName) {\n for (int i = 0; i < allInstances.length; i++) {\n if (allInstances[i][1].equals(instanceName)) {\n if (allInstances[i][2].equals(\"selected\")) {\n allInstances[i][2] = \"not selected\";\n }\n else {\n allInstances[i][2] = \"selected\";\n }\n }\n }\n\n findSelectedInstances();\n\n // reset any cursors in the crusor cache that have been modified for rac\n\n if (debug) {\n System.out.println(\"\\nList of the instances array: \");\n for (int i = 0; i < allInstances.length; i++) {\n System.out.println(allInstances[i][0] + \" \" + allInstances[i][1] + \" \" + allInstances[i][2]);\n }\n }\n }",
"@Override\r\n public void actionPerformed(ActionEvent nomeDoEvento) {\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString name = n.getText();\n\t\t\t\tString scRate = scr.getText();\n\t\t\t\tString ifsAccount = ifsa.getText();\n\t\t\t\tString ifLoan = ifl.getText();\n\t\t\t\tString bfInterest = bfi.getText();\n\t\t\t\tint res = managerController.editCurrency(name, scRate, ifsAccount, ifLoan, bfInterest);\n\t\t\t\t\t\n\t\t\t\tif(res == ErrCode.OK) {\n\t\t\t\t\tObject[] options = {\"OK\"};\n\t\t\t JOptionPane.showOptionDialog(null, \n\t\t\t \t\tErrCode.errCodeToStr(res), \"Message\", \n\t\t\t JOptionPane.DEFAULT_OPTION, JOptionPane.INFORMATION_MESSAGE, null, \n\t\t\t options, \n\t\t\t options[0]); \n\t\t\t \n\t\t\t\t\tCurrencyConfig.this.dispose();\n\t\t\t\t\tnew SetConfig();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tObject[] options = {\"OK\"};\n\t\t\t JOptionPane.showOptionDialog(null, \n\t\t\t ErrCode.errCodeToStr(res), \"Error\", \n\t\t\t JOptionPane.DEFAULT_OPTION, JOptionPane.ERROR_MESSAGE, null, \n\t\t\t options, \n\t\t\t options[0]); \n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"dd-mm-yyyy\");\n\t\t\t\t\n\t\t\t\tDate DatumRodjenja = new Date();\n\t\t\t\ttry {\n\t\t\t\t\tDatumRodjenja = formatter.parse(txtFieldDatumRodjenja.getText());\n\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint brojIndeksa = Integer.parseInt(txtFieldBrIndeksa.getText());\n\t\t\t\t\n\t\t\t\t\tControllerStudenti.getInstance().izmeniStudenta(row, txtFieldBrIndeksa.getText(),txtFieldIme.getText(), txtFieldPrezime.getText(), DatumRodjenja, txtFieldAdresaStanovanja.getText(), \n\t\t\t\t\t\t\ttxtFieldBrTelefona.getText(), txtFieldEmail.getText(), (GodinaStudija.getSelectedItem()).toString(), \n\t\t\t\t\t\t\t(comboStatus.getSelectedItem()).toString(),txtFieldGodinaUpisa.getText());\n\t\t\t\t\t\n\t\t\t\t\t//TabStudent.getInstance().azurirajPrikaz();\n\t\t\t\t\t\n\t\t\t\t\tdispose();\n\t\t\t}",
"public void onClick$btnAceptar() throws InterruptedException {\n\t\tif (lsbxPersonas.getSelectedIndex() != -1) {\r\n\t\t\t// se obtiene la Persona Natural seleccionada\r\n\t\t\tPersonaNatural d = personaNatural.get(lsbxPersonas\r\n\t\t\t\t\t.getSelectedIndex());\r\n\t\t\t// se obtiene la referencia del formulario\r\n\t\t\tComponent formulario = (Component) catalogo.getVariable(\r\n\t\t\t\t\t\"formulario\", false);\r\n\t\t\t// se le asigna el objeto Persona Natural al formulario\r\n\t\t\tformulario.setVariable(\"personaNatural\", d, false);\r\n\t\t\t// se le envia una señal al formulario indicado que el formulario\r\n\t\t\t// se cerro y que los datos se han enviado\r\n\t\t\tEvents.sendEvent(new Event(\"onCatalogoCerrado2\", formulario));\r\n\t\t\t// se cierra el catalogo\r\n\t\t\tcatalogo.detach();\r\n\r\n\t\t} else {\r\n\t\t\tMessagebox.show(\"Seleccione una divisa\", \"Mensaje\", Messagebox.YES,\r\n\t\t\t\t\tMessagebox.INFORMATION);\r\n\r\n\t\t}\r\n\r\n\t}"
]
| [
"0.64525104",
"0.6408955",
"0.6390721",
"0.635776",
"0.6250133",
"0.62457967",
"0.62207705",
"0.6204593",
"0.6204126",
"0.6199917",
"0.6197317",
"0.61903",
"0.6184923",
"0.6180154",
"0.61690867",
"0.6165609",
"0.6159741",
"0.615972",
"0.61519074",
"0.61456794",
"0.61346203",
"0.61155486",
"0.60997033",
"0.6089298",
"0.6078555",
"0.6066737",
"0.6057826",
"0.605589",
"0.6054832",
"0.60525596",
"0.6041358",
"0.603329",
"0.6032514",
"0.6026677",
"0.6023296",
"0.6022045",
"0.6019871",
"0.60102755",
"0.5997301",
"0.59810674",
"0.59755445",
"0.5975051",
"0.59696895",
"0.59616256",
"0.5957214",
"0.59561366",
"0.59482396",
"0.59408647",
"0.59394854",
"0.5932546",
"0.5932381",
"0.59310293",
"0.5930954",
"0.5929893",
"0.59256077",
"0.59244317",
"0.5922485",
"0.59223765",
"0.5915027",
"0.5911976",
"0.59090644",
"0.5908017",
"0.5906525",
"0.5905779",
"0.5899033",
"0.5894816",
"0.5893509",
"0.5890156",
"0.5885354",
"0.5884096",
"0.5874956",
"0.58705515",
"0.5869497",
"0.58684295",
"0.58684295",
"0.58684295",
"0.58684295",
"0.5866635",
"0.5864746",
"0.5863693",
"0.58609426",
"0.5860246",
"0.58583695",
"0.58509624",
"0.5850115",
"0.584202",
"0.584202",
"0.58357155",
"0.58350754",
"0.58320075",
"0.5831718",
"0.5822008",
"0.5809366",
"0.58093435",
"0.5806836",
"0.5806836",
"0.5806836",
"0.5806764",
"0.5800963",
"0.5797495"
]
| 0.67158645 | 0 |
private static FieldDAO[] fields; | public MySQLPersonDAO() throws DBConnectException { // alternativ hier Fehlerlogging + throw new DaoException
// fields=new FieldDAO[9];
// fields= new FieldDAO[]{
// new FieldDAO("vorname", "Vorname", "vorname", String.class, false),
// new FieldDAO("nachname", "Nachname", "nachname", String.class, false),
// new FieldDAO("plz", "PLZ", "plz", String.class, false),
// new FieldDAO("ort", "Ort", "ort", String.class, false),
// new FieldDAO("strasse", "Straße/Nr.", "strasse", String.class, false),
// new FieldDAO("telefon", "Telefon", "telefon", String.class, true),
// new FieldDAO("mobil", "Mobil", "mobil", String.class, true),
// new FieldDAO("email", "E-Mail", "email", String.class, true),
// new FieldDAO("id", "ID", "id", Integer.class, false),
// };
dbconnect=DBConnect.getInstance();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DBField[] getFields()\n {\n // Note: this method is called frequently\n if (!this.fieldArrayReady) {\n // optimize access to field array\n synchronized (this.fieldMap) {\n if (!this.fieldArrayReady) { // test again inside lock\n this.fieldArray = this.fieldMap.valueArray(DBField.class);\n this.fieldArrayReady = true;\n }\n }\n } \n return this.fieldArray;\n }",
"ISourceField[] getFields();",
"Fields fields();",
"List<Field> getFields();",
"@Override\r\n public List<DbField> initDbField(String controlID) {\n return null;\r\n }",
"@Override\n\tpublic void getFields(List<String> table) {\n\t\t\n\t}",
"public List<AliasedField> getFields() {\r\n return fields;\r\n }",
"String[] getSharedFields();",
"private List getMappingFieldsInternal() {\n if (fields == null) {\n fields = new ArrayList();\n }\n\n return fields;\n }",
"public RAMContactoDAO() {\r\n /*contacto.add(c1);\r\n contacto.add(c2);\r\n contacto.add(c3);\r\n contacto.add(c4);*/\r\n }",
"public List<Field<T>> getFields()\r\n/* 63: */ {\r\n/* 64:84 */ return this.fields;\r\n/* 65: */ }",
"Field getFields(int index);",
"@Override\n public java.util.List<Field> getFieldsList() {\n return fields_;\n }",
"public AllFieldsTableHandler(){}",
"java.util.List<com.sagas.meta.model.MetaFieldData> \n getFieldsList();",
"private List<Field> getFields() {\n try {\n List<Field> fields = ResultSetUtil.getFields(databaseName, tableName, resultSets.get(0));\n if(fields.size() != MergeFactory.MAX_QUERY_FIELD_SIZE){\n throw new SqlParserException(\"the query fields max be equals \" + MergeFactory.MAX_QUERY_FIELD_SIZE);\n }\n return fields;\n } catch (SQLException e) {\n LOG.error(\"merge resultSet error\",e);\n throw new MergeException(\"merge resultSet error\" , e);\n }\n }",
"@Override\n public Field getFields(int index) {\n return fields_.get(index);\n }",
"public static void setFields(DBFField[] fields) throws UnsupportedEncodingException {\r\n int i = 0;\r\n\r\n fields[i] = new DBFField();\r\n fields[i].setName(\"TIPREG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(1);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCFEC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCSER\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCNUM\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(6);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODTIP\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODMOD\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODTER\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(5);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CTACON\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(12);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"BASEBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPTBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORNOR\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"RECBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORREC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORTES\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORFIN\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"RFDPP\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DESHOR\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DESKM\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"TOTFAC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(14);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO1\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO1\");\r\n //fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n // Es numerico pero para insertar valor \"XXX,YY\" \r\n //hay que meterlo como string y despues cambiarlo en dbfmanager -> Structura\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO2\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO2\");\r\n // Misma razon que IMPVTO1\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO3\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO3\");\r\n // Misma razon que IMPVTO1\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO4\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO4\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO5\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO5\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO6\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO6\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DIETENT\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODFORPAG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(3);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"TIPFORPAG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(1);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n \r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"BASEIMPCC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(0);\r\n// logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n //logger.log(Level.INFO, \"Total columnas en fichero .dbf = {0}\", i);\r\n }",
"public class_689[] method_3955() {\r\n return this.field_3403;\r\n }",
"private static Field[] retrieveAllFields(final Object object) {\r\n\t\tField[] fieldsArray = null;\r\n\r\n\t\t// - Retrieve fields array from cache if exists.\r\n\t\tif (KerAnnotation.fieldsCache.containsKey(object.getClass())) {\r\n\t\t\tfieldsArray = KerAnnotation.fieldsCache.get(object.getClass());\r\n\t\t}\r\n\t\t// - Else get fields and cache them.\r\n\t\telse {\r\n\t\t\t// - Aggregate all annotated fields (declared, inherited, etc.).\r\n\t\t\tfinal Set<Field> fields = new HashSet<Field>();\r\n\r\n\t\t\tfor (final Field field : object.getClass().getFields()) {\r\n\t\t\t\tif (field.getAnnotations().length > 0) {\r\n\t\t\t\t\tfields.add(field);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (final Field field : object.getClass().getDeclaredFields()) {\r\n\t\t\t\tif (field.getAnnotations().length > 0) {\r\n\t\t\t\t\tfields.add(field);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// - Convert set to array.\r\n\t\t\tfieldsArray = fields.toArray(new Field[0]);\r\n\r\n\t\t\t// - Cache array.\r\n\t\t\tKerAnnotation.fieldsCache.put(object.getClass(), fieldsArray);\r\n\t\t}\r\n\r\n\t\treturn fieldsArray;\r\n\t}",
"@Override\n public SparseArray<Field> getFieldsByID() {\n final SparseArray<Field> out = new SparseArray<Field>();\n synchronized (fields) {\n populateFieldCache();\n Collection<Field> values = fields.values();\n for (Field field : values) {\n // Cache is up-to-date at this point, so we don't need to hit the DB.\n out.put(field.getID(), field);\n }\n }\n return out;\n }",
"private Object[] getArguments (String className, Object field)\n\t{\n\t\treturn ((field == null) ? new Object[]{className} : \n\t\t\tnew Object[]{className, field});\n\t}",
"public List<FieldObject> getFieldObjects() {\n return _fieldObjects;\n }",
"public static Field[] getFields (Class<?> clazz)\n {\n ArrayList<Field> list = new ArrayList<Field>();\n getFields(clazz, list);\n return list.toArray(new Field[list.size()]);\n }",
"java.util.List<Field>\n getFieldsList();",
"Array<Object> getInstanceValues();",
"@Override\n\tpublic List<finalDataBean> findAll(String[] fields) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<Field> getAll() {\n\t\treturn null;\n\t}",
"public ArrayList<GOlrField> getFields() {\n\n ArrayList<GOlrField> collection = new ArrayList<GOlrField>();\n\n // Plonk them all in to our bookkeeping.\n for (GOlrField field : unique_fields.values()) {\n collection.add(field);\n }\n\n return collection;\n }",
"com.sagas.meta.model.MetaFieldData getFields(int index);",
"public FieldList()\n\t{\n\t\tfields = new ArrayList<AbstractField>();\n\t}",
"public static Field[] getInstanceVariables(Class<?> cls) {\n List<Field> accum = new LinkedList<>();\n while (cls != null) {\n Field[] fields = cls.getDeclaredFields();\n for (Field field : fields) {\n if (!Modifier.isStatic(field.getModifiers())) {\n accum.add(field);\n }\n }\n cls = cls.getSuperclass();\n }\n Field[] retvalue = new Field[accum.size()];\n return accum.toArray(retvalue);\n }",
"public String getFields() {\n return fields;\n }",
"public Field[] getKeyFields();",
"public JTextField[] camposCliente(){\n JTextField campos [] = new JTextField[]{txtCliCNPJ, txtCliDDD, \n txtCliDDDTel2, txtCliNFant, txtCliResp,\n txtCliRz, txtCliTel, txtCliTel2};\n \n return campos;\n }",
"public static Field[] getAllFields (Class c)\n\t{\n\t\tList l = new ArrayList();\n\t\taddDeclaredFields(l, c);\n\t\t\n\t\tField[] fields = new Field[l.size()];\n\t\tfields = (Field[]) l.toArray(fields);\n\t\treturn fields;\n\t}",
"public Field[][] getFieldArray() {\r\n\t\treturn fieldArray;\r\n\t}",
"synchronized public Set<String> getFields() {\n return Collections.unmodifiableSet(new HashSet<>(fields));\n }",
"public interface TProjectChangeContentDAO extends BaseDao<TProjectChangeContent> {\n List findByProjectchangecontentField(Object projectchangecontentField);\n\n List findByProjectchangecontentFieldname(\n Object projectchangecontentFieldname);\n\n List findByProjectchangecontentOvalue(\n Object projectchangecontentOvalue);\n\n List findByProjectchangecontentNvalue(\n Object projectchangecontentNvalue);\n\n List findByIsdeleted(Object isdeleted);\n}",
"@SuppressWarnings(\"unchecked\")\n\tprivate Set<Field> getPersistenceFields(Class<?> clz) {\n\t\tSet fields = new HashSet();\n\t\tfor (Field f : clz.getDeclaredFields()) {\n\t\t\tif (f.isAnnotationPresent(Persistence.class)) {\n\t\t\t\tf.setAccessible(true);\n\t\t\t\tfields.add(f);\n\t\t\t}\n\t\t}\n\t\treturn fields;\n\t}",
"private List<Field> getFields(List<Field> fields, Class<?> type) {\n logger.trace(\"Adding all declared fields from class {}\", type);\n fields.addAll(Arrays.asList(type.getDeclaredFields()));\n\n if (type.getSuperclass() != null) {\n logger.trace(\"Retrieving declared fields from class {}\", type);\n getFields(fields, type.getSuperclass());\n }\n\n return fields;\n }",
"public static List<Field> field_list(String form_Name, String mode) {\n\t try{\n\t Connection connection = getConnection();\n\n\t List<Field> fields = new ArrayList<Field>();\n\t \n\n\t try {\n\t \tPreparedStatement statement;\n\t \tif(mode == \"specific\") {\n\t\t statement = connection.prepareStatement(\"SELECT * FROM template_fields WHERE form_name = '\"+form_Name+\"'\");\n\t \t}\n\t \telse {\n\t \t\tstatement = connection.prepareStatement(\"SELECT * form_name FROM template_fields\");\n\t \t}\n\t \tResultSet rs = statement.executeQuery();\n\n\t while (rs.next()) {\n\t int fieldId = rs.getInt(\"field_id\");\n\t String fieldName = rs.getString(\"field_name\");\n\t String formName = rs.getString(\"form_name\");\n\t String fieldType = rs.getString(\"field_type\");\n\t String fieldValue = rs.getString(\"field_value\");\n\t String fieldMandatory = rs.getString(\"field_mandatory\");\n\t \t PreparedStatement fieldstmt = connection.prepareStatement(\"SELECT * FROM radio_fields WHERE field_id = '\"+fieldId+\"' AND form_name = '\"+form_Name+\"'\");\n\t ResultSet fieldrs = fieldstmt.executeQuery();\n\t List<String> itemList = new ArrayList<String>();\n\t while(fieldrs.next()) {\n\t \titemList.add(fieldrs.getString(\"radio_value\"));\n\t \tSystem.out.println(\"fieldID\" + fieldId + \": \" + fieldrs.getString(\"radio_value\"));\n\t }\n\t String[] fieldRadios = new String[itemList.size()];\n\t fieldRadios = itemList.toArray(fieldRadios);\n\t fieldstmt.close();\n\n\t \n\t Field field = new Field(formName, fieldId, fieldName, fieldType, fieldValue, fieldMandatory, fieldRadios);\n\t System.out.println(fieldRadios);\n\t System.out.println(\"MADA: \" + field.getTheMandatory());\n\t System.out.println(\"field:\" + field.getTheName());\n\t \n\t fields.add(field);\n\t }\n\t statement.close();\n\t connection.close();\n\t } catch (SQLException e) {\n\t e.printStackTrace();\n\t }\n\n\t return fields;\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t }",
"public final List<BuilderField> fields() throws RecognitionException {\n List<BuilderField> fields = null;\n\n\n BuilderField field16 = null;\n\n fields = Lists.newArrayList();\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:238:3: ( ^( I_FIELDS ( field )* ) )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:238:5: ^( I_FIELDS ( field )* )\n {\n match(input, I_FIELDS, FOLLOW_I_FIELDS_in_fields308);\n if (input.LA(1) == Token.DOWN) {\n match(input, Token.DOWN, null);\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:239:7: ( field )*\n loop5:\n while (true) {\n int alt5 = 2;\n int LA5_0 = input.LA(1);\n if ((LA5_0 == I_FIELD)) {\n alt5 = 1;\n }\n\n switch (alt5) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:239:8: field\n {\n pushFollow(FOLLOW_field_in_fields317);\n field16 = field();\n state._fsp--;\n\n\n fields.add(field16);\n\n }\n break;\n\n default:\n break loop5;\n }\n }\n\n match(input, Token.UP, null);\n }\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return fields;\n }",
"public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"LastChanged\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Date.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Deleted\", 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Description\", 25, null, null);\n field = new FieldInfo(this, \"CurrencyCode\", 3, null, null);\n field = new FieldInfo(this, \"LastRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"RateChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"RateChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"CostingRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"CostingChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"CostingChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"RoundAt\", 1, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, \"IntegerDesc\", 20, null, \"Dollar\");\n field = new FieldInfo(this, \"FractionDesc\", 20, null, null);\n field = new FieldInfo(this, \"FractionAmount\", 10, null, new Integer(100));\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"Sign\", 3, null, \"$\");\n field = new FieldInfo(this, \"LanguageID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"NaturalInteger\", 20, null, null);\n field = new FieldInfo(this, \"NaturalFraction\", 20, null, null);\n }",
"private LivreDAO getLivreDAO() {\r\n return this.livreDAO;\r\n }",
"public List<Field> iterateThroughAllFields() {\n\n List<Field> listOfFields = new ArrayList<Field>(fields.length * fields.length);\n // TODO: n**m complexity\n for (int i = 0; i < this.fields.length; i++) {\n for (int j = 0; j < this.fields.length; j++) {\n listOfFields.add(this.fields[i][j]);\n }\n }\n return listOfFields;\n }",
"public FieldDeclaration[] getFields() {\n return m_classBuilder.getFields();\n }",
"@Override\r\n protected Object[] getFieldValues ()\r\n {\n return null;\r\n }",
"protected Vector collectFields() {\n Vector fields = new Vector(1);\n fields.addElement(this.getField());\n return fields;\n }",
"private String[] getFields(){\n String[] fields = new String[entry.get(0).size()];\n\n for (int i = 0; i < entry.get(0).size(); i++){\n fields[i] = spinners[i].getSelectedItem().toString();\n }\n\n return fields;\n }",
"void visitArrayField(FieldAttributes f, Type typeOfF, Object obj);",
"public MrnWoatlas5[] get (String fields, String where, String order) {\n // create the column list from the instance variables if neccessary\n try {\n if (fields.equals(\"\")) { fields = null; }\n } catch (NullPointerException e) {}\n if (fields == null) {\n fields = createColumns();\n } // if (fields != null)\n return doGet(db.select(fields, TABLE, where, order));\n }",
"static Field[] createFields(int integer, String text, int index, double decimal) {\n\t\tField[] fields = new Field[4];\n\t\tfields[0] = new IntegerFieldWrapper(integer);\n\t\tfields[1] = new StringFieldWrapper(text);\n\t\tfields[2] = new EnumFieldWrapper(index, createEnumDomain());\n\t\tfields[3] = new FloatFieldWrapper(decimal);\n\t\treturn fields;\n\t}",
"protected DAO()\r\n\t{\r\n\t\tcustomers = new ArrayList<Customer>();\r\n\t}",
"public DBObject[] getDbObjects() {\n return dbObjects;\n }",
"public interface FieldDAO extends CrudRepository<Field, Integer> {\n\n}",
"@Before\n public void setUp() {\n field = new Field[LogicConst.ROWS][LogicConst.COLUMS];\n for (int i = 0; i < LogicConst.ROWS; i++) {\n for (int j = 0; j < LogicConst.COLUMS; j++) {\n field[i][j] = new Field();\n }\n }\n }",
"public TIFFField[] getFields() {\n return fields;\n }",
"@Override\n\tprotected void initializeFields() {\n\n\t}",
"public EAdList<EAdField<?>> getFields() {\r\n\t\treturn fields;\r\n\t}",
"java.lang.String getFields();",
"private static List<Field> getValidFields(final Field[] fields, final boolean returnFinalFields) {\n final List<Field> validFields = new ArrayList<Field>();\n\n for (final Field field : fields) {\n if (!Modifier.isStatic(field.getModifiers()) && (returnFinalFields || !Modifier.isFinal(field.getModifiers()))) {\n validFields.add(field);\n }\n }\n return validFields;\n }",
"private FieldInfo() {\r\n\t}",
"@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }",
"public interface FieldPopulator\n{\n List<String> getCoreFields();\n\n List<String> getSupportedFields();\n\n String getUriTemplate();\n}",
"FieldsType createFieldsType();",
"public HashMap<String, String> getFields() {\r\n \t\treturn fields;\r\n \t}",
"private static void initializeDatafields(Class<AbstractNode> type) throws Exception {\r\n if (staticDatafieldMap == null) {\r\n staticDatafieldMap = new HashMap<Class<AbstractNode>, Set<String>>();\r\n }\r\n\r\n if (staticDatafieldMap.get(type) == null) {\r\n staticDatafieldMap.put(type, Information.getDatafieldsOfNode(type));\r\n }\r\n }",
"public StructField field(int i) {\n return fields[i];\n }",
"public ArrayList<FieldsTemplateLibrary> templateFieldLibraryGetAll() {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\tCollection<FieldsTemplateLibrary> collection = dao.getAllFields();\n\t\tArrayList<FieldsTemplateLibrary> responseList = new ArrayList<FieldsTemplateLibrary>(collection);\n\t\treturn responseList;\n\t}",
"private void initData(List<JTextField> fields) {\n Properties config = Utils.loadPropertiesFile(System.getProperty(\"user.dir\") + \"\\\\\" + CONF_FILE_NAME, this.getClass().getClassLoader().getResourceAsStream(CONF_FILE_NAME));\n \n List<String> props = Arrays.asList(\"fromDbDriver\", \"toDbDriver\", \"fromDbUrl\", \"toDbUrl\", \"fromDbUsername\", \"toDbUsername\", \"fromDbPassword\", \"toDbPassword\", \"criteria\");\n \n logger.info(\"Init data from configruation\");\n for (int i = 0; i < fields.size(); i++) {\n String key = props.get(i);\n String value = config.getProperty(key);\n logger.info(\"{} is {} \", key, value);\n fields.get(i).setText(value);\n }\n \n IS_OPEN_LOG_FILE = Utils.parseString2Boolean(config.getProperty(\"openLogFile\"), false);\n DELAY_TIME = Utils.parseString2Long(config.getProperty(\"delayTime\"), PER_SECOND);\n IS_DELETE_ORIGINAL_DATA = Utils.parseString2Boolean(config.getProperty(\"deleteOriginalData\"), true);\n ABORT_WHEN_ABNORMAL_INSERT = Utils.parseString2Boolean(config.getProperty(\"abort\"), false);\n }",
"public FieldsImpl() {\r\n logger.entering(CLASS_NAME, \"FieldsImpl()\");\r\n }",
"public java.lang.String[] getMappingFieldsArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(MAPPINGFIELDS$28, targetList);\n java.lang.String[] result = new java.lang.String[targetList.size()];\n for (int i = 0, len = targetList.size() ; i < len ; i++)\n result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();\n return result;\n }\n }",
"List<FieldRestrictions> fieldRestrictions();",
"public String[] getFieldNames();",
"public DBField[] getKeyFields()\n {\n return this.priKeys; // should never be null\n }",
"public ArrayList<GtfsRelationalDaoImpl> getDao(String name){\n\t\treturn _dao.get(name);\n\t}",
"public void getRecords(Hashtable fields) throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\tmyData.record=createRecord(myData.spec,null);\n\t\ttry\n\t\t{\n\t\t\tmyData.record.getRecords(background.getClient(),fields);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}",
"public ArrayFieldMap(Collection<Field<T>> fields, int lastFieldNumber)\r\n/* 19: */ {\r\n/* 20:32 */ this.fieldsByName = new HashMap();\r\n/* 21:33 */ this.fieldsByNumber = ((Field[])new Field[lastFieldNumber + 1]);\r\n/* 22:34 */ for (Iterator localIterator = fields.iterator(); localIterator.hasNext();)\r\n/* 23: */ {\r\n/* 24:34 */ f = (Field)localIterator.next();\r\n/* 25: */ \r\n/* 26:36 */ last = (Field)this.fieldsByName.put(f.name, f);\r\n/* 27:37 */ if (last != null) {\r\n/* 28:39 */ throw new IllegalStateException(last + \" and \" + f + \" cannot have the same name.\");\r\n/* 29: */ }\r\n/* 30:42 */ if (this.fieldsByNumber[f.number] != null) {\r\n/* 31:44 */ throw new IllegalStateException(this.fieldsByNumber[f.number] + \" and \" + f + \" cannot have the same number.\");\r\n/* 32: */ }\r\n/* 33:48 */ this.fieldsByNumber[f.number] = f;\r\n/* 34: */ }\r\n/* 35:51 */ Object fieldList = new ArrayList(fields.size());\r\n/* 36:52 */ Field<T> f = this.fieldsByNumber;Field<T> last = f.length;\r\n/* 37:52 */ for (Field<T> localField1 = 0; localField1 < last; localField1++)\r\n/* 38: */ {\r\n/* 39:52 */ Field<T> field = f[localField1];\r\n/* 40:54 */ if (field != null) {\r\n/* 41:55 */ ((List)fieldList).add(field);\r\n/* 42: */ }\r\n/* 43: */ }\r\n/* 44:57 */ this.fields = Collections.unmodifiableList((List)fieldList);\r\n/* 45: */ }",
"public interface ExampleDAO {\n\n ArrayList<ExamplePojo> getAllPojos() throws IOException;\n\n}",
"public interface TProvinciasDAO {\n\t\n\tpublic ArrayList<TProvinciasBean> obtenerProvincias(String codigoDepartamento) throws DataAccessException;\n\t\n}",
"java.util.List<? extends com.sagas.meta.model.MetaFieldDataOrBuilder> \n getFieldsOrBuilderList();",
"public abstract DbDAO AccessToDAO();",
"private void init(){\n if(solicitudEnviadaDAO == null){\n solicitudEnviadaDAO = new SolicitudEnviadaDAO(getApplicationContext());\n }\n if(solicitudRecibidaDAO == null){\n solicitudRecibidaDAO = new SolicitudRecibidaDAO(getApplicationContext());\n }\n if(solicitudContestadaDAO == null){\n solicitudContestadaDAO = new SolicitudContestadaDAO(getApplicationContext());\n }\n if(preguntaEnviadaDAO == null){\n preguntaEnviadaDAO = new PreguntaEnviadaDAO(getApplicationContext());\n }\n if(preguntaRecibidaDAO == null){\n preguntaRecibidaDAO = new PreguntaRecibidaDAO(getApplicationContext());\n }\n if(preguntaContestadaDAO == null){\n preguntaContestadaDAO = new PreguntaContestadaDAO(getApplicationContext());\n }\n if(puntuacionRecibidaDAO == null){\n puntuacionRecibidaDAO = new PuntuacionRecibidaDAO(getApplicationContext());\n }\n }",
"public int getFieldCount() {\n\treturn 0;\n}",
"List<MockHolder> selectByField(Field field, List<MockHolder> mocks);",
"@Override\n public java.util.List<? extends FieldOrBuilder>\n getFieldsOrBuilderList() {\n return fields_;\n }",
"public java.util.List<Field> getFieldsList() {\n if (fieldsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(fields_);\n } else {\n return fieldsBuilder_.getMessageList();\n }\n }",
"public DBField[] getFields(Set<String> fieldNames)\n {\n if (ListTools.isEmpty(fieldNames)) {\n return this.getFields();\n } else {\n java.util.List<DBField> fldList = new Vector<DBField>();\n synchronized (this.fieldMap) {\n for (DBField dbf : this.fieldMap.values()) {\n String n = dbf.getName(); // this.getMappedFieldName(name); <== should this be used here?\n if (fieldNames.contains(n)) {\n fldList.add(dbf);\n }\n }\n } \n return fldList.toArray(new DBField[fldList.size()]);\n }\n }",
"public List<MathVarDec> getFields() {\n return fields;\n }",
"public interface CamareroDAO extends CommonDAO<Camarero> {\n\n List<Object[]> obtenerConsultaCamarero(String queryNativo, String mapeador, Date fechaInicial, Date fechaFinal);\n\n}",
"@Override\n public int getFieldsCount() {\n return fields_.size();\n }",
"public abstract ZALogDao mo87644a();",
"public List<String> get_field_from_table(String table, String field, String order);",
"QueryBuilder forFields(List<FieldUsage> fields);",
"@Override\n protected Field[] getFields(IndexReader reader, int docId, String fieldName) throws IOException {\n List<Object> values = sourceLookup.extractRawValues(fieldType.name());\n if (values.isEmpty()) {\n return EMPTY_FIELDS;\n }\n Field[] fields = new Field[values.size()];\n for (int i = 0; i < values.size(); i++) {\n fields[i] = new Field(fieldType.name(), values.get(i).toString(), TextField.TYPE_NOT_STORED);\n }\n return fields;\n }",
"private void register(String[] fieldValues) {\n\t}",
"public Enumeration getFields()\n {\n ensureLoaded();\n return m_tblField.elements();\n }",
"public int numberOfFields() { return fld_count; }",
"private int[] getFieldIds(VectorAccessible accessible, LogicalExpression expr){\n final LogicalExpression materialized = context.getClassProducer().materialize(expr, accessible);\n if (!(materialized instanceof ValueVectorReadExpression)) {\n throw new IllegalStateException(\"Only direct references allowed.\");\n }\n return ((ValueVectorReadExpression) materialized).getFieldId().getFieldIds();\n }",
"@Test\n public void testSearchField(){\n Field field = FieldSets.createFieldWithTranslations(contextServiceClient);\n\n List<Field> list = FieldSets.searchField(contextServiceClient, \"\");\n\n assertEquals(1, list.size());\n assertEquals( FIELD_ONE, list.get(0).getId());\n }"
]
| [
"0.6634263",
"0.6368079",
"0.62425566",
"0.612297",
"0.60019577",
"0.5898161",
"0.5798853",
"0.5761995",
"0.5713896",
"0.5700604",
"0.56943244",
"0.5682266",
"0.56413513",
"0.5641327",
"0.56041706",
"0.55609125",
"0.55599475",
"0.5554058",
"0.5540128",
"0.5533762",
"0.5501977",
"0.5485998",
"0.5483579",
"0.54807097",
"0.54706573",
"0.5459045",
"0.5437325",
"0.5420247",
"0.54087365",
"0.5402413",
"0.5390665",
"0.5360158",
"0.5350186",
"0.534713",
"0.53372985",
"0.53205806",
"0.5313907",
"0.53079975",
"0.5292693",
"0.52839017",
"0.5276817",
"0.52688396",
"0.52607733",
"0.52562636",
"0.52551925",
"0.5245123",
"0.5242637",
"0.5229742",
"0.522799",
"0.5220161",
"0.52179855",
"0.52015734",
"0.51957595",
"0.51894784",
"0.5173443",
"0.5170981",
"0.51642627",
"0.51640743",
"0.5158897",
"0.5127729",
"0.51259285",
"0.5123342",
"0.5121717",
"0.5120114",
"0.51093954",
"0.5105139",
"0.5087289",
"0.5066124",
"0.5058684",
"0.50585896",
"0.5046852",
"0.50345236",
"0.50329524",
"0.5031956",
"0.5031408",
"0.50292337",
"0.50241673",
"0.5020674",
"0.5018618",
"0.5012695",
"0.50099313",
"0.5000084",
"0.49996048",
"0.49992007",
"0.4998778",
"0.49958846",
"0.49832857",
"0.4977087",
"0.49763122",
"0.49756157",
"0.4967154",
"0.49671388",
"0.49608678",
"0.4959194",
"0.4955445",
"0.49528372",
"0.49520737",
"0.49505416",
"0.49479535",
"0.4941513",
"0.49398804"
]
| 0.0 | -1 |
Created by Rainbow on 2014/11/18. | public interface GetPointsListener extends Listener {
public void onGetPointsSucc(PointsInfo info);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"public final void mo51373a() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"protected boolean func_70814_o() { return true; }",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public void mo38117a() {\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"private void m50366E() {\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"private void kk12() {\n\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"public void mo4359a() {\n }",
"public void skystonePos4() {\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void skystonePos6() {\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}",
"private void strin() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"public void mo12628c() {\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"public void skystonePos5() {\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public void mo21877s() {\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 }",
"private void m50367F() {\n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"public void mo21779D() {\n }",
"public void method_4270() {}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public void m23075a() {\n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"public void mo21825b() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo12930a() {\n }",
"public void mo115190b() {\n }",
"protected void mo6255a() {\n }",
"public void mo21878t() {\n }",
"public void skystonePos3() {\n }",
"public void mo6081a() {\n }",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"public void Tyre() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"public final void mo91715d() {\n }",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"public void mo3376r() {\n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n public int retroceder() {\n return 0;\n }",
"private void init() {\n\n\t}",
"public abstract void mo56925d();",
"@Override\n protected void getExras() {\n }",
"public void mo21785J() {\n }",
"public void mo97908d() {\n }",
"public abstract void mo70713b();",
"public void mo3749d() {\n }",
"public void mo55254a() {\n }",
"public void mo21782G() {\n }",
"@Override\n public void init() {\n }",
"public void mo21793R() {\n }",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}"
]
| [
"0.6021043",
"0.60017544",
"0.5931357",
"0.5920132",
"0.5920132",
"0.58412987",
"0.5835909",
"0.58331126",
"0.58033454",
"0.5797954",
"0.5764726",
"0.5758385",
"0.5750166",
"0.57246876",
"0.57213914",
"0.5712376",
"0.5682438",
"0.56712294",
"0.5659546",
"0.56576526",
"0.5655501",
"0.56469625",
"0.56362927",
"0.5635646",
"0.5631549",
"0.5599364",
"0.5597696",
"0.5587457",
"0.5535192",
"0.5511816",
"0.5509134",
"0.5509134",
"0.5509134",
"0.5509134",
"0.5509134",
"0.5478823",
"0.5475121",
"0.54731417",
"0.54731417",
"0.54700863",
"0.54699147",
"0.5466123",
"0.5465884",
"0.54654926",
"0.54433244",
"0.54433244",
"0.54433244",
"0.54433244",
"0.54433244",
"0.54433244",
"0.54433244",
"0.54339284",
"0.5433656",
"0.5429123",
"0.5426107",
"0.5424185",
"0.54185355",
"0.5412548",
"0.5405612",
"0.54018265",
"0.53989136",
"0.538672",
"0.53823435",
"0.5377576",
"0.53770316",
"0.5375354",
"0.53741646",
"0.53739977",
"0.53716123",
"0.53669155",
"0.53624177",
"0.53622097",
"0.5356402",
"0.5353207",
"0.5350913",
"0.5346166",
"0.53426397",
"0.5340163",
"0.5338652",
"0.5328325",
"0.5325658",
"0.5325658",
"0.5325658",
"0.5325645",
"0.5322252",
"0.5314849",
"0.53147846",
"0.53144425",
"0.5314102",
"0.5308638",
"0.53084826",
"0.53067875",
"0.53021294",
"0.5296876",
"0.52952754",
"0.5292638",
"0.5289244",
"0.5287432",
"0.52872676",
"0.52768856",
"0.52768856"
]
| 0.0 | -1 |
implicit type casting implicite type casting formula 1. byte > short > int > long > float > double 2. char > int > long > float > double | public static void main(String[] args) {
char c = 'a';
System.out.println(c);
byte b = 10;
System.out.println(b);
short s = b;
System.out.println(s);
int x = 'a';
System.out.println(x);
long l = x;
System.out.println(l);
float f = l;
System.out.println(f);
double d = f;
System.out.println(d);
System.out.println(x);
double y = 10;
System.out.println(y);
byte yy = 5;
int xx = yy;
System.out.println(xx);
double dd = xx;
System.out.println(dd);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n int a=10;\n byte b=(byte)a; //explicit casting\n System.out.println(b);\n\n double DecimalNumber=10.5;\n float FloatNumber=(float) DecimalNumber;\n System.out.println(FloatNumber);\n\n double DecimalNumber2=10.5;\n float FloatNumber2=(int) DecimalNumber;//double>float\n System.out.println(FloatNumber2);\n\n long LongNum=300L;\n int IntNum=(short)LongNum;\n System.out.println(IntNum);\n\n //implicit casting: small size data to larger size of data...\n byte ByteNum=100;\n int IntNum2=ByteNum;\n System.out.println(IntNum2);\n\n\n short ShortNum=100;\n long LongNum2=ShortNum;\n\n\n \n }",
"public static void main(String[] args){\n short num=100;\n int inum=num;\n long lnum=num;\n float fnum=num;\n double dnum=num;\n //When you assign value of one data type to another,\n // the two types might not be compatible with each other.\n // If the data types are compatible,\n // then Java will perform the conversion automatically known as Automatic Type Conversion and\n // if not then they need to be casted or converted explicitly.\n //this happens only when\n //The two data types are compatible.\n //When we assign value of a smaller data type to a bigger data type.(byte<short<int<long<float<double)\n //For Example, in java the numeric data types are compatible with each other\n // but no automatic conversion is supported from numeric type to char or boolean.\n // Also, char and boolean are not compatible with each other.\n System.out.println(\"num is \"+num);\n System.out.println(\"inum is \"+inum);\n System.out.println(\"lnum is \"+lnum);\n System.out.println(\"fnum is \"+fnum);\n System.out.println(\"dnum is \"+dnum);\n\n //Narrowing or Explicit conversion\n dnum=323.142;\n byte bnum=(byte)dnum;//converting bigger data type o smaller data type\n //so explicit conversion is needed\n System.out.println(\"dnum converted to bnum(byte) is \"+bnum);\n\n }",
"public static void main(String[] args) {\n // example of type casting\n // it will store the double and store it as an int.\n //by default, java will round down\n\n int a = (int) 0.5;\n System.out.println(a);\n //results will be 0\n\n\n //some primitive data types - byte, short, char, int, long, float, double\n\n // byte a;\n // short b;\n // char c;\n // int d;\n // long e;\n // float f;\n // double g;\n\n //if you were to use int and then store it to double, it will cast to double by default.\n\n //it will work its way down this primitive types data\n\n \n }",
"public static void main(String args[]) {\n\t\t \n\t\t // lets define some variables and try to insert other data type value\n\t\t int x = 23;\n\t\t double y ;\n\t\t y = x ; // here we are storing int to double ie. smaller to larger . So no error\n\t\t System.out.println(y);\n\t\t System.out.println(x);\n\t\t \n\t\t double a = 25.28;\n\t\t int b ;\n\t\t //b = a; // Here we can see error since we are trying to store double to int i.e larger to smaller w/o casting\n\t\t \n\t\t // lets do casting and store \n\t\t b = (int) a;\n\t\t System.out.println(b);\n\t\t \n\t\t boolean bool = true ;\n\t\t int num = bool; // not possible as we know boolean data type cannot be typecast;\n\t\t \n\t\t //int to long\n\t\t int value = 34;\n\t\t long value1 ;\n\t\t \n\t\t value1 = value;\n\t\t System.out.println(value1);\n\t\t value = value1; // trying longer to smaller w/o casting which is not possible;\n\t\t System.out.println(value);\n\t\t \n\t\t value = (int) value1;\n\t\t \n\t\t // long to float \n\t\t \n\t\t long value2 = 678;\n\t\t float value3; \n\t\t value3 = value2; // works fine since smaller to larger\n\t\t System.out.println(value3);\n\t\t value2 = value3 ; // trying longer to smaller w/o casting which is not possible;\n\t\t \n\t\t // so to assign value3 to value2 we need Explicitly type cast\n\t\t value2 = (long) value3;\n\t\t \n\t\t // float to long and vice versa \n\t\t \n\t\t float value4 = 567.78f;\n\t\t double value5 ;\n\t\t value5 = value4 ; // works fine since assigning smaller type to larger type\n\t\t System.out.println(value5);\n\t\t value4 = value5 ; // trying longer to smaller w/o casting which is not possible;\n\t\t \n\t\t // Also we can explicit cast for storing larger (double) to long/int/short\n\t\t double value6 = 3564.8;\n\t\t int value7 ;\n\t\t \n\t\t value7 = (int) value6;\n\t\t System.out.println(value7);\n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t }",
"public static void main(String[] args) {\n\t\tbyte a = 18;\n\t\t\n\t\tshort b = 900;\n\t\t\n\t\tint c = 900000;\n\t\t\n\t\tSystem.out.println((double)a);\n\t\t\n\t\t\n\t\t// Narrowing Casting\n\t\tdouble d = 42.98;\n\t\tint e = (int)d;\n\t\t\n\t\t// Widening Casting\n\t\tSystem.out.println((double)e);\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tbyte b1 = 12;\n\t\tshort s1 = b1;\n\t\tint i1 = b1;\n\t\tfloat f1 = b1;\n\t\t\n\t\t/*\n\t\t byte < short < int < long < float < double\n\t\n\t\t Buyuk data type'larini kucuk data type'larina cevrime isini Java otomatik olarak yapmaz.\n\t\t Bu cevirmeyi biz asagidaki gibi kod yazarak yapariz. Bunun ismi \"Explicit Narrowing Casting\" dir\n\t \n\t\t */\n\t\t\n\t\tshort s2 = 1210; \n\t\tbyte b2 = (byte)s2;\n\t\t\n\t}",
"public static void main(String[] args) {\n int x = 5;\n double y = 10.55;\n\n// System.out.println(\"x + y = \" + x + y );\n// double result = x + y;\n System.out.println(\"x + y = \" + (x + y));\n\n byte b = 10;\n int c = 5;\n double d = 4.5;\n\n double result = b + c + d;\n\n System.out.println(\"result= \" + result);\n\n // casting is converting \"bigger\" type to \"smaller\" type\n\n double myDouble = 5.55;\n int myInt = 4 + (int)myDouble;\n System.out.println(\"result= \" + myInt);\n\n int anotherInt = 125;\n byte myByte = 15;\n\n int intResult = anotherInt + myByte;\n byte byteResult = (byte)(anotherInt + myByte);\n\n System.out.println(\"intResult= \" + intResult);\n System.out.println(\"byteResult= \" + byteResult); // overflow\n }",
"private double convertToDbl(Object a) {\n double result = 0;\n\n //If the object is a Character...\n if(a instanceof Character){\n char x = (Character)a;\n result = (double)(x - '0'); // -'0' as it will convert the ascii number (e.g 4 is 52 in ascii) to the standard number\n }\n\n //If it is a Double...\n else if(a instanceof Double){\n result = (Double)a;\n }\n\n return result;\n }",
"private static void LessonBoxUnboxCast() {\n int x = 10;\n Object o = x;\n //System.out.println(o + o); //since o is an object you can't uses the + operator\n //LessonReflectionAndGenerics(o.getClass());\n\n // Example Unboxing (this is casting, explicit casting)\n int y = (int) o;\n System.out.println(y);\n\n // Example Implicit casting you can go from smaller data type to a bigger data type\n //But not the other way around unless you use explicit casting\n int i = 100;\n double d = i;\n System.out.println(d);\n\n // Example of tryin to cast a bigger data type into a smaller data type\n double a = 1.92;\n //int b = a; //gets and error\n //need to be explicit\n int b = (int) a;\n System.out.println(b);\n }",
"public static void main(String[] args){\n\n int a = (int) 3.14;\n System.out.println(a);\n //Outputs 3\n\n // The code above is casting the value 3.14 to an integer, with 3 as the resulting value.\n\n double b = 42.571;\n int c = (int) b;\n System.out.println(c);\n//Outputs 42\n\n /*\n Java supports automatic type casting of integers to floating points, since there is no loss of precision.\nOn the other hand, type casting is mandatory when assigning floating point values to integer variables.\n */\n\n // downcasting\n\n /*\n Why is upcasting automatic, downcasting manual?\n Well, upcasting can never fail.\n But if you have a group of different Animals and want to downcast them all to a Cat,\n then there's a chance that some of these Animals are actually Dogs, so the process fails.\n */\n\n /*Upcasting*/\n\n// You can cast an instance of a subclass to its superclass.\n\n// Consider the following example, assuming that Cat is a subclass of Animal.\n// Animal a = new Cat();\n//\n// Java automatically upcasted the Cat type variable to the Animal type.\n//\n /*Downcasting */\n\n// Casting an object of a superclass to its subclass is called downcasting.\n// Example:\n\n// Animal a = new Animal();\n// ((Cat)a).makeSound();\n//\n// This will try to cast the variable a to the Cat type and call its makeSound() method.\n\n\n }",
"public static void main(String[] args) {\ndouble anInt=1234;\nbyte aByte=12;\nshort aShort=12;\nlong aLong=1234567890987654321L;\ndouble anotherInt= (anInt * 10000000);\nSystem.out.println(\"The int is \" + anInt);\nSystem.out.println(\"The byte is \" + aByte);\nSystem.out.println(\"The short is \" + aShort);\nSystem.out.println(\"The long is \" + aLong);\nSystem.out.println(\"Another int is \" + anotherInt); \n\t}",
"public static void main(String[] args) {\n\t\t int a;\r\n\t double l = 456.78;\r\n\t \r\n\t a = (int)l;\r\n\t \r\n\t //we are storing the value of double into int therefore we have to perform explicit type casting as done above.\r\n\t System.out.println(a);\r\n\t \r\n\t byte b;\r\n\t\t int i = 56;\r\n\t\t b = (byte)i;\r\n\t\t System.out.println(b);\r\n\t\t \r\n\t\t char c;\r\n\t\t int ii = 78;\r\n\t\t c = (char)ii;\r\n\t\t System.out.println(c);/*When we try to convert int to char, the point to noted is it stores the \r\n\t\t char associated with that integer with respect to ASCII value.*/\r\n\t}",
"public static void main(String args[])\r\n\t{\n\t\tbyte byteVal = 10;\r\n\t\tshort shortVal = 20;\r\n\t\t\r\n\t\tByte firstByteObj = new Byte(byteVal);\r\n\t\tByte secondByteObj = new Byte(\"10\");\r\n\t\tSystem.out.println(\"Byte Created using Primitive - \" + firstByteObj);\r\n\t\tSystem.out.println(\"Byte Created using String - \" + secondByteObj);\r\n\t\t\r\n\t\tShort firstShortObj = new Short(shortVal);\r\n\t\tShort secondShortObj = new Short(\"20\");\r\n\t\tSystem.out.println(\"Short Created using primitive - \" + firstShortObj);\r\n\t\tSystem.out.println(\"Short Created using String - \" + secondShortObj);\r\n\t\t\r\n\t\tInteger firstIntegerObj = new Integer(100);\r\n\t\tInteger secondIntegerObj = new Integer(\"100\");\r\n\t\tSystem.out.println(\"Integer Created using primitive - \" + firstIntegerObj);\r\n\t\tSystem.out.println(\"Integer Created using String - \" + secondIntegerObj);\r\n\t\t\r\n\t\tLong firstLongObj = new Long(1000l);\r\n\t\tLong secondLongObj = new Long(\"1000\");\r\n\t\t//Long thirdLongObj = new Long(\"1000l\"); // throws java.lang.NumberFormatException: For input string: \"1000l\"\r\n\t\tSystem.out.println(\"Long Created using primitive - \" + firstLongObj);\r\n\t\tSystem.out.println(\"Long Created using String - \" + secondLongObj);\r\n\t\t//System.out.println(\"Long Created using String with convension - \" + thirdLongObj);\r\n\t\t\r\n\t\tFloat firstFloatObj = new Float(10.5f);\r\n\t\tFloat secondFloatObj = new Float(\"10.5f\");\r\n\t\tFloat thirdFloatObj = new Float(\"10.5\");\r\n\t\tFloat fourthFloatObj = new Float(10.5);\r\n\t\tSystem.out.println(\"Float created using primitive - \" + firstFloatObj);\r\n\t\tSystem.out.println(\"Float created using String with convension - \" + secondFloatObj);\r\n\t\tSystem.out.println(\"Float Created using String - \" + thirdFloatObj);\r\n\t\tSystem.out.println(\"Float created using Double - \" + fourthFloatObj);\r\n\t\t\r\n\t\tDouble firstDoubleObj = new Double(123.34);\r\n\t\tDouble secondDoubleObj = new Double(\"321.34\");\r\n\t\tSystem.out.println(\"Double Created using Double - \" + firstDoubleObj);\r\n\t\tSystem.out.println(\"Double Created using String - \" + secondDoubleObj);\r\n\t\t\r\n\t\tCharacter firstCharObj = new Character('a');\r\n\t\t// Character secondCharObj = new Character(\"a\"); // Cant create a Character wrapper using String\r\n\t\tSystem.out.println(\"Character created using primitive - \" + firstCharObj);\r\n\t\t\r\n\t\tBoolean firstBooleanObj = new Boolean(true);\r\n\t\tBoolean secondBooleanObj = new Boolean(false);\r\n\t\tBoolean thirdBooleanObj = new Boolean(\"true\");\r\n\t\tBoolean fourthBooleanObj = new Boolean(\"True\");\r\n\t\tBoolean fifthBooleanObj = new Boolean(\"TRUE\");\r\n\t\tBoolean sixthBooleanObj = new Boolean(\"false\");\r\n\t\tBoolean seventhBooleanObj = new Boolean(\"Baskar\");\r\n\t\t\r\n\t\tSystem.out.println(\"Boolean created using primitive - \" + firstBooleanObj); //true\r\n\t\tSystem.out.println(\"Boolean created using primitive - \" + secondBooleanObj); //false`\r\n\t\tSystem.out.println(\"Boolean created using String - \" + thirdBooleanObj); //true\r\n\t\tSystem.out.println(\"Boolean created using String - \" + fourthBooleanObj); // true\r\n\t\tSystem.out.println(\"Boolean created using String - \" + fifthBooleanObj); //true\r\n\t\tSystem.out.println(\"Boolean created using String - \" + sixthBooleanObj); //false\r\n\t\tSystem.out.println(\"Boolean created using String - \" + seventhBooleanObj); //false //default value is false\r\n\t}",
"public <T> T cast();",
"public static void main(String[] args) {\n\n Integer num1 = 100;\n double num2 = num1;\n System.out.println(num2);\n\n float f = 0.5f;\n Float fl = f;\n System.out.println(fl);\n\n System.out.println(Byte.MAX_VALUE);\n\n // parse method --> converting String value to primitives, returne primitive\n // valueOf --> converting String to Wrapper class, return Wrapper class\n\n String str1 = \"123\";\n int result = Integer.parseInt(str1);\n System.out.println(result+1);\n\n String str2 = \"true\";\n boolean r1 = Boolean.parseBoolean(str2);\n System.out.println(r1);\n\n // parse method not case sencetive\n String str3 = \"FaLse\"; // it is work\n boolean r2 = Boolean.parseBoolean(str3);\n System.out.println(r2);\n\n String s1 = \"100.5\";\n Double c1 = Double.parseDouble(s1);\n System.out.println(c1 + 1); // it is call auto boxing\n Double c2 = Double.valueOf(s1); // this in not auto and not unboxing\n\n System.out.println(c1);\n System.out.println(c2);\n\n String s2 = \"TrUe\";\n Boolean b1 = Boolean.valueOf(s2);\n System.out.println(b1); // no sensetive\n\n Double [] arr = new Double[3];\n System.out.println(Arrays.toString(arr));\n // default value of wrapper class always --> null, null, null\n\n String name = \"string\";\n String name1 = new String(\"string\");\n\n Integer I1 = new Integer(\"123\");\n\n System.out.println(addNum(12,13));\n System.out.println(addNum(15.3,7.4));\n \n }",
"public abstract Double toDouble(T t);",
"public static void main(String[] args) {\n\t\t\n\t\tdouble d = 1; // implicit type cast\n\n\t\tfloat f = 1.3f;\n\t\t\n\t\tint y = (int)1.3; // explicit type cast\n\t\t\n\t\tint x = (int) (10.0f / 3.0f);\n\t\t\n\t\tshort s = (short)1921222;\n\t\t\n\t\tSystem.out.println(Integer.toBinaryString(1921222));\n\t\tSystem.out.println(Integer.toBinaryString((short)1921222));\n\t\t\n\t\tshort x1 = 10;\n\t\t\n\t\tshort y1 = 3;\n\t\t\n\t\tshort z = (short)(x1 * y1);\n\t\t\n\t}",
"public static Double toDouble(Object o,byte type) throws ExecException {\n try {\n switch (type) {\n case BOOLEAN:\n return (Boolean) o ? Double.valueOf(1.0D) : Double.valueOf(0.0D);\n\n case INTEGER:\n return new Double(((Integer)o).doubleValue());\n\n case LONG:\n return new Double(((Long)o).doubleValue());\n\n case FLOAT:\n return new Double(((Float)o).doubleValue());\n\n case DOUBLE:\n return (Double)o;\n\n case DATETIME:\n return new Double(Long.valueOf(((DateTime)o).getMillis()).doubleValue());\n\n case BYTEARRAY:\n return Double.valueOf(((DataByteArray)o).toString());\n\n case CHARARRAY:\n return Double.valueOf((String)o);\n\n case BIGINTEGER:\n return Double.valueOf(((BigInteger)o).doubleValue());\n\n case BIGDECIMAL:\n return Double.valueOf(((BigDecimal)o).doubleValue());\n\n case NULL:\n return null;\n\n case BYTE:\n case MAP:\n case INTERNALMAP:\n case TUPLE:\n case BAG:\n case UNKNOWN:\n default:\n int errCode = 1071;\n String msg = \"Cannot convert a \" + findTypeName(o) +\n \" to a Double\";\n throw new ExecException(msg, errCode, PigException.INPUT);\n }\n } catch (ClassCastException cce) {\n throw cce;\n } catch (ExecException ee) {\n throw ee;\n } catch (NumberFormatException nfe) {\n int errCode = 1074;\n String msg = \"Problem with formatting. Could not convert \" + o + \" to Double.\";\n throw new ExecException(msg, errCode, PigException.INPUT, nfe);\n } catch (Exception e) {\n int errCode = 2054;\n String msg = \"Internal error. Could not convert \" + o + \" to Double.\";\n throw new ExecException(msg, errCode, PigException.BUG);\n }\n }",
"public static void main(String[] args) {\n byte byteValue = 20;\n\n\n // 16 bits\n short shortValue = 55;\n\n // 32 bits\n int intValue = 888;\n\n //\n long longValue = 23355;\n\n // need the f after a decimal to make it\n // read as a float\n float floatValue = 8834.8f;\n float floatValue2 = (float)99.3;\n\n // greater precision then float\n double doubleValue = 32.4;\n\n System.out.println(Byte.MAX_VALUE);\n\n\n intValue = (int)longValue;\n\n System.out.println(intValue);\n\n doubleValue = intValue;\n System.out.println(doubleValue);\n\n // chopped off the end so the point 8 is gone\n // not rounded either -- need Math.Rnd for for tht\n intValue = (int)floatValue;\n System.out.println(intValue);\n\n\n\n // The following won't work as we expect it to!!\n // 128 is too big for a byte.\n // Make sure your casting something into in\n // a vslue it will fit in!! Or else\n // you got weird results\n byteValue = (byte)128;\n System.out.println(byteValue);\n\n\n // You cant convert a String to an int or back again\n /// these videos are old though and from Java 7\n // I kknw aboout String.valueOf() would convert just about\n // anything I knw there are Double.valueOf()\n // or parseDouble()?? not sure which its called or\n // if its both but ill add them later\n\n\n System.out.println(\"////////// MY CODE //////////////////////\");\n\n System.out.println(\"\\nByte min value: \" + Byte.MIN_VALUE +\n \"\\nByte max value: \" + Byte.MAX_VALUE);\n\n\n System.out.println(\"\\nShort min value: \" + Short.MIN_VALUE +\n \"\\nShort max value: \" + Short.MAX_VALUE);\n\n\n System.out.println(\"\\nInt min value: \" + Integer.MIN_VALUE +\n \"\\nInt max value: \" + Integer.MAX_VALUE);\n\n\n System.out.println(\"\\nLong min value: \" + Long.MIN_VALUE +\n \"\\nLong max value: \" + Long.MAX_VALUE);\n\n\n System.out.println(\"\\nFloat min value: \" + Float.MIN_VALUE +\n \"\\nFloat max value: \" + Float.MAX_VALUE);\n\n System.out.println(\"\\nDouble min value: \" + Double.MIN_VALUE +\n \"\\nDouble max value: \" + Double.MAX_VALUE);\n\n\n\n\n\n\n }",
"private void ex04(){\n int number;\n number = 1;\n\n double number2;\n number2 = 1.5;\n\n String number3;\n number3 = \"3\";\n\n boolean bool = (number == 1);\n\n myWindow.clearOut();\n myWindow.writeOutLine(number);\n myWindow.writeOutLine(new String(String.valueOf(number))); //int to string\n myWindow.writeOutLine((double) number); //int to double\n myWindow.writeOutLine(bool); //int to boolean\n\n /*\n Java can perform number -> string\n method 1: numberType.toString\n method 2: String.valueOf(int/double/float) //used above in the code\n Java can also perform string -> number\n dataType.parseDatatype() // e.g.: Integer.parseInt()\n\n Java allows this only when the conversion is widening (small -> larger)\n alternatively reports a compile error if the conversion is narrowing\n */\n\n //YOUR CODE ABOVE HERE\n }",
"public static void main(String[] args) {\n\t\tbyte byteValue = 20;\n\t\tshort shortValue = 55;\n\t\tint intValue = 888;\n\t\tlong longValue = 23355;\n\t\t\n\t\tfloat floatValue = 8834.3f;\t\t //Notice what we did to assign a float value\n\t\t//Or we can define this as this: float floatValue = (float) 8834.3;\n\t\tdouble doubleValue = 32.4;\n\t\t\n\t\t//Step-2: Find each Variable's max_value (Optional)\n\t\tSystem.out.println(\"Max value for 'Byte' is: \" + Byte.MAX_VALUE);\n\t\t\n\t\t//Step-3: What if we try to assign very big value than it's capacity\n\t\tbyteValue = (byte) 128;\t\t\t //128 is too big for byte\n\t\tSystem.out.println(\"Example: Saving bigger value than 'byte' capacity > \" + byteValue); //Notice what value will it print\n\t\t\n\t\t//Step-4: Assign small value than it's capacity (UPCASTING: Java will do that for us)\n\t\t//System.out.println(\"Max value for 'Short' is: \" + Short.MAX_VALUE);\n\t\tshortValue = 32766;\n\t\tSystem.out.println(\"Example: Saving small value than 'short' capacity > \" + shortValue); \n\n\t\t//Step-5: Convert 'long' to 'int' (DOWNCASTING: We have to do Manually)\n\t\tintValue = (int) longValue; \t //Taking our own risk: numeric data value may change\n\t\t\t\t\t\t\t\t\t \t //You can also think that by Casting we are informing Java about our decision\n\t\tSystem.out.println(\"Example: Convert 'long' to 'int' > \" + intValue);\n\t\t\n\t\t//Step-6: Convert 'int' to 'double'\t(UPCASTING: Java will do that for us)\n\t\tdoubleValue = intValue;\t\t \t //Will not have any major change of numeric data value\n\t\t\t\t\t\t\t\t\t\t //This is also known as 'WIDENING Primitive Conversion'\n\t\t\n\t\t//REMEMBER: A WIDENING primitive conversion does not lose information about the overall magnitude of a numeric value.\n\t\t\n\t\tSystem.out.println(\"Example: Convert 'int' to 'double' > \" + doubleValue);\n\t\t\n\t\t//Step-7: Convert 'float' to 'int' (DOWNCASTING: We have to do Manually)\n\t\tintValue = (int) floatValue; \t //Don't get confuse this nature with Java Math, round\n\t\t\t\t\t\t\t\t\t\t //This is also known as 'NARROWING Primitive Conversion'\n\t\t\n\t\t//REMEMBER: A NARROWING primitive conversion may lose information about the overall magnitude of a numeric value and \n\t\t// may also lose precision and range.\n\t\t\n\t\tSystem.out.println(\"Example: Convert 'float' to 'int' > \" + intValue); \n\t\t\n\t\n\t\t//Remember: Above we only dealt with NUMERIC VALUES/PRIMITIVE VALUE TYPES. We cannot just mass around this conversion concept with one TYPE\n\t\t//\t\t\tto another TYPE (Means PRIMITIVE (int) to OBJECT Type (String)). For that you have to follow by-passing technique which you\n\t\t// better try to avoid for simplicity\n\t\t\n\t\t\n\t\tSystem.out.println(\"--------------------------------\");\n\t\t\n\t\t//Example-2: Implement (IMPLICIT/EXPLICIT) Casting on OBJECT/REFERENCE VALUE TYPES\n\t\t//\t\t\t (This particular example is also taken from 'Cave of Programming' by John Purcell)\n\t\t\n\t\t//Step-1: Create two simple instances of our public two classes\n\t\tMachine myMachine = new Machine(); \t\t//Right side Object instance which we created once, will always remain their. Means, if we create\n\t\tPC myPC = new PC();\t\t\t\t\t\t//new Machine instance by 'new Machine()', that instance will never change.\n\t\t\n\t\t//Normally what we have seen before are as follows:\n\t\tmyMachine.start();\n\t\tmyPC.start();\n\t\tmyPC.osType();\n\t\t\n\t\t//Now lets deal with UPCASTING & DOWNCASTING (Remember: Any CUSTING we do/will do, will be on top of the variable we create on Left Side) \n\t\t//UPCASTING \n\t\t\n\t\tSystem.out.print(\"UPCASTING > \");\n\t\t\n\t\tMachine machine_one = new PC(); \t\t//Remember, this is Polymorphism\n\t\t//we can also write this above instance as follows:\n\t\t//Machine machine_one = myPC;\n\t\t\n\t\t//Which start() method will it RUN? PArent's one OR Child's one???\n\t\tmachine_one.start();\n\t\t//However, notice that we can call start() method of Child's Object but can't call osType()!!! Why???\n\t\t\n\t\tSystem.out.print(\"DOWNCASTING > \");\n\t\t\n\t\tMachine machine_two = new PC();\t\t\t//As we know PC is having osType() method which we couldn't access in our above example\n\t\tPC pc_one = (PC) machine_two;\t\t\t//This is the by passing way to make that DONE :) (By getting help from DOWNCASTING)\n\t\t// ^\n\t\t//\t |\n\t\t// Referring to which Object we r casting to (For any DOWNCASTING, Java needs our confirmation)\n\t\t\n\t\t//Now we can access all the methods from PC Object\n\t\tpc_one.start();\n\t\tpc_one.osType();\n\t\t\n\t\t//Observe this behaviors (related to DOWNCASTING) very CAREFULLY !!!\n\t\t//------------------------------------------------------------------------\t\t\n\t\t/*\n\t\t//NOTE: Always before we are going for any DOWNCASTING, we have to be very clear about what we are going to do and whether that is possible or\n\t\t// not to implement that concept in our situation. If you are NOT TAKING THIS POINT SERIOUSLY then notice a scenario below, where we will \n\t\t//\t\tget no Compiler time Error/Exception but the Run time, which Java will throw as follows:\n\t\t\n\t\tMachine machine_three = new Machine();\n\t\tPC pc_two = (PC) machine_three;\t\t\t//Can we change the actual Object which is Machine to PC? Notice, it is not throwing any Error\n\t\t\n\t\t//Now try to use PC Object's method start() & run the Application\n\t\tpc_two.start();\t\t\t// :( What just happened??? Meet with 'ClassCastException' ;)\n\t\t\n\t\t//REMEMBER (VERY IMPORTANT):\n\t\t//---------------------------------\n\t\t//\tWe cannot DOWNCAST between UNRELATED OBJECT, because we can't change one Object to another Object. Only what we can do is to deal with their\n\t\t//\tREFERENCE VARIABLE(S) and change their type if necessary. \n\t\t \n\t\t//\tYou have to be sure that the Object Variable you are CASTING, really does refer to the kind of Object that you are DOWNCASTING to. \t\t\t\t \n\t\t*/\n\t\t\n\t\tSystem.out.println(\"--------------------------------\");\n\t\t\n\t\t//Example-3: BOXING vs UNBOXING Conversions\n\t\t//Note: Converting from a PRIMITIVE TYPE to its REFERENCE TYPES is called BOXING Conversion and the opposite is called\n\t\t//\t\tUNBOXING Conversion.\n\t\t\n\t\tint a = 100;\n\t\tInteger aObj = new Integer (200);\n\t\t\n\t\t//Step1: Converting from a PRIMITIVE TYPE to its corresponding REFERENCE TYPES\n\t\taObj = a; \t//BOXING conversion\n\t\tSystem.out.println(\"AUTOBOXING/BOXING > \" + aObj);\n\t\t\n\t\t//Step2: Converting from a REFERENCE TYPES to its corresponding PRIMITIVE TYPE\n\t\ta = aObj;\t//UNBOXING conversion\n\t\tSystem.out.println(\"UNBOXING > \" + aObj);\n\t\t\n\t\tSystem.out.println(\"--------------------------------\");\n\t\t\n\t\t//Example-4: 'String' to 'int' vs 'int' to 'String' Conversion\n\t\t\n\t\t//Step-1: Convert 'String' to 'int'\n\t\tint b = Integer.parseInt(\"1234\");\n\t\tSystem.out.println(\"'String' to 'int' Conversion: \" + b + \" (int format)\");\n\t\t\n\t\t//Step-2: Convert 'int' to 'String'\n\t\tString c = Integer.toString(5678);\n\t\tSystem.out.println(\"'int' to 'String' Conversion: \" + c + \" (String format)\");\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t System.out.println(\"Hello World\");\n\t\t \n\t\t int myInt = 10; // Integer demo\n\t\t System.out.println(myInt); // Outputs 10\n\t\t \n\t\t float myFloat = 10.37f; // Float demo\n\t\t System.out.println(myFloat); // Outputs 10.37\n\t\t \n\t\t short myShort = 10000; // Short demo\n\t\t System.out.println(myShort); // Outputs 10000\n\t\t \n\t\t byte myByte = 100; // Byte demo\n\t\t System.out.println(myByte); // Outputs 100\n\t\t \n\t\t long myLong = -10000000000L; // long demo\n\t\t System.out.println(myLong); // Outputs -10000000000\n\t\t // don't understand doubles\n\t\t \n\t\t double myDouble = 19.99d; // double demo\n\t\t System.out.println(myDouble); // Outputs ?\n\t\t \n\t\t boolean myBoolean = true; // boolean demo\n\t\t System.out.println(myBoolean); //outputs true\n\t\t \n\t\t char myChar = 'F'; // char demo\n\t\t System.out.println(myChar); //outputs F\n\t\t \n\t\t String myString = \"yippee\"; // String demo\n\t\t System.out.println(myString); //outputs yippee\n\t\t \n\t\t int myNum = 1000; \n\t\t double myDoubleNum = myNum; // Automatic casting: int to double\n\t\t System.out.println(myNum); // Outputs 1000\n\t\t System.out.println(myDoubleNum); // Outputs 1000\n\t\t \n\t\t double myDouble2 = 9.78;\n\t\t int myInt2 = (int) myDouble2; // Manual casting: double to int\n\n\t\t System.out.println(myDouble2); // Outputs 9.78\n\t\t System.out.println(myInt2); // Outputs 9\n\t\t \n\t\t\n\n\t myInt = 9;\n\t\t myDouble = myInt; // Automatic casting: int to double\n\n\t\t System.out.println(myInt); // Outputs 9\n\t\t System.out.println(myDouble); // Outputs 9.0 \n\t\t\n\t\t //Operators\n\t\t\n\t\t\n\t\t System.out.println (\"\\nSection on Operators\"); // header on operators\n\n\t\t\n\t\t int x, y, z; //declare integers\n\t\t\n\t\t\t // Add an Interger\n\t x = 10; y=20; z=30; // Add integer demo\n\t\t x += 5; // add 5 to x\n\t\t System.out.println(x); // Outputs 15\n\t\t // subtract integer demo\n\t\t x -= 3; // subtract -1 from x\n\t\t System.out.println(x); // Outputs 9\n\t\t // division demo\n\t\t x /= 3; // divide by 3\n\t\t System.out.println(x); // outputs 3\n\t\t // multiplication demo\n\t\t x *= 4; // multiply by 4\n\t\t System.out.println(x); // outputs 16\t\n\t\t // increment by 1\n\t\t x++; // increase by 1\n\t\t System.out.println(x); // outputs 17\n\t\t // modulous demo\n\t\t x%=4; // divide x by 4 and save remainder which is 1 in x\n\t\t System.out.println(x); // outputs 1\n\t\t \n\t\t x+=17; // set 17 to x\n\t\t System.out.println(x); // outputs 18\n\t\t // decrement by 1\n\t\t x--; // decrease by 1\n\t\t System.out.println(x); //o utputs 17\n\t\t \n\t\t // Comparison Operators ==, !=, > , <, >=, <=\n\t\t System.out.println (\"\\nSection on Comparison Operators\"); // header on comparison operators\n\n\t\t System.out.println(x); \n\t\t System.out.println(x<y); // outputs true\n\t\t System.out.println(x<y && y<z); // outputs true \n\t\t System.out.println(x); // outputs 17\n\t\t System.out.println(y); // outputs 20\n\t\t System.out.println(z); // outputs 30\n\t\t // Comparing variables\n\t\t y = 2; // set y to 2\n\t\t System.out.println(x<y || y<z);\n\t\t x = 70;\n\t\t y = 50;\n\t\t System.out.println(x<y || y<z); // 70<2 50 or 50<30 which is false\n\t\t \n\t\t // Strings\n\t\t System.out.println (\"\\nSection on Strings\"); // header on strings\n\n\t\t String FirstName = (\"Jeffrey \"); // initialize to Jeff\n\t\t String MiddleName = (\"Edward \"); // initialize to Edward\n\t\t String LastName = (\"Dowds\"); //initialize to Dowds\n\t\t System.out.println (FirstName + MiddleName + LastName); // Output Jeffrey Edward Dowds\n\t\t System.out.println (FirstName + MiddleName + LastName ); // Output Jeffrey Edward Dowds\n\t\t System.out.println (FirstName.toUpperCase()); //convert first name to upper case\n\t\t System.out.println (FirstName.toLowerCase()); // convert first name to lower case\n\t\t System.out.println (FirstName.length()); //lenght of string and output 8\n System.out.println (FirstName.indexOf(\"rey\")); // character location of \"rey\"\n\t\t System.out.println (FirstName + MiddleName + LastName.toUpperCase()); // Output Jeffrey Edward Dowds\n System.out.println (FirstName.concat(MiddleName)+ LastName); // use concat method to put two strings together \n\t\t \n // Special Characters\n \n\t\t System.out.println (\"\\nSection on Special Characters\"); // header on special characters\n\t\t \n\t\t System.out.println (\"Going to kick \\\"ass\\\" at Java\"); // demo special char \\\n\t\t System.out.println (\"Demonstrating inserting a new line \\n\"); // demo on new line\n\t\t System.out.println (\"Did I put a new line in? I did\"); // verifying I put a new line in\n\t\t \n\t\t System.out.println (\"Demonstrating puting a carriage return in vs. a new line \\r\"); // demo carriage return\n\t\t System.out.println (\"Did I put a carriage return in? I did not what is a carriage return?\"); // verifying I put a new line in\n\t\t \n\t\t \n\t\t System.out.println (FirstName + LastName + \" getting good at Java\"); // concatenating strings\n\n // Java math\n\t\t \n\t\t System.out.println (\"\\nSection on Java Math\"); // header on Java Math\n int a = 16; // declaring and initializing variables a,b,c,d\n int b = 32;\n int c = 64;\n int d = -128;\n System.out.println(Math.min(a,b)); // executing math methods min,max,sqrt,abs\n System.out.println(Math.max(a, b));\n System.out.println(Math.sqrt(c));\n System.out.println(Math.abs(d));\n \n \t\t \n \t\t \n\t}",
"public static void main(String[] args) {\n byte b1=10;\r\n byte b2=20;\r\n int b3=b1+b2; // byte+byte=int\r\n \r\n int a=10;\r\n long b=20L;\r\n double d=10.5;\r\n // a+b+d \r\n // a=10.0 b=20.0 d=10.5\r\n String s=\"\";\r\n // double r=a+b+d+s; \r\n // String \r\n\t}",
"public static void main(String[] args)\n {\n\n double myDouble = 3.14;\n float myFloat = 3.14f; //Removing the f will cause an error due to lossy conversion\n double yourDouble = myFloat; //Widening/lossless conversions won't raise errors\n }",
"public static void main(String[] args) {\n double x, y;\r\n byte b;\r\n int i;\r\n char ch;\r\n x = 10.0;\r\n y = 3.0;\r\n i = (int) (x / y); //truncation will occur when casting double to int\r\n System.out.println(\"Integer outcome of x / y: \" + i);\r\n\r\n i = 100;\r\n b = (byte) i;\r\n System.out.println(\"Value of b: \" + b); // no loss of info as a byte can hole the value 100\r\n\r\n i = 257;\r\n b = (byte) i;\r\n System.out.println(\"Value of b: \" + b); // loss of info as a byte can hole the value 257\r\n\r\n b = 88; //ASCII code fo X\r\n ch = (char) b;\r\n System.out.println(\"ch: \" + ch); // cast between incompatible types\r\n\r\n }",
"public static void main(String[] args) {\r\n\t\r\n\t int numInt=10;\r\n\t Integer numInteger=10;\r\n\t \r\n\t double numdouble=5.5;\r\n\t Double numDouble=5.5;\r\n\t \r\n\t long longnum=20l;\r\n\t Long Longnum=longnum; //auto-boxing\r\n\t \r\n\t System.out.println(longnum);\r\n\t System.out.println(Longnum);\r\n\t \r\n\t Boolean Booleanresult=false;\r\n\t boolean boolresult=Booleanresult; //unboxing\r\n\t \r\n//\t Methods for wrapper classes:\r\n //max_value: returns the max value of the primitive\r\n\t char maximumChar=Character.MAX_VALUE;\r\n\t System.out.println(maximumChar);\r\n\t \r\n\t//min_value: returns the minimum value of primitive.\r\n\t \r\n\t int minimum=Integer.MIN_VALUE;\r\n\t System.out.println(minimum);\r\n\t \r\n\t byte miniByte=Byte.MIN_VALUE;\r\n\t System.out.println(miniByte);\r\n\t \r\n\t//parse methods: converts String values to primitives, nad returns values as primitives.\r\n\t \r\n\t //parseInt(\"strValue\"):takes the String and converts it to int.\r\n\t \r\n\t Integer num1=Integer.parseInt(\"123\"); //auto-boxing\r\n\t System.out.println(num1+1); //124\r\n\t \r\n\t //parseByte(\"strValue\"):takes a string value and converts it to primitive returning a byte value.\r\n\t \r\n\t int num3=Byte.parseByte(\"19\");\r\n\t System.out.println(num3+1); //20\r\n\t \r\n\t //parseShort(\"strValue\"):takes a string value and converts it to primitive returning a short value.\r\n\t \r\n\t short num4=Short.parseShort(\"123\");\r\n\t System.out.println(num4+5); //128\r\n\t \r\n\t //parseBoolean(\"strValue\"): takes string value and converts it to boolean primitive.\r\n\t boolean A=Boolean.parseBoolean(\"CybertekBatch12\"); //any string value other than true, it will return false\r\n\t System.out.println(A); //false\r\n\t \r\n\t boolean B=Boolean.parseBoolean(\"TrUe\");\r\n\t System.out.println(B); //parseBoolean method ignores the case sensitivity in this case.\r\n\t \r\n\t \r\n//\t ValueOf methods: converts String value to Wrapper class value.\r\n\t \r\n\t int z=Integer.valueOf(\"1234\");\r\n\t System.out.println(z);\r\n\t \r\n\t boolean result1=Boolean.valueOf(\"TRUE\"); //this method also ignores the case sensitivity and \r\n\t //since the result is primitive, it prints out the exact one as the string\r\n\t System.out.println(result1);\r\n\t \r\n\t \r\n\t int totalNum=100;\r\n\t \r\n}",
"public static void main(String[] args) {\n\t\tint i = 'i';\n\t\tdouble d = 3;\n\t\tSystem.out.println(d);\n\t\t\n\t\t//Narrow conversion needs explicit casting. It will truncate where necessary\n\t\tfloat f = 3.14f;\n\t\tint fi = (int) f;\n\t\tSystem.out.println(fi);\n\t\t\n\t\t//Casting in a narrow conversion is needed even if the value fits in the target type\n\t\tint number = 100;\n\t\tbyte b = (byte) number;\n\t\t\n\t\t//The only exception is if you assign an int literal (default) to a short or byte variable\n\t\tbyte bb = 100;\n\t\tshort ss = 100;\n\t\t\n\t\t//This exception does not apply to double literal (default), which need to be casted to float\n\t\tfloat dd = (float) 3.14;\n\t}",
"void method2(){\r\n\t\tshort s = 111;\r\n\t\tShort ss = s;\r\n\t\tSystem.out.println(\"Cast short \"+ s +\" to Short \"+ ss);\r\n\r\n\t\tint i = 2147483647;\r\n\t\t// incorecy cast from primitive int Reference Varible Short\r\n\t\t//Short ii = i;\r\n\t\tShort sss = (short) i;\r\n\t\tSystem.out.println(\"Cast int \"+ i +\" to Short \"+ sss);\r\n\t\t\r\n\t\t\r\n\t}",
"@Test\n public void testLiteralCast() {\n for (int i = 0; i < 3; i++) {\n boolean useDecimalV2 = i > 1;\n boolean enableRewrite = (i % 2) == 1;\n {\n // Boundary case in which the positive value is a DECIMAL,\n // becomes BIGINT when negated by the parser.\n String query = \"select getBit(\" + Long.MIN_VALUE + \", 63)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.TINYINT, expr.getType());\n }\n {\n // Would eval to NaN, so keep original expr.\n String query = \"select cast(10 as double) / cast(0 as double)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.DOUBLE, expr.getType());\n assertTrue(expr instanceof ArithmeticExpr);\n }\n {\n // Extreme double value. Ensure double-->BigDecimal noise\n // does not cause overflows\n String query = \"select cast(\" + Double.toString(Double.MAX_VALUE) +\n \" as double)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.DOUBLE, expr.getType());\n if (enableRewrite) {\n assertTrue(expr instanceof NumericLiteral);\n } else {\n assertTrue(expr instanceof CastExpr);\n }\n }\n {\n // As above, but for extreme minimum (smallest) values\n String query = \"select cast(\" + Double.toString(Double.MIN_VALUE) +\n \" as double)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.DOUBLE, expr.getType());\n if (enableRewrite) {\n assertTrue(expr instanceof NumericLiteral);\n } else {\n assertTrue(expr instanceof CastExpr);\n }\n }\n {\n // Math would cause overflow, don't rewrite\n String query = \"select cast(1.7976931348623157e+308 as double)\" +\n \" / cast(2.2250738585072014e-308 as double)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.DOUBLE, expr.getType());\n assertTrue(expr instanceof ArithmeticExpr);\n }\n {\n // Math would cause overflow, don't rewrite\n String query = \"select cast(cast(1.7976931348623157e+308 as double) as float)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.FLOAT, expr.getType());\n assertTrue(expr instanceof CastExpr);\n }\n }\n }",
"public static void main(String[] args) {\n\t\n\t\tint i = 100;\n\t\tlong l = 70000;\n\t\tSystem.out.println(\"long value\" + l);\n\t\t\n\t\tint o = (int) l; //explicit type cast from long to int\n\t\t\n\t\tchar t = (char) i;\n\t\t\n\t\t\n\t\t//--TYPE CASTE BETWEEN DOUBLE AND FLOAT---//\n\t\t\n\t\tdouble d = 190.0;\n\t\tfloat r = (float)d;\n\t\tSystem.out.println(\"float value\" + r);\n\t\tSystem.out.println(\"double value\" + d);\n\t\t\n\t\t\n\t\t//--TYPE CASTE BETWEEN DOUBLE-->LONG--> INT---//\n\t\t\n\t\t\n\t\tdouble d2 = 1000.046543;\n\t\tSystem.out.println(\"double value\" + d2);\n\t\tlong l2 = (long)d2;\n\t\tint i2 = (int) l2;\n\t\tSystem.out.println(\"double value\" + d2);\n\t\tSystem.out.println(\"long value\" + l2);\n\t\tSystem.out.println(\"int value\" + i2);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}",
"public static void main(String[] args)\n {\n double x = 5.3;\n int y = (int)x;\n \n }",
"OpFunctionCast createOpFunctionCast();",
"public static void main(String[] args) {\n\t\tbyte a = 1;\n\t\t\n\t\t//16 -bit = 32 -bit\n\t\tshort b = 1;\n\t\t\n\t\t\n\t\tint c = 1;\n\t\t\n\t\t// byte d = c; // NOT SAFE = what if c become 1.000.000 ??? \n\t\t\n\t\t// short s = c; // NOT SAFE\n\t\t\n\t\t\n\t}",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default double asDouble() {\n \n return notSupportedCast(BasicTypeID.DOUBLE);\n }",
"public static void main(String[] args) {\n\t\t// Java is not a pure OOP language >> because we have primitive types in Java\n\n\t\tint num = 10;\n\t\tdouble num1 = 20;\n\n\t\t// if we know the number we want to convert takes enough space from the memory,\n\t\t// then we can do explicit casting.\n\t\tnum = (int) num1;\n\n\t\t// this is an implicit casting, it happens automatically\n\t\tnum1 = num;\n\n\t}",
"public Object elConvertType(Object value);",
"public static void main(String[] args) {\n byte primitiveByte = 127;\n Byte aByte = primitiveByte; // autoboxing\n byte unboxedByte = aByte; // unboxing\n\n short primitiveShort = 1234;\n Short aShort = primitiveShort;\n short unboxedShort = aShort;\n\n int primitiveInt = 123123;\n Integer anInteger = primitiveInt;\n int unboxedInt = anInteger;\n\n long primitiveLong = 1231241241l;\n Long aLong = primitiveLong;\n long unboxedLong = aLong;\n\n float primitiveFloat = 123.3F;\n Float aFloat = primitiveFloat;\n float unboxedFloat = aFloat;\n\n double pritiveDouble = 123.3;\n Double aDouble = pritiveDouble;\n double unboxedDouble = aDouble;\n\n boolean primitiveBolean = true;\n Boolean aBoolean = primitiveBolean;\n boolean unboxedBolean = aBoolean;\n\n char primitiveChar = 'A';\n Character aCharacter = primitiveChar;\n char unboxedChar = aCharacter;\n\n Character aNullCharacter = null;\n char unboxedNullChar = aNullCharacter;\n System.out.println(unboxedNullChar); //NullPointerException\n }",
"T convert(S e);",
"public static void main(String[] args){\n byte b1=34;\n // -128, 127\n System.out.println(b1);\n\n\n // short example\n short s1=28;\n // stores whole numbers -32,768 to 32,767\n short s2=1000;\n short s3=35;\n\n //range of int 4 bytes stores -2,147,483,648 to 2,147,483,647\n int number=23456677;\n System.out.println(44); //as default it consider as \"int\"\n long l1= 200;\n long l2=9999999999L;/* when you move out of int range computer needs to know what is the number\n that is why you need to tell it is long by adding L at the end */\n System.out.println(999999999999L);\n\n //stores decimal numbers\n double d1= 5.5;\n System.out.println(d1);\n // as a default java picks double for decimal number\n System.out.println(3.5);\n float f1= 4.5f;\n System.out.println(f1);\n System.out.println(f1+d1);\n\n\n\n\n\n\n }",
"public abstract T fromDouble(Double d);",
"public static void main(String[] args) {\n\t\tdouble d=10;\n\t\tSystem.out.println(d);\n\t\t\n\t\tint i=(int)10.99;\n\t\tSystem.out.println(i);\n\t\tbyte b=(byte)1243;\n\t\tSystem.out.println(b);\n\t\t\n\n\t}",
"public static void main(String[] args) {\n\t\tbyte datoByte = 2; // Primitivo\n\t\tByte datoByteWrapper = 3; // Wrapper\n\t\tSystem.out.println(\"Primitivo: \" + datoByte);\n\t\tSystem.out.println(\"Wrapper: \" + datoByteWrapper);\n\t\t// Conversiones\n\t\tbyte datoByte1 = 5;\n\t\tByte datoConvertido = datoByte1;\n\t\tSystem.out.println(\"Dato Convertido: \" + datoConvertido);\n\t\t// Conversiones 2\n\t\tByte datoConvertido1 = 6;\n\t\tbyte datoByte2 = datoConvertido1.byteValue();\n\t\tSystem.out.println(\"Dato Byte: \" + datoConvertido1);\n\t\tSystem.out.println();\n\t\t\n\t\t// short\n\t\tshort datoShort = 1; // Primitivo\n\t\tShort datoShortWrapper = 1; // Wrapper\n\t\tSystem.out.println(\"Primitivo: \" + datoShort);\n\t\tSystem.out.println(\"Wrapper: \" + datoShortWrapper);\n\t\t// Conversiones\n\t\tshort datoShort1 = 4;\n\t\tShort shortConvertido = datoShort1;\n\t\tSystem.out.println(\"Dato Convertido: \" + datoShort1);\n\t\t// Conversiones 2\n\t\tShort shortConvertido1 = 6;\n\t\tshort datoShort2 = shortConvertido1.shortValue();\n\t\tSystem.out.println(\"Dato Short: \" + shortConvertido1);\n\t\tSystem.out.println();\n\n\t\t// int\n\t\tint edad = 45; // Primitivo\n\t\tInteger edadWrapper = 48; // Wrapper\n\t\tSystem.out.println(\"Primitivo: \" + edad);\n\t\tSystem.out.println(\"Wrapper: \" + edadWrapper);\n\t\t// Conversiones\n\t\tint edad1 = 4;\n\t\tInteger integerConvertido = edad1;\n\t\tSystem.out.println(\"Dato Convertido: \" + edad1);\n\t\t// Conversiones 2\n\t\tInteger integerConvertido1 = 6;\n\t\tint edad2 = integerConvertido1.intValue();\n\t\tSystem.out.println(\"Int Convertido: \" + integerConvertido1);\n\t\tSystem.out.println();\n\t\t\n\t\t// long\n\t\tlong valorGrande = 12321; // Primitivo\n\t\tLong valorGrandeWrapper = 123123L; // Wrapper\n\t\tSystem.out.println(\"Primitivo: \" + valorGrande);\n\t\tSystem.out.println(\"Wrapper: \" + valorGrandeWrapper);\n\t\t// Conversiones\n\t\tlong valorGrande1 = 4;\n\t\tLong longConvertido = valorGrande1;\n\t\tSystem.out.println(\"Dato Convertido: \" + valorGrande1);\n\t\t// Conversiones 2\n\t\tLong longConvertido1 = 23423L;\n\t\tlong valorGrande2 = longConvertido1.longValue();\n\t\tSystem.out.println(\"Int Convertido: \" + longConvertido1);\n\t\tSystem.out.println();\n\n\t\t// boolean\n\t\tboolean valorVerdad = true; // Primitivo\n\t\tBoolean valorVerdadWrapper = false; // Wrapper\n\t\tSystem.out.println(\"Primitivo: \" + valorVerdad);\n\t\tSystem.out.println(\"Wrapper: \" + valorVerdadWrapper);\n\t\t// Conversiones\n\t\tboolean valorVerdad1 = true;\n\t\tBoolean booleanConvertido = valorVerdad1;\n\t\tSystem.out.println(\"Dato Convertido: \" + valorVerdad1);\n\t\t// Conversiones 2\n\t\tBoolean booleanConvertido1 = false;\n\t\tboolean valorVerdad2 = booleanConvertido1.booleanValue();\n\t\tSystem.out.println(\"Int Convertido: \" + booleanConvertido1);\n\t\tSystem.out.println();\n\n\t\t// float\n\t\tfloat valor = 1; // Primitivo\n\t\tFloat valorWrapper = 9F; // Wrapper\n\t\tSystem.out.println(\"Primitivo: \" + valor);\n\t\tSystem.out.println(\"Wrapper: \" + valorWrapper);\n\t\t// Conversiones\n\t\tfloat valor1 = 23;\n\t\tFloat floatConvertido = valor1;\n\t\tSystem.out.println(\"Dato Convertido: \" + valor1);\n\t\t// Conversiones 2\n\t\tFloat floatConvertido1 = 65F;\n\t\tfloat valor2 = floatConvertido1.floatValue();\n\t\tSystem.out.println(\"Int Convertido: \" + floatConvertido1);\n\t\tSystem.out.println();\n\n\t\t// double\n\t\tdouble valorDecimal = 12.34; // Primitivo\n\t\tDouble valorDecimalWrapper = 34.78; // Wrapper\n\t\tSystem.out.println(\"Primitivo: \" + valorDecimal);\n\t\tSystem.out.println(\"Wrapper: \" + valorDecimalWrapper);\n\t\t// Conversiones\n\t\tdouble valorDecimal1 = 23.65;\n\t\tDouble doubleConvertido = valorDecimal1;\n\t\tSystem.out.println(\"Dato Convertido: \" + valorDecimal1);\n\t\t// Conversiones 2\n\t\tDouble doubleConvertido1 = 65.78;\n\t\tdouble valorDecimal2 = doubleConvertido1.doubleValue();\n\t\tSystem.out.println(\"Int Convertido: \" + doubleConvertido1);\n\t\tSystem.out.println();\n\n\t\t// char\n\t\tchar letraAlfabeto = 'J'; // Primitivo\n\t\tCharacter letraAlfabetoWrapper = 'C'; // Wrapper\n\t\tSystem.out.println(\"Primitivo: \" + letraAlfabeto);\n\t\tSystem.out.println(\"Wrapper: \" + letraAlfabetoWrapper);\n\t\t// Conversiones\n\t\tchar letraAlfabeto1 = 'F';\n\t\tCharacter charConvertido = letraAlfabeto1;\n\t\tSystem.out.println(\"Dato Convertido: \" + letraAlfabeto1);\n\t\t// Conversiones 2\n\t\tCharacter charConvertido1 = 'R';\n\t\tchar letraAlfabeto2 = charConvertido1.charValue();\n\t\tSystem.out.println(\"Int Convertido: \" + charConvertido1);\n\n\t}",
"public T convert(Number source)\r\n/* 26: */ {\r\n/* 27:56 */ return NumberUtils.convertNumberToTargetClass(source, this.targetType);\r\n/* 28: */ }",
"public static void main(String[] args) {\n\tbyte b2 = (byte)(300);\n\tSystem.out.println(b2);\n\t\n\tint i = 0X20; \n\tSystem.out.println(i);\n\t// When we put 0 before any int = it become octal\n\t// When we put 0X before any int = it become hexa-decimal\n\t\n\tlong j = 23_76_32_86_83_26_37_28l;\n\tSystem.out.println(j);\n\t// floating\n\t// float - 4 byte\n\t// double - 8 byte\n\t\n\t\n\tfloat fl = 90.8f;\n\tdouble d1 = 123.0d;\n\t\n\t// char - ascii 1 byte, unicode - 2byte\n\tchar c = 'j';\n\t// ASCII\n\tint k = c;\n\t// boolean - 1 bit (true/false)\n\tSystem.out.println(k);\n\t// all char is int\n\t\n\t\n\tint m = 1000; // 4 byte \n\tchar v = (char)m; // 1 byte\n\tSystem.out.println(v);\n\t\n\t\n\t// datatype , who values are keyword\n\t// we can have only 2 values = true/false\n\tboolean bool = true;\n\tbool = false;\n\t\n\t\n}",
"public static void main (String[] args){\n int myValue = 2_000;\n\n //Byte = 2^8 (8 bits - 1 byte)\n byte myByteValue = 10;\n\n //Java promotes variables to int to perform any binary operation.\n //Thus, results of expressions are integers. In order to store the result\n //in a variables of different type, explicit cast is needed.\n //The parenthesis are needed to cast the whole expression.\n byte myNewByteValue = (byte)(myByteValue/2);\n\n\n //Short = 2^16 (16 bits - 2 bytes)\n short myShort = 1_000;\n short myNewShortValue = (short)(myShort/2);\n /*\n Long = 2^64 (64 bits - 8 bytes)\n Without L suffix, Java considers the literal as an integer.\n Since int is a smaller type than long, int is auto casted and stored as a long\n without information loss (underflow or overflow)\n */\n long myLongValue = 100_000L;\n\n //Exercise:\n //Converts the expression automatically to long, since sizeof(long) > sizeof(int)\n //This rule applies for any two types that one is lager than the order, since the smaller is stored into the larger.\n //Otherwise, a explicit cast is need, like the short type below\n long myNewLongValue = 50_000L + 10L *(myByteValue+myShort+myValue);\n short myShortCastedValue = (short) (100 + 2*(myByteValue+myNewShortValue+myValue));\n System.out.println(myNewLongValue);\n System.out.println(myShortCastedValue);\n }",
"@Override\n\tpublic void outACastExpr(ACastExpr node) {\n\t\tType t = nodeTypes.get(node.getExpr());\n\t\tboxIt(t); \n\t\tType result = nodeTypes.get(node.getType()); \n\t\til.append(fi.createCast(getBecelType(t), getBecelType(result)));\n\t\tunboxIt(result); \t\n\t}",
"public NumberToNumber(Class<T> targetType)\r\n/* 21: */ {\r\n/* 22:52 */ this.targetType = targetType;\r\n/* 23: */ }",
"@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}",
"public void outATypeCastExp(ATypeCastExp node){\n\tPExp exp = node.getExp();\n\tType exptype = removeAlias(typemap.get(exp));\n\tPType castedtype = node.getType();\n\tType finaltype;\n\tif(castedtype instanceof AIntType){\n\t finaltype = new IntType();\n\t}\n\telse if(castedtype instanceof ABoolType){\n\t finaltype = new BooleanType();\n\t}\n\telse if(castedtype instanceof AFloatType){\n\t finaltype = new Float64Type();\n\t}\n\telse if(castedtype instanceof ARuneType){\n\t finaltype = new RuneType();\n\t}\n\telse throw new TypeException(\"[line \" + golite.weeder.LineNumber.getLineNumber(node) + \"] Type cast to a disallowed type.\");\n \n\tif((exptype instanceof IntType) ||(exptype instanceof Float64Type) ||(exptype instanceof BooleanType) ||(exptype instanceof RuneType)) typemap.put(node,finaltype);\n\telse throw new TypeException(\"[line \" + golite.weeder.LineNumber.getLineNumber(node) + \"] Type cast from a disallowed type.\");\n }",
"void method(){\r\n\t\tInteger i = new Integer(Integer.MAX_VALUE);\r\n\t\tShort s = new Short(Short.MAX_VALUE);\r\n\t\t\r\n\t\tSystem.out.println(\"Int max \"+ Integer.MAX_VALUE + \" int min \"+ Integer.MIN_VALUE);\r\n\t\tSystem.out.println(\"Short max \"+ Short.MAX_VALUE + \" Short min \"+ Short.MIN_VALUE);\t\t\r\n\t\t\r\n\t\t//this is not upcast ! , this is side-cats !!-> Illegal\r\n\t\t//Short ss = (Short) new Integer(Integer.MAX_VALUE);\r\n\t\t\r\n\t\t//Illegal\r\n\t\t//Integer ii = (Integer) new Short(Short.MAX_VALUE);\r\n\t\t\r\n\t\t// real up-cast\r\n\t\tNumber ii = new Short(Short.MAX_VALUE);\r\n\t\tSystem.out.println((Short)ii);\r\n\t\t\r\n\t\t\r\n\t\tInteger iii = Integer.valueOf(s);\r\n\t\t\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n Integer obj1 = Integer.valueOf(23);\n Double obj2 = Double.valueOf(5.55);\n Boolean obj3 = Boolean.valueOf(true);\n\n // converts into prinitive types\n int var1 = obj1.intValue();\n double var2 = obj2.intValue();\n boolean var3 = obj3.booleanValue();\n\n // print the primitive values\n System.out.println(\"The value of int variable: \" + var1);\n System.out.println(\"The value of double variable: \" + var2);\n System.out.println(\"The value of boolean variable: \" + var3);\n }",
"protected static DataType getDataTypeFromObject(Object obj)\n {\n if(obj instanceof Integer)\n {\n return Integer;\n }\n else if(obj instanceof Long)\n {\n return Long;\n }\n else if(obj instanceof Boolean)\n {\n return Boolean;\n }\n else if (obj instanceof Double)\n {\n return Double;\n }\n\n return String;\n }",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default float asFloat() {\n \n return notSupportedCast(BasicTypeID.FLOAT);\n }",
"private CData convert(EValueType type, String str) {\n switch (type)\n {\n case DOUBLE_64:\n return new CData(type, Double.valueOf(str));\n case FLOAT_32:\n return new CData(type, Float.valueOf(str));\n case INT_16:\n return new CData(type, Short.valueOf(str));\n case INT_32:\n return new CData(type, Integer.valueOf(str));\n case INT_64:\n return new CData(type, Long.valueOf(str));\n case INT_8:\n return new CData(type, str.charAt(0));\n case UINT_64:\n return new CData(type, Long.valueOf(str));\n case UINT_32:\n return new CData(type, Long.valueOf(str));\n case UINT_16:\n return new CData(type, Character.valueOf(str.charAt(0)));\n case UINT_8:\n return new CData(type, str.charAt(0));\n case VOID:\n default:\n return CData.VOID;\n }\n }",
"public static void main(String[] args){\n long money = 500000; //not equal datatype, so implicit type casting\n long money1 = 500000L; //Recommendation\n\n System.out.println(money);\n System.out.println(money1);\n\n //JVM default float is double(8byte)\n //float pi = 3.141592; //compile error, incompatible types\n float PI = 3.141592f; // f or F\n double dd = 152.12331;\n System.out.println(PI);\n System.out.println(dd);\n }",
"public static Value performUserDefinedConversion(TypeSpec from,\n final TypeSpec to, Value fromValue, final boolean implicitConversion) {\n if (fromValue != null) {\n\n if (from.isAny()) {\n if (fromValue.getValue() != null) {\n fromValue = new Value(((Any) fromValue.getValue()).value);\n from = TypeSpec.typeOf(fromValue);\n } else {\n fromValue = new Value(); // null Value\n }\n } else if (from.isNum()) {\n if (fromValue.getValue() != null) {\n fromValue = new Value(((Num) fromValue.getValue()).value);\n from = TypeSpec.typeOf(fromValue);\n } else {\n fromValue = new Value(); // null Value\n }\n } else {\n fromValue = TypeSpec.unwrapAnyOrNumValue(fromValue);\n }\n\n }\n\n if ((fromValue != null) && (fromValue.getValue() != null)) {\n Debug.Assert(TypeSpec.typeOf(fromValue).equals(from),\n \"fromValue (type \" + TypeSpec.typeOf(fromValue)\n + \") must be of type 'from'=\" + from);\n }\n\n // (NB: we are treating the builtin class types (like Vector, Matrix) as\n // user-defined here as\n // then we can utilize their Java method conversions\n final boolean fromIsSimpleBuiltin = (from.isBuiltin() && !from\n .isBuiltinClass()) || from.isBuiltinObject();\n final boolean toIsSimpleBuiltin = (to.isBuiltin() && !to\n .isBuiltinClass()) || to.isBuiltinObject();\n\n if (fromIsSimpleBuiltin && toIsSimpleBuiltin) {\n return null; // no user-defined conversions in simple builtin types!\n }\n\n // First, construct a set of operators from 'from' and 'to' that convert\n // from a type\n // encompassing 'from' to a type encompassed by 'to'\n // (only considering implicit operators, if 'implicit' is true\n\n final Entry[] fromOps = getUserDefinedConversionOperatorsOf(from);\n final Entry[] toOps = (!from.equals(to)) ? getUserDefinedConversionOperatorsOf(to)\n : new Entry[0]; // don't duplicate\n\n final ArrayList applicableOps = new ArrayList();\n\n for (final Entry entry : fromOps) {\n final TypeSpec convertFrom = conversionOperatorFromType(from, entry);\n final TypeSpec convertTo = conversionOperatorToType(from, entry);\n if (encompasses(convertFrom, from) && encompassedBy(convertTo, to)\n && (!implicitConversion || entry.isImplicit())) {\n applicableOps.add(new TypeManager.ConvOperator(from, entry));\n }\n }\n\n for (final Entry entry : toOps) {\n final TypeSpec convertFrom = conversionOperatorFromType(to, entry);\n final TypeSpec convertTo = conversionOperatorToType(to, entry);\n if (encompasses(convertFrom, from) && encompassedBy(convertTo, to)\n && (!implicitConversion || entry.isImplicit())) {\n applicableOps.add(new TypeManager.ConvOperator(to, entry));\n }\n }\n\n // if the set of applicable operators is empty, there is no user-defined\n // conversion\n if (applicableOps.size() == 0) {\n return null;\n }\n\n // Now we need to find the most specific from type and the most specific\n // to type of the conversions\n // if one of the conversion from types is actually 'from', then thats\n // it,otherwise it is\n // the most encompassed\n TypeSpec mostSpecificFrom = null;\n for (final Object o : applicableOps) {\n final ConvOperator op = (ConvOperator) o;\n if (op.from().equals(from)) {\n mostSpecificFrom = from;\n break;\n }\n }\n\n if (mostSpecificFrom == null) { // didn't find 'from' specifically, look\n // for most encompassed\n\n final ArrayList fromTypes = new ArrayList(); // make a list of\n // conversion from\n // types\n for (final Object op : applicableOps) {\n fromTypes.add(((ConvOperator) op).from());\n }\n\n mostSpecificFrom = mostEncompassedType(fromTypes);\n\n if (mostSpecificFrom == null) {\n ScigolTreeParser.semanticError(\"\"\n + (implicitConversion ? \"implicit \" : \"\")\n + \"conversion from type '\" + from + \"' to type '\" + to\n + \"' is ambiguous\");\n }\n }\n\n // OK, now do the analogous thing for the convert to types\n TypeSpec mostSpecificTo = null;\n for (final Object op : applicableOps) {\n if (((ConvOperator) op).to().equals(to)) {\n mostSpecificTo = to;\n break;\n }\n }\n\n if (mostSpecificTo == null) { // didn't find 'to' specifically, look for\n // most encompassing\n\n final ArrayList toTypes = new ArrayList(); // make a list of\n // conversion to types\n for (final Object op : applicableOps) {\n toTypes.add(((ConvOperator) op).to());\n }\n\n mostSpecificTo = mostEncompassingType(toTypes);\n\n if (mostSpecificTo == null) {\n ScigolTreeParser.semanticError(\"\"\n + (implicitConversion ? \"implicit \" : \"\")\n + \"conversion from type '\" + from + \"' to type '\" + to\n + \"' is ambiguous\");\n }\n }\n\n // Now find an 'operator' in applicableOps that converts from\n // 'mostSpecificFrom' to 'mostSpecificTo'\n // if there are none or more that one, the conversion is ambiguous\n\n ConvOperator conversionOp = null;\n for (final Object o : applicableOps) {\n final ConvOperator op = (ConvOperator) o;\n if (op.from().equals(mostSpecificFrom)\n && op.to().equals(mostSpecificTo)) {\n if (conversionOp == null) {\n conversionOp = op; // found one\n } else {// alreay had one, more than one is ambiguous\n // Debug.WL(\"HERE had \"+op.from()+\"->\"+op.to()+\" in \"+conversionOp.declaringType+\" don't need in \"+op.declaringType);\n ScigolTreeParser.semanticError(\"\"\n + (implicitConversion ? \"implicit \" : \"\")\n + \"conversion from type '\" + from + \"' to type '\"\n + to + \"' is ambiguous\");\n }\n }\n }\n\n if (conversionOp == null) {\n ScigolTreeParser.semanticError(\"\"\n + (implicitConversion ? \"implicit \" : \"\")\n + \"conversion from type '\" + from + \"' to type '\" + to\n + \"' is ambiguous\");\n }\n\n // if we don't have a fromValue to convert, this is as far as we go.\n // Just return\n // a non-null *Value* to indicate that the conversion exists\n if (fromValue == null) {\n return new Value(); // null Value\n }\n\n // Finally, we can actually perform the conversion using 'conversionOp'\n // 3 steps:\n // 1) convert from -> mostSpecificFrom\n // 2) use conversionOp to convert mostSpecificFrom -> mostSpecificTo\n // 3) convert mostSpecificTo -> to\n\n Value v = fromValue;\n if (!from.equals(mostSpecificFrom)) {\n v = performImplicitConversion(from, mostSpecificFrom, v); // 1\n }\n // Debug.WriteLine(\"STEP2, calling conversion operator:\"+mostSpecificFrom+\"->\"+mostSpecificTo+\" of \"+conversionOp.declaringType+\" : \"+conversionOp.methodEntry);\n v = callConversionOperator(conversionOp.declaringType,\n conversionOp.methodEntry, v); // 2\n Debug.Assert(v != null, \"call of conversion operator failed\");\n Debug.Assert(TypeSpec.typeOf(v).equals(mostSpecificTo),\n \"unexpected return type from conversion operator\");\n\n if (!to.equals(mostSpecificTo)) {\n v = performImplicitConversion(mostSpecificTo, to, v); // 3\n }\n\n return v;\n }",
"Object getConvertedValue() throws ConversionException;",
"private double convertDouble()\n\t{\n\t\tString val = tokens[10];\n\t\tdouble value = 0.0;\n\t\ttry {\n\t\t\tvalue = Double.parseDouble(tokens[10]);\n\t\t}\n\t\tcatch(NumberFormatException e) {\n\t\t\tSystem.err.print(\"\");\n\t\t}\n\t\treturn value;\n\t}",
"public interface Doubleton {\n static double identity(double input) {\n return input;\n }\n\n static float toFloat(double input) {\n return (float) input;\n }\n\n static byte toByte(double input) {\n return (byte) input;\n }\n\n static int toInt(double input) {\n return (int) input;\n }\n\n static long toLong(double input) {\n return (long) input;\n }\n\n static short toShort(double input) {\n return (short) input;\n }\n static String toString(double input) {\n return String.valueOf(input);\n }\n\n static Byte toBoxedByte(double input) {\n return toByte(input);\n }\n\n static Double toBoxedDouble(double input) {\n return input;\n }\n\n static Float toBoxedFloat(double input) {\n return toFloat(input);\n }\n\n static Integer toBoxedInteger(double input) {\n return toInt(input);\n }\n\n static Long toBoxedLong(double input) {\n return toLong(input);\n }\n\n static Short toBoxedShort(double input) {\n return toShort(input);\n }\n\n static double[] toArray(double value) {\n return new double[]{value};\n }\n}",
"private void functionalInterfacesForDoubleIntLong() {\n double d = 1.0;\n DoubleToIntFunction f1 = x -> 1;\n f1.applyAsInt(d);\n\n }",
"public static void main(String[]args) {\n\t\tdouble d=10;\n\t\tint num=10;\n\t\t\n\t\tSystem.out.println(d);\n\t\tint i=(int) 12.99;\n\t\tSystem.out.println(i);\n\t\tbyte b=(byte)130;\n\t\tSystem.out.println(b);\n\t\t\n\t double number =12;\n\t\tdouble result = number/5;\n\t\tSystem.out.println(result);\n\t\t\n\t\tdouble newNum=10;\n\t\tnewNum=newNum/3;\n\t\tSystem.out.println(newNum);\n\t\t\n\t\tdouble num1=10+10.5;\n\t\t\n\t\tSystem.out.println(num1);\n\t\t\n\t\n\t\t\n\t}",
"float applyAsFloat(T value);",
"private static Instruction propagateCastAsScalarVariablePrivacy(VariableCPInstruction inst, ExecutionContext ec){\n\t\tinst = (VariableCPInstruction) propagateFirstInputPrivacy(inst, ec); \n\t\treturn preprocessInstructionSimple(inst, ec);\n\t}",
"@Override\n\tpublic void visit(CastExpression arg0) {\n\t\t\n\t}",
"public static void main(String[] args) {\n new TypeDemo().testConvert1();\n\t\n\tchar c = 'a';//char是文本型\n\tbyte b = 'b';\n\tSystem.out.println(c);\n\tSystem.out.println(b);\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tint intNumber=25;\n\t\tdouble doubleNumber=intNumber;\n\t\tSystem.out.println(\"The double number is\" +doubleNumber);\n\t\t//19 is between -128 and 127\n\t\tint numberInt=19;\n\t\tbyte numberByte=(byte)numberInt;\n\t\tSystem.out.println(\"The byte value is \" + numberByte);\n\t\t//260 is bigger than 256\n\t\tnumberInt=260;\n\t\tnumberByte=(byte)numberInt;\n\t\tSystem.out.println(\"The byte value is\"+ numberInt);\n\t\t\n\t\tnumberByte=80;\n\t\tnumberInt=(byte)numberByte;\n\t\tSystem.out.println(\"The int value is\"+ numberInt);\n\n\t}",
"public V cast(Object object) {\n return valueClass.cast(object);\n }",
"public static void main(String[] args) {\n\n\t\tdouble d=12/7;\n\t\tSystem.out.println(d);\n\t\t\n\t\tdouble e=9;//widening\n\t\tSystem.out.println(e);\n\t\t\n\t\tint i=(int)9.99;// narrowing\n\t\tSystem.out.println(i);\n\t\t\n\t\tbyte b=(byte)130;// narrowing\n\t\tSystem.out.println(b);\n\t\t\n\t\t\n\t\t\n\t}",
"protected static double convertNumberToDouble( final Object number )\n\t{\n\t\tdouble returnValue = 0.0d;\n\n\t\tif ( number instanceof Integer )\n\t\t{\n\t\t\treturnValue = ( ( Integer ) number ).doubleValue( );\n\t\t}\n\t\telse if ( number instanceof Double )\n\t\t{\n\t\t\treturnValue = ( ( Double ) number ).doubleValue( );\n\t\t}\n\n\t\treturn returnValue;\n\t}",
"public T caseDatatype(Datatype object)\n {\n return null;\n }",
"public static void main(String[] args) {\n int iValue=256;//\n //强制把一个int类型的值转换为byte类型的值\n byte bValue=(byte)iValue;//-128--0-127\n System.out.println(bValue);//将输出多少?为什么\n short s3=100;\n s3=(short)(s3+2);\n\n byte b=25;//25.0\n char c='a';//97.0\n int i=23;\n double d=.3;\n //右边表达式中在最高等级操作数为duble类型,\n //则右边表达式的类型为double型,故付给一个double型变量\n float result=(float)(b+c+i*d);\n System.out.println(result);\n System.out.println('a'+\"\"+1);\n System.out.println('a'+1+\"\");\n\n System.out.println(1+\"\"+'a'+'b');\n System.out.println('a'+\"\"+'b');\n System.out.println('d'+1*'a'+'c');\n\n\n }",
"public interface DoubleType extends NumericType {\n}",
"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}",
"@Override\r\n\tpublic void cast() {\n\r\n\t}",
"public static void main(String[] args) {\nint i=1;\nbyte b=1;\nshort s=1;\nlong l=1L;\ndouble d=1d;\nfloat f=1f;\nSystem.out.println(\"the values are \"+i);\nSystem.out.println(\"the values are \"+b);\n\nSystem.out.println(\"the values are \"+s);\nSystem.out.println(\"the values are \"+l);\nSystem.out.println(\"the values are \"+d);\nSystem.out.println(\"the values are \"+f);\n\n\t}",
"public static void main(String[] args) {\n short x = 1;\r\n int y = x + 2;\r\n System.out.println(y);\r\n\r\n // Explicit Casting\r\n double z = 1.1;\r\n int v = (int)x + 2;\r\n System.out.println(v);\r\n\r\n \r\n String q = \"1\";\r\n //Integer.parseInt() = int\r\n //Short.parseShort, Float.parseFloat, etc.\r\n int w = Integer.parseInt(q) + 2;\r\n System.out.println(w);\r\n\r\n // what if string is a float...\r\n String e = \"1.1\";\r\n float r = Float.parseFloat(e) + 2;\r\n System.out.println(r);\r\n\r\n // what if string is a double...\r\n String t = \"1.1\";\r\n double p = Double.parseDouble(t) + 2;\r\n System.out.println(p);\r\n }",
"public int a(String paramString, int paramInt1, int paramInt2, int paramInt3)\r\n/* 239: */ {\r\n/* 240:247 */ return a(paramString, (float)paramInt1, (float)paramInt2, paramInt3, false);\r\n/* 241: */ }",
"public static void main(String[] args) {\n int num = 10;\n System.out.println(\"The integer value is: \" + num);\n\n // converts int to string type\n String data = Integer.toString (num);// we can also use String.format() String.valueOf()\n System.out.println(\"The string value is: \" + data);//////\n //str to int\n // create string type variable\n String data1 = \"10\";\n System.out.println(\"The string value is: \" + data1);\n // convert string variable to int\n int num1 = Integer.parseInt(data1);// we can also use Integer.valueOf() \n System.out.println(\"The integer value is: \" + num1);//////\n //str to long\n //creating str type variable\n String data2 = \"10\";\n System.out.println(\"The string value is: \" + data2);\n long l2 = Long.parseLong(data2);\n System.out.println(\"The long value is: \" + l2);//////\n //long to str\n //creating long type variable\n long data3 = 9225;\n System.out.println(\"The long value is: \" + data3);\n String str3 =String.valueOf(data3);///we can also use Long.toString()\n System.out.println(\"The string is: \" + str3);//////\n //str to float\n //creating str type variable\n String data4 = \"555555\";\n System.out.println(\"The string value is: \" + data4);\n float f4 = Float.parseFloat(data4);\n System.out.println(\"The float value is: \" + f4);//////\n //float to str\n //creating float type variable\n float data5 = 5555555;\n System.out.println(\"The float value is: \" + data5);\n String str5 =String.valueOf(data5);///we can also use Float.toString() \n System.out.println(\"The string is: \" + str5);//////\n //str to double\n //creating str type variable\n String data6 = \"555555.55\";\n System.out.println(\"The string value is: \" + data6);\n double d6 = Double.parseDouble(data6);\n System.out.println(\"The double value is: \" + d6);//////\n //double to str\n //creating float type variable\n double data7 = 55555.55;\n System.out.println(\"The double value is: \" + data7);\n String str7 =String.valueOf(data7);///we can also use double.toString() \n System.out.println(\"The string is: \" + str7);//////\n \n \n\n }",
"public abstract double readAsDbl(int offset);",
"public static void main(String[] args) {\n byte contohByte = 100;\n short contohShort = 10000;\n int contohInt = 32000;\n long contohLong = 12000000;\n long contohLong2 = 120000000L;\n\n float contohFloat = 3.14F;\n double contohDouble = 3.12345667;\n\n int desimalInt = 43;\n int hexadecimalInt = 0x123fa;\n int binaryInt = 0b00010001;\n\n\n\n }",
"public double toFloat(TypeRef ty) {\r\n\t\treturn LLVMGenericValueToFloat(ty.type(), ref);\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic static <T> T convertData(Data data, Class<T> targetClass) {\n\t\tif (data.getType().getName().equals(\"string\")) {\n\t\t\tString string;\n\t\t\ttry {\n\t\t\t\tstring = new DataInputStream(data.getValue()).readUTF();\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(\"Fix this IOException passing\", e);\n\t\t\t}\n\t\t\tif (targetClass.equals(String.class)) {\n\t\t\t\treturn (T) string;\n\t\t\t} else if (targetClass.equals(Integer.class) || targetClass.equals(Integer.TYPE)) {\n\t\t\t\treturn (T) Integer.valueOf(string);\n\t\t\t} else if (targetClass.equals(Double.class) || targetClass.equals(Double.TYPE)) {\n\t\t\t\treturn (T) Double.valueOf(string);\n\t\t\t}\n\t\t} else if (data.getType().getName().equals(\"int32\")) {\n\t\t\tint integer;\n\t\t\ttry {\n\t\t\t\tinteger = new DataInputStream(data.getValue()).readInt();\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(\"Fix this IOException passing\", e);\n\t\t\t}\n\t\t\tif (targetClass.equals(String.class)) {\n\t\t\t\treturn (T) String.valueOf(integer);\n\t\t\t} else if (targetClass.equals(Integer.class) || targetClass.equals(Integer.TYPE)) {\n\t\t\t\treturn (T) Integer.valueOf(integer);\n\t\t\t} else if (targetClass.equals(Double.class) || targetClass.equals(Double.TYPE)) {\n\t\t\t\treturn (T) Double.valueOf(integer);\n\t\t\t}\n\t\t}\n\t\tthrow new RuntimeException(\"Conversion for \" + data.getType().getName() + \" to \" + targetClass\n\t\t\t\t+ \" not implemented yet\");\n\t}",
"public static void main(String[] args) {\n\t\n\tint i=100;\n\tInteger j=i; // auto boxing\n\t\n\tDouble d=34.2;\n\t\n\tboolean b=true;\n\tboolean b2=b;\n\t\n\tList<Integer>nums=new ArrayList<>();\n\tnums.add(433);\n\tint p=555;\n\tnums.add(p);\n\tnums.add(new Integer(77));\n\t\n\tSystem.out.println(nums);\n\t // UnBoxing == takind the wrapper class object and converting into primitive and happens automatically\n\tint r = nums.get(0);\n\t\n\tboolean bool= new Boolean(false);\n\tboolean boolprim=bool;\n\tSystem.out.println(boolprim);\n\t\n\tCharacter chObj='^'; //autoboxing\n\tchar chPrim=chObj;\n\t\n\tchar myChar='^';\n\tCharacter chObj2=myChar; // autoboxing\n\t\n\tchar chprim=chObj; // unboxing from character object\n\t\n\tInteger intValue = new Integer (400);\n\t\n\tif(intValue==400) { // unboxing \n\t\tSystem.out.println(\"Pass\");\n\t}else {\n\t\tSystem.out.println(\"Fail\");\n\t}\n\t\n\t\n\tString word=\"java\";\n\tword=word.toUpperCase();\n\tword=word+\"programminng\";\n\tSystem.out.println(word);\n}",
"static double convert(double in) {\n return (in * 0.254);\n }",
"public interface TypeDataConverter<T> {\n public Integer getInteger(T source, String columnName, Integer defaultValue);\n public Long getLong(T source, String columnName, Long defaultValue);\n public Double getDouble(T source, String columnName, Double defaultValue);\n public String getString(T source, String columnName, String defaultValue);\n}",
"public final AstValidator.type_cast_return type_cast() throws RecognitionException {\n AstValidator.type_cast_return retval = new AstValidator.type_cast_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 AstValidator.simple_type_return simple_type240 =null;\n\n AstValidator.map_type_return map_type241 =null;\n\n AstValidator.tuple_type_cast_return tuple_type_cast242 =null;\n\n AstValidator.bag_type_cast_return bag_type_cast243 =null;\n\n\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:424:11: ( simple_type | map_type | tuple_type_cast | bag_type_cast )\n int alt59=4;\n switch ( input.LA(1) ) {\n case BIGDECIMAL:\n case BIGINTEGER:\n case BOOLEAN:\n case BYTEARRAY:\n case CHARARRAY:\n case DATETIME:\n case DOUBLE:\n case FLOAT:\n case INT:\n case LONG:\n {\n alt59=1;\n }\n break;\n case MAP_TYPE:\n {\n alt59=2;\n }\n break;\n case TUPLE_TYPE_CAST:\n {\n alt59=3;\n }\n break;\n case BAG_TYPE_CAST:\n {\n alt59=4;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 59, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt59) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:424:13: simple_type\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_simple_type_in_type_cast2097);\n simple_type240=simple_type();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, simple_type240.getTree());\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:424:27: map_type\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_map_type_in_type_cast2101);\n map_type241=map_type();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, map_type241.getTree());\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:424:38: tuple_type_cast\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_tuple_type_cast_in_type_cast2105);\n tuple_type_cast242=tuple_type_cast();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, tuple_type_cast242.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 4 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:424:56: bag_type_cast\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_bag_type_cast_in_type_cast2109);\n bag_type_cast243=bag_type_cast();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, bag_type_cast243.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\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 }",
"public double getAsDouble(int index) {\n switch (type) {\n case TIFFTag.TIFF_BYTE: case TIFFTag.TIFF_UNDEFINED:\n return ((byte[])data)[index] & 0xff;\n case TIFFTag.TIFF_SBYTE:\n return ((byte[])data)[index];\n case TIFFTag.TIFF_SHORT:\n return ((char[])data)[index] & 0xffff;\n case TIFFTag.TIFF_SSHORT:\n return ((short[])data)[index];\n case TIFFTag.TIFF_SLONG:\n return ((int[])data)[index];\n case TIFFTag.TIFF_LONG: case TIFFTag.TIFF_IFD_POINTER:\n return ((long[])data)[index];\n case TIFFTag.TIFF_FLOAT:\n return ((float[])data)[index];\n case TIFFTag.TIFF_DOUBLE:\n return ((double[])data)[index];\n case TIFFTag.TIFF_SRATIONAL:\n int[] ivalue = getAsSRational(index);\n return (double)ivalue[0]/ivalue[1];\n case TIFFTag.TIFF_RATIONAL:\n long[] lvalue = getAsRational(index);\n return (double)lvalue[0]/lvalue[1];\n case TIFFTag.TIFF_ASCII:\n String s = ((String[])data)[index];\n return Double.parseDouble(s);\n default:\n throw new ClassCastException();\n }\n }",
"public Exp\nadjustTypesOfBinaryOperands( Exp pExp1, Exp pExp2 );",
"public static void main(String[] args) {\n// System.out.println(\"Run!Run!Run!!!!\");\n byte byteVar1; // its best to form a habbit to create names with meaning. creation of var\n// variable declaration\n byteVar1 = 35; // byteVar1 get information\n byteVar1 = 12; // change var.\n byte byteVar2 = 10;\n byte byteVar3, byteVar4;\n byte byteVar5 = 10, byteVar6 = 12;\n short shortVar = -155;\n int intVar = 312;\n int intVar2 = 1_000_123_000;\n long longVar = -3000000L; // only for long\n float floatVar = 5.7f;\n double doubleVar = 2.367;\n\n // char (2 bytes)\n // symbol nomber in unikod table\n\n boolean booleanVar = true;\n booleanVar = false;\n\n // Type merging.(Приведение типов)\n byte someByte = 10;\n int someInt = someByte; // variable someInt war created and then feelde with 10\n someInt = 200;\n// someByte = someInt; doesnot wark.\n // явное приведение!\n someByte = (byte) someInt;\n\n int a = 10;\n int b = 91;\n int c = b % a;\n// System.out.println(c + \" variable c\");\n short x = 56;\n short y = 397;\n// short z = x%y; result of all operations wth byte and short is always int!!!!!!!!!\n int res = x + y;\n long res2 = x / y;\n short rezTr = (short) (x + y);\n int n =100;\n double m =200.6;\n// int zeroDiv =n/0;\n// double zeroDivD = m/0;\n// System.out.println(\"Integer \"+zeroDiv);\n// System.out.println(\"Integer \"+zeroDivD);\n someByte =3;\n someByte =(byte) (someByte*7);\n someByte *=7; // the same. take somebyte multiply by 7 the assignment its comfortoble but troublemaking\n\n someInt =10;\n someInt = someInt +20;\n someInt +=20;\n //var =(condition) ? -> if true :if false\n\n int k =25;\n int l = 8;\n int wrk = 256;\n int res234 = ((wrk%2) == 0) ? wrk/2: wrk*2;\n System.out.println( \"итого \"+res234);\n\n\n\n }",
"private static int m6082a(Class<?> cls) {\n if (cls == Double.TYPE) {\n return 1;\n }\n if (cls == Float.TYPE) {\n return 2;\n }\n if (cls == Long.TYPE) {\n return 3;\n }\n if (cls == Integer.TYPE) {\n return 4;\n }\n if (cls == Short.TYPE) {\n return 5;\n }\n if (cls == Character.TYPE) {\n return 6;\n }\n if (cls == Byte.TYPE) {\n return 7;\n }\n if (cls == Boolean.TYPE) {\n return 99;\n }\n return 8;\n }",
"public static void main(String[] args) {\n\t\tDataTypeTest test = new DataTypeTest();\r\n\t\ttest.i = -1/0; \r\n\t\ttest.i = (int) 3.5f;\r\n\t\ttest.d = 2l;\r\n\t\t//test.s = (short) 10000000000000000000;\r\n\t\ttest.b = (byte) test.s;\r\n\t\ttest.f = test.l;\r\n\t\ttest.c = (char) test.i;\r\n\t\t//test.bool = 1;\r\n\t}",
"private Object getTypeObjectPair() throws MathLinkException, NumberRangeException {\n Object result = null;\n int type = this.getInteger();\n if (type % -17 == -15) {\n type = -7 + -17 * (type / -17);\n } else if (type % -17 == -16) {\n type = -8 + -17 * (type / -17);\n }\n switch (type) {\n case -5: {\n result = new Integer(this.getInteger());\n break;\n }\n case -6: {\n result = new Long(this.getLongInteger());\n break;\n }\n case -4: {\n int i = this.getInteger();\n if (i < -32768 || i > 32767) {\n throw new NumberRangeException(i, \"short\");\n }\n result = new Short((short)i);\n break;\n }\n case -2: {\n int i = this.getInteger();\n if (i < -128 || i > 127) {\n throw new NumberRangeException(i, \"byte\");\n }\n result = new Byte((byte)i);\n break;\n }\n case -3: {\n int i = this.getInteger();\n if (i < 0 || i > 65535) {\n throw new NumberRangeException(i, \"char\");\n }\n result = new Character((char)i);\n break;\n }\n case -15: \n case -7: {\n double d = this.getDouble();\n if (d < -3.4028234663852886E38 || d > 3.4028234663852886E38) {\n throw new NumberRangeException(d, \"float\");\n }\n result = new Float((float)d);\n break;\n }\n case -16: \n case -8: {\n result = new Double(this.getDouble());\n break;\n }\n case -9: {\n int tok = this.getType();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n result = this.getString();\n if (tok != 35 || !result.equals(\"Null\")) break;\n result = null;\n break;\n }\n case -1: {\n String s = this.getSymbol();\n if (s.equals(\"True\")) {\n result = Boolean.TRUE;\n break;\n }\n result = Boolean.FALSE;\n break;\n }\n case -13: {\n long mark = this.createMark();\n try {\n int tok = this.getNext();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n if (tok == 35) {\n result = this.getSymbol();\n if (result.equals(\"Null\")) {\n result = null;\n break;\n }\n this.seekMark(mark);\n result = this.getComplex();\n break;\n }\n this.seekMark(mark);\n result = this.getComplex();\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -10: {\n long mark = this.createMark();\n try {\n int tok = this.getType();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n if (tok == 35) {\n result = this.getSymbol();\n if (result.equals(\"Null\")) {\n result = null;\n break;\n }\n result = new BigInteger((String)result);\n break;\n }\n result = new BigInteger(this.getString());\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -11: {\n long mark = this.createMark();\n try {\n int tok = this.getType();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n if (tok == 35) {\n result = this.getSymbol();\n if (result.equals(\"Null\")) {\n result = null;\n break;\n }\n result = Utils.bigDecimalFromString((String)result);\n break;\n }\n result = Utils.bigDecimalFromString(this.getString());\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -12: {\n long mark = this.createMark();\n try {\n int tok = this.getNext();\n if (tok == 100000 && (result = this.getObject()) != null) break;\n this.seekMark(mark);\n result = this.getExpr();\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -14: {\n result = this.getObject();\n break;\n }\n case -10000: {\n break;\n }\n default: {\n int tok = this.getNext();\n result = tok == 100000 || tok == 35 ? this.getObject() : (type > -34 ? this.getArray(type - -17, 1) : (type > -51 ? this.getArray(type - -34, 2) : (type > -68 ? this.getArray(type - -51, 3) : (type > -85 ? this.getArray(type - -68, 4) : this.getArray(type - -85, 5)))));\n }\n }\n return result;\n }",
"public static void main(String[] args) {\n\n int a1 = 100;\n float f1 = (long) a1;\n // f1 = 100L;\n //f1 = 100.0;\n System.out.println(f1);\n\n long l1 = (short) f1;\n //l1= 100;\n System.out.println(l1);\n\n String name;\n //System.out.println(name); //not compiling : In java: first come first serve\n\n String Name= \"Cybertek\";\n System.out.println(Name);\n\n\n\n }",
"Class<?> getSimpleConversionClass() {\n Class<?> c = null;\n final String sa4 = sa[4] != null ? sa[4].toLowerCase() : null;\n final String sa5 = sa[5] != null ? sa[5].toLowerCase() : null;\n if (\"t\".equals(sa4)) {\n c = Calendar.class;\n } else if (\"b\".equals(sa5)) {\n c = Boolean.class;\n } else if (\"h\".equals(sa5) /* Hashcode */) {\n c = Object.class;\n } else if (\"s\".equals(sa5)) {\n c = Object.class; /* Conversion using toString() */\n } else if (\"c\".equals(sa5)) {\n c = Character.class;\n } else if (\"d\".equals(sa5) || \"o\".equals(sa5) || \"x\".equals(sa5)\n || \"e\".equals(sa5) || \"f\".equals(sa5) || \"g\".equals(sa5)\n || \"a\".equals(sa5)) {\n c = Number.class;\n } else if (\"n\".equals(sa5) || \"%\".equals(sa5)) {\n // ignore literals\n }\n return c;\n }",
"public interface Convertible {\r\n\r\n /**\r\n * set value;\r\n */\r\n public void setFromValue(double fromValue);\r\n /**\r\n * return converted value\r\n * @return\r\n */\r\n public double getConvertedValue();\r\n /**\r\n * convert value \r\n */\r\n public void convert();\r\n\r\n}",
"@Override\n public double convert(final double value) {\n return c2.convert(c1.convert(value));\n }",
"public static Number toNumber(Object obj, Class<?> type) {\n if (obj == null) {\n return null;\n }\n // Integer, Long and BigDecimal are prior\n if (type == Integer.class) {\n return toInteger(obj);\n } else if (type == Long.class) {\n return toLong(obj);\n } else if (type == BigDecimal.class) {\n return toBigDecimal(obj);\n } else if (type == Double.class) {\n return toDouble(obj);\n } else if (type == Float.class) {\n return toFloat(obj);\n } else if (type == Short.class) {\n return toShort(obj);\n } else if (type == Byte.class) {\n return toByte(obj);\n } else if (type == BigInteger.class) {\n return toBigInteger(obj);\n }\n return null; // could not convert\n }",
"public static Double toDouble(Object value) {\n if (value instanceof Integer)\n return (double)(int)(Integer)value;\n else if (value instanceof Long)\n return (double)(long)(Long)value;\n else if (value instanceof Double)\n return (Double)value;\n else if (value == null)\n return null;\n else\n throw new RuntimeException(\"Can't convert [\" + value + \"] to Double\");\n }",
"public static void main(String[] args) {\n\n\t\tSystem.out.println( \"Min value of Byte :\"+ Byte.MIN_VALUE); \n\t\tSystem.out.println( \"Max value of Byte :\"+ Byte.MAX_VALUE); \n\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println( \"Min value of Short :\"+ Short.MIN_VALUE); \n\t\tSystem.out.println( \"Max value of Short :\"+ Short.MAX_VALUE); \n\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println( \"Min value of Integer :\"+ Integer.MIN_VALUE); \n\t\tSystem.out.println( \"Max value of Integer :\"+ Integer.MAX_VALUE); \n\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println( \"Min value of Long :\"+ Long.MIN_VALUE); \n\t\tSystem.out.println( \"Max value of Long :\"+ Long.MAX_VALUE); \n\n\t\t// l should be at the end of value\n\t\tlong number1 = 9223372036854775807l;\n\t\tSystem.out.println( \"After adding l at end of the long number \" + number1);\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t/* *\n\t\t * Decimal Data Types *\n\t\t * \t\t-----------------\t *\n\t\t *\t\t\t\t\t\t\t *\n\t\t*/\n\t\t\n\t\t// 1. float \t\t2. double\n\n\t\tSystem.out.println( \"Min value of float :\"+ Float.MIN_VALUE); \n\t\tSystem.out.println( \"Max value of float :\"+ Float.MAX_VALUE); \n\t\t\n\t\t// f should be at the end of value\n\t\tfloat decimal1 = 32245.12123f;\n\t\t\n\t\tSystem.out.println( \"After adding f at the end of the float\" + decimal1);\n\t\t\n\t\tSystem.out.println();\n\n\t\tSystem.out.println( \"Min value of double :\"+ Double.MIN_VALUE); \n\t\tSystem.out.println( \"Max value of double :\"+ Double.MAX_VALUE); \n\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t\n\t\t/* *\n\t\t * Character Data Types *\n\t\t * \t --------------------\t *\n\t\t *\t\t\t\t\t\t\t *\n\t\t*/\n\t\t\n\t\t\n\t\t// 1. char \t\t\t2. String( int 2 bytes)\n\n\t\t// can only contain single letter\n\t\tchar ch = 'a'; \n\t\tSystem.out.println( \"Single character :\"+ ch);\n\t\t\n\t\t// can contain unicode values \n\t\tchar unicode = '\\u0000';\n\t\tSystem.out.println( \"Unicodes are stored but not shown :\"+ unicode);\n\t\t\n\t\t// are stored in int\n\t\tint num = 'a';\n\t\tSystem.out.println( \"character stored in int:\"+num);\n\t\t\n\t\tSystem.out.println();\n\t\t\n\n\t\tString str = \"Hello\" + \" World\";\n\t\tSystem.out.println(str);\n\n\t}"
]
| [
"0.774528",
"0.6765707",
"0.65863967",
"0.6474278",
"0.6458816",
"0.6433856",
"0.635026",
"0.6106376",
"0.60460925",
"0.603521",
"0.6012515",
"0.5980879",
"0.5913652",
"0.5907562",
"0.5901823",
"0.5876707",
"0.57891333",
"0.57863826",
"0.577259",
"0.5740372",
"0.5738752",
"0.5717572",
"0.57080406",
"0.56803745",
"0.563963",
"0.56237406",
"0.55618775",
"0.55580634",
"0.5542876",
"0.55180067",
"0.5514638",
"0.54985493",
"0.54956686",
"0.54938865",
"0.54932684",
"0.54461527",
"0.53895414",
"0.5372004",
"0.5349142",
"0.5347302",
"0.5337761",
"0.5324456",
"0.5322712",
"0.5306552",
"0.530018",
"0.52996564",
"0.5273601",
"0.5250222",
"0.5250222",
"0.5250222",
"0.52418023",
"0.5235003",
"0.5229325",
"0.5222027",
"0.52213377",
"0.5211474",
"0.5202612",
"0.52024525",
"0.51996905",
"0.51661444",
"0.5164195",
"0.5158544",
"0.51501065",
"0.51262",
"0.5111362",
"0.51011145",
"0.5100923",
"0.5092615",
"0.5091278",
"0.5087981",
"0.5083201",
"0.50831366",
"0.50673217",
"0.5061268",
"0.50434256",
"0.50427437",
"0.5039386",
"0.5021272",
"0.5014539",
"0.50111914",
"0.49991006",
"0.49922502",
"0.49779585",
"0.49777022",
"0.49744526",
"0.49684855",
"0.49684826",
"0.49514696",
"0.49454707",
"0.49259084",
"0.49198228",
"0.49130148",
"0.4909868",
"0.49088576",
"0.4908619",
"0.49078953",
"0.4906817",
"0.49043834",
"0.49029088",
"0.49007186",
"0.48930934"
]
| 0.0 | -1 |
Construct an empty decorator over another accumulator | protected AccumulatorDecorator(Accumulator<V, R> decorated) {
this.decorated = Objects.requireNonNull(decorated);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public long[] createAccumulator() {\n return new long[] {0};\n }",
"@Override\n public StringBuilder createAccumulator() {\n return null;\n }",
"ReduceType reduceInit();",
"@Override\n public BinaryOperator<TradeAccumulator> combiner() {\n return (accum1, accum2) -> {return accum1.addAll(accum2);};\n }",
"protected Accumulator<V, R> getDecorated() {\n return decorated;\n }",
"@Override\n public BiConsumer<List<Integer>, Employee> accumulator() {\n return (resultList, employee) -> {\n if (resultList.isEmpty()) resultList.add(employee.getSalary());\n else {\n Integer currentTotal = resultList.get(0);\n currentTotal += employee.getSalary();\n resultList.set(0, currentTotal);\n }\n };\n }",
"@Override\n public BinaryOperator<List<Integer>> combiner() {\n return (resultList1, resultList2) -> {\n Integer currentTotal1 = resultList1.get(0);\n Integer currentTotal2 = resultList2.get(0);\n currentTotal1 += currentTotal2;\n resultList1.set(0, currentTotal1);\n return resultList1;\n };\n }",
"@Override\r\n public Double reduce(Double identity, Function accumulator) {\r\n return head.reduce(identity, accumulator);\r\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> aggregate(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Func2<? super T, ? super T, ? extends T> accumulator) {\r\n\t\treturn new Aggregate.Simple<T>(source, accumulator);\r\n\t}",
"Double reduce(Double identity, Function accumulator);",
"private Combined() {}",
"public static void reduceDemo() {\n Observable.range(1, 10).reduce(new Func2<Integer, Integer, Integer>() {\n @Override\n public Integer call(Integer integer, Integer integer2) {\n RxDemo.log(RxDemo.getMethodName() + \" \" + integer + \" \" + integer2);\n return integer + integer2;\n }\n }).subscribe(new RxCreateOperator.Sub());\n }",
"ASTFoldCombine() { super(null); }",
"@Override\n public BiConsumer<ObjectNode, Map.Entry<String, JsonNode>> accumulator() {\n return (acc, entry) -> acc.set(entry.getKey(), entry.getValue());\n }",
"public InMemoryCombiningReducer() {\n\n\t\t}",
"public interface IndexWriter {\n public static IndexWriter noop() {\n return new IndexWriter() {\n\n @Override\n public boolean canBeSkipped() {\n return true;\n }\n\n @Override\n public void clearAllIndexes() {\n }\n\n @Override\n public boolean add( String workspace,\n NodeKey key,\n Path path,\n Name primaryType,\n Set<Name> mixinTypes,\n Properties properties ) {\n return false;\n }\n\n @Override\n public boolean remove( String workspace,\n NodeKey key ) {\n return false;\n }\n\n @Override\n public void commit( String workspace ) {\n }\n };\n }\n\n public static IndexWriter compose(Iterable<IndexWriter> delegates, Consumer<Exception> handler) {\n Objects.requireNonNull(delegates, \"delegates\");\n Objects.requireNonNull(handler, \"handler\");\n\n List<IndexWriter> useDelegates = StreamSupport.stream(delegates.spliterator(),\n false).filter(t -> !t.canBeSkipped()).collect(Collectors.toList()); \n\n if (useDelegates.isEmpty()) {\n return noop();\n }\n\n return new IndexWriter() {\n\n @Override\n public boolean remove( String workspace,\n NodeKey key ) {\n boolean result = false;\n for (IndexWriter indexWriter : delegates) {\n try {\n result = indexWriter.remove(workspace, key) || result;\n } catch (Exception e) {\n handler.accept(e);\n }\n }\n return result;\n }\n\n @Override\n public void commit( String workspace ) {\n delegates.forEach(d -> {\n try {\n d.commit(workspace);\n } catch (Exception e) {\n handler.accept(e);\n }\n });\n }\n\n @Override\n public void clearAllIndexes() {\n delegates.forEach(t -> {\n try {\n t.clearAllIndexes();\n } catch (Exception e) {\n handler.accept(e);\n }\n });\n }\n\n @Override\n public boolean canBeSkipped() {\n for (IndexWriter indexWriter : delegates) {\n try {\n if (!indexWriter.canBeSkipped()) return false;\n } catch (Exception e) {\n handler.accept(e);\n }\n }\n return true;\n }\n\n @Override\n public boolean add( String workspace,\n NodeKey key,\n Path path,\n Name primaryType,\n Set<Name> mixinTypes,\n Properties properties ) {\n boolean result = false;\n for (IndexWriter indexWriter : delegates) {\n try {\n result = indexWriter.add(workspace, key, path, primaryType, mixinTypes, properties) || result;\n } catch (Exception e) {\n handler.accept(e);\n }\n }\n return result;\n }\n };\n }\n\n /**\n * Flag that defines whether this index may be skipped. This is usually the case when the writer has no indexes behind it.\n * \n * @return true if this index writer does not need to be called, or false otherwise\n */\n boolean canBeSkipped();\n\n /**\n * Clear all indexes of content. This method is typically called prior to a re-indexing operation.\n */\n void clearAllIndexes();\n\n /**\n * Add to the index the information about a node.\n *\n * @param workspace the workspace in which the node information should be available; may not be null\n * @param key the unique key for the node; may not be null\n * @param path the path of the node; may not be null\n * @param primaryType the primary type of the node; may not be null\n * @param mixinTypes the mixin types for the node; may not be null but may be empty\n * @param properties the properties of the node; may not be null but may be empty\n * @return {@code true} if the operation was successful and data was written to at least one index, {@code false} otherwise\n */\n boolean add( String workspace,\n NodeKey key,\n Path path,\n Name primaryType,\n Set<Name> mixinTypes,\n Properties properties );\n\n /**\n * Removes information from the indexes about a node.\n *\n * @param workspace the workspace to which the node belongs; may not be null\n * @param key a {@link NodeKey} instance, never {@code null}\n * @return {@code true} if the operation was successful and data was written to at least one index, {@code false} otherwise\n */\n boolean remove( String workspace, NodeKey key );\n\n /**\n * Commits changes made to the indexes for a particular workspace.\n * \n * @param workspace the workspace to which the node belongs; may not be null\n */\n void commit(String workspace);\n\n}",
"@Override\n public Integer reduceInit() { return 0; }",
"public NoiseCleaner(CleaningDecorator next) { super(next); }",
"@Nonnull\r\n\tpublic static <T> Observable<T> scan(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Func2<? super T, ? super T, ? extends T> accumulator) {\r\n\t\treturn new Aggregate.Scan<T>(source, accumulator);\r\n\t}",
"public AccumulatorNumber ()\n\t{ total = 0.0; }",
"ArithmeticDependency createArithmeticDependency();",
"private interface MyGenericAggFunction<A, V, R> {\n\n A init();\n\n A add( A accumulator, V val );\n\n A merge( A accumulator1, A accumulator2 );\n\n R result( A accumulator );\n\n }",
"Measurement getAccumulation();",
"@FunctionalInterface\npublic interface Advancer<T> {\n boolean tryAdvance(Consumer<T> action);\n}",
"@Override\n public Expression[] accumulateExpressions() {\n if (arguments == 0 || countLiteral) {\n return new Expression[] {/* count = */ plus(count, literal(1L))};\n }\n\n // other case need to determine the value of the element\n List<Expression> operandExpressions = new ArrayList<>();\n for (int i = 0; i < arguments; i++) {\n operandExpressions.add(operand(i));\n }\n Expression operandExpression =\n operandExpressions.stream()\n .map(ExpressionBuilder::isNull)\n .reduce(ExpressionBuilder::or)\n .get();\n return new Expression[] {\n /* count = */ ifThenElse(operandExpression, count, plus(count, literal(1L)))\n };\n }",
"@Nonnull\r\n\tpublic static <T, U> Observable<U> aggregate(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\tfinal U seed,\r\n\t\t\t@Nonnull final Func2<? super U, ? super T, ? extends U> accumulator) {\r\n\t\treturn new Aggregate.Seeded<U, T>(source, seed, accumulator);\r\n\t}",
"@Override\n public Accumulator aggregate(Accumulator accumulator) {\n if (!getDate().isAfter(nextScheduledPaymentDate)) {\n amAttrs.setLoanAmount(accumulator.getBalance());\n MonetaryAmount periodInterest = AmortizationCalculator.getPeriodInterest(amAttrs);\n setTransaction(periodInterest);\n accumulator.addToBalance(periodInterest);\n setBalance(accumulator.getBalance());\n setFees(accumulator.getFeeBalance());\n setType(\"Period Interest\");\n setNote(\"Scheduled interest charge\");\n }\n\n return accumulator;\n\n }",
"@FunctionalInterface\npublic interface Func0<Out> extends Func<Void, Out>, Supplier<Out>, Try.CheckedSupplier<Out> {\n\n\tdefault int arity(){\n\t\treturn 0;\n\t}\n\n\tdefault Out get() {\n\t\treturn apply();\n\t}\n\n\t@Override\n\tdefault <Last> Func0<Last> andThen(Function<? super Out, ? extends Last> other) {\n\t\treturn () -> other.apply(apply());\n\t}\n\n\tOut checkedApply() throws Exception;\n\n\tdefault Out checkedApply(Void v) throws Exception {\n\t\treturn checkedApply();\n\t}\n\n\tdefault Out apply() {\n\t\treturn tryApply().get();\n\t}\n\n\tdefault Out apply(Void v) {\n\t\treturn apply();\n\t}\n\n\tdefault Try<Out> tryApply() {\n\t\treturn Try.of(this);\n\t}\n\n\tdefault Try<Out> tryApply(Void v) {\n\t\treturn tryApply();\n\t}\n\n\tstatic <Out> Func0<Out> lift(Func0<Out> func) {\n\t\treturn func;\n\t}\n}",
"Concat createConcat();",
"@Override\n\t\tpublic void reduce() {\n\t\t\t\n\t\t}",
"public ProductDecorator() {}",
"void decorate(IDecoratedSource decoratedSource);",
"@Override\n public TestUserMetricAccumulator makeAccumulator(AlgorithmInstance algorithm, TTDataSet data) {\n return (TestUserMetricAccumulator)\n Vars.tagEntropyAccumulator.invoke(listSize);\n }",
"public interface Reducer<T, U> {\n U reduce(U collector, T item);\n}",
"public static void scanWithInitialValue() {\n Observable.range(1, 10)\n .scan(100, (previous, current) -> {\n System.out.println(\"previous = \" + previous);\n System.out.println(\"current = \" + current);\n return previous + current;\n }).subscribe(new MyObserver<>());\n\n System.out.println(\"# 2\");\n\n /*\n Same as above but initial value is returned via callable.\n */\n\n Observable.range(1, 10)\n .scanWith(() -> 1000, (previous, current) -> {\n System.out.println(\"previous = \" + previous);\n System.out.println(\"current = \" + current);\n return previous + current;\n }).subscribe(new MyObserver<>());\n\n }",
"public abstract T accumulate(T left, T right);",
"@Test\n public void enumerateAccumulatorTest() throws Exception\n {\n Enumerate enumerate = new Enumerate();\n\n Tuple tuple1 = TupleFactory.getInstance().newTuple(1);\n tuple1.set(0, 10);\n\n Tuple tuple2 = TupleFactory.getInstance().newTuple(1);\n tuple2.set(0, 20);\n\n Tuple tuple3 = TupleFactory.getInstance().newTuple(1);\n tuple3.set(0, 30);\n\n Tuple tuple4 = TupleFactory.getInstance().newTuple(1);\n tuple4.set(0, 40);\n\n Tuple tuple5 = TupleFactory.getInstance().newTuple(1);\n tuple5.set(0, 50);\n\n DataBag bag1 = BagFactory.getInstance().newDefaultBag();\n bag1.add(tuple1);\n bag1.add(tuple2);\n bag1.add(tuple3);\n\n DataBag bag2 = BagFactory.getInstance().newDefaultBag();\n bag2.add(tuple4);\n bag2.add(tuple5);\n\n Tuple inputTuple1 = TupleFactory.getInstance().newTuple(1);\n inputTuple1.set(0,bag1);\n\n Tuple inputTuple2 = TupleFactory.getInstance().newTuple(1);\n inputTuple2.set(0,bag2);\n\n enumerate.accumulate(inputTuple1);\n enumerate.accumulate(inputTuple2);\n assertEquals(enumerate.getValue().toString(), \"{(10,0),(20,1),(30,2),(40,3),(50,4)}\");\n\n // Testing that cleanup code is correct by calling cleanup() and passing inputs back to Enumerate instance\n enumerate.cleanup();\n enumerate.accumulate(inputTuple1);\n enumerate.accumulate(inputTuple2);\n assertEquals(enumerate.getValue().toString(), \"{(10,0),(20,1),(30,2),(40,3),(50,4)}\");\n }",
"default <K, V> Stream<Pair<K, V>> integratePerKey(\n @ClosureParams(value = FromString.class, options = \"T\") Closure<K> keyExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<V> valueExtractor,\n @ClosureParams(value = FromString.class, options = \"K\") Closure<V> initialValue,\n @ClosureParams(value = FromString.class, options = \"V,V\") Closure<V> combiner) {\n\n return integratePerKey(null, keyExtractor, valueExtractor, initialValue, combiner);\n }",
"public void reduce( T mrt ) { }",
"public void reduce( T mrt ) { }",
"Unary operator(Operator o);",
"public interface InvocationInstrumenter {\n\n /**\n * Noop implementation if {@link InvocationInstrumenter}.\n */\n InvocationInstrumenter NOOP = new InvocationInstrumenter() {\n @Override\n public void beforeInvocation() {\n }\n\n @Override\n public void afterInvocation(boolean cleanup) {\n }\n };\n\n /**\n * Before call.\n */\n void beforeInvocation();\n\n /**\n * After call.\n *\n * @param cleanup Whether to enforce cleanup\n */\n void afterInvocation(boolean cleanup);\n\n /**\n * After call defaults to not enforcing cleanup.\n */\n default void afterInvocation() {\n afterInvocation(false);\n }\n\n /**\n * Combines multiple instrumenters into one.\n *\n * @param invocationInstrumenters instrumenters to combine\n * @return new instrumenter\n */\n static @NonNull InvocationInstrumenter combine(Collection<InvocationInstrumenter> invocationInstrumenters) {\n if (CollectionUtils.isEmpty(invocationInstrumenters)) {\n return NOOP;\n }\n if (invocationInstrumenters.size() == 1) {\n return invocationInstrumenters.iterator().next();\n }\n return new MultipleInvocationInstrumenter(invocationInstrumenters);\n }\n\n /**\n * Wrappers {@link Runnable} with instrumentation invocations.\n *\n * @param runnable {@link Runnable} to be wrapped\n * @param invocationInstrumenters instrumenters to be used\n * @return wrapper\n */\n static @NonNull Runnable instrument(@NonNull Runnable runnable, Collection<InvocationInstrumenter> invocationInstrumenters) {\n if (CollectionUtils.isEmpty(invocationInstrumenters)) {\n return runnable;\n }\n return instrument(runnable, combine(invocationInstrumenters));\n }\n\n\n /**\n * Wrappers {@link Callable} with instrumentation invocations.\n *\n * @param callable {@link Callable} to be wrapped\n * @param invocationInstrumenters instrumenters to be used\n * @param <V> callable generic param\n * @return wrapper\n */\n static @NonNull <V> Callable<V> instrument(@NonNull Callable<V> callable, Collection<InvocationInstrumenter> invocationInstrumenters) {\n if (CollectionUtils.isEmpty(invocationInstrumenters)) {\n return callable;\n }\n return instrument(callable, combine(invocationInstrumenters));\n }\n\n /**\n * Wrappers {@link Runnable} with instrumentation invocations.\n *\n * @param runnable {@link Runnable} to be wrapped\n * @param invocationInstrumenter instrumenter to be used\n * @return wrapper\n */\n static @NonNull Runnable instrument(@NonNull Runnable runnable, InvocationInstrumenter invocationInstrumenter) {\n if (runnable instanceof InvocationInstrumenterWrappedRunnable) {\n return runnable;\n }\n return new InvocationInstrumenterWrappedRunnable(invocationInstrumenter, runnable);\n }\n\n /**\n * Wrappers {@link Callable} with instrumentation invocations.\n *\n * @param callable {@link Callable} to be wrapped\n * @param invocationInstrumenter instrumenter to be used\n * @param <V> callable generic param\n * @return wrapper\n */\n static @NonNull <V> Callable<V> instrument(@NonNull Callable<V> callable, InvocationInstrumenter invocationInstrumenter) {\n if (callable instanceof InvocationInstrumenterWrappedCallable) {\n return callable;\n }\n return new InvocationInstrumenterWrappedCallable<>(invocationInstrumenter, callable);\n }\n\n}",
"default <V> Fn<V, U> compose(Fn<V, T> before){\n Objects.requireNonNull(before);\n return (V v)-> apply(before.apply(v));\n }",
"public static Expression reduce(Expression expression) { throw Extensions.todo(); }",
"public static MatrixAccumulator mkMinAccumulator() {\n return new MinMatrixAccumulator();\n }",
"protected static void performReduceWithABinaryOperator() {\n Integer sum = Stream.of(1, 2, 3, 4, 5).reduce(0, Integer::sum);\n\n Integer minValue = Stream.of(5, 4, 9, 2, 1).reduce(Integer.MIN_VALUE, Integer::max);\n\n String concatenation = Stream.of(\"str \", \"= \", \"alt \", \"string\")\n // the first parameter becomes the target of the concat method and the second one is the argument to concat\n // the target, the parameter and the result are of the same type and this can be considered a binary\n // operator for the reduce method\n .reduce(\"\", String::concat);\n System.out.println(concatenation);\n }",
"public AggregateFunctionBuilder<T> createAggregate(){\r\n return AggregateFunction.forType(this);\r\n }",
"@Override\n public Scope wrapperScope(RuleKeyHasher.Wrapper wrapper) {\n long hasherCount = hasher.getCount();\n return () -> {\n if (hasher.getCount() > hasherCount) {\n hasher.putWrapper(wrapper);\n }\n };\n }",
"public interface CombinedLoggerHelper<S extends State> extends\n CombinedLogger<S>, CombinedLoggerAware<S> {\n}",
"interface MyNumberType {\n Integer transform(Integer n1);\n\n default MyNumberType andThen(MyNumberType after) {\n Objects.requireNonNull(after);\n return (nt) -> after.transform(transform(nt));\n }\n}",
"static WireloopReward freeSteps() {\n return (s, a, n) -> RealScalar.ZERO;\n }",
"@Override\n public <A> Function1<A, BoxedUnit> compose (Function1<A, CIMSubsetter<?>> arg0)\n {\n return null;\n }",
"public ConcatFunction(Object value) {\r\n\t\tsuper(value);\r\n\t}",
"public static Stats of(int... values) {\n/* 133 */ StatsAccumulator acummulator = new StatsAccumulator();\n/* 134 */ acummulator.addAll(values);\n/* 135 */ return acummulator.snapshot();\n/* */ }",
"@Override\n\tpublic void visit(Addition arg0) {\n\t\t\n\t}",
"@Nonnull\r\n\tpublic static <T, U, V> Observable<V> aggregate(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Func2<? super U, ? super T, ? extends U> accumulator,\r\n\t\t\t@Nonnull final Func2<? super U, ? super Integer, ? extends V> divide) {\r\n\t\treturn new Aggregate.Projected<V, T, U>(source, accumulator, divide);\r\n\t}",
"@FunctionalInterface\npublic interface LongBiConsumer {\n void accept(long l, long r);\n\n default LongBiConsumer andThen(LongBiConsumer after) {\n Objects.requireNonNull(after);\n\n return (l, r) -> {\n accept(l, r);\n after.accept(l,r);\n };\n }\n\n LongBiConsumer DUMMY = (l, r) -> {};\n}",
"public interface Summarizer\n{\n public void startColumn(CharSequence label) throws Exception;\n public void endColumn() throws Exception;\n public void start(CharSequence label) throws Exception;\n public void description(CharSequence desc) throws Exception;\n public void setNorms(double f, double f2);\n public void item(Object key, int h) throws Exception;\n public void item(Object key, Stats1D h) throws Exception;\n public void finish(int sum) throws Exception;\n public void value(CharSequence label, double value) throws Exception;\n public void value(CharSequence label, CharSequence value) throws Exception;\n public void value(CharSequence label, long value) throws Exception;\n public void close() throws Exception;\n\n public final static Summarizer NO_SUMMARIZER = new Summarizer() {\n\t public void startColumn(CharSequence label) { }\n\t public void endColumn() { }\n\t public void start(CharSequence label) { }\n\t public void description(CharSequence desc) { }\n\t public void setNorms(double f, double f2) { }\n\t public void item(Object key, int h) { }\n\t public void item(Object key, Stats1D h) { }\n\t public void finish(int sum) { }\n\t public void value(CharSequence label, double value) { }\n\t public void value(CharSequence label, CharSequence value) { }\n\t public void value(CharSequence label, long value) { }\n\t public void close() { }\n };\n}",
"@FunctionalInterface\npublic interface ProgressLogger extends Consumer<Supplier<String>> {\n\n @Override\n void accept(Supplier<String> info);\n\n /**\n * @param info Something that happened\n */\n default void println(Supplier<String> info) {\n accept(info);\n }\n}",
"public static Stats of(double... values) {\n/* 122 */ StatsAccumulator acummulator = new StatsAccumulator();\n/* 123 */ acummulator.addAll(values);\n/* 124 */ return acummulator.snapshot();\n/* */ }",
"void continued(Consumer<First> continuationFirst);",
"@Override\n\tpublic void extractAggFn(List<Expr> collector) {\n\n\t}",
"@FunctionalInterface\r\npublic interface Semigroup<A> {\r\n\r\n public A dot(A x, A y);\r\n\r\n\r\n public default A fold(A a, List<A> as) {\r\n return as.isEmpty() ? a : fold(dot(a, as.head()), as.tail());\r\n }\r\n\r\n public default A fold(A a, A... as) {\r\n return fold(a, List.of(as));\r\n }\r\n\r\n}",
"@Override\n\tpublic void visit(Addition arg0) {\n\n\t}",
"public Builder clearAccOpId() {\n \n accOpId_ = 0;\n onChanged();\n return this;\n }",
"@FunctionalInterface\r\npublic interface DoubleApplier extends Serializable {\r\n\t\r\n\t/**\r\n\t * Applies an operation to a double.\r\n\t * \r\n\t * @param a input\r\n\t * @return result\r\n\t */\r\n\tdouble apply(final double a);\r\n}",
"public JsonFactory setOutputDecorator(OutputDecorator d)\n/* */ {\n/* 682 */ this._outputDecorator = d;\n/* 683 */ return this;\n/* */ }",
"public final PythonParser.decorators_return decorators() throws RecognitionException {\n PythonParser.decorators_return retval = new PythonParser.decorators_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n List list_d=null;\n PythonParser.decorator_return d = null;\n d = null;\n\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:440:5: ( (d+= decorator )+ )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:440:7: (d+= decorator )+\n {\n root_0 = (PythonTree)adaptor.nil();\n\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:440:8: (d+= decorator )+\n int cnt13=0;\n loop13:\n do {\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( (LA13_0==AT) ) {\n alt13=1;\n }\n\n\n switch (alt13) {\n \tcase 1 :\n \t // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:440:8: d+= decorator\n \t {\n \t pushFollow(FOLLOW_decorator_in_decorators830);\n \t d=decorator();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) adaptor.addChild(root_0, d.getTree());\n \t if (list_d==null) list_d=new ArrayList();\n \t list_d.add(d.getTree());\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt13 >= 1 ) break loop13;\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n EarlyExitException eee =\n new EarlyExitException(13, input);\n throw eee;\n }\n cnt13++;\n } while (true);\n\n if ( state.backtracking==0 ) {\n\n retval.etypes = list_d;\n \n }\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }",
"public ComposedCallbackBuilder() {}",
"@BackpressureSupport(BackpressureKind.UNBOUNDED_IN)\n @SchedulerSupport(SchedulerKind.NONE)\n public final <R> Observable<R> reduceWith(Supplier<R> seedSupplier, BiFunction<R, ? super T, R> reducer) {\n return scanWith(seedSupplier, reducer).last();\n }",
"@Nonnull\r\n\tpublic static <T, U> Observable<U> scan(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\tfinal U seed,\r\n\t\t\t@Nonnull final Func2<? super U, ? super T, ? extends U> accumulator) {\r\n\t\treturn new Aggregate.ScanSeeded<U, T>(source, seed, accumulator);\r\n\t}",
"public ChainOperator(){\n\n }",
"private OtherRootTracer createDispatcherTracer() {\n Transaction tx = Transaction.getTransaction();\n ClassMethodSignature sig = new ClassMethodSignature(getClass().getName(), \"dude\", \"()V\");\n return new OtherRootTracer(tx, sig, this, new OtherTransSimpleMetricNameFormat(\"myMetricName\"));\n }",
"@Override\n\tpublic double emissionFunction(double oilamount) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic double emissionFunction(double oilamount) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic double emissionFunction(double oilamount) {\n\t\treturn 0;\n\t}",
"public <O extends FighterOperation> O apply(O operation);",
"@ConsumerType\npublic interface BlobStatsCollector {\n BlobStatsCollector NOOP = new BlobStatsCollector() {\n @Override\n public void uploaded(long timeTaken, TimeUnit unit, long size) {\n\n }\n\n @Override\n public void downloaded(String blobId, long timeTaken, TimeUnit unit, long size) {\n\n }\n\n @Override\n public void uploadCompleted(String blobId) {\n\n }\n\n @Override\n public void downloadCompleted(String blobId) {\n\n }\n };\n\n /**\n * Called when a binary content is written to BlobStore\n *\n * @param timeTaken time taken to perform the operation\n * @param unit unit of time taken\n * @param size size of binary content being written\n */\n void uploaded(long timeTaken, TimeUnit unit, long size);\n\n /**\n * Called when a binary content is read from BlobStore\n *\n * @param blobId id of blob whose content are being read. For BlobStore\n * which break up file in chunks it would be chunkId\n * @param timeTaken time taken to perform the operation\n * @param unit unit of time taken\n * @param size size of binary content being read\n */\n void downloaded(String blobId, long timeTaken, TimeUnit unit, long size);\n\n /**\n * Invoked when upload for a binary file get completed. In case of chunked\n * BlobStore this invoked when all the chunks have been uploaded\n *\n * @param blobId id of the blob which got uploaded. Even in case of chunked\n * blobStores its the id of main blob\n */\n void uploadCompleted(String blobId);\n\n /**\n * Invoked when download for a binary file get completed. In case of chunked\n * BlobStore this invoked when all the chunks have been downloaded\n *\n * @param blobId id of the blob which got downloaded. Even in case of chunked\n * blobStores its the id of main blob\n */\n void downloadCompleted(String blobId);\n}",
"static <T> Function<T, T> identity() {\n\t\treturn t -> t;\n\t}",
"@BackpressureSupport(BackpressureKind.FULL)\n @SchedulerSupport(SchedulerKind.NONE)\n public final <R> Observable<R> scanWith(Supplier<R> seedSupplier, BiFunction<R, ? super T, R> accumulator) {\n Objects.requireNonNull(seedSupplier, \"seedSupplier is null\");\n Objects.requireNonNull(accumulator, \"accumulator is null\");\n return lift(new OperatorScanSeed<T, R>(seedSupplier, accumulator));\n }",
"public Builder clearRoll() {\n bitField0_ = (bitField0_ & ~0x00000080);\n roll_ = 0F;\n onChanged();\n return this;\n }",
"public abstract LambdaTerm deepCopy();",
"public Expr getAppliedFoldExpression(String accumulatorId)\n {\n if (is(Trait.NEEDS_APPLIED)) {\n Preconditions.checkState(\n !unappliedInputs.contains(accumulatorId),\n \"Accumulator cannot be implicitly transformed, if it is an ARRAY or multi-valued type it must\"\n + \" be used explicitly as such\"\n );\n final Expr folded = Parser.foldUnappliedBindings(expression, analysis, unappliedInputs, accumulatorId);\n Parser.validateExpr(folded, folded.analyzeInputs());\n return folded;\n }\n return getExpression();\n }",
"@Override\n public CompletionStage<T> α() {\n CompletionStage<T> p = delegate;\n if (p instanceof Decorator) {\n return decorator(p).α();\n } else {\n // Default path -- unroll\n while (p instanceof AbstractCompletionStageDecorator) {\n @SuppressWarnings(\"unchecked\")\n AbstractCompletionStageDecorator<T, ? extends CompletionStage<T>> ap = \n (AbstractCompletionStageDecorator<T, ? extends CompletionStage<T>>)p;\n p = ap.delegate;\n if (p instanceof Decorator) {\n return decorator(p).α();\n }\n }\n return p;\n }\n }",
"@Nonnull\r\n\tpublic static <T, U, V> Observable<V> aggregate(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\tfinal U seed,\r\n\t\t\t@Nonnull final Func2<? super U, ? super T, ? extends U> accumulator,\r\n\t\t\t@Nonnull final Func2<? super U, ? super Integer, ? extends V> divide) {\r\n\t\treturn new Aggregate.SeededIndexedProjected<V, T, U>(source, seed, accumulator, divide);\r\n\t}",
"@FunctionalInterface\npublic interface FoldImplementation {\n void main(String[] args);\n}",
"@Override\n\tpublic void visit(Concat arg0) {\n\t\t\n\t}",
"@Override\r\n\tpublic ATokVisitor<IGrammarSymbol, Object> makeCombinedVisitor(ATokVisitor<IGrammarSymbol, Object> other) {\r\n\t\treturn new ATokVisitor<IGrammarSymbol, Object>(other) {\r\n\t\t\t{\r\n\t\t\t\t//addCmdTo(this);\r\n\t\t\t\tthis.setCmd(getName(), makeCmd());\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"<C, O> OperationCallExp<C, O> createOperationCallExp();",
"public JsonFactory setInputDecorator(InputDecorator d)\n/* */ {\n/* 611 */ this._inputDecorator = d;\n/* 612 */ return this;\n/* */ }",
"interface ColorTransformation extends Mutator {\n\n }",
"public Integer rollAndSum() {\n return null;\n }",
"public Builder clearRoll() {\n bitField0_ = (bitField0_ & ~0x00000020);\n roll_ = 0F;\n onChanged();\n return this;\n }",
"@FunctionalInterface\ninterface CircleMeasurement {\n /**\n *\n * @param radius circle radius\n * @return the value of circle measure\n */\n double value(double radius);\n}",
"public SingleLoopHead() {\n super(CFASingleLoopTransformation.ARTIFICIAL_PROGRAM_COUNTER_FUNCTION_NAME);\n }",
"public interface ReduceFunction {\n String reduce(String hash);\n}",
"public OpRewriter reset() {\n result = OpSequence.create();\n return this;\n }",
"public abstract <Res, Env> Res accept(CodeAccumulator<Res, Env> r, Env env);",
"public ExpelBall(AccumulatorController accumulatorController) {\n\t\t// Constructs the command using the super constructor\n\t\tsuper(accumulatorController);\n\t\tthis.accumulatorController = accumulatorController;\n\t}",
"@Override\n\tpublic void visit(Concat arg0) {\n\n\t}"
]
| [
"0.6046513",
"0.6008752",
"0.5496657",
"0.53479123",
"0.5292692",
"0.5287632",
"0.521669",
"0.51364696",
"0.5124478",
"0.5086848",
"0.50476044",
"0.49981412",
"0.49641374",
"0.4960234",
"0.49500754",
"0.48381412",
"0.47469893",
"0.4698582",
"0.4680078",
"0.46758914",
"0.4625493",
"0.46055004",
"0.45688897",
"0.4565618",
"0.45554793",
"0.45141685",
"0.44842932",
"0.44780216",
"0.44685975",
"0.44655314",
"0.44593737",
"0.44501215",
"0.44484288",
"0.44359362",
"0.44307682",
"0.44236705",
"0.44178027",
"0.43672502",
"0.4364461",
"0.4364461",
"0.43562675",
"0.43536192",
"0.4335034",
"0.4333095",
"0.43304276",
"0.43285376",
"0.4324693",
"0.43168157",
"0.43166542",
"0.4306516",
"0.43029052",
"0.42985108",
"0.42874607",
"0.42803457",
"0.42768544",
"0.42766097",
"0.42602772",
"0.42539144",
"0.4251377",
"0.42509693",
"0.42470217",
"0.423931",
"0.4233976",
"0.42211062",
"0.42141047",
"0.42114317",
"0.42103463",
"0.42045012",
"0.42019606",
"0.41978514",
"0.41977528",
"0.41835713",
"0.41756937",
"0.41748282",
"0.41748282",
"0.41748282",
"0.41663003",
"0.416177",
"0.415596",
"0.4155505",
"0.41511858",
"0.41475037",
"0.41268072",
"0.41221303",
"0.40968484",
"0.40953428",
"0.409339",
"0.40809023",
"0.40800846",
"0.40793172",
"0.40764138",
"0.40742716",
"0.4065331",
"0.40652597",
"0.40650257",
"0.4063209",
"0.40606967",
"0.4043806",
"0.40403134",
"0.40362513"
]
| 0.6223976 | 0 |
Get the decorated accumulator. | protected Accumulator<V, R> getDecorated() {
return decorated;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Measurement getAccumulation();",
"@Override\n public BiConsumer<List<Integer>, Employee> accumulator() {\n return (resultList, employee) -> {\n if (resultList.isEmpty()) resultList.add(employee.getSalary());\n else {\n Integer currentTotal = resultList.get(0);\n currentTotal += employee.getSalary();\n resultList.set(0, currentTotal);\n }\n };\n }",
"protected AccumulatorDecorator(Accumulator<V, R> decorated) {\n this.decorated = Objects.requireNonNull(decorated);\n }",
"@Override\n public StringBuilder createAccumulator() {\n return null;\n }",
"@Override\n public BiConsumer<ObjectNode, Map.Entry<String, JsonNode>> accumulator() {\n return (acc, entry) -> acc.set(entry.getKey(), entry.getValue());\n }",
"@Override\n public long[] createAccumulator() {\n return new long[] {0};\n }",
"public StatisticsAccumulator getStatisticsAccumulator() {\n return statisticsAccumulator;\n }",
"@Override\n\tpublic ARGBType get()\n\t{\n\t\tfillWeights();\n\n\t\tfinal int argb = target.get().get();\n\t\taccA = ( ( argb >> 24 ) & 0xff ) * weights[ 0 ];\n\t\taccR = ( ( argb >> 16 ) & 0xff ) * weights[ 0 ];\n\t\taccG = ( ( argb >> 8 ) & 0xff ) * weights[ 0 ];\n\t\taccB = ( argb & 0xff ) * weights[ 0 ];\n\n\t\tcode = 0;\n\t\tgraycodeFwdRecursive( n - 1 );\n\t\ttarget.bck( n - 1 );\n\n\t\tfinal int a = Math.min( 255, ( int ) Util.round( accA ) );\n\t\tfinal int r = Math.min( 255, ( int ) Util.round( accR ) );\n\t\tfinal int g = Math.min( 255, ( int ) Util.round( accG ) );\n\t\tfinal int b = Math.min( 255, ( int ) Util.round( accB ) );\n\n\t\taccumulator.set( ( ( ( ( ( a << 8 ) | r ) << 8 ) | g ) << 8 ) | b );\n\n\t\treturn accumulator;\n\t}",
"public Object getValue() {\n synchronized (mutex) {\n return statisticsAccumulator.getValue();\n }\n }",
"public boolean getAccumulativity() {\n return accumulativity;\n }",
"@Override\r\n public Double reduce(Double identity, Function accumulator) {\r\n return head.reduce(identity, accumulator);\r\n }",
"public TimeUnit\tgetAccumulateTimeUnit(){\n\t\treturn this.accumulateTimeUnit;\n\t}",
"public int getLinkedacc() {\n\t\treturn linkedacc;\n\t}",
"public final int getAndAccumulate(int x,\n IntBinaryOperator accumulatorFunction) {\n int prev, next;\n do {\n prev = get();\n next = accumulatorFunction.applyAsInt(prev, x);\n } while (!compareAndSet(prev, next));\n return prev;\n }",
"@Nullable\n GrExpression getYieldedValue();",
"Double reduce(Double identity, Function accumulator);",
"@Override\n public int accion() {\n return this.alcance*2/3*3;\n }",
"public Integer rollAndSum() {\n return null;\n }",
"public final int accumulateAndGet(int x,\n IntBinaryOperator accumulatorFunction) {\n int prev, next;\n do {\n prev = get();\n next = accumulatorFunction.applyAsInt(prev, x);\n } while (!compareAndSet(prev, next));\n return next;\n }",
"protected Token lookahead() {\n return m_current;\n }",
"public float getExp ( ) {\n\t\treturn extract ( handle -> handle.getExp ( ) );\n\t}",
"@Override\n\tpublic Long get() {\n\t\tlong f=f3+f2+f1;\n\t\tf3=f2;\n\t\tf2=f1;\n\t\tf1=f;\n\t\treturn f;\n\t}",
"float getConsumeReduction();",
"public static Accumulator get(int value) {\n\t\tswitch (value) {\n\t\t\tcase SUM_VALUE: return SUM;\n\t\t\tcase MAXIMUM_VALUE: return MAXIMUM;\n\t\t\tcase MINIMUM_VALUE: return MINIMUM;\n\t\t\tcase AVERAGE_VALUE: return AVERAGE;\n\t\t\tcase STANDARD_DEVIATION_VALUE: return STANDARD_DEVIATION;\n\t\t\tcase PRODUCT_VALUE: return PRODUCT;\n\t\t\tcase CUSTOM_VALUE: return CUSTOM;\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n public Accumulator aggregate(Accumulator accumulator) {\n if (!getDate().isAfter(nextScheduledPaymentDate)) {\n amAttrs.setLoanAmount(accumulator.getBalance());\n MonetaryAmount periodInterest = AmortizationCalculator.getPeriodInterest(amAttrs);\n setTransaction(periodInterest);\n accumulator.addToBalance(periodInterest);\n setBalance(accumulator.getBalance());\n setFees(accumulator.getFeeBalance());\n setType(\"Period Interest\");\n setNote(\"Scheduled interest charge\");\n }\n\n return accumulator;\n\n }",
"public Integer getAccumulatedTimes() {\n return accumulatedTimes;\n }",
"public OutputDecorator getOutputDecorator()\n/* */ {\n/* 675 */ return this._outputDecorator;\n/* */ }",
"@Override\n public BinaryOperator<List<Integer>> combiner() {\n return (resultList1, resultList2) -> {\n Integer currentTotal1 = resultList1.get(0);\n Integer currentTotal2 = resultList2.get(0);\n currentTotal1 += currentTotal2;\n resultList1.set(0, currentTotal1);\n return resultList1;\n };\n }",
"public double getAverage()\n {\n return getSum() / 2.0;\n }",
"@Override\n\tpublic double getMean() {\n\t\treturn 1/this.lambda;\n\t}",
"public static double getGlobalTidalAcc() {\n\t\treturn tid_acc;\n\t\t// return tid_acc.get();\n\t}",
"public Integer getAccload() {\r\n return accload;\r\n }",
"public Expr getAppliedFoldExpression(String accumulatorId)\n {\n if (is(Trait.NEEDS_APPLIED)) {\n Preconditions.checkState(\n !unappliedInputs.contains(accumulatorId),\n \"Accumulator cannot be implicitly transformed, if it is an ARRAY or multi-valued type it must\"\n + \" be used explicitly as such\"\n );\n final Expr folded = Parser.foldUnappliedBindings(expression, analysis, unappliedInputs, accumulatorId);\n Parser.validateExpr(folded, folded.analyzeInputs());\n return folded;\n }\n return getExpression();\n }",
"private CounterDistribution getCounterValue(NameContext step) {\n Counter<Long, CounterDistribution> counter = getCounter(step);\n assertThat(\n \"per-element-processing-time counter should not be null for step: \" + step,\n counter,\n notNullValue());\n return counter.getAggregate();\n }",
"public double nextAngle()\n {\n return nextAngle();\n }",
"public InputDecorator getInputDecorator()\n/* */ {\n/* 604 */ return this._inputDecorator;\n/* */ }",
"public float getAccBalance() {\n\t\treturn accBalance;\n\t}",
"public double getAngle()\n {\n return (AngleAverage);\n }",
"@Override\n public BinaryOperator<TradeAccumulator> combiner() {\n return (accum1, accum2) -> {return accum1.addAll(accum2);};\n }",
"public float getAccY() {\n return accY_;\n }",
"public double getIncrement() {\n return increment;\n }",
"public float getAccX() {\n return accX_;\n }",
"public final long getAndIncrement() {\n\t\treturn value++;\n\t}",
"@Override\n public synchronized double get() {\n if (m_running) {\n return ((getMsClock() - m_startTime) + m_accumulatedTime) / 1000.0;\n }\n return m_accumulatedTime;\n }",
"public Object currValue();",
"public Double getTotal();",
"public Formula formulaWithInc() {\n\t\treturn formula();\n\t}",
"CompletableFuture<Map<String, Object>> getAccumulators();",
"public float getAccX() {\n return accX_;\n }",
"private Object metricLock() {\n return metricLock;\n }",
"public Reduce getReduce() {\n long __key = this.reduceId;\n if (reduce__resolvedKey == null || !reduce__resolvedKey.equals(__key)) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n ReduceDao targetDao = daoSession.getReduceDao();\n Reduce reduceNew = targetDao.load(__key);\n synchronized (this) {\n reduce = reduceNew;\n \treduce__resolvedKey = __key;\n }\n }\n return reduce;\n }",
"public double getAccruedInterest() {\n return _accruedInterest;\n }",
"public double getAccruedInterest() {\n return _accruedInterest;\n }",
"public Double getCtr() {\r\n return ctr;\r\n }",
"public int valueAndIncrement() {\n\t\tint x = offset;\n\t\tnext();\n\t\treturn x;\n\t}",
"public float getAccY() {\n return accY_;\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> aggregate(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Func2<? super T, ? super T, ? extends T> accumulator) {\r\n\t\treturn new Aggregate.Simple<T>(source, accumulator);\r\n\t}",
"@Override\n public double getResult()\n {\n double result = this.factor1 + this.factor2;\n return result;\n }",
"public int peek() {\n if(!afterRotate){\n rotate();\n afterRotate = true;\n }\n return stack.peek();\n }",
"final private void accumulate()\n\t{\n\t\tfinal int argb = target.get().get();\n\t\taccA += ( ( argb >> 24 ) & 0xff ) * weights[ code ];\n\t\taccR += ( ( argb >> 16 ) & 0xff ) * weights[ code ];\n\t\taccG += ( ( argb >> 8 ) & 0xff ) * weights[ code ];\n\t\taccB += ( argb & 0xff ) * weights[ code ];\n\n//\t\tSystem.out.print( \"accumulating value at \" + target );\n//\t\tSystem.out.print( \"with weights [\" );\n//\t\tprintCode();\n//\t\tSystem.out.printf( \"] = %f\" + \"\\n\", weights[ code ] );\n\t}",
"public static MatrixAccumulator mkMinAccumulator() {\n return new MinMatrixAccumulator();\n }",
"public double getResult() {\n\t\treturn result; // so that skeleton code compiles\n\t}",
"public BeanDefinitionHolder getDecoratedDefinition()\n/* */ {\n/* 221 */ return this.decoratedDefinition;\n/* */ }",
"public final EObject entryRuleIterationAccumulator() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleIterationAccumulator = null;\n\n\n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:5531:2: (iv_ruleIterationAccumulator= ruleIterationAccumulator EOF )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:5532:2: iv_ruleIterationAccumulator= ruleIterationAccumulator EOF\n {\n currentNode = createCompositeNode(grammarAccess.getIterationAccumulatorRule(), currentNode); \n pushFollow(FOLLOW_ruleIterationAccumulator_in_entryRuleIterationAccumulator9634);\n iv_ruleIterationAccumulator=ruleIterationAccumulator();\n _fsp--;\n\n current =iv_ruleIterationAccumulator; \n match(input,EOF,FOLLOW_EOF_in_entryRuleIterationAccumulator9644); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public int nextValue() {\n\t\tint temp = counter;\n\t\tcounter++;\n\t\treturn temp;\n\t}",
"public int getAdvance() {\r\n return advance;\r\n }",
"public BufferedImage getAccumulatedEvents() {\n return getFrame();\n }",
"@Override\n public TestUserMetricAccumulator makeAccumulator(AlgorithmInstance algorithm, TTDataSet data) {\n return (TestUserMetricAccumulator)\n Vars.tagEntropyAccumulator.invoke(listSize);\n }",
"public Fluctuator getInputFluctuator() {\n return this.inputFluctuator;\n }",
"public BigDecimal getACC_SL() {\r\n return ACC_SL;\r\n }",
"public double getReading() {\r\n\t\tresult = clicks;\r\n\t\tif(metric) result *= 0.2;\r\n\t\telse result *= 0.01;\r\n\t\treturn result;\r\n\t\t\r\n\t}",
"public double getCurrentHealth() {\n return ((Growable)delegate).currentHealth;\n }",
"public long next() {\n long ret = prev;\n prev = current;\n current = ret + current;\n return ret;\n }",
"@Override\n public Integer get() {\n return ++counter;\n }",
"public int getAdditionValue() {\r\n\t\treturn additionValue;\r\n\t}",
"@Nonnull\r\n\tpublic static <T> Observable<T> scan(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Func2<? super T, ? super T, ? extends T> accumulator) {\r\n\t\treturn new Aggregate.Scan<T>(source, accumulator);\r\n\t}",
"public double get(){\n sum = 0;\n if(hasFilled){\n for(int j=0; j<list.length; j++)\n {\n sum += list[j];\n }\n \n return sum/(double)list.length;\n }\n else{\n for(int j = 0; j < index;j++){\n sum += list[j];\n }\n return sum/(double)index;\n }\n }",
"public Double getTotal() {\n\t\treturn null;\n\t}",
"public double getTotal (){ \r\n return total;\r\n }",
"public DoubleExpression getProgress()\n {\n return progress;\n }",
"public int getAccOpId() {\n return accOpId_;\n }",
"public static MatrixAccumulator mkMaxAccumulator() {\n return new MaxMatrixAccumulator();\n }",
"public int getAccOpId() {\n return accOpId_;\n }",
"public Number getTotal() {\n return (Number)getAttributeInternal(TOTAL);\n }",
"@Override\n\tpublic double calculate(int currentIteration, int maxIterations) {\n\t\treturn value;\n\t}",
"double getActiveOperand();",
"public double getTotal(){\n return total;\n }",
"public ArmCurrency getCompositeDiscountAmount() {\n ArmCurrency rtnVal = new ArmCurrency(0.00);\n try {\n rtnVal = rtnVal.add(settleAmt != null ? settleAmt : new ArmCurrency(0.00)).round();\n rtnVal = rtnVal.add(manualAmt != null ? manualAmt : new ArmCurrency(0.00)).round();\n rtnVal = rtnVal.add(promoAmt != null ? promoAmt : new ArmCurrency(0.00)).round();\n } catch (CurrencyException ce) {\n ce.printStackTrace();\n }\n if (isReturn && rtnVal != null) {\n rtnVal = rtnVal.multiply( -1).round();\n }\n return (rtnVal);\n }",
"public double accumGPA(){\t\n\t\tdouble finalgpa = 0.0;\n\t\tdouble allCredit = 0.0;\n\t\t//CODE HERE\n\t\tfor (RegCourse course:registeredCourses){\n\t\t\tif(course.isCompletedCourse()){\n\t\t\t\tthis.Grading(course);\n\t\t\t\tfinalgpa += course.getGrade()*course.getCourseCredit();\n\t\t\t\tallCredit += course.getCourseCredit();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn finalgpa/allCredit;\n\t}",
"public double getTotal() {\n return Total;\n }",
"public abstract T accumulate(T left, T right);",
"public int getACsum() {\n return (int)sum;\n }",
"double getTotal();",
"int getCurEXP();",
"int getCurEXP();",
"synchronized public long peek() {\n return currValue;\n }",
"public int getTotal() {\n int value = 0;\n for (Map.Entry<Integer, Integer> entry : gramma.entrySet()) {\n value += entry.getKey() * entry.getValue();\n }\n return value;\n }",
"public final long getAndAdd(long delta) {\n\t\tlong r = value;\n\t\tvalue += delta;\n\t\treturn r;\n\t}",
"public double sum() {\n/* 196 */ return this.mean * this.count;\n/* */ }",
"public AccumulatorNumber ()\n\t{ total = 0.0; }"
]
| [
"0.59856665",
"0.5978648",
"0.59608054",
"0.5927739",
"0.58767533",
"0.5861498",
"0.55108327",
"0.54129374",
"0.5243591",
"0.51455057",
"0.5121073",
"0.51005864",
"0.50947285",
"0.5070249",
"0.4994251",
"0.4981058",
"0.49679703",
"0.49662247",
"0.49642545",
"0.49318093",
"0.4927687",
"0.4918298",
"0.49110574",
"0.4898683",
"0.48799437",
"0.48765624",
"0.4812535",
"0.47947532",
"0.47734603",
"0.47612092",
"0.4750896",
"0.47450987",
"0.47151583",
"0.47118884",
"0.47004548",
"0.46769348",
"0.46698293",
"0.46512294",
"0.46448374",
"0.46242574",
"0.4623603",
"0.4619027",
"0.4618269",
"0.46058947",
"0.46048522",
"0.46026132",
"0.4601462",
"0.45907253",
"0.45736",
"0.45721835",
"0.45656767",
"0.45649812",
"0.45649812",
"0.45646578",
"0.45638314",
"0.45588216",
"0.45553112",
"0.45520502",
"0.45513526",
"0.45387724",
"0.4524634",
"0.45136815",
"0.4507416",
"0.45032138",
"0.44887996",
"0.44861275",
"0.44730622",
"0.44707164",
"0.44705695",
"0.44655287",
"0.44556627",
"0.44474655",
"0.44469893",
"0.44440004",
"0.4443826",
"0.444",
"0.44332185",
"0.4420547",
"0.44167495",
"0.44147885",
"0.44004774",
"0.43986395",
"0.43970203",
"0.43951836",
"0.4388995",
"0.43870404",
"0.43853915",
"0.43836775",
"0.43832684",
"0.4382189",
"0.438062",
"0.4378245",
"0.43712178",
"0.4367434",
"0.4367434",
"0.4352038",
"0.43504354",
"0.43497413",
"0.43487698",
"0.43475446"
]
| 0.73101515 | 0 |
/ renamed from: com.google.android.gms.dynamic.a.a | private interface C0249a {
void m352b(LifecycleDelegate lifecycleDelegate);
int getState();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C0190d extends IInterface {\n\n /* renamed from: com.google.android.gms.dynamic.d$a */\n public static abstract class C0575a extends Binder implements C0190d {\n\n /* renamed from: com.google.android.gms.dynamic.d$a$a */\n private static class C0574a implements C0190d {\n private IBinder kn;\n\n C0574a(IBinder iBinder) {\n this.kn = iBinder;\n }\n\n public IBinder asBinder() {\n return this.kn;\n }\n }\n\n public C0575a() {\n attachInterface(this, \"com.google.android.gms.dynamic.IObjectWrapper\");\n }\n\n /* renamed from: K */\n public static C0190d m1749K(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.gms.dynamic.IObjectWrapper\");\n return (queryLocalInterface == null || !(queryLocalInterface instanceof C0190d)) ? new C0574a(iBinder) : (C0190d) queryLocalInterface;\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException {\n switch (code) {\n case 1598968902:\n reply.writeString(\"com.google.android.gms.dynamic.IObjectWrapper\");\n return true;\n default:\n return super.onTransact(code, data, reply, flags);\n }\n }\n }\n}",
"private static com.google.android.gms.dynamite.zzj zzaT(android.content.Context r4) {\n /*\n java.lang.Class<com.google.android.gms.dynamite.DynamiteModule> r0 = com.google.android.gms.dynamite.DynamiteModule.class\n monitor-enter(r0)\n com.google.android.gms.dynamite.zzj r1 = zzaSG // Catch:{ all -> 0x0069 }\n if (r1 == 0) goto L_0x000b\n com.google.android.gms.dynamite.zzj r4 = zzaSG // Catch:{ all -> 0x0069 }\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n return r4\n L_0x000b:\n com.google.android.gms.common.zze r1 = com.google.android.gms.common.zze.zzoW() // Catch:{ all -> 0x0069 }\n int r1 = r1.isGooglePlayServicesAvailable(r4) // Catch:{ all -> 0x0069 }\n r2 = 0\n if (r1 == 0) goto L_0x0018\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n return r2\n L_0x0018:\n java.lang.String r1 = \"com.google.android.gms\"\n r3 = 3\n android.content.Context r4 = r4.createPackageContext(r1, r3) // Catch:{ Exception -> 0x004d }\n java.lang.ClassLoader r4 = r4.getClassLoader() // Catch:{ Exception -> 0x004d }\n java.lang.String r1 = \"com.google.android.gms.chimera.container.DynamiteLoaderImpl\"\n java.lang.Class r4 = r4.loadClass(r1) // Catch:{ Exception -> 0x004d }\n java.lang.Object r4 = r4.newInstance() // Catch:{ Exception -> 0x004d }\n android.os.IBinder r4 = (android.os.IBinder) r4 // Catch:{ Exception -> 0x004d }\n if (r4 != 0) goto L_0x0033\n r4 = r2\n goto L_0x0047\n L_0x0033:\n java.lang.String r1 = \"com.google.android.gms.dynamite.IDynamiteLoader\"\n android.os.IInterface r1 = r4.queryLocalInterface(r1) // Catch:{ Exception -> 0x004d }\n boolean r3 = r1 instanceof com.google.android.gms.dynamite.zzj // Catch:{ Exception -> 0x004d }\n if (r3 == 0) goto L_0x0041\n r4 = r1\n com.google.android.gms.dynamite.zzj r4 = (com.google.android.gms.dynamite.zzj) r4 // Catch:{ Exception -> 0x004d }\n goto L_0x0047\n L_0x0041:\n com.google.android.gms.dynamite.zzk r1 = new com.google.android.gms.dynamite.zzk // Catch:{ Exception -> 0x004d }\n r1.<init>(r4) // Catch:{ Exception -> 0x004d }\n r4 = r1\n L_0x0047:\n if (r4 == 0) goto L_0x0067\n zzaSG = r4 // Catch:{ Exception -> 0x004d }\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n return r4\n L_0x004d:\n r4 = move-exception\n java.lang.String r1 = \"Failed to load IDynamiteLoader from GmsCore: \"\n java.lang.String r4 = r4.getMessage() // Catch:{ all -> 0x0069 }\n java.lang.String r4 = java.lang.String.valueOf(r4) // Catch:{ all -> 0x0069 }\n int r3 = r4.length() // Catch:{ all -> 0x0069 }\n if (r3 == 0) goto L_0x0062\n r1.concat(r4) // Catch:{ all -> 0x0069 }\n goto L_0x0067\n L_0x0062:\n java.lang.String r4 = new java.lang.String // Catch:{ all -> 0x0069 }\n r4.<init>(r1) // Catch:{ all -> 0x0069 }\n L_0x0067:\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n return r2\n L_0x0069:\n r4 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.zzaT(android.content.Context):com.google.android.gms.dynamite.zzj\");\n }",
"public interface C1326d extends IInterface {\n\n /* renamed from: com.google.android.gms.plus.internal.d$a */\n public static abstract class C1327a extends Binder implements C1326d {\n\n /* renamed from: com.google.android.gms.plus.internal.d$a$a */\n private static class C1328a implements C1326d {\n\n /* renamed from: ky */\n private IBinder f3425ky;\n\n C1328a(IBinder iBinder) {\n this.f3425ky = iBinder;\n }\n\n /* renamed from: a */\n public void mo7372a(C0802fh fhVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n if (fhVar != null) {\n obtain.writeInt(1);\n fhVar.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f3425ky.transact(4, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7373a(C1320b bVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n this.f3425ky.transact(8, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7374a(C1320b bVar, int i, int i2, int i3, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeInt(i);\n obtain.writeInt(i2);\n obtain.writeInt(i3);\n obtain.writeString(str);\n this.f3425ky.transact(16, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7375a(C1320b bVar, int i, String str, Uri uri, String str2, String str3) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeInt(i);\n obtain.writeString(str);\n if (uri != null) {\n obtain.writeInt(1);\n uri.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n obtain.writeString(str2);\n obtain.writeString(str3);\n this.f3425ky.transact(14, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7376a(C1320b bVar, Uri uri, Bundle bundle) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n if (uri != null) {\n obtain.writeInt(1);\n uri.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f3425ky.transact(9, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7377a(C1320b bVar, C0802fh fhVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n if (fhVar != null) {\n obtain.writeInt(1);\n fhVar.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f3425ky.transact(45, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7378a(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(1, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7379a(C1320b bVar, String str, String str2) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n obtain.writeString(str2);\n this.f3425ky.transact(2, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7380a(C1320b bVar, List<String> list) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeStringList(list);\n this.f3425ky.transact(34, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public IBinder asBinder() {\n return this.f3425ky;\n }\n\n /* renamed from: b */\n public void mo7381b(C1320b bVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n this.f3425ky.transact(19, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public void mo7382b(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(3, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: c */\n public void mo7383c(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(18, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public void clearDefaultAccount() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(6, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: d */\n public void mo7385d(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(40, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: e */\n public void mo7386e(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(44, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public String getAccountName() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(5, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: hl */\n public String mo7388hl() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(41, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: hm */\n public boolean mo7389hm() throws RemoteException {\n boolean z = false;\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(42, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n z = true;\n }\n return z;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: hn */\n public String mo7390hn() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(43, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public void removeMoment(String momentId) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeString(momentId);\n this.f3425ky.transact(17, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n }\n\n /* renamed from: aA */\n public static C1326d m3858aA(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n return (queryLocalInterface == null || !(queryLocalInterface instanceof C1326d)) ? new C1328a(iBinder) : (C1326d) queryLocalInterface;\n }\n\n /* JADX WARNING: type inference failed for: r4v0 */\n /* JADX WARNING: type inference failed for: r4v1, types: [com.google.android.gms.internal.fh] */\n /* JADX WARNING: type inference failed for: r4v2, types: [com.google.android.gms.internal.fh] */\n /* JADX WARNING: type inference failed for: r4v4, types: [android.net.Uri] */\n /* JADX WARNING: type inference failed for: r0v38, types: [android.net.Uri] */\n /* JADX WARNING: type inference failed for: r4v5 */\n /* JADX WARNING: type inference failed for: r4v6 */\n /* JADX WARNING: Multi-variable type inference failed. Error: jadx.core.utils.exceptions.JadxRuntimeException: No candidate types for var: r4v0\n assigns: [?[int, float, boolean, short, byte, char, OBJECT, ARRAY], ?[OBJECT, ARRAY], com.google.android.gms.internal.fh]\n uses: [com.google.android.gms.internal.fh, android.net.Uri]\n mth insns count: 188\n \tat jadx.core.dex.visitors.typeinference.TypeSearch.fillTypeCandidates(TypeSearch.java:237)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.dex.visitors.typeinference.TypeSearch.run(TypeSearch.java:53)\n \tat jadx.core.dex.visitors.typeinference.TypeInferenceVisitor.runMultiVariableSearch(TypeInferenceVisitor.java:99)\n \tat jadx.core.dex.visitors.typeinference.TypeInferenceVisitor.visit(TypeInferenceVisitor.java:92)\n \tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:27)\n \tat jadx.core.dex.visitors.DepthTraversal.lambda$visit$1(DepthTraversal.java:14)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n \tat jadx.core.dex.visitors.DepthTraversal.lambda$visit$0(DepthTraversal.java:13)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:13)\n \tat jadx.core.ProcessClass.process(ProcessClass.java:30)\n \tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:311)\n \tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n \tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:217)\n */\n /* JADX WARNING: Unknown variable types count: 3 */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public boolean onTransact(int r9, android.os.Parcel r10, android.os.Parcel r11, int r12) throws android.os.RemoteException {\n /*\n r8 = this;\n r4 = 0\n r7 = 1\n switch(r9) {\n case 1: goto L_0x0010;\n case 2: goto L_0x0028;\n case 3: goto L_0x0044;\n case 4: goto L_0x005c;\n case 5: goto L_0x0076;\n case 6: goto L_0x0086;\n case 8: goto L_0x0093;\n case 9: goto L_0x00a8;\n case 14: goto L_0x00de;\n case 16: goto L_0x0113;\n case 17: goto L_0x0139;\n case 18: goto L_0x014a;\n case 19: goto L_0x0163;\n case 34: goto L_0x0178;\n case 40: goto L_0x0191;\n case 41: goto L_0x01aa;\n case 42: goto L_0x01bb;\n case 43: goto L_0x01d1;\n case 44: goto L_0x01e2;\n case 45: goto L_0x01fb;\n case 1598968902: goto L_0x000a;\n default: goto L_0x0005;\n }\n L_0x0005:\n boolean r7 = super.onTransact(r9, r10, r11, r12)\n L_0x0009:\n return r7\n L_0x000a:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r11.writeString(r0)\n goto L_0x0009\n L_0x0010:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7378a(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x0028:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n java.lang.String r2 = r10.readString()\n r8.mo7379a(r0, r1, r2)\n r11.writeNoException()\n goto L_0x0009\n L_0x0044:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7382b(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x005c:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n int r0 = r10.readInt()\n if (r0 == 0) goto L_0x0074\n com.google.android.gms.internal.fi r0 = com.google.android.gms.internal.C0802fh.CREATOR\n com.google.android.gms.internal.fh r0 = r0.createFromParcel(r10)\n L_0x006d:\n r8.mo7372a(r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x0074:\n r0 = r4\n goto L_0x006d\n L_0x0076:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n java.lang.String r0 = r8.getAccountName()\n r11.writeNoException()\n r11.writeString(r0)\n goto L_0x0009\n L_0x0086:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n r8.clearDefaultAccount()\n r11.writeNoException()\n goto L_0x0009\n L_0x0093:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n r8.mo7373a(r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x00a8:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r2 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n int r0 = r10.readInt()\n if (r0 == 0) goto L_0x00da\n android.os.Parcelable$Creator r0 = android.net.Uri.CREATOR\n java.lang.Object r0 = r0.createFromParcel(r10)\n android.net.Uri r0 = (android.net.Uri) r0\n r1 = r0\n L_0x00c4:\n int r0 = r10.readInt()\n if (r0 == 0) goto L_0x00dc\n android.os.Parcelable$Creator r0 = android.os.Bundle.CREATOR\n java.lang.Object r0 = r0.createFromParcel(r10)\n android.os.Bundle r0 = (android.os.Bundle) r0\n L_0x00d2:\n r8.mo7376a(r2, r1, r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x00da:\n r1 = r4\n goto L_0x00c4\n L_0x00dc:\n r0 = r4\n goto L_0x00d2\n L_0x00de:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r1 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n int r2 = r10.readInt()\n java.lang.String r3 = r10.readString()\n int r0 = r10.readInt()\n if (r0 == 0) goto L_0x0102\n android.os.Parcelable$Creator r0 = android.net.Uri.CREATOR\n java.lang.Object r0 = r0.createFromParcel(r10)\n android.net.Uri r0 = (android.net.Uri) r0\n r4 = r0\n L_0x0102:\n java.lang.String r5 = r10.readString()\n java.lang.String r6 = r10.readString()\n r0 = r8\n r0.mo7375a(r1, r2, r3, r4, r5, r6)\n r11.writeNoException()\n goto L_0x0009\n L_0x0113:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r1 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n int r2 = r10.readInt()\n int r3 = r10.readInt()\n int r4 = r10.readInt()\n java.lang.String r5 = r10.readString()\n r0 = r8\n r0.mo7374a(r1, r2, r3, r4, r5)\n r11.writeNoException()\n goto L_0x0009\n L_0x0139:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n java.lang.String r0 = r10.readString()\n r8.removeMoment(r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x014a:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7383c(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x0163:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n r8.mo7381b(r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x0178:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.util.ArrayList r1 = r10.createStringArrayList()\n r8.mo7380a(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x0191:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7385d(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x01aa:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n java.lang.String r0 = r8.mo7388hl()\n r11.writeNoException()\n r11.writeString(r0)\n goto L_0x0009\n L_0x01bb:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n boolean r0 = r8.mo7389hm()\n r11.writeNoException()\n if (r0 == 0) goto L_0x01cf\n r0 = r7\n L_0x01ca:\n r11.writeInt(r0)\n goto L_0x0009\n L_0x01cf:\n r0 = 0\n goto L_0x01ca\n L_0x01d1:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n java.lang.String r0 = r8.mo7390hn()\n r11.writeNoException()\n r11.writeString(r0)\n goto L_0x0009\n L_0x01e2:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7386e(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x01fb:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n int r1 = r10.readInt()\n if (r1 == 0) goto L_0x0214\n com.google.android.gms.internal.fi r1 = com.google.android.gms.internal.C0802fh.CREATOR\n com.google.android.gms.internal.fh r4 = r1.createFromParcel(r10)\n L_0x0214:\n r8.mo7377a(r0, r4)\n r11.writeNoException()\n goto L_0x0009\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.plus.internal.C1326d.C1327a.onTransact(int, android.os.Parcel, android.os.Parcel, int):boolean\");\n }\n }\n\n /* renamed from: a */\n void mo7372a(C0802fh fhVar) throws RemoteException;\n\n /* renamed from: a */\n void mo7373a(C1320b bVar) throws RemoteException;\n\n /* renamed from: a */\n void mo7374a(C1320b bVar, int i, int i2, int i3, String str) throws RemoteException;\n\n /* renamed from: a */\n void mo7375a(C1320b bVar, int i, String str, Uri uri, String str2, String str3) throws RemoteException;\n\n /* renamed from: a */\n void mo7376a(C1320b bVar, Uri uri, Bundle bundle) throws RemoteException;\n\n /* renamed from: a */\n void mo7377a(C1320b bVar, C0802fh fhVar) throws RemoteException;\n\n /* renamed from: a */\n void mo7378a(C1320b bVar, String str) throws RemoteException;\n\n /* renamed from: a */\n void mo7379a(C1320b bVar, String str, String str2) throws RemoteException;\n\n /* renamed from: a */\n void mo7380a(C1320b bVar, List<String> list) throws RemoteException;\n\n /* renamed from: b */\n void mo7381b(C1320b bVar) throws RemoteException;\n\n /* renamed from: b */\n void mo7382b(C1320b bVar, String str) throws RemoteException;\n\n /* renamed from: c */\n void mo7383c(C1320b bVar, String str) throws RemoteException;\n\n void clearDefaultAccount() throws RemoteException;\n\n /* renamed from: d */\n void mo7385d(C1320b bVar, String str) throws RemoteException;\n\n /* renamed from: e */\n void mo7386e(C1320b bVar, String str) throws RemoteException;\n\n String getAccountName() throws RemoteException;\n\n /* renamed from: hl */\n String mo7388hl() throws RemoteException;\n\n /* renamed from: hm */\n boolean mo7389hm() throws RemoteException;\n\n /* renamed from: hn */\n String mo7390hn() throws RemoteException;\n\n void removeMoment(String str) throws RemoteException;\n}",
"public final String mo38130a() {\n return \"com.google.android.gms.ads.service.CACHE\";\n }",
"private static C2499b m9558d(Context context) {\n C2502b bVar = new C2502b();\n Intent intent = new Intent(\"com.google.android.gms.ads.identifier.service.START\");\n intent.setPackage(\"com.google.android.gms\");\n if (context.bindService(intent, bVar, 1)) {\n try {\n C2501a aVar = new C2501a(bVar.mo8982a());\n C2499b bVar2 = new C2499b();\n bVar2.f7871c = aVar.mo8979a();\n bVar2.f7873e = aVar.mo8981b();\n return bVar2;\n } catch (Exception e) {\n C2479ad.m9447a(\"android_id\", e);\n } finally {\n context.unbindService(bVar);\n }\n }\n return null;\n }",
"@Override\n public boolean onTransact(int n, Parcel object, Parcel parcel, int n2) throws RemoteException {\n String string = null;\n Object object2 = null;\n Object object3 = null;\n switch (n) {\n default: {\n return super.onTransact(n, (Parcel)object, parcel, n2);\n }\n case 1598968902: {\n parcel.writeString(\"com.google.android.gms.plus.internal.IPlusService\");\n return true;\n }\n case 1: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n this.a(b.a.bE(object.readStrongBinder()), object.readString());\n parcel.writeNoException();\n return true;\n }\n case 2: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n this.a(b.a.bE(object.readStrongBinder()), object.readString(), object.readString());\n parcel.writeNoException();\n return true;\n }\n case 3: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n this.b(b.a.bE(object.readStrongBinder()), object.readString());\n parcel.writeNoException();\n return true;\n }\n case 4: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n object = object.readInt() != 0 ? jp.CREATOR.M((Parcel)object) : null;\n this.a((jp)object);\n parcel.writeNoException();\n return true;\n }\n case 5: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n object = this.getAccountName();\n parcel.writeNoException();\n parcel.writeString((String)object);\n return true;\n }\n case 6: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n this.clearDefaultAccount();\n parcel.writeNoException();\n return true;\n }\n case 8: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n this.a(b.a.bE(object.readStrongBinder()));\n parcel.writeNoException();\n return true;\n }\n case 9: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n object2 = b.a.bE(object.readStrongBinder());\n object3 = object.readInt() != 0 ? Uri.CREATOR.createFromParcel((Parcel)object) : null;\n object = object.readInt() != 0 ? Bundle.CREATOR.createFromParcel((Parcel)object) : null;\n this.a((b)object2, (Uri)object3, (Bundle)object);\n parcel.writeNoException();\n return true;\n }\n case 14: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n object2 = b.a.bE(object.readStrongBinder());\n n = object.readInt();\n string = object.readString();\n object3 = object.readInt() != 0 ? Uri.CREATOR.createFromParcel((Parcel)object) : null;\n this.a((b)object2, n, string, (Uri)object3, object.readString(), object.readString());\n parcel.writeNoException();\n return true;\n }\n case 16: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n object2 = this.a(b.a.bE(object.readStrongBinder()), object.readInt(), object.readInt(), object.readInt(), object.readString());\n parcel.writeNoException();\n object = object3;\n if (object2 != null) {\n object = object2.asBinder();\n }\n parcel.writeStrongBinder((IBinder)object);\n return true;\n }\n case 17: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n this.removeMoment(object.readString());\n parcel.writeNoException();\n return true;\n }\n case 18: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n this.c(b.a.bE(object.readStrongBinder()), object.readString());\n parcel.writeNoException();\n return true;\n }\n case 19: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n this.b(b.a.bE(object.readStrongBinder()));\n parcel.writeNoException();\n return true;\n }\n case 34: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n this.a(b.a.bE(object.readStrongBinder()), object.createStringArrayList());\n parcel.writeNoException();\n return true;\n }\n case 40: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n this.d(b.a.bE(object.readStrongBinder()), object.readString());\n parcel.writeNoException();\n return true;\n }\n case 41: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n object = this.nb();\n parcel.writeNoException();\n parcel.writeString((String)object);\n return true;\n }\n case 42: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n boolean bl = this.nc();\n parcel.writeNoException();\n n = bl ? 1 : 0;\n parcel.writeInt(n);\n return true;\n }\n case 43: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n object = this.nd();\n parcel.writeNoException();\n parcel.writeString((String)object);\n return true;\n }\n case 44: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n this.e(b.a.bE(object.readStrongBinder()), object.readString());\n parcel.writeNoException();\n return true;\n }\n case 45: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n object2 = b.a.bE(object.readStrongBinder());\n object3 = string;\n if (object.readInt() != 0) {\n object3 = jp.CREATOR.M((Parcel)object);\n }\n this.a((b)object2, (jp)object3);\n parcel.writeNoException();\n return true;\n }\n case 46: \n }\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n string = object.readString();\n object3 = object.readInt() != 0 ? jb.CREATOR.E((Parcel)object) : null;\n if (object.readInt() != 0) {\n object2 = jb.CREATOR.E((Parcel)object);\n }\n this.a(string, (jb)object3, (jb)object2);\n parcel.writeNoException();\n return true;\n }",
"public final String mo38131b() {\n return \"com.google.android.gms.ads.internal.cache.ICacheService\";\n }",
"public String mo27383j() {\n return \"com.google.android.gms.location.internal.IGoogleLocationManagerService\";\n }",
"private static int zzd(android.content.Context r8, java.lang.String r9, boolean r10) throws com.google.android.gms.dynamite.DynamiteModule.zzc {\n /*\n r0 = 0\n if (r10 == 0) goto L_0x000d\n java.lang.String r10 = \"api_force_staging\"\n goto L_0x000f\n L_0x0006:\n r8 = move-exception\n goto L_0x00ad\n L_0x0009:\n r8 = move-exception\n r9 = r0\n goto L_0x009e\n L_0x000d:\n java.lang.String r10 = \"api\"\n L_0x000f:\n java.lang.String r1 = \"content://com.google.android.gms.chimera/\"\n java.lang.String r1 = java.lang.String.valueOf(r1) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n java.lang.String r2 = java.lang.String.valueOf(r1) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2.length() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2 + 1\n java.lang.String r3 = java.lang.String.valueOf(r10) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r3 = r3.length() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2 + r3\n java.lang.String r3 = java.lang.String.valueOf(r9) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r3 = r3.length() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2 + r3\n java.lang.StringBuilder r3 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.<init>(r2) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.append(r1) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.append(r10) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n java.lang.String r10 = \"/\"\n r3.append(r10) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.append(r9) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n java.lang.String r9 = r3.toString() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n android.net.Uri r2 = android.net.Uri.parse(r9) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n android.content.ContentResolver r1 = r8.getContentResolver() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3 = 0\n r4 = 0\n r5 = 0\n r6 = 0\n android.database.Cursor r8 = r1.query(r2, r3, r4, r5, r6) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n if (r8 == 0) goto L_0x0096\n boolean r9 = r8.moveToFirst() // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r9 == 0) goto L_0x0096\n r9 = 0\n int r9 = r8.getInt(r9) // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r9 <= 0) goto L_0x0087\n java.lang.Class<com.google.android.gms.dynamite.DynamiteModule> r10 = com.google.android.gms.dynamite.DynamiteModule.class\n monitor-enter(r10) // Catch:{ Exception -> 0x0091, all -> 0x008d }\n r1 = 2\n java.lang.String r1 = r8.getString(r1) // Catch:{ all -> 0x0084 }\n zzaSI = r1 // Catch:{ all -> 0x0084 }\n monitor-exit(r10) // Catch:{ all -> 0x0084 }\n java.lang.ThreadLocal<com.google.android.gms.dynamite.DynamiteModule$zza> r10 = zzaSJ // Catch:{ Exception -> 0x0091, all -> 0x008d }\n java.lang.Object r10 = r10.get() // Catch:{ Exception -> 0x0091, all -> 0x008d }\n com.google.android.gms.dynamite.DynamiteModule$zza r10 = (com.google.android.gms.dynamite.DynamiteModule.zza) r10 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r10 == 0) goto L_0x0087\n android.database.Cursor r1 = r10.zzaSR // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r1 != 0) goto L_0x0087\n r10.zzaSR = r8 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n r8 = r0\n goto L_0x0087\n L_0x0084:\n r9 = move-exception\n monitor-exit(r10) // Catch:{ all -> 0x0084 }\n throw r9 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n L_0x0087:\n if (r8 == 0) goto L_0x008c\n r8.close()\n L_0x008c:\n return r9\n L_0x008d:\n r9 = move-exception\n r0 = r8\n r8 = r9\n goto L_0x00ad\n L_0x0091:\n r9 = move-exception\n r7 = r9\n r9 = r8\n r8 = r7\n goto L_0x009e\n L_0x0096:\n com.google.android.gms.dynamite.DynamiteModule$zzc r9 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ Exception -> 0x0091, all -> 0x008d }\n java.lang.String r10 = \"Failed to connect to dynamite module ContentResolver.\"\n r9.<init>((java.lang.String) r10, (com.google.android.gms.dynamite.zza) r0) // Catch:{ Exception -> 0x0091, all -> 0x008d }\n throw r9 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n L_0x009e:\n boolean r10 = r8 instanceof com.google.android.gms.dynamite.DynamiteModule.zzc // Catch:{ all -> 0x00ab }\n if (r10 == 0) goto L_0x00a3\n throw r8 // Catch:{ all -> 0x00ab }\n L_0x00a3:\n com.google.android.gms.dynamite.DynamiteModule$zzc r10 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ all -> 0x00ab }\n java.lang.String r1 = \"V2 version check failed\"\n r10.<init>(r1, r8, r0) // Catch:{ all -> 0x00ab }\n throw r10 // Catch:{ all -> 0x00ab }\n L_0x00ab:\n r8 = move-exception\n r0 = r9\n L_0x00ad:\n if (r0 == 0) goto L_0x00b2\n r0.close()\n L_0x00b2:\n throw r8\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.zzd(android.content.Context, java.lang.String, boolean):int\");\n }",
"public interface C2034ok extends IInterface {\n\n /* renamed from: com.google.android.gms.internal.ok$a */\n public static abstract class C2035a extends Binder implements C2034ok {\n\n /* renamed from: com.google.android.gms.internal.ok$a$a */\n private static class C2036a implements C2034ok {\n\n /* renamed from: le */\n private IBinder f4164le;\n\n C2036a(IBinder iBinder) {\n this.f4164le = iBinder;\n }\n\n /* renamed from: a */\n public void mo16484a(C2031oj ojVar, Uri uri, Bundle bundle, boolean z) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.panorama.internal.IPanoramaService\");\n obtain.writeStrongBinder(ojVar != null ? ojVar.asBinder() : null);\n if (uri != null) {\n obtain.writeInt(1);\n uri.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n obtain.writeInt(z ? 1 : 0);\n this.f4164le.transact(1, obtain, (Parcel) null, 1);\n } finally {\n obtain.recycle();\n }\n }\n\n public IBinder asBinder() {\n return this.f4164le;\n }\n }\n\n /* renamed from: bG */\n public static C2034ok m6022bG(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.gms.panorama.internal.IPanoramaService\");\n return (queryLocalInterface == null || !(queryLocalInterface instanceof C2034ok)) ? new C2036a(iBinder) : (C2034ok) queryLocalInterface;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {\n if (i == 1) {\n parcel.enforceInterface(\"com.google.android.gms.panorama.internal.IPanoramaService\");\n C2031oj bF = C2031oj.C2032a.m6019bF(parcel.readStrongBinder());\n Bundle bundle = null;\n Uri uri = parcel.readInt() != 0 ? (Uri) Uri.CREATOR.createFromParcel(parcel) : null;\n if (parcel.readInt() != 0) {\n bundle = (Bundle) Bundle.CREATOR.createFromParcel(parcel);\n }\n mo16484a(bF, uri, bundle, parcel.readInt() != 0);\n return true;\n } else if (i != 1598968902) {\n return super.onTransact(i, parcel, parcel2, i2);\n } else {\n parcel2.writeString(\"com.google.android.gms.panorama.internal.IPanoramaService\");\n return true;\n }\n }\n }\n\n /* renamed from: a */\n void mo16484a(C2031oj ojVar, Uri uri, Bundle bundle, boolean z) throws RemoteException;\n}",
"public final List mo6342a() {\n sre.m36087g(this);\n sre.m36088h(this);\n bngs j = bngx.m109377j();\n Intent putExtra = new Intent().setClassName(\"com.google.android.gms\", \"com.google.android.gms.accountsettings.mg.ui.main.MainActivity\").addCategory(\"android.intent.category.DEFAULT\").putExtra(\"extra.screenId\", 1).putExtra(\"extra.launchApi\", 2);\n if (cbro.m128206j()) {\n putExtra.putExtra(\"extra.callingPackageName\", \"com.google.android.gms\").putExtra(\"extra.utmSource\", \"google-settings-classic\");\n } else {\n putExtra.putExtra(\"extra.callingPackageName\", \"com.google.android.gms.app.settings\");\n }\n GoogleSettingsItem googleSettingsItem = new GoogleSettingsItem(putExtra, 1, getResources().getString(C0126R.string.common_asm_google_account_title), 2);\n googleSettingsItem.f29960f = true;\n googleSettingsItem.f29971q = C0126R.string.accountsettings_google_account_subtitle;\n googleSettingsItem.f29959e = 1;\n j.mo67668c(googleSettingsItem);\n if (cbri.f178135a.mo6606a().mo75276z()) {\n bngs j2 = bngx.m109377j();\n j2.mo67668c(new GoogleSettingsItem(new Intent(\"com.android.settings.action.VIEW_ACCOUNT\").setPackage(\"com.google.android.gms\").putExtra(\"extra.callingPackageName\", \"com.google.android.gms\"), 2, (int) C0126R.string.as_debug_android_me_card, 48));\n j2.mo67668c(new GoogleSettingsItem(new Intent().setClassName(\"com.google.android.gms\", \"com.google.android.gms.accountsettings.ui.PrivacyHubActivityControlsActivity\").addCategory(\"android.intent.category.DEFAULT\").putExtra(\"extra.callingPackageName\", \"com.google.android.gms\"), 2, (int) C0126R.string.as_debug_android_privacy_hub_activty_controls, 51));\n j.mo67666b((Iterable) j2.mo67664a());\n }\n return j.mo67664a();\n }",
"public com.google.android.gms.dynamic.d g(com.google.android.gms.maps.model.internal.l param1) throws RemoteException {\n }",
"private static C2499b m9557c(Context context) {\n try {\n if (Looper.myLooper() == Looper.getMainLooper()) {\n throw new C2579j(\"getAndroidId cannot be called on the main thread.\");\n }\n Method a = C2479ad.m9434a(\"com.google.android.gms.common.GooglePlayServicesUtil\", \"isGooglePlayServicesAvailable\", (Class<?>[]) new Class[]{Context.class});\n if (a == null) {\n return null;\n }\n Object a2 = C2479ad.m9423a((Object) null, a, context);\n if (a2 instanceof Integer) {\n if (((Integer) a2).intValue() == 0) {\n Method a3 = C2479ad.m9434a(\"com.google.android.gms.ads.identifier.AdvertisingIdClient\", \"getAdvertisingIdInfo\", (Class<?>[]) new Class[]{Context.class});\n if (a3 == null) {\n return null;\n }\n Object a4 = C2479ad.m9423a((Object) null, a3, context);\n if (a4 == null) {\n return null;\n }\n Method a5 = C2479ad.m9433a(a4.getClass(), \"getId\", (Class<?>[]) new Class[0]);\n Method a6 = C2479ad.m9433a(a4.getClass(), \"isLimitAdTrackingEnabled\", (Class<?>[]) new Class[0]);\n if (a5 != null) {\n if (a6 != null) {\n C2499b bVar = new C2499b();\n bVar.f7871c = (String) C2479ad.m9423a(a4, a5, new Object[0]);\n bVar.f7873e = ((Boolean) C2479ad.m9423a(a4, a6, new Object[0])).booleanValue();\n return bVar;\n }\n }\n return null;\n }\n }\n return null;\n } catch (Exception e) {\n C2479ad.m9447a(\"android_id\", e);\n return null;\n }\n }",
"interface cm\n{\n\n public abstract void f(com.google.android.gms.internal.d.a a);\n\n public abstract cj lS();\n\n public abstract cj lT();\n\n public abstract ck lU();\n\n public abstract ck lV();\n\n public abstract ck lW();\n\n public abstract ck lX();\n}",
"public interface zzke\n extends IInterface\n{\n public static abstract class zza extends Binder\n implements zzke\n {\n\n public static zzke zzbc(IBinder ibinder)\n {\n if(ibinder == null)\n return null;\n IInterface iinterface = ibinder.queryLocalInterface(\"com.google.android.gms.identity.intents.internal.IAddressService\");\n if(iinterface != null && (iinterface instanceof zzke))\n return (zzke)iinterface;\n else\n return new zza(ibinder);\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel1, int j)\n throws RemoteException\n {\n zzkd zzkd;\n switch(i)\n {\n default:\n return super.onTransact(i, parcel, parcel1, j);\n\n case 1598968902: \n parcel1.writeString(\"com.google.android.gms.identity.intents.internal.IAddressService\");\n return true;\n\n case 2: // '\\002'\n parcel.enforceInterface(\"com.google.android.gms.identity.intents.internal.IAddressService\");\n zzkd = com.google.android.gms.internal.zzkd.zza.zzbb(parcel.readStrongBinder());\n break;\n }\n UserAddressRequest useraddressrequest;\n if(parcel.readInt() != 0)\n useraddressrequest = (UserAddressRequest)UserAddressRequest.CREATOR.createFromParcel(parcel);\n else\n useraddressrequest = null;\n if(parcel.readInt() != 0)\n parcel = (Bundle)Bundle.CREATOR.createFromParcel(parcel);\n else\n parcel = null;\n zza(zzkd, useraddressrequest, parcel);\n parcel1.writeNoException();\n return true;\n }\n }\n\n private static class zza.zza\n implements zzke\n {\n\n public IBinder asBinder()\n {\n return zzlW;\n }\n\n public void zza(zzkd zzkd1, UserAddressRequest useraddressrequest, Bundle bundle)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.google.android.gms.identity.intents.internal.IAddressService\");\n if(zzkd1 == null) goto _L2; else goto _L1\n_L1:\n zzkd1 = zzkd1.asBinder();\n_L5:\n parcel.writeStrongBinder(zzkd1);\n if(useraddressrequest == null) goto _L4; else goto _L3\n_L3:\n parcel.writeInt(1);\n useraddressrequest.writeToParcel(parcel, 0);\n_L6:\n if(bundle == null)\n break MISSING_BLOCK_LABEL_127;\n parcel.writeInt(1);\n bundle.writeToParcel(parcel, 0);\n_L7:\n zzlW.transact(2, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n_L2:\n zzkd1 = null;\n goto _L5\n_L4:\n parcel.writeInt(0);\n goto _L6\n zzkd1;\n parcel1.recycle();\n parcel.recycle();\n throw zzkd1;\n parcel.writeInt(0);\n goto _L7\n }\n\n private IBinder zzlW;\n\n zza.zza(IBinder ibinder)\n {\n zzlW = ibinder;\n }\n }\n\n\n public abstract void zza(zzkd zzkd, UserAddressRequest useraddressrequest, Bundle bundle)\n throws RemoteException;\n}",
"public interface C2306m extends IInterface {\n\n /* renamed from: com.google.android.gms.maps.internal.m$a */\n public static abstract class C2307a extends Binder implements C2306m {\n\n /* renamed from: com.google.android.gms.maps.internal.m$a$a */\n private static class C2308a implements C2306m {\n\n /* renamed from: le */\n private IBinder f4324le;\n\n C2308a(IBinder iBinder) {\n this.f4324le = iBinder;\n }\n\n /* renamed from: a */\n public void mo17393a(IGoogleMapDelegate iGoogleMapDelegate) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.maps.internal.IOnMapReadyCallback\");\n obtain.writeStrongBinder(iGoogleMapDelegate != null ? iGoogleMapDelegate.asBinder() : null);\n this.f4324le.transact(1, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public IBinder asBinder() {\n return this.f4324le;\n }\n }\n\n public C2307a() {\n attachInterface(this, \"com.google.android.gms.maps.internal.IOnMapReadyCallback\");\n }\n\n /* renamed from: bg */\n public static C2306m m6766bg(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.gms.maps.internal.IOnMapReadyCallback\");\n return (queryLocalInterface == null || !(queryLocalInterface instanceof C2306m)) ? new C2308a(iBinder) : (C2306m) queryLocalInterface;\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {\n if (i == 1) {\n parcel.enforceInterface(\"com.google.android.gms.maps.internal.IOnMapReadyCallback\");\n mo17393a(IGoogleMapDelegate.C2253a.m6712aT(parcel.readStrongBinder()));\n parcel2.writeNoException();\n return true;\n } else if (i != 1598968902) {\n return super.onTransact(i, parcel, parcel2, i2);\n } else {\n parcel2.writeString(\"com.google.android.gms.maps.internal.IOnMapReadyCallback\");\n return true;\n }\n }\n }\n\n /* renamed from: a */\n void mo17393a(IGoogleMapDelegate iGoogleMapDelegate) throws RemoteException;\n}",
"public final /* synthetic */ java.lang.Object createFromParcel(android.os.Parcel r14) {\n /*\n r13 = this;\n int r0 = com.google.android.gms.internal.ej.zzd(r14)\n r1 = 0\n r2 = 0\n r4 = r1\n r5 = r4\n r6 = r5\n r7 = r6\n r8 = 0\n r9 = 0\n r10 = 0\n r11 = 0\n r12 = 0\n L_0x000f:\n int r1 = r14.dataPosition()\n if (r1 >= r0) goto L_0x005b\n int r1 = r14.readInt()\n r2 = 65535(0xffff, float:9.1834E-41)\n r2 = r2 & r1\n switch(r2) {\n case 2: goto L_0x0051;\n case 3: goto L_0x004c;\n case 4: goto L_0x0042;\n case 5: goto L_0x003d;\n case 6: goto L_0x0038;\n case 7: goto L_0x0033;\n case 8: goto L_0x002e;\n case 9: goto L_0x0029;\n case 10: goto L_0x0024;\n default: goto L_0x0020;\n }\n L_0x0020:\n com.google.android.gms.internal.ej.zzb(r14, r1)\n goto L_0x000f\n L_0x0024:\n byte r12 = com.google.android.gms.internal.ej.zze(r14, r1)\n goto L_0x000f\n L_0x0029:\n byte r11 = com.google.android.gms.internal.ej.zze(r14, r1)\n goto L_0x000f\n L_0x002e:\n byte r10 = com.google.android.gms.internal.ej.zze(r14, r1)\n goto L_0x000f\n L_0x0033:\n byte r9 = com.google.android.gms.internal.ej.zze(r14, r1)\n goto L_0x000f\n L_0x0038:\n byte r8 = com.google.android.gms.internal.ej.zze(r14, r1)\n goto L_0x000f\n L_0x003d:\n java.lang.Integer r7 = com.google.android.gms.internal.ej.zzh(r14, r1)\n goto L_0x000f\n L_0x0042:\n android.os.Parcelable$Creator<com.google.android.gms.maps.model.LatLng> r2 = com.google.android.gms.maps.model.LatLng.CREATOR\n android.os.Parcelable r1 = com.google.android.gms.internal.ej.zza(r14, r1, r2)\n r6 = r1\n com.google.android.gms.maps.model.LatLng r6 = (com.google.android.gms.maps.model.LatLng) r6\n goto L_0x000f\n L_0x004c:\n java.lang.String r5 = com.google.android.gms.internal.ej.zzq(r14, r1)\n goto L_0x000f\n L_0x0051:\n android.os.Parcelable$Creator<com.google.android.gms.maps.model.StreetViewPanoramaCamera> r2 = com.google.android.gms.maps.model.StreetViewPanoramaCamera.CREATOR\n android.os.Parcelable r1 = com.google.android.gms.internal.ej.zza(r14, r1, r2)\n r4 = r1\n com.google.android.gms.maps.model.StreetViewPanoramaCamera r4 = (com.google.android.gms.maps.model.StreetViewPanoramaCamera) r4\n goto L_0x000f\n L_0x005b:\n com.google.android.gms.internal.ej.zzaf(r14, r0)\n com.google.android.gms.maps.StreetViewPanoramaOptions r14 = new com.google.android.gms.maps.StreetViewPanoramaOptions\n r3 = r14\n r3.<init>(r4, r5, r6, r7, r8, r9, r10, r11, r12)\n return r14\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.maps.r.createFromParcel(android.os.Parcel):java.lang.Object\");\n }",
"public GoogleApiA() {}",
"public static com.google.android.gms.internal.zzpc zza(android.support.p000v4.app.FragmentActivity r3) {\n /*\n r0 = zzaoq;\n r0 = r0.get(r3);\n r0 = (java.lang.ref.WeakReference) r0;\n if (r0 == 0) goto L_0x0013;\n L_0x000a:\n r0 = r0.get();\n r0 = (com.google.android.gms.internal.zzpc) r0;\n if (r0 == 0) goto L_0x0013;\n L_0x0012:\n return r0;\n L_0x0013:\n r0 = r3.getSupportFragmentManager();\t Catch:{ ClassCastException -> 0x0048 }\n r1 = \"SupportLifecycleFragmentImpl\";\n r0 = r0.findFragmentByTag(r1);\t Catch:{ ClassCastException -> 0x0048 }\n r0 = (com.google.android.gms.internal.zzpc) r0;\t Catch:{ ClassCastException -> 0x0048 }\n if (r0 == 0) goto L_0x0027;\n L_0x0021:\n r1 = r0.isRemoving();\n if (r1 == 0) goto L_0x003d;\n L_0x0027:\n r0 = new com.google.android.gms.internal.zzpc;\n r0.<init>();\n r1 = r3.getSupportFragmentManager();\n r1 = r1.beginTransaction();\n r2 = \"SupportLifecycleFragmentImpl\";\n r1 = r1.add(r0, r2);\n r1.commitAllowingStateLoss();\n L_0x003d:\n r1 = zzaoq;\n r2 = new java.lang.ref.WeakReference;\n r2.<init>(r0);\n r1.put(r3, r2);\n goto L_0x0012;\n L_0x0048:\n r0 = move-exception;\n r1 = new java.lang.IllegalStateException;\n r2 = \"Fragment with tag SupportLifecycleFragmentImpl is not a SupportLifecycleFragmentImpl\";\n r1.<init>(r2, r0);\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzpc.zza(android.support.v4.app.FragmentActivity):com.google.android.gms.internal.zzpc\");\n }",
"public interface C15428f {\n\n /* renamed from: com.ss.android.ugc.asve.context.f$a */\n public static final class C15429a {\n /* renamed from: a */\n public static String m45146a(C15428f fVar) {\n return \"\";\n }\n\n /* renamed from: b */\n public static String m45147b(C15428f fVar) {\n return \"\";\n }\n }\n\n /* renamed from: a */\n boolean mo38970a();\n\n /* renamed from: b */\n String mo38971b();\n\n /* renamed from: c */\n String mo38972c();\n\n /* renamed from: d */\n int mo38973d();\n\n /* renamed from: e */\n int mo38974e();\n}",
"private static AdResponseParcel m5544a(Context context, C0552b bVar, AdRequestInfoParcel adRequestInfoParcel) {\n bqgg bqgg;\n boolean z;\n bqgg bqgg2;\n Bundle bundle;\n bqgg bqgg3;\n String str;\n C0386k kVar;\n String str2;\n C0384i iVar;\n C0563m mVar;\n AdResponseParcel adResponseParcel;\n char c;\n Context context2 = context;\n C0552b bVar2 = bVar;\n AdRequestInfoParcel adRequestInfoParcel2 = adRequestInfoParcel;\n C0633h.m5664a(\"Starting ad request from service using: google.afma.request.getAdDictionary\");\n C0386k kVar2 = new C0386k(((Boolean) C0395h.f8335b.mo6621a()).booleanValue(), \"load_ad\", adRequestInfoParcel2.f8611d.f8140a);\n if (adRequestInfoParcel2.f8601a > 10) {\n long j = adRequestInfoParcel2.f8575A;\n if (j != -1) {\n kVar2.mo6618a(kVar2.mo6617a(j), \"cts\");\n }\n }\n C0384i a = kVar2.mo6616a();\n bqgg a2 = bqga.m112773a(bVar2.f8722f.mo6707a(context2), ((Long) C0371o.f8227ae.mo6604a()).longValue(), TimeUnit.MILLISECONDS, C0645d.f8975c);\n bqgg a3 = bqga.m112775a((Object) null);\n if (((Boolean) C0371o.f8214aA.mo6604a()).booleanValue()) {\n bqgg = bVar2.f8719c.getDoritosCookieAsynchronously(adRequestInfoParcel2.f8614g.packageName);\n } else {\n bqgg = a3;\n }\n bqgg doritosCookiesAsynchronously = bVar2.f8719c.getDoritosCookiesAsynchronously(adRequestInfoParcel2.f8614g.packageName);\n bqgg a4 = bVar2.f8723g.mo6382a(adRequestInfoParcel2.f8615h, adRequestInfoParcel2.f8614g);\n Future a5 = C0387d.m5369g().mo6747a(context2);\n bqgg a6 = bqga.m112775a((Object) null);\n Bundle bundle2 = adRequestInfoParcel2.f8610c.f8120c;\n if (bundle2 == null || bundle2.getString(\"_ad\") == null) {\n z = false;\n } else {\n z = true;\n }\n if (adRequestInfoParcel2.f8581G && !z) {\n a6 = bVar2.f8721e.mo6698a(adRequestInfoParcel2.f8613f);\n }\n bqgg a7 = bqga.m112773a(a6, ((Long) C0371o.f8225ac.mo6604a()).longValue(), TimeUnit.MILLISECONDS, C0645d.f8975c);\n bqgg a8 = bqga.m112775a((Object) null);\n if (((Boolean) C0371o.f8192F.mo6604a()).booleanValue()) {\n bqgg2 = bqga.m112773a(bVar2.f8723g.mo6380a(context2), ((Long) C0371o.f8193G.mo6604a()).longValue(), TimeUnit.MILLISECONDS, C0645d.f8975c);\n } else {\n bqgg2 = a8;\n }\n if (adRequestInfoParcel2.f8601a < 4 || (bundle = adRequestInfoParcel2.f8622o) == null) {\n bundle = null;\n }\n if (bundle == null && ((Boolean) C0390c.f8324b.mo6621a()).booleanValue()) {\n bundle = new Bundle();\n }\n Bundle bundle3 = bundle;\n if (bundle3 != null) {\n bqgg3 = C0645d.f8973a.mo25819b(new C0554d(bVar2, context2, adRequestInfoParcel2, bundle3));\n } else {\n bqgg3 = null;\n }\n if (C0387d.m5363a().mo6856a(context2, \"android.permission.ACCESS_NETWORK_STATE\") && ((ConnectivityManager) context2.getSystemService(\"connectivity\")).getActiveNetworkInfo() == null) {\n C0633h.m5664a(\"Device is offline.\");\n }\n if (adRequestInfoParcel2.f8601a >= 7) {\n str = adRequestInfoParcel2.f8629v;\n } else {\n str = UUID.randomUUID().toString();\n }\n Bundle bundle4 = adRequestInfoParcel2.f8610c.f8120c;\n if (bundle4 != null) {\n kVar = kVar2;\n String string = bundle4.getString(\"_ad\");\n if (string != null) {\n return C0558h.m5554a(context2, adRequestInfoParcel2, string);\n }\n } else {\n kVar = kVar2;\n }\n List a9 = bVar2.f8725i.mo6443a(adRequestInfoParcel2.f8630w);\n if (bqgg3 != null) {\n try {\n iVar = a;\n str2 = str;\n try {\n bqgg3.get(((Long) C0390c.f8323a.mo6621a()).longValue(), TimeUnit.MILLISECONDS);\n } catch (InterruptedException | ExecutionException e) {\n e = e;\n } catch (TimeoutException e2) {\n C0633h.m5664a(\"Timed out waiting for app index fetching task\");\n Bundle bundle5 = (Bundle) C0647f.m5687a(a2, null, ((Long) C0371o.f8227ae.mo6604a()).longValue(), TimeUnit.MILLISECONDS);\n Location location = (Location) C0647f.m5686a(a7);\n C0271c cVar = (C0271c) C0647f.m5686a(bqgg2);\n String str3 = (String) C0647f.m5686a(a4);\n String str4 = (String) C0647f.m5686a(bqgg);\n String str5 = (String) C0647f.m5686a(doritosCookiesAsynchronously);\n mVar = (C0563m) C0647f.m5686a(a5);\n if (mVar != null) {\n }\n }\n } catch (InterruptedException | ExecutionException e3) {\n e = e3;\n iVar = a;\n str2 = str;\n C0633h.m5673d(\"Failed to fetch app index signal\", e);\n Bundle bundle52 = (Bundle) C0647f.m5687a(a2, null, ((Long) C0371o.f8227ae.mo6604a()).longValue(), TimeUnit.MILLISECONDS);\n Location location2 = (Location) C0647f.m5686a(a7);\n C0271c cVar2 = (C0271c) C0647f.m5686a(bqgg2);\n String str32 = (String) C0647f.m5686a(a4);\n String str42 = (String) C0647f.m5686a(bqgg);\n String str52 = (String) C0647f.m5686a(doritosCookiesAsynchronously);\n mVar = (C0563m) C0647f.m5686a(a5);\n if (mVar != null) {\n }\n } catch (TimeoutException e4) {\n iVar = a;\n str2 = str;\n C0633h.m5664a(\"Timed out waiting for app index fetching task\");\n Bundle bundle522 = (Bundle) C0647f.m5687a(a2, null, ((Long) C0371o.f8227ae.mo6604a()).longValue(), TimeUnit.MILLISECONDS);\n Location location22 = (Location) C0647f.m5686a(a7);\n C0271c cVar22 = (C0271c) C0647f.m5686a(bqgg2);\n String str322 = (String) C0647f.m5686a(a4);\n String str422 = (String) C0647f.m5686a(bqgg);\n String str522 = (String) C0647f.m5686a(doritosCookiesAsynchronously);\n mVar = (C0563m) C0647f.m5686a(a5);\n if (mVar != null) {\n }\n }\n } else {\n iVar = a;\n str2 = str;\n }\n Bundle bundle5222 = (Bundle) C0647f.m5687a(a2, null, ((Long) C0371o.f8227ae.mo6604a()).longValue(), TimeUnit.MILLISECONDS);\n Location location222 = (Location) C0647f.m5686a(a7);\n C0271c cVar222 = (C0271c) C0647f.m5686a(bqgg2);\n String str3222 = (String) C0647f.m5686a(a4);\n String str4222 = (String) C0647f.m5686a(bqgg);\n String str5222 = (String) C0647f.m5686a(doritosCookiesAsynchronously);\n mVar = (C0563m) C0647f.m5686a(a5);\n if (mVar != null) {\n C0633h.m5672d(\"Error fetching device info. This is not recoverable.\");\n return new AdResponseParcel(0);\n }\n C0551a aVar = new C0551a();\n aVar.f8714i = adRequestInfoParcel2;\n aVar.f8715j = mVar;\n aVar.f8709d = location222;\n aVar.f8707b = bundle5222;\n aVar.f8712g = str3222;\n aVar.f8713h = cVar222;\n if (a9 == null) {\n aVar.f8708c.clear();\n }\n aVar.f8708c = a9;\n aVar.f8706a = bundle3;\n aVar.f8710e = str4222;\n aVar.f8711f = str5222;\n aVar.f8716k = bVar2.f8718b.mo6419a(context2);\n boolean z2 = bVar2.f8724h;\n JSONObject a10 = C0558h.m5556a(context2, aVar);\n if (a10 == null) {\n return new AdResponseParcel(0);\n }\n if (adRequestInfoParcel2.f8601a < 7) {\n try {\n a10.put(\"request_id\", str2);\n } catch (JSONException e5) {\n }\n }\n C0386k kVar3 = kVar;\n C0384i iVar2 = iVar;\n kVar3.mo6618a(iVar2, \"arc\");\n bqgg a11 = bqga.m112773a(bqdx.m112674a(bVar2.f8726j.f8860a.mo6670b(a10), C0553c.f8727a, C0645d.f8973a), 10, TimeUnit.SECONDS, C0645d.f8975c);\n bqgg a12 = bVar2.f8720d.mo6748a();\n if (a12 != null) {\n C0647f.m5688a(a12, \"AdRequestServiceImpl.loadAd.flags\");\n }\n C0561k kVar4 = (C0561k) C0647f.m5686a(a11);\n if (kVar4 == null) {\n return new AdResponseParcel(0);\n }\n int i = kVar4.f8786g;\n if (i != -2) {\n return new AdResponseParcel(i);\n }\n synchronized (kVar3.f8298c) {\n }\n if (!TextUtils.isEmpty(kVar4.f8784e)) {\n adResponseParcel = C0558h.m5554a(context2, adRequestInfoParcel2, kVar4.f8784e);\n } else {\n adResponseParcel = null;\n }\n if (adResponseParcel == null && !TextUtils.isEmpty(kVar4.f8785f)) {\n adResponseParcel = m5545a(adRequestInfoParcel, context, adRequestInfoParcel2.f8618k.f8949a, kVar4.f8785f, str4222, str5222, kVar4, kVar3, bVar);\n }\n if (adResponseParcel != null) {\n c = 0;\n } else {\n c = 0;\n adResponseParcel = new AdResponseParcel(0);\n }\n String[] strArr = new String[1];\n strArr[c] = \"tts\";\n kVar3.mo6618a(iVar2, strArr);\n adResponseParcel.f8685y = kVar3.mo6619b();\n adResponseParcel.f8657X = kVar4.f8789j;\n return adResponseParcel;\n }",
"public static int m22557b(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = com.google.android.gms.internal.measurement.dr.m11788a(r1);\t Catch:{ zzyn -> 0x0005 }\n goto L_0x000c;\n L_0x0005:\n r0 = com.google.android.gms.internal.measurement.zzvo.f10281a;\n r1 = r1.getBytes(r0);\n r0 = r1.length;\n L_0x000c:\n r1 = m22576g(r0);\n r1 = r1 + r0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzut.b(java.lang.String):int\");\n }",
"public com.google.android.gms.dynamic.d f(com.google.android.gms.maps.model.internal.l param1) throws RemoteException {\n }",
"private static abstract class <init> extends com.google.android.gms.games.dMatchesImpl\n{\n\n public com.google.android.gms.games.multiplayer.turnbased.Q V(Status status)\n {\n return new com.google.android.gms.games.multiplayer.turnbased.TurnBasedMultiplayer.LoadMatchesResult(status) {\n\n final TurnBasedMultiplayerImpl.LoadMatchesImpl Ln;\n final Status wz;\n\n public LoadMatchesResponse getMatches()\n {\n return new LoadMatchesResponse(new Bundle());\n }\n\n public Status getStatus()\n {\n return wz;\n }\n\n public void release()\n {\n }\n\n \n {\n Ln = TurnBasedMultiplayerImpl.LoadMatchesImpl.this;\n wz = status;\n super();\n }\n };\n }",
"public String mo1081b() {\n return \"com.crashlytics.sdk.android:beta\";\n }",
"public interface C39682m {\n\n /* renamed from: com.ss.android.ugc.aweme.shortvideo.edit.m$a */\n public interface C39683a {\n /* renamed from: a */\n int mo98966a(C29296g gVar);\n\n /* renamed from: b */\n int mo98967b(C29296g gVar);\n\n /* renamed from: c */\n float mo98968c(C29296g gVar);\n }\n\n /* renamed from: com.ss.android.ugc.aweme.shortvideo.edit.m$b */\n public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }\n}",
"private static void zza(java.lang.ClassLoader r3) throws com.google.android.gms.dynamite.DynamiteModule.zzc {\n /*\n r0 = 0\n java.lang.String r1 = \"com.google.android.gms.dynamiteloader.DynamiteLoaderV2\"\n java.lang.Class r3 = r3.loadClass(r1) // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n r1 = 0\n java.lang.Class[] r2 = new java.lang.Class[r1] // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n java.lang.reflect.Constructor r3 = r3.getConstructor(r2) // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n java.lang.Object[] r1 = new java.lang.Object[r1] // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n java.lang.Object r3 = r3.newInstance(r1) // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n android.os.IBinder r3 = (android.os.IBinder) r3 // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n if (r3 != 0) goto L_0x001a\n r3 = r0\n goto L_0x002e\n L_0x001a:\n java.lang.String r1 = \"com.google.android.gms.dynamite.IDynamiteLoaderV2\"\n android.os.IInterface r1 = r3.queryLocalInterface(r1) // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n boolean r2 = r1 instanceof com.google.android.gms.dynamite.zzl // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n if (r2 == 0) goto L_0x0028\n r3 = r1\n com.google.android.gms.dynamite.zzl r3 = (com.google.android.gms.dynamite.zzl) r3 // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n goto L_0x002e\n L_0x0028:\n com.google.android.gms.dynamite.zzm r1 = new com.google.android.gms.dynamite.zzm // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n r1.<init>(r3) // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n r3 = r1\n L_0x002e:\n zzaSH = r3 // Catch:{ ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException -> 0x0031 }\n return\n L_0x0031:\n r3 = move-exception\n com.google.android.gms.dynamite.DynamiteModule$zzc r1 = new com.google.android.gms.dynamite.DynamiteModule$zzc\n java.lang.String r2 = \"Failed to instantiate dynamite loader\"\n r1.<init>(r2, r3, r0)\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.zza(java.lang.ClassLoader):void\");\n }",
"static final /* synthetic */ void m50993b(ane ane, Map map) {\n PackageManager packageManager = ane.getContext().getPackageManager();\n try {\n try {\n JSONArray jSONArray = new JSONObject((String) map.get(\"data\")).getJSONArray(\"intents\");\n JSONObject jSONObject = new JSONObject();\n for (int i = 0; i < jSONArray.length(); i++) {\n try {\n JSONObject jSONObject2 = jSONArray.getJSONObject(i);\n String optString = jSONObject2.optString(\"id\");\n String optString2 = jSONObject2.optString(\"u\");\n String optString3 = jSONObject2.optString(C42323i.f110089f);\n String optString4 = jSONObject2.optString(C13192m.f34940a);\n String optString5 = jSONObject2.optString(\"p\");\n String optString6 = jSONObject2.optString(\"c\");\n jSONObject2.optString(\"f\");\n jSONObject2.optString(\"e\");\n String optString7 = jSONObject2.optString(\"intent_url\");\n Intent intent = null;\n if (!TextUtils.isEmpty(optString7)) {\n try {\n intent = Intent.parseUri(optString7, 0);\n } catch (URISyntaxException e) {\n URISyntaxException uRISyntaxException = e;\n String str = \"Error parsing the url: \";\n String valueOf = String.valueOf(optString7);\n acd.m45778b(valueOf.length() != 0 ? str.concat(valueOf) : new String(str), uRISyntaxException);\n }\n }\n boolean z = true;\n if (intent == null) {\n intent = new Intent();\n if (!TextUtils.isEmpty(optString2)) {\n intent.setData(Uri.parse(optString2));\n }\n if (!TextUtils.isEmpty(optString3)) {\n intent.setAction(optString3);\n }\n if (!TextUtils.isEmpty(optString4)) {\n intent.setType(optString4);\n }\n if (!TextUtils.isEmpty(optString5)) {\n intent.setPackage(optString5);\n }\n if (!TextUtils.isEmpty(optString6)) {\n String[] split = optString6.split(\"/\", 2);\n if (split.length == 2) {\n intent.setComponent(new ComponentName(split[0], split[1]));\n }\n }\n }\n if (packageManager.resolveActivity(intent, 65536) == null) {\n z = false;\n }\n try {\n jSONObject.put(optString, z);\n } catch (JSONException e2) {\n acd.m45778b(\"Error constructing openable urls response.\", e2);\n }\n } catch (JSONException e3) {\n acd.m45778b(\"Error parsing the intent data.\", e3);\n }\n }\n ((C15836lc) ane).mo39810a(\"openableIntents\", jSONObject);\n } catch (JSONException unused) {\n ((C15836lc) ane).mo39810a(\"openableIntents\", new JSONObject());\n }\n } catch (JSONException unused2) {\n ((C15836lc) ane).mo39810a(\"openableIntents\", new JSONObject());\n }\n }",
"public static com.google.android.gms.dynamite.DynamiteModule zza(android.content.Context r9, com.google.android.gms.dynamite.DynamiteModule.zzd r10, java.lang.String r11) throws com.google.android.gms.dynamite.DynamiteModule.zzc {\n /*\n java.lang.ThreadLocal<com.google.android.gms.dynamite.DynamiteModule$zza> r0 = zzaSJ\n java.lang.Object r0 = r0.get()\n com.google.android.gms.dynamite.DynamiteModule$zza r0 = (com.google.android.gms.dynamite.DynamiteModule.zza) r0\n com.google.android.gms.dynamite.DynamiteModule$zza r1 = new com.google.android.gms.dynamite.DynamiteModule$zza\n r2 = 0\n r1.<init>(r2)\n java.lang.ThreadLocal<com.google.android.gms.dynamite.DynamiteModule$zza> r3 = zzaSJ\n r3.set(r1)\n com.google.android.gms.dynamite.zzh r3 = zzaSK // Catch:{ all -> 0x00e3 }\n com.google.android.gms.dynamite.zzi r3 = r10.zza(r9, r11, r3) // Catch:{ all -> 0x00e3 }\n int r4 = r3.zzaSW // Catch:{ all -> 0x00e3 }\n if (r4 == 0) goto L_0x00b9\n int r4 = r3.zzaSW // Catch:{ all -> 0x00e3 }\n r5 = -1\n if (r4 != r5) goto L_0x0026\n int r4 = r3.zzaSU // Catch:{ all -> 0x00e3 }\n if (r4 == 0) goto L_0x00b9\n L_0x0026:\n int r4 = r3.zzaSW // Catch:{ all -> 0x00e3 }\n r6 = 1\n if (r4 != r6) goto L_0x002f\n int r4 = r3.zzaSV // Catch:{ all -> 0x00e3 }\n if (r4 == 0) goto L_0x00b9\n L_0x002f:\n int r4 = r3.zzaSW // Catch:{ all -> 0x00e3 }\n if (r4 != r5) goto L_0x0046\n com.google.android.gms.dynamite.DynamiteModule r9 = zzG(r9, r11) // Catch:{ all -> 0x00e3 }\n android.database.Cursor r10 = r1.zzaSR\n if (r10 == 0) goto L_0x0040\n L_0x003b:\n android.database.Cursor r10 = r1.zzaSR\n r10.close()\n L_0x0040:\n java.lang.ThreadLocal<com.google.android.gms.dynamite.DynamiteModule$zza> r10 = zzaSJ\n r10.set(r0)\n return r9\n L_0x0046:\n int r4 = r3.zzaSW // Catch:{ all -> 0x00e3 }\n if (r4 != r6) goto L_0x009e\n int r4 = r3.zzaSV // Catch:{ zzc -> 0x005f }\n com.google.android.gms.dynamite.DynamiteModule r4 = zza((android.content.Context) r9, (java.lang.String) r11, (int) r4) // Catch:{ zzc -> 0x005f }\n android.database.Cursor r9 = r1.zzaSR\n if (r9 == 0) goto L_0x0059\n android.database.Cursor r9 = r1.zzaSR\n r9.close()\n L_0x0059:\n java.lang.ThreadLocal<com.google.android.gms.dynamite.DynamiteModule$zza> r9 = zzaSJ\n r9.set(r0)\n return r4\n L_0x005f:\n r4 = move-exception\n java.lang.String r6 = \"Failed to load remote module: \"\n java.lang.String r7 = r4.getMessage() // Catch:{ all -> 0x00e3 }\n java.lang.String r7 = java.lang.String.valueOf(r7) // Catch:{ all -> 0x00e3 }\n int r8 = r7.length() // Catch:{ all -> 0x00e3 }\n if (r8 == 0) goto L_0x0074\n r6.concat(r7) // Catch:{ all -> 0x00e3 }\n goto L_0x0079\n L_0x0074:\n java.lang.String r7 = new java.lang.String // Catch:{ all -> 0x00e3 }\n r7.<init>(r6) // Catch:{ all -> 0x00e3 }\n L_0x0079:\n int r6 = r3.zzaSU // Catch:{ all -> 0x00e3 }\n if (r6 == 0) goto L_0x0096\n com.google.android.gms.dynamite.DynamiteModule$zzb r6 = new com.google.android.gms.dynamite.DynamiteModule$zzb // Catch:{ all -> 0x00e3 }\n int r3 = r3.zzaSU // Catch:{ all -> 0x00e3 }\n r7 = 0\n r6.<init>(r3, r7) // Catch:{ all -> 0x00e3 }\n com.google.android.gms.dynamite.zzi r10 = r10.zza(r9, r11, r6) // Catch:{ all -> 0x00e3 }\n int r10 = r10.zzaSW // Catch:{ all -> 0x00e3 }\n if (r10 != r5) goto L_0x0096\n com.google.android.gms.dynamite.DynamiteModule r9 = zzG(r9, r11) // Catch:{ all -> 0x00e3 }\n android.database.Cursor r10 = r1.zzaSR\n if (r10 == 0) goto L_0x0040\n goto L_0x003b\n L_0x0096:\n com.google.android.gms.dynamite.DynamiteModule$zzc r9 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ all -> 0x00e3 }\n java.lang.String r10 = \"Remote load failed. No local fallback found.\"\n r9.<init>(r10, r4, r2) // Catch:{ all -> 0x00e3 }\n throw r9 // Catch:{ all -> 0x00e3 }\n L_0x009e:\n com.google.android.gms.dynamite.DynamiteModule$zzc r9 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ all -> 0x00e3 }\n int r10 = r3.zzaSW // Catch:{ all -> 0x00e3 }\n r11 = 47\n java.lang.StringBuilder r3 = new java.lang.StringBuilder // Catch:{ all -> 0x00e3 }\n r3.<init>(r11) // Catch:{ all -> 0x00e3 }\n java.lang.String r11 = \"VersionPolicy returned invalid code:\"\n r3.append(r11) // Catch:{ all -> 0x00e3 }\n r3.append(r10) // Catch:{ all -> 0x00e3 }\n java.lang.String r10 = r3.toString() // Catch:{ all -> 0x00e3 }\n r9.<init>((java.lang.String) r10, (com.google.android.gms.dynamite.zza) r2) // Catch:{ all -> 0x00e3 }\n throw r9 // Catch:{ all -> 0x00e3 }\n L_0x00b9:\n com.google.android.gms.dynamite.DynamiteModule$zzc r9 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ all -> 0x00e3 }\n int r10 = r3.zzaSU // Catch:{ all -> 0x00e3 }\n int r11 = r3.zzaSV // Catch:{ all -> 0x00e3 }\n r3 = 91\n java.lang.StringBuilder r4 = new java.lang.StringBuilder // Catch:{ all -> 0x00e3 }\n r4.<init>(r3) // Catch:{ all -> 0x00e3 }\n java.lang.String r3 = \"No acceptable module found. Local version is \"\n r4.append(r3) // Catch:{ all -> 0x00e3 }\n r4.append(r10) // Catch:{ all -> 0x00e3 }\n java.lang.String r10 = \" and remote version is \"\n r4.append(r10) // Catch:{ all -> 0x00e3 }\n r4.append(r11) // Catch:{ all -> 0x00e3 }\n java.lang.String r10 = \".\"\n r4.append(r10) // Catch:{ all -> 0x00e3 }\n java.lang.String r10 = r4.toString() // Catch:{ all -> 0x00e3 }\n r9.<init>((java.lang.String) r10, (com.google.android.gms.dynamite.zza) r2) // Catch:{ all -> 0x00e3 }\n throw r9 // Catch:{ all -> 0x00e3 }\n L_0x00e3:\n r9 = move-exception\n android.database.Cursor r10 = r1.zzaSR\n if (r10 == 0) goto L_0x00ed\n android.database.Cursor r10 = r1.zzaSR\n r10.close()\n L_0x00ed:\n java.lang.ThreadLocal<com.google.android.gms.dynamite.DynamiteModule$zza> r10 = zzaSJ\n r10.set(r0)\n throw r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.zza(android.content.Context, com.google.android.gms.dynamite.DynamiteModule$zzd, java.lang.String):com.google.android.gms.dynamite.DynamiteModule\");\n }",
"public static void m92440a(Context context, int i, String str, String str2, String str3) {\n skc skc = new skc(context);\n long a = m92438a(str3);\n long currentTimeMillis = System.currentTimeMillis();\n skc.mo25675a(f107597c, 0, currentTimeMillis + a, m92439a(context, i, a, str, str2, str3), \"com.google.android.gms\");\n }",
"private Map<String, C0148k> m471c() {\n HashMap hashMap = new HashMap();\n try {\n Class.forName(\"com.google.android.gms.ads.AdView\");\n C0148k kVar = new C0148k(\"com.google.firebase.firebase-ads\", \"0.0.0\", \"binary\");\n hashMap.put(kVar.mo326a(), kVar);\n C0135c.m449h().mo273b(\"Fabric\", \"Found kit: com.google.firebase.firebase-ads\");\n } catch (Exception unused) {\n }\n return hashMap;\n }",
"public final String mo6464b() {\n return \"com.google.android.gms.ads.eventattestation.internal.IEventAttestationService\";\n }",
"public final /* synthetic */ Object zzpq() {\n \n /* JADX ERROR: Method code generation error\n jadx.core.utils.exceptions.CodegenException: Error generate insn: 0x0004: INVOKE (wrap: android.content.Context\n 0x0000: IGET (r0v0 android.content.Context) = (r2v0 'this' com.google.android.gms.internal.ads.zzwo A[THIS]) com.google.android.gms.internal.ads.zzwo.val$context android.content.Context), (wrap: java.lang.String\n 0x0002: CONST_STR (r1v0 java.lang.String) = \"native_ad\") com.google.android.gms.internal.ads.zzwj.zzb(android.content.Context, java.lang.String):void type: STATIC in method: com.google.android.gms.internal.ads.zzwo.zzpq():java.lang.Object, dex: classes2.dex\n \tat jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:245)\n \tat jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:213)\n \tat jadx.core.codegen.RegionGen.makeSimpleBlock(RegionGen.java:109)\n \tat jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:55)\n \tat jadx.core.codegen.RegionGen.makeSimpleRegion(RegionGen.java:92)\n \tat jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:58)\n \tat jadx.core.codegen.MethodGen.addRegionInsns(MethodGen.java:210)\n \tat jadx.core.codegen.MethodGen.addInstructions(MethodGen.java:203)\n \tat jadx.core.codegen.ClassGen.addMethod(ClassGen.java:316)\n \tat jadx.core.codegen.ClassGen.addMethods(ClassGen.java:262)\n \tat jadx.core.codegen.ClassGen.addClassBody(ClassGen.java:225)\n \tat jadx.core.codegen.ClassGen.addClassCode(ClassGen.java:110)\n \tat jadx.core.codegen.ClassGen.makeClass(ClassGen.java:76)\n \tat jadx.core.codegen.CodeGen.wrapCodeGen(CodeGen.java:44)\n \tat jadx.core.codegen.CodeGen.generateJavaCode(CodeGen.java:32)\n \tat jadx.core.codegen.CodeGen.generate(CodeGen.java:20)\n \tat jadx.core.ProcessClass.process(ProcessClass.java:36)\n \tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:311)\n \tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n \tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:217)\n Caused by: java.lang.ArrayIndexOutOfBoundsException: arraycopy: length -2 is negative\n \tat java.base/java.util.ArrayList.shiftTailOverGap(Unknown Source)\n \tat java.base/java.util.ArrayList.removeIf(Unknown Source)\n \tat java.base/java.util.ArrayList.removeIf(Unknown Source)\n \tat jadx.core.dex.instructions.args.SSAVar.removeUse(SSAVar.java:86)\n \tat jadx.core.utils.InsnRemover.unbindArgUsage(InsnRemover.java:90)\n \tat jadx.core.dex.nodes.InsnNode.replaceArg(InsnNode.java:130)\n \tat jadx.core.codegen.InsnGen.inlineMethod(InsnGen.java:892)\n \tat jadx.core.codegen.InsnGen.makeInvoke(InsnGen.java:669)\n \tat jadx.core.codegen.InsnGen.makeInsnBody(InsnGen.java:357)\n \tat jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:239)\n \t... 19 more\n */\n /*\n this = this;\n android.content.Context r0 = r2.val$context\n java.lang.String r1 = \"native_ad\"\n com.google.android.gms.internal.ads.zzwj.zza(r0, r1)\n com.google.android.gms.internal.ads.zzzh r0 = new com.google.android.gms.internal.ads.zzzh\n r0.<init>()\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzwo.zzpq():java.lang.Object\");\n }",
"public interface C45630d {\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$f */\n public interface C10555f {\n /* renamed from: es */\n void mo22049es(boolean z);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$d */\n public interface C19512d {\n /* renamed from: dd */\n void mo34676dd(int i, int i2);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$e */\n public interface C27129e {\n void onVisibilityChanged(boolean z);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$g */\n public enum C27130g {\n DEFAULT,\n FILL,\n CONTAIN,\n COVER;\n\n static {\n AppMethodBeat.m2505o(126548);\n }\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$a */\n public interface C38399a {\n void aDF();\n\n void aEZ();\n\n boolean aFA();\n\n void aFD();\n\n void aFE();\n\n boolean aFF();\n\n void aFG();\n\n void aFH();\n\n boolean aFI();\n\n void aFN();\n\n void aFO();\n\n boolean aFR();\n\n void aFy();\n\n void hide();\n\n void onDestroy();\n\n void seek(int i);\n\n void setDanmakuBtnOnClickListener(C10555f c10555f);\n\n void setDanmakuBtnOpen(boolean z);\n\n void setExitFullScreenBtnOnClickListener(OnClickListener onClickListener);\n\n void setFullScreenBtnOnClickListener(OnClickListener onClickListener);\n\n void setIplaySeekCallback(C42594c c42594c);\n\n void setMuteBtnOnClickListener(OnClickListener onClickListener);\n\n void setMuteBtnState(boolean z);\n\n void setOnPlayButtonClickListener(OnClickListener onClickListener);\n\n void setOnUpdateProgressLenListener(C19512d c19512d);\n\n void setOnVisibilityChangedListener(C27129e c27129e);\n\n void setPlayBtnInCenterPosition(boolean z);\n\n void setShowControlProgress(boolean z);\n\n void setShowDanmakuBtn(boolean z);\n\n void setShowFullScreenBtn(boolean z);\n\n void setShowMuteBtn(boolean z);\n\n void setShowPlayBtn(boolean z);\n\n void setShowProgress(boolean z);\n\n void setStatePorter(C38400h c38400h);\n\n void setTitle(String str);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$h */\n public interface C38400h {\n int aFg();\n\n int aFh();\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$b */\n public interface C42593b {\n /* renamed from: H */\n void mo34677H(String str, int i, int i2);\n\n void aFq();\n\n void aFr();\n\n void aFs();\n\n void aFt();\n\n void aFu();\n\n void aFv();\n\n /* renamed from: de */\n void mo34684de(int i, int i2);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$c */\n public interface C42594c {\n void aFw();\n\n /* renamed from: oA */\n void mo22044oA(int i);\n }\n\n void aEX();\n\n void akV();\n\n void akW();\n\n /* renamed from: as */\n boolean mo61579as(float f);\n\n /* renamed from: c */\n void mo61580c(boolean z, String str, int i);\n\n /* renamed from: e */\n boolean mo61581e(double d, boolean z);\n\n int getCacheTimeSec();\n\n int getCurrPosMs();\n\n int getCurrPosSec();\n\n int getVideoDurationSec();\n\n boolean isLive();\n\n boolean isPlaying();\n\n boolean pause();\n\n /* renamed from: s */\n boolean mo61590s(double d);\n\n void setControlBar(C38399a c38399a);\n\n void setIMMVideoViewCallback(C42593b c42593b);\n\n void setMute(boolean z);\n\n void setScaleType(C27130g c27130g);\n\n void setVideoSource(int i);\n\n void start();\n\n void stop();\n}",
"private void acquireGooglePlayServices() {\r\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\r\n final int connectionStatusCode = apiAvailability.isGooglePlayServicesAvailable(getActivity());\r\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\r\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\r\n }\r\n }",
"private final com.google.android.gms.internal.p000firebaseperf.zzbu zzw() {\n /*\n r15 = this;\n java.lang.String r0 = \"FirebasePerformance\"\n r1 = 0\n java.io.BufferedReader r2 = new java.io.BufferedReader // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n java.io.FileReader r3 = new java.io.FileReader // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n java.lang.String r4 = r15.zzba // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n r3.<init>(r4) // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n r2.<init>(r3) // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n java.util.concurrent.TimeUnit r3 = java.util.concurrent.TimeUnit.MILLISECONDS // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r4 = java.lang.System.currentTimeMillis() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r3 = r3.toMicros(r4) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n java.lang.String r5 = r2.readLine() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n java.lang.String r6 = \" \"\n java.lang.String[] r5 = r5.split(r6) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r6 = 13\n r6 = r5[r6] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r6 = java.lang.Long.parseLong(r6) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r8 = 15\n r8 = r5[r8] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r8 = java.lang.Long.parseLong(r8) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r10 = 14\n r10 = r5[r10] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r10 = java.lang.Long.parseLong(r10) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r12 = 16\n r5 = r5[r12] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r12 = java.lang.Long.parseLong(r5) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r5 = com.google.android.gms.internal.p000firebaseperf.zzbu.zzdl() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r3 = r5.zzu(r3) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r10 = r10 + r12\n long r4 = r15.zzd(r10) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r3 = r3.zzw(r4) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r6 = r6 + r8\n long r4 = r15.zzd(r6) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r3 = r3.zzv(r4) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzga r3 = r3.zzhr() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzep r3 = (com.google.android.gms.internal.p000firebaseperf.zzep) r3 // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu r3 = (com.google.android.gms.internal.p000firebaseperf.zzbu) r3 // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r2.close() // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n return r3\n L_0x0069:\n r3 = move-exception\n r4 = r1\n goto L_0x0072\n L_0x006c:\n r3 = move-exception\n throw r3 // Catch:{ all -> 0x006e }\n L_0x006e:\n r4 = move-exception\n r14 = r4\n r4 = r3\n r3 = r14\n L_0x0072:\n if (r4 == 0) goto L_0x007d\n r2.close() // Catch:{ Throwable -> 0x0078 }\n goto L_0x0080\n L_0x0078:\n r2 = move-exception\n com.google.android.gms.internal.p000firebaseperf.zzak.zza(r4, r2) // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n goto L_0x0080\n L_0x007d:\n r2.close() // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n L_0x0080:\n throw r3 // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n L_0x0081:\n r2 = move-exception\n goto L_0x0086\n L_0x0083:\n r2 = move-exception\n goto L_0x0086\n L_0x0085:\n r2 = move-exception\n L_0x0086:\n java.lang.String r3 = \"Unexpected '/proc/[pid]/stat' file format encountered: \"\n java.lang.String r2 = r2.getMessage()\n java.lang.String r2 = java.lang.String.valueOf(r2)\n int r4 = r2.length()\n if (r4 == 0) goto L_0x009b\n java.lang.String r2 = r3.concat(r2)\n goto L_0x00a0\n L_0x009b:\n java.lang.String r2 = new java.lang.String\n r2.<init>(r3)\n L_0x00a0:\n android.util.Log.w(r0, r2)\n goto L_0x00c2\n L_0x00a4:\n r2 = move-exception\n java.lang.String r3 = \"Unable to read 'proc/[pid]/stat' file: \"\n java.lang.String r2 = r2.getMessage()\n java.lang.String r2 = java.lang.String.valueOf(r2)\n int r4 = r2.length()\n if (r4 == 0) goto L_0x00ba\n java.lang.String r2 = r3.concat(r2)\n goto L_0x00bf\n L_0x00ba:\n java.lang.String r2 = new java.lang.String\n r2.<init>(r3)\n L_0x00bf:\n android.util.Log.w(r0, r2)\n L_0x00c2:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.p000firebaseperf.zzap.zzw():com.google.android.gms.internal.firebase-perf.zzbu\");\n }",
"private static Registration m2626a(Cursor cursor, @NonNull C4022a aVar) {\n boolean z = false;\n Registration.C4128a a = Registration.m3386c().mo56972j(aVar.mo56545b(cursor.getString(cursor.getColumnIndex(\"et_app_id\")))).mo56957a(C4029h.m2778c(aVar.mo56545b(cursor.getString(cursor.getColumnIndex(\"attributes\"))))).mo56958a(C4029h.m2780d(aVar.mo56545b(cursor.getString(cursor.getColumnIndex(\"tags\"))))).mo56969g(aVar.mo56545b(cursor.getString(cursor.getColumnIndex(\"subscriber_key\")))).mo56956a(aVar.mo56545b(cursor.getString(cursor.getColumnIndex(C4003a.f2858s)))).mo56963c(aVar.mo56545b(cursor.getString(cursor.getColumnIndex(C4003a.f2854o)))).mo56961b(cursor.getString(cursor.getColumnIndex(\"device_id\"))).mo56966d(cursor.getInt(cursor.getColumnIndex(\"push_enabled\")) == 1).mo56962b(cursor.getInt(cursor.getColumnIndex(\"location_enabled\")) == 1).mo56964c(cursor.getInt(cursor.getColumnIndex(C4003a.f2851l)) == 1).mo56973k(cursor.getString(cursor.getColumnIndex(\"locale\"))).mo56955a(cursor.getInt(cursor.getColumnIndex(\"timezone\")));\n if (cursor.getInt(cursor.getColumnIndex(\"dst\")) == 1) {\n z = true;\n }\n Registration b = a.mo56959a(z).mo56971i(cursor.getString(cursor.getColumnIndex(\"hwid\"))).mo56970h(cursor.getString(cursor.getColumnIndex(\"platform\"))).mo56968f(cursor.getString(cursor.getColumnIndex(\"platform_version\"))).mo56967e(cursor.getString(cursor.getColumnIndex(C4003a.f2856q))).mo56965d(cursor.getString(cursor.getColumnIndex(C4003a.f2857r))).mo56981b();\n b.mo56974a(cursor.getInt(cursor.getColumnIndex(\"id\")));\n return b;\n }",
"C1477ma(java.lang.String r16, com.google.android.gms.internal.ads.awd r17) {\n /*\n r15 = this;\n r0 = r17\n java.lang.String r3 = r0.f2954b\n long r4 = r0.f2955c\n long r6 = r0.f2956d\n long r8 = r0.f2957e\n long r10 = r0.f2958f\n java.util.List<com.google.android.gms.internal.ads.bff> r1 = r0.f2960h\n if (r1 == 0) goto L_0x0014\n java.util.List<com.google.android.gms.internal.ads.bff> r1 = r0.f2960h\n r12 = r1\n goto L_0x0049\n L_0x0014:\n java.util.Map<java.lang.String, java.lang.String> r1 = r0.f2959g\n java.util.ArrayList r2 = new java.util.ArrayList\n int r12 = r1.size()\n r2.<init>(r12)\n java.util.Set r1 = r1.entrySet()\n java.util.Iterator r1 = r1.iterator()\n L_0x0027:\n boolean r12 = r1.hasNext()\n if (r12 == 0) goto L_0x0048\n java.lang.Object r12 = r1.next()\n java.util.Map$Entry r12 = (java.util.Map.Entry) r12\n com.google.android.gms.internal.ads.bff r13 = new com.google.android.gms.internal.ads.bff\n java.lang.Object r14 = r12.getKey()\n java.lang.String r14 = (java.lang.String) r14\n java.lang.Object r12 = r12.getValue()\n java.lang.String r12 = (java.lang.String) r12\n r13.<init>(r14, r12)\n r2.add(r13)\n goto L_0x0027\n L_0x0048:\n r12 = r2\n L_0x0049:\n r1 = r15\n r2 = r16\n r1.<init>(r2, r3, r4, r6, r8, r10, r12)\n byte[] r0 = r0.f2953a\n int r0 = r0.length\n long r0 = (long) r0\n r2 = r15\n r2.f5708a = r0\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.C1477ma.<init>(java.lang.String, com.google.android.gms.internal.ads.awd):void\");\n }",
"public static String m21394b(Context context) {\n String str = \"wns_ac\";\n try {\n if (f16891b == null) {\n f16891b = C5206p.m21472b(context, str);\n if (TextUtils.isEmpty(f16891b)) {\n f16891b = C5144a.m21266a(context).mo26750a();\n C5206p.m21471a(context, str, f16891b);\n }\n }\n } catch (Throwable unused) {\n C5205o.m21462a(\"不存在google play\");\n }\n return f16891b;\n }",
"public final void mo14764a() {\n /*\n r9 = this;\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r2 = r9.f10846a\n monitor-enter(r2)\n int r3 = r9.f10847b // Catch:{ all -> 0x004d }\n int r4 = com.google.android.gms.internal.ads.C2349r5.f10765b // Catch:{ all -> 0x004d }\n if (r3 != r4) goto L_0x002c\n long r5 = r9.f10848c // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzaaq<java.lang.Long> r3 = com.google.android.gms.internal.ads.zzabf.zzcwh // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzabb r7 = com.google.android.gms.internal.ads.zzwq.zzqe() // Catch:{ all -> 0x004d }\n java.lang.Object r3 = r7.zzd(r3) // Catch:{ all -> 0x004d }\n java.lang.Long r3 = (java.lang.Long) r3 // Catch:{ all -> 0x004d }\n long r7 = r3.longValue() // Catch:{ all -> 0x004d }\n long r5 = r5 + r7\n int r3 = (r5 > r0 ? 1 : (r5 == r0 ? 0 : -1))\n if (r3 > 0) goto L_0x002c\n int r0 = com.google.android.gms.internal.ads.C2349r5.f10764a // Catch:{ all -> 0x004d }\n r9.f10847b = r0 // Catch:{ all -> 0x004d }\n L_0x002c:\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r3 = r9.f10846a\n monitor-enter(r3)\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n r5 = 2\n if (r2 == r5) goto L_0x003f\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x003f:\n r2 = 3\n r9.f10847b = r2 // Catch:{ all -> 0x004a }\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n if (r2 != r4) goto L_0x0048\n r9.f10848c = r0 // Catch:{ all -> 0x004a }\n L_0x0048:\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x004a:\n r0 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n throw r0\n L_0x004d:\n r0 = move-exception\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.C2386s5.mo14764a():void\");\n }",
"public final void m12868a(int r5, int r6, android.content.Intent r7) {\n /*\n r4 = this;\n r0 = 1;\n r1 = 0;\n switch(r5) {\n case 1: goto L_0x0017;\n case 2: goto L_0x000c;\n default: goto L_0x0005;\n };\n L_0x0005:\n r0 = r1;\n L_0x0006:\n if (r0 == 0) goto L_0x0027;\n L_0x0008:\n m12867b(r4);\n L_0x000b:\n return;\n L_0x000c:\n r2 = r4.o();\n r2 = com.google.android.gms.common.GoogleApiAvailability.a(r2);\n if (r2 != 0) goto L_0x0005;\n L_0x0016:\n goto L_0x0006;\n L_0x0017:\n r2 = -1;\n if (r6 == r2) goto L_0x0006;\n L_0x001a:\n if (r6 != 0) goto L_0x0005;\n L_0x001c:\n r0 = new com.google.android.gms.common.ConnectionResult;\n r2 = 13;\n r3 = 0;\n r0.<init>(r2, r3);\n r4.f6901e = r0;\n goto L_0x0005;\n L_0x0027:\n r0 = r4.f6900d;\n r1 = r4.f6901e;\n m12865a(r4, r0, r1);\n goto L_0x000b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzmr.a(int, int, android.content.Intent):void\");\n }",
"private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(mActivity);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n Log.d(Util.TAG_GOOGLE, \"\" + connectionStatusCode);\n // showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }",
"private static void zza(com.google.android.gms.internal.gtm.zzug r2, java.lang.Object r3) {\n /*\n com.google.android.gms.internal.gtm.zzre.checkNotNull(r3)\n int[] r0 = com.google.android.gms.internal.gtm.zzqu.zzaxr\n com.google.android.gms.internal.gtm.zzul r2 = r2.zzrs()\n int r2 = r2.ordinal()\n r2 = r0[r2]\n r0 = 1\n r1 = 0\n switch(r2) {\n case 1: goto L_0x0040;\n case 2: goto L_0x003d;\n case 3: goto L_0x003a;\n case 4: goto L_0x0037;\n case 5: goto L_0x0034;\n case 6: goto L_0x0031;\n case 7: goto L_0x0028;\n case 8: goto L_0x001e;\n case 9: goto L_0x0015;\n default: goto L_0x0014;\n }\n L_0x0014:\n goto L_0x0043\n L_0x0015:\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzsk\n if (r2 != 0) goto L_0x0026\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzrn\n if (r2 == 0) goto L_0x0043\n goto L_0x0026\n L_0x001e:\n boolean r2 = r3 instanceof java.lang.Integer\n if (r2 != 0) goto L_0x0026\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzrf\n if (r2 == 0) goto L_0x0043\n L_0x0026:\n r1 = 1\n goto L_0x0043\n L_0x0028:\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzps\n if (r2 != 0) goto L_0x0026\n boolean r2 = r3 instanceof byte[]\n if (r2 == 0) goto L_0x0043\n goto L_0x0026\n L_0x0031:\n boolean r0 = r3 instanceof java.lang.String\n goto L_0x0042\n L_0x0034:\n boolean r0 = r3 instanceof java.lang.Boolean\n goto L_0x0042\n L_0x0037:\n boolean r0 = r3 instanceof java.lang.Double\n goto L_0x0042\n L_0x003a:\n boolean r0 = r3 instanceof java.lang.Float\n goto L_0x0042\n L_0x003d:\n boolean r0 = r3 instanceof java.lang.Long\n goto L_0x0042\n L_0x0040:\n boolean r0 = r3 instanceof java.lang.Integer\n L_0x0042:\n r1 = r0\n L_0x0043:\n if (r1 == 0) goto L_0x0046\n return\n L_0x0046:\n java.lang.IllegalArgumentException r2 = new java.lang.IllegalArgumentException\n java.lang.String r3 = \"Wrong object type used with protocol message reflection.\"\n r2.<init>(r3)\n goto L_0x004f\n L_0x004e:\n throw r2\n L_0x004f:\n goto L_0x004e\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.gtm.zzqt.zza(com.google.android.gms.internal.gtm.zzug, java.lang.Object):void\");\n }",
"private final void zaa(java.lang.StringBuilder r10, java.util.Map<java.lang.String, com.google.android.gms.common.server.response.FastJsonResponse.Field<?, ?>> r11, android.os.Parcel r12) {\n /*\n r9 = this;\n android.util.SparseArray r0 = new android.util.SparseArray\n r0.<init>()\n java.util.Set r11 = r11.entrySet()\n java.util.Iterator r11 = r11.iterator()\n L_0x000d:\n boolean r1 = r11.hasNext()\n if (r1 == 0) goto L_0x0027\n java.lang.Object r1 = r11.next()\n java.util.Map$Entry r1 = (java.util.Map.Entry) r1\n java.lang.Object r2 = r1.getValue()\n com.google.android.gms.common.server.response.FastJsonResponse$Field r2 = (com.google.android.gms.common.server.response.FastJsonResponse.Field) r2\n int r2 = r2.getSafeParcelableFieldId()\n r0.put(r2, r1)\n goto L_0x000d\n L_0x0027:\n r11 = 123(0x7b, float:1.72E-43)\n r10.append(r11)\n int r11 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.validateObjectHeader(r12)\n r1 = 1\n r2 = 0\n r3 = 0\n L_0x0033:\n int r4 = r12.dataPosition()\n if (r4 >= r11) goto L_0x0262\n int r4 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readHeader(r12)\n int r5 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.getFieldId(r4)\n java.lang.Object r5 = r0.get(r5)\n java.util.Map$Entry r5 = (java.util.Map.Entry) r5\n if (r5 == 0) goto L_0x0033\n if (r3 == 0) goto L_0x0050\n java.lang.String r3 = \",\"\n r10.append(r3)\n L_0x0050:\n java.lang.Object r3 = r5.getKey()\n java.lang.String r3 = (java.lang.String) r3\n java.lang.Object r5 = r5.getValue()\n com.google.android.gms.common.server.response.FastJsonResponse$Field r5 = (com.google.android.gms.common.server.response.FastJsonResponse.Field) r5\n java.lang.String r6 = \"\\\"\"\n r10.append(r6)\n r10.append(r3)\n java.lang.String r3 = \"\\\":\"\n r10.append(r3)\n boolean r3 = r5.zacn()\n if (r3 == 0) goto L_0x010a\n int r3 = r5.zapt\n switch(r3) {\n case 0: goto L_0x00f9;\n case 1: goto L_0x00f4;\n case 2: goto L_0x00eb;\n case 3: goto L_0x00e2;\n case 4: goto L_0x00d9;\n case 5: goto L_0x00d4;\n case 6: goto L_0x00cb;\n case 7: goto L_0x00c6;\n case 8: goto L_0x00c1;\n case 9: goto L_0x00c1;\n case 10: goto L_0x0097;\n case 11: goto L_0x008f;\n default: goto L_0x0074;\n }\n L_0x0074:\n java.lang.IllegalArgumentException r10 = new java.lang.IllegalArgumentException\n int r11 = r5.zapt\n r12 = 36\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n r0.<init>(r12)\n java.lang.String r12 = \"Unknown field out type = \"\n r0.append(r12)\n r0.append(r11)\n java.lang.String r11 = r0.toString()\n r10.<init>(r11)\n throw r10\n L_0x008f:\n java.lang.IllegalArgumentException r10 = new java.lang.IllegalArgumentException\n java.lang.String r11 = \"Method does not accept concrete type.\"\n r10.<init>(r11)\n throw r10\n L_0x0097:\n android.os.Bundle r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBundle(r12, r4)\n java.util.HashMap r4 = new java.util.HashMap\n r4.<init>()\n java.util.Set r6 = r3.keySet()\n java.util.Iterator r6 = r6.iterator()\n L_0x00a8:\n boolean r7 = r6.hasNext()\n if (r7 == 0) goto L_0x00bc\n java.lang.Object r7 = r6.next()\n java.lang.String r7 = (java.lang.String) r7\n java.lang.String r8 = r3.getString(r7)\n r4.put(r7, r8)\n goto L_0x00a8\n L_0x00bc:\n java.lang.Object r3 = zab(r5, (java.lang.Object) r4)\n goto L_0x0105\n L_0x00c1:\n byte[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createByteArray(r12, r4)\n goto L_0x0101\n L_0x00c6:\n java.lang.String r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createString(r12, r4)\n goto L_0x0101\n L_0x00cb:\n boolean r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readBoolean(r12, r4)\n java.lang.Boolean r3 = java.lang.Boolean.valueOf(r3)\n goto L_0x0101\n L_0x00d4:\n java.math.BigDecimal r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigDecimal(r12, r4)\n goto L_0x0101\n L_0x00d9:\n double r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readDouble(r12, r4)\n java.lang.Double r3 = java.lang.Double.valueOf(r3)\n goto L_0x0101\n L_0x00e2:\n float r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readFloat(r12, r4)\n java.lang.Float r3 = java.lang.Float.valueOf(r3)\n goto L_0x0101\n L_0x00eb:\n long r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readLong(r12, r4)\n java.lang.Long r3 = java.lang.Long.valueOf(r3)\n goto L_0x0101\n L_0x00f4:\n java.math.BigInteger r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigInteger(r12, r4)\n goto L_0x0101\n L_0x00f9:\n int r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readInt(r12, r4)\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3)\n L_0x0101:\n java.lang.Object r3 = zab(r5, (java.lang.Object) r3)\n L_0x0105:\n r9.zab((java.lang.StringBuilder) r10, (com.google.android.gms.common.server.response.FastJsonResponse.Field<?, ?>) r5, (java.lang.Object) r3)\n goto L_0x025f\n L_0x010a:\n boolean r3 = r5.zapu\n if (r3 == 0) goto L_0x0188\n java.lang.String r3 = \"[\"\n r10.append(r3)\n int r3 = r5.zapt\n switch(r3) {\n case 0: goto L_0x017d;\n case 1: goto L_0x0175;\n case 2: goto L_0x016d;\n case 3: goto L_0x0165;\n case 4: goto L_0x015d;\n case 5: goto L_0x0158;\n case 6: goto L_0x0150;\n case 7: goto L_0x0148;\n case 8: goto L_0x0140;\n case 9: goto L_0x0140;\n case 10: goto L_0x0140;\n case 11: goto L_0x0120;\n default: goto L_0x0118;\n }\n L_0x0118:\n java.lang.IllegalStateException r10 = new java.lang.IllegalStateException\n java.lang.String r11 = \"Unknown field type out.\"\n r10.<init>(r11)\n throw r10\n L_0x0120:\n android.os.Parcel[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createParcelArray(r12, r4)\n int r4 = r3.length\n r6 = 0\n L_0x0126:\n if (r6 >= r4) goto L_0x0184\n if (r6 <= 0) goto L_0x012f\n java.lang.String r7 = \",\"\n r10.append(r7)\n L_0x012f:\n r7 = r3[r6]\n r7.setDataPosition(r2)\n java.util.Map r7 = r5.zacq()\n r8 = r3[r6]\n r9.zaa((java.lang.StringBuilder) r10, (java.util.Map<java.lang.String, com.google.android.gms.common.server.response.FastJsonResponse.Field<?, ?>>) r7, (android.os.Parcel) r8)\n int r6 = r6 + 1\n goto L_0x0126\n L_0x0140:\n java.lang.UnsupportedOperationException r10 = new java.lang.UnsupportedOperationException\n java.lang.String r11 = \"List of type BASE64, BASE64_URL_SAFE, or STRING_MAP is not supported\"\n r10.<init>(r11)\n throw r10\n L_0x0148:\n java.lang.String[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createStringArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeStringArray(r10, r3)\n goto L_0x0184\n L_0x0150:\n boolean[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBooleanArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (boolean[]) r3)\n goto L_0x0184\n L_0x0158:\n java.math.BigDecimal[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigDecimalArray(r12, r4)\n goto L_0x0179\n L_0x015d:\n double[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createDoubleArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (double[]) r3)\n goto L_0x0184\n L_0x0165:\n float[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createFloatArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (float[]) r3)\n goto L_0x0184\n L_0x016d:\n long[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createLongArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (long[]) r3)\n goto L_0x0184\n L_0x0175:\n java.math.BigInteger[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigIntegerArray(r12, r4)\n L_0x0179:\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (T[]) r3)\n goto L_0x0184\n L_0x017d:\n int[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createIntArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (int[]) r3)\n L_0x0184:\n java.lang.String r3 = \"]\"\n goto L_0x0227\n L_0x0188:\n int r3 = r5.zapt\n switch(r3) {\n case 0: goto L_0x0258;\n case 1: goto L_0x0250;\n case 2: goto L_0x0248;\n case 3: goto L_0x0240;\n case 4: goto L_0x0238;\n case 5: goto L_0x0233;\n case 6: goto L_0x022b;\n case 7: goto L_0x0215;\n case 8: goto L_0x0207;\n case 9: goto L_0x01f9;\n case 10: goto L_0x01a5;\n case 11: goto L_0x0195;\n default: goto L_0x018d;\n }\n L_0x018d:\n java.lang.IllegalStateException r10 = new java.lang.IllegalStateException\n java.lang.String r11 = \"Unknown field type out\"\n r10.<init>(r11)\n throw r10\n L_0x0195:\n android.os.Parcel r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createParcel(r12, r4)\n r3.setDataPosition(r2)\n java.util.Map r4 = r5.zacq()\n r9.zaa((java.lang.StringBuilder) r10, (java.util.Map<java.lang.String, com.google.android.gms.common.server.response.FastJsonResponse.Field<?, ?>>) r4, (android.os.Parcel) r3)\n goto L_0x025f\n L_0x01a5:\n android.os.Bundle r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBundle(r12, r4)\n java.util.Set r4 = r3.keySet()\n r4.size()\n java.lang.String r5 = \"{\"\n r10.append(r5)\n java.util.Iterator r4 = r4.iterator()\n r5 = 1\n L_0x01ba:\n boolean r6 = r4.hasNext()\n if (r6 == 0) goto L_0x01f6\n java.lang.Object r6 = r4.next()\n java.lang.String r6 = (java.lang.String) r6\n if (r5 != 0) goto L_0x01cd\n java.lang.String r5 = \",\"\n r10.append(r5)\n L_0x01cd:\n java.lang.String r5 = \"\\\"\"\n r10.append(r5)\n r10.append(r6)\n java.lang.String r5 = \"\\\"\"\n r10.append(r5)\n java.lang.String r5 = \":\"\n r10.append(r5)\n java.lang.String r5 = \"\\\"\"\n r10.append(r5)\n java.lang.String r5 = r3.getString(r6)\n java.lang.String r5 = com.google.android.gms.common.util.JsonUtils.escapeString(r5)\n r10.append(r5)\n java.lang.String r5 = \"\\\"\"\n r10.append(r5)\n r5 = 0\n goto L_0x01ba\n L_0x01f6:\n java.lang.String r3 = \"}\"\n goto L_0x0227\n L_0x01f9:\n byte[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createByteArray(r12, r4)\n java.lang.String r4 = \"\\\"\"\n r10.append(r4)\n java.lang.String r3 = com.google.android.gms.common.util.Base64Utils.encodeUrlSafe(r3)\n goto L_0x0222\n L_0x0207:\n byte[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createByteArray(r12, r4)\n java.lang.String r4 = \"\\\"\"\n r10.append(r4)\n java.lang.String r3 = com.google.android.gms.common.util.Base64Utils.encode(r3)\n goto L_0x0222\n L_0x0215:\n java.lang.String r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createString(r12, r4)\n java.lang.String r4 = \"\\\"\"\n r10.append(r4)\n java.lang.String r3 = com.google.android.gms.common.util.JsonUtils.escapeString(r3)\n L_0x0222:\n r10.append(r3)\n java.lang.String r3 = \"\\\"\"\n L_0x0227:\n r10.append(r3)\n goto L_0x025f\n L_0x022b:\n boolean r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readBoolean(r12, r4)\n r10.append(r3)\n goto L_0x025f\n L_0x0233:\n java.math.BigDecimal r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigDecimal(r12, r4)\n goto L_0x0254\n L_0x0238:\n double r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readDouble(r12, r4)\n r10.append(r3)\n goto L_0x025f\n L_0x0240:\n float r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readFloat(r12, r4)\n r10.append(r3)\n goto L_0x025f\n L_0x0248:\n long r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readLong(r12, r4)\n r10.append(r3)\n goto L_0x025f\n L_0x0250:\n java.math.BigInteger r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigInteger(r12, r4)\n L_0x0254:\n r10.append(r3)\n goto L_0x025f\n L_0x0258:\n int r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readInt(r12, r4)\n r10.append(r3)\n L_0x025f:\n r3 = 1\n goto L_0x0033\n L_0x0262:\n int r0 = r12.dataPosition()\n if (r0 != r11) goto L_0x026e\n r11 = 125(0x7d, float:1.75E-43)\n r10.append(r11)\n return\n L_0x026e:\n com.google.android.gms.common.internal.safeparcel.SafeParcelReader$ParseException r10 = new com.google.android.gms.common.internal.safeparcel.SafeParcelReader$ParseException\n r0 = 37\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>(r0)\n java.lang.String r0 = \"Overread allowed size end=\"\n r1.append(r0)\n r1.append(r11)\n java.lang.String r11 = r1.toString()\n r10.<init>(r11, r12)\n throw r10\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.server.response.SafeParcelResponse.zaa(java.lang.StringBuilder, java.util.Map, android.os.Parcel):void\");\n }",
"public void mo7373a(C1320b bVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n this.f3425ky.transact(8, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }",
"public String zzfL() {\n return \"com.google.android.gms.auth.api.consent.internal.IConsentService\";\n }",
"private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(getActivity());\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }",
"public interface C5551s extends IInterface {\n\n /* renamed from: com.google.android.m4b.maps.x.s$a */\n public static abstract class C6830a extends Binder implements C5551s {\n\n /* renamed from: com.google.android.m4b.maps.x.s$a$a */\n static class C6829a implements C5551s {\n /* renamed from: a */\n private IBinder f25372a;\n\n C6829a(IBinder iBinder) {\n this.f25372a = iBinder;\n }\n\n public final IBinder asBinder() {\n return this.f25372a;\n }\n\n /* renamed from: a */\n public final void mo5802a(LatLng latLng) {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.internal.IOnMapLongClickListener\");\n if (latLng != null) {\n obtain.writeInt(1);\n latLng.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f25372a.transact(1, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n public C6830a() {\n attachInterface(this, \"com.google.android.m4b.maps.internal.IOnMapLongClickListener\");\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) {\n if (i == 1) {\n parcel.enforceInterface(\"com.google.android.m4b.maps.internal.IOnMapLongClickListener\");\n mo5802a(parcel.readInt() != 0 ? LatLng.CREATOR.m23867a(parcel) : 0);\n parcel2.writeNoException();\n return true;\n } else if (i != 1598968902) {\n return super.onTransact(i, parcel, parcel2, i2);\n } else {\n parcel2.writeString(\"com.google.android.m4b.maps.internal.IOnMapLongClickListener\");\n return true;\n }\n }\n }\n\n /* renamed from: a */\n void mo5802a(LatLng latLng);\n}",
"public String mo27384k() {\n return \"com.google.android.location.internal.GoogleLocationManagerService.START\";\n }",
"protected String getServiceId(){\n return \"com.google.android.gms.nearby.messages.samples.nearbydevices\";\n }",
"public interface C35590c {\n /* renamed from: a */\n void mo56317a(Context context, Bundle bundle, C4541a c4541a);\n}",
"public interface ApplicationConstants {\n\n // Gimnazjum Chocianow\n static final String SCHOOL_SERVER_1 = \"http://gimchocianow.pl\";\n\n // ZS Chocianow\n static final String SCHOOL_SERVER_2 = \"http://zschocianow.pl\";\n\n\n // Php Application URL to store Reg ID created\n static final String APP_SERVER_URL_INSERT_USER = \"/replacement_gcm/insertuser.php\";\n static final String APP_SERVER_URL_REMOVE_USER = \"/replacement_gcm/removeuser.php\";\n\n // Php Application URL to store Data Set of User\n static final String APP_SERVER_URL_INSERT_USER_DATA_IDS = \"/replacement_gcm/insertuserset.php\";\n static final String APP_SERVER_URL_INSERT_USER_MODULES = \"/replacement_gcm/insertusermodules.php\";\n\n // Php Application URL schedule\n static final String APP_SERVER_URL_SCHEDULE = \"/plan/\";\n\n // Php Application URL repl data\n static final String APP_SERVER_URL_REPL_DATA = \"/json/replacements-data.php\";\n\n // Php Application URL repl\n static final String APP_SERVER_URL_REPL = \"/json/replacements.php?date=\";\n\n // Php Application URL lesson plan\n static final String APP_SERVER_URL_LESSON_PLAN = \"/json/lessonplan.php\";\n\n\n\n\n // Google Project Number\n static final String GOOGLE_PROJ_ID = \"670012122702\";\n static final String MSG_KEY = \"m\";\n\n //Schedule list constants\n static final int ROUTE_HOME = -786342765;\n static final int ROUTE_LEVEL_0 = -218312;\n\n //Intent constants\n static final String INTENT_INSTITUTION_ID = \"INTENT_INSTITUTION_ID\";\n static final String INTENT_PAGE_NUMBER = \"INTENT_PAGE_NUMBER\";\n static final String INTENT_NEWS_ID = \"INTENT_NEWS_ID\";\n\n static final String INTENT_LESSONPLAN_URL = \"INTENT_LESSONPLAN_URL\";\n static final String INTENT_LESSONPLAN_NAME = \"INTENT_LESSONPLAN_NAME\";\n\n}",
"public static C1326d m3858aA(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n return (queryLocalInterface == null || !(queryLocalInterface instanceof C1326d)) ? new C1328a(iBinder) : (C1326d) queryLocalInterface;\n }",
"private final void m31778a(String str, boolean z) {\n boolean z2;\n if (!TextUtils.isEmpty(str)) {\n if (z) {\n try {\n if (this.f23849b == null) {\n if (!\"com.google.android.gms\".equals(this.f23850c) && !C9951o.m31001a(this.f23848a.mo25895b(), Binder.getCallingUid())) {\n if (!C9923j.m30933a(this.f23848a.mo25895b()).mo25450a(Binder.getCallingUid())) {\n z2 = false;\n this.f23849b = Boolean.valueOf(z2);\n }\n }\n z2 = true;\n this.f23849b = Boolean.valueOf(z2);\n }\n if (this.f23849b.booleanValue()) {\n return;\n }\n } catch (SecurityException e) {\n this.f23848a.mo25898e().mo25874t().mo25909a(\"Measurement Service called with invalid calling package. appId\", C10099k3.m31423a(str));\n throw e;\n }\n }\n if (this.f23850c == null && C9832i.m30627a(this.f23848a.mo25895b(), Binder.getCallingUid(), str)) {\n this.f23850c = str;\n }\n if (!str.equals(this.f23850c)) {\n throw new SecurityException(String.format(\"Unknown calling package name '%s'.\", new Object[]{str}));\n }\n return;\n }\n String str2 = \"Measurement Service called without app package\";\n this.f23848a.mo25898e().mo25874t().mo25908a(str2);\n throw new SecurityException(str2);\n }",
"public void m2108c() {\n /*\n r3 = this;\n r0 = \"Calling this from your main thread can lead to deadlock\";\n com.google.android.gms.common.internal.C1305x.m6628c(r0);\n monitor-enter(r3);\n r0 = r3.f1274g;\t Catch:{ all -> 0x002a }\n if (r0 == 0) goto L_0x000e;\n L_0x000a:\n r0 = r3.f1268a;\t Catch:{ all -> 0x002a }\n if (r0 != 0) goto L_0x0010;\n L_0x000e:\n monitor-exit(r3);\t Catch:{ all -> 0x002a }\n L_0x000f:\n return;\n L_0x0010:\n r0 = r3.f1270c;\t Catch:{ IllegalArgumentException -> 0x002d }\n if (r0 == 0) goto L_0x001f;\n L_0x0014:\n r0 = com.google.android.gms.common.stats.C1530b.m6956a();\t Catch:{ IllegalArgumentException -> 0x002d }\n r1 = r3.f1274g;\t Catch:{ IllegalArgumentException -> 0x002d }\n r2 = r3.f1268a;\t Catch:{ IllegalArgumentException -> 0x002d }\n r0.m6963a(r1, r2);\t Catch:{ IllegalArgumentException -> 0x002d }\n L_0x001f:\n r0 = 0;\n r3.f1270c = r0;\t Catch:{ all -> 0x002a }\n r0 = 0;\n r3.f1269b = r0;\t Catch:{ all -> 0x002a }\n r0 = 0;\n r3.f1268a = r0;\t Catch:{ all -> 0x002a }\n monitor-exit(r3);\t Catch:{ all -> 0x002a }\n goto L_0x000f;\n L_0x002a:\n r0 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x002a }\n throw r0;\n L_0x002d:\n r0 = move-exception;\n r1 = \"AdvertisingIdClient\";\n r2 = \"AdvertisingIdClient unbindService failed.\";\n android.util.Log.i(r1, r2, r0);\t Catch:{ all -> 0x002a }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.ads.c.a.c():void\");\n }",
"public abstract String getAndroidPackage();",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public void mo7385d(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(40, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }",
"public final synchronized com.google.android.m4b.maps.bu.C4910a m21843a(java.lang.String r10) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r9 = this;\n monitor-enter(r9);\n r0 = r9.f17909e;\t Catch:{ all -> 0x0056 }\n r1 = 0;\n if (r0 != 0) goto L_0x0008;\n L_0x0006:\n monitor-exit(r9);\n return r1;\n L_0x0008:\n r0 = r9.f17907c;\t Catch:{ all -> 0x0056 }\n r2 = com.google.android.m4b.maps.az.C4733b.m21060a(r10);\t Catch:{ all -> 0x0056 }\n r0 = r0.m21933a(r2, r1);\t Catch:{ all -> 0x0056 }\n if (r0 == 0) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0014:\n r2 = r0.length;\t Catch:{ all -> 0x0056 }\n r3 = 9;\t Catch:{ all -> 0x0056 }\n if (r2 <= r3) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0019:\n r2 = 0;\t Catch:{ all -> 0x0056 }\n r2 = r0[r2];\t Catch:{ all -> 0x0056 }\n r4 = 1;\t Catch:{ all -> 0x0056 }\n if (r2 == r4) goto L_0x0020;\t Catch:{ all -> 0x0056 }\n L_0x001f:\n goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0020:\n r5 = com.google.android.m4b.maps.bs.C4891e.m21914c(r0, r4);\t Catch:{ all -> 0x0056 }\n r2 = new com.google.android.m4b.maps.ar.a;\t Catch:{ all -> 0x0056 }\n r7 = com.google.android.m4b.maps.de.C5350x.f20104b;\t Catch:{ all -> 0x0056 }\n r2.<init>(r7);\t Catch:{ all -> 0x0056 }\n r7 = new java.io.ByteArrayInputStream;\t Catch:{ IOException -> 0x0052 }\n r8 = r0.length;\t Catch:{ IOException -> 0x0052 }\n r8 = r8 - r3;\t Catch:{ IOException -> 0x0052 }\n r7.<init>(r0, r3, r8);\t Catch:{ IOException -> 0x0052 }\n r2.m20818a(r7);\t Catch:{ IOException -> 0x0052 }\n r0 = 2;\n r0 = r2.m20843h(r0);\t Catch:{ all -> 0x0056 }\n r10 = r10.equals(r0);\t Catch:{ all -> 0x0056 }\n if (r10 != 0) goto L_0x0042;\n L_0x0040:\n monitor-exit(r9);\n return r1;\n L_0x0042:\n r10 = new com.google.android.m4b.maps.bu.a;\t Catch:{ all -> 0x0056 }\n r10.<init>();\t Catch:{ all -> 0x0056 }\n r10.m22018a(r4);\t Catch:{ all -> 0x0056 }\n r10.m22020a(r2);\t Catch:{ all -> 0x0056 }\n r10.m22016a(r5);\t Catch:{ all -> 0x0056 }\n monitor-exit(r9);\n return r10;\n L_0x0052:\n monitor-exit(r9);\n return r1;\n L_0x0054:\n monitor-exit(r9);\n return r1;\n L_0x0056:\n r10 = move-exception;\n monitor-exit(r9);\n throw r10;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.bs.b.a(java.lang.String):com.google.android.m4b.maps.bu.a\");\n }",
"public interface C1255b {\n /* renamed from: a */\n public static final C1255b f3973a = new C34771();\n /* renamed from: b */\n public static final C1255b f3974b = new C34782();\n /* renamed from: c */\n public static final C1255b f3975c = new C34793();\n /* renamed from: d */\n public static final C1255b f3976d = f3974b;\n\n /* renamed from: com.bumptech.glide.load.engine.c.a$b$1 */\n class C34771 implements C1255b {\n /* renamed from: a */\n public void mo1031a(Throwable th) {\n }\n\n C34771() {\n }\n }\n\n /* renamed from: com.bumptech.glide.load.engine.c.a$b$2 */\n class C34782 implements C1255b {\n C34782() {\n }\n\n /* renamed from: a */\n public void mo1031a(Throwable th) {\n if (th != null && Log.isLoggable(\"GlideExecutor\", 6)) {\n Log.e(\"GlideExecutor\", \"Request threw uncaught throwable\", th);\n }\n }\n }\n\n /* renamed from: com.bumptech.glide.load.engine.c.a$b$3 */\n class C34793 implements C1255b {\n C34793() {\n }\n\n /* renamed from: a */\n public void mo1031a(Throwable th) {\n if (th != null) {\n throw new RuntimeException(\"Request threw uncaught throwable\", th);\n }\n }\n }\n\n /* renamed from: a */\n void mo1031a(Throwable th);\n }",
"private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }",
"private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }",
"private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }",
"public interface C9715b {\n\n /* renamed from: com.tencent.mm.modelvideo.b$a */\n public interface C9714a {\n /* renamed from: ad */\n void mo9058ad(String str, int i);\n\n /* renamed from: h */\n void mo9075h(String str, int i, int i2);\n\n /* renamed from: ml */\n void mo21050ml(int i);\n\n void onDataAvailable(String str, int i, int i2);\n }\n\n /* renamed from: a */\n void mo8712a(C9714a c9714a);\n\n /* renamed from: dV */\n void mo8713dV(String str);\n\n boolean isVideoDataAvailable(String str, int i, int i2);\n\n /* renamed from: r */\n void mo8715r(String str, String str2, String str3);\n\n void requestVideoData(String str, int i, int i2);\n}",
"String m6946g() {\n return C1110i.m6017b(m6452q(), \"com.crashlytics.ApiEndpoint\");\n }",
"private static int zza(byte[] r1, int r2, int r3, com.google.android.gms.internal.clearcut.zzfl r4, java.lang.Class<?> r5, com.google.android.gms.internal.clearcut.zzay r6) throws java.io.IOException {\n /*\n r0 = com.google.android.gms.internal.clearcut.zzdt.zzgq;\n r4 = r4.ordinal();\n r4 = r0[r4];\n switch(r4) {\n case 1: goto L_0x0085;\n case 2: goto L_0x0080;\n case 3: goto L_0x0073;\n case 4: goto L_0x0066;\n case 5: goto L_0x0066;\n case 6: goto L_0x005d;\n case 7: goto L_0x005d;\n case 8: goto L_0x0054;\n case 9: goto L_0x0047;\n case 10: goto L_0x0047;\n case 11: goto L_0x0047;\n case 12: goto L_0x003c;\n case 13: goto L_0x003c;\n case 14: goto L_0x002f;\n case 15: goto L_0x0024;\n case 16: goto L_0x0019;\n case 17: goto L_0x0013;\n default: goto L_0x000b;\n };\n L_0x000b:\n r1 = new java.lang.RuntimeException;\n r2 = \"unsupported field type.\";\n r1.<init>(r2);\n throw r1;\n L_0x0013:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzd(r1, r2, r6);\n goto L_0x0099;\n L_0x0019:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzb(r1, r2, r6);\n r2 = r6.zzfe;\n r2 = com.google.android.gms.internal.clearcut.zzbk.zza(r2);\n goto L_0x0042;\n L_0x0024:\n r1 = com.google.android.gms.internal.clearcut.zzax.zza(r1, r2, r6);\n r2 = r6.zzfd;\n r2 = com.google.android.gms.internal.clearcut.zzbk.zzm(r2);\n goto L_0x004d;\n L_0x002f:\n r4 = com.google.android.gms.internal.clearcut.zzea.zzcm();\n r4 = r4.zze(r5);\n r1 = zza(r4, r1, r2, r3, r6);\n goto L_0x0099;\n L_0x003c:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzb(r1, r2, r6);\n r2 = r6.zzfe;\n L_0x0042:\n r2 = java.lang.Long.valueOf(r2);\n goto L_0x0051;\n L_0x0047:\n r1 = com.google.android.gms.internal.clearcut.zzax.zza(r1, r2, r6);\n r2 = r6.zzfd;\n L_0x004d:\n r2 = java.lang.Integer.valueOf(r2);\n L_0x0051:\n r6.zzff = r2;\n goto L_0x0099;\n L_0x0054:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzf(r1, r2);\n r1 = java.lang.Float.valueOf(r1);\n goto L_0x006e;\n L_0x005d:\n r3 = com.google.android.gms.internal.clearcut.zzax.zzd(r1, r2);\n r1 = java.lang.Long.valueOf(r3);\n goto L_0x007b;\n L_0x0066:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzc(r1, r2);\n r1 = java.lang.Integer.valueOf(r1);\n L_0x006e:\n r6.zzff = r1;\n r1 = r2 + 4;\n goto L_0x0099;\n L_0x0073:\n r3 = com.google.android.gms.internal.clearcut.zzax.zze(r1, r2);\n r1 = java.lang.Double.valueOf(r3);\n L_0x007b:\n r6.zzff = r1;\n r1 = r2 + 8;\n goto L_0x0099;\n L_0x0080:\n r1 = com.google.android.gms.internal.clearcut.zzax.zze(r1, r2, r6);\n goto L_0x0099;\n L_0x0085:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzb(r1, r2, r6);\n r2 = r6.zzfe;\n r4 = 0;\n r0 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r0 == 0) goto L_0x0093;\n L_0x0091:\n r2 = 1;\n goto L_0x0094;\n L_0x0093:\n r2 = 0;\n L_0x0094:\n r2 = java.lang.Boolean.valueOf(r2);\n goto L_0x0051;\n L_0x0099:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.clearcut.zzds.zza(byte[], int, int, com.google.android.gms.internal.clearcut.zzfl, java.lang.Class, com.google.android.gms.internal.clearcut.zzay):int\");\n }",
"private void zzbJ(int r6) {\n /*\n r5 = this;\n r0 = 8;\n if (r6 != r0) goto L_0x0035;\n L_0x0004:\n r1 = com.google.android.gms.internal.zzld.class;\n monitor-enter(r1);\n r0 = mTwiceBaseCache;\t Catch:{ all -> 0x0067 }\n if (r0 == 0) goto L_0x0030;\n L_0x000b:\n r2 = mTwiceBaseCache;\t Catch:{ all -> 0x0067 }\n r5.mArray = r2;\t Catch:{ all -> 0x0067 }\n r0 = 0;\n r0 = r2[r0];\t Catch:{ all -> 0x0067 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0067 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0067 }\n mTwiceBaseCache = r0;\t Catch:{ all -> 0x0067 }\n r0 = 1;\n r0 = r2[r0];\t Catch:{ all -> 0x0067 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0067 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0067 }\n r5.mHashes = r0;\t Catch:{ all -> 0x0067 }\n r0 = 0;\n r3 = 1;\n r4 = 0;\n r2[r3] = r4;\t Catch:{ all -> 0x0067 }\n r2[r0] = r4;\t Catch:{ all -> 0x0067 }\n r0 = mTwiceBaseCacheSize;\t Catch:{ all -> 0x0067 }\n r0 = r0 + -1;\n mTwiceBaseCacheSize = r0;\t Catch:{ all -> 0x0067 }\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n L_0x002f:\n return;\n L_0x0030:\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n r0 = com.google.android.gms.internal.zzkq.a;\t Catch:{ ClassCastException -> 0x006a }\n if (r0 == 0) goto L_0x006d;\n L_0x0035:\n r0 = 4;\n if (r6 != r0) goto L_0x006d;\n L_0x0038:\n r1 = com.google.android.gms.internal.zzld.class;\n monitor-enter(r1);\n r0 = mBaseCache;\t Catch:{ all -> 0x0064 }\n if (r0 == 0) goto L_0x006c;\n L_0x003f:\n r2 = mBaseCache;\t Catch:{ all -> 0x0064 }\n r5.mArray = r2;\t Catch:{ all -> 0x0064 }\n r0 = 0;\n r0 = r2[r0];\t Catch:{ all -> 0x0064 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0064 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0064 }\n mBaseCache = r0;\t Catch:{ all -> 0x0064 }\n r0 = 1;\n r0 = r2[r0];\t Catch:{ all -> 0x0064 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0064 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0064 }\n r5.mHashes = r0;\t Catch:{ all -> 0x0064 }\n r0 = 0;\n r3 = 1;\n r4 = 0;\n r2[r3] = r4;\t Catch:{ all -> 0x0064 }\n r2[r0] = r4;\t Catch:{ all -> 0x0064 }\n r0 = mBaseCacheSize;\t Catch:{ all -> 0x0064 }\n r0 = r0 + -1;\n mBaseCacheSize = r0;\t Catch:{ all -> 0x0064 }\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n goto L_0x002f;\n L_0x0064:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n throw r0;\n L_0x0067:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n throw r0;\n L_0x006a:\n r0 = move-exception;\n throw r0;\n L_0x006c:\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n L_0x006d:\n r0 = new int[r6];\n r5.mHashes = r0;\n r0 = r6 << 1;\n r0 = new java.lang.Object[r0];\n r5.mArray = r0;\n goto L_0x002f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzlh.zzbJ(int):void\");\n }",
"public void mo7386e(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(44, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }",
"public void mo56449a(C4022a aVar, C4022a aVar2, SQLiteDatabase sQLiteDatabase) {\n Cursor query = sQLiteDatabase.query(\"registration\", C3964a.C3977g.f2708a, (String) null, (String[]) null, (String) null, (String) null, (String) null);\n if (query != null) {\n if (query.moveToFirst()) {\n do {\n ContentValues contentValues = new ContentValues();\n contentValues.put(\"subscriber_key\", aVar2.mo56544a(aVar.mo56545b(query.getString(query.getColumnIndex(\"subscriber_key\")))));\n contentValues.put(C4003a.f2858s, (String) null);\n contentValues.put(\"et_app_id\", aVar2.mo56544a(aVar.mo56545b(query.getString(query.getColumnIndex(\"et_app_id\")))));\n contentValues.put(\"tags\", aVar2.mo56544a(aVar.mo56545b(query.getString(query.getColumnIndex(\"tags\")))));\n contentValues.put(\"attributes\", aVar2.mo56544a(aVar.mo56545b(query.getString(query.getColumnIndex(\"attributes\")))));\n contentValues.put(\"device_id\", C4025d.m2755a(this.f2839d));\n contentValues.put(\"id\", Integer.valueOf(query.getInt(query.getColumnIndex(\"id\"))));\n contentValues.put(\"platform\", query.getString(query.getColumnIndex(\"platform\")));\n contentValues.put(C4003a.f2856q, C4026e.m2756a(this.f2839d));\n contentValues.put(C4003a.f2857r, C4036i.m2803a());\n contentValues.put(\"timezone\", Integer.valueOf(query.getInt(query.getColumnIndex(\"timezone\"))));\n contentValues.put(\"dst\", Integer.valueOf(query.getInt(query.getColumnIndex(\"dst\"))));\n contentValues.put(\"platform_version\", query.getString(query.getColumnIndex(\"platform_version\")));\n contentValues.put(\"push_enabled\", Integer.valueOf(query.getInt(query.getColumnIndex(\"push_enabled\"))));\n contentValues.put(\"location_enabled\", Integer.valueOf(query.getInt(query.getColumnIndex(\"location_enabled\"))));\n contentValues.put(\"hwid\", query.getString(query.getColumnIndex(\"hwid\")));\n contentValues.put(\"locale\", query.getString(query.getColumnIndex(\"locale\")));\n mo56455a(contentValues);\n } while (query.moveToNext());\n }\n query.close();\n }\n }",
"public interface C38172a {\n /* renamed from: A */\n void mo21580A(Intent intent);\n\n String name();\n }",
"public interface C2368d {\n\n /* renamed from: com.google.android.exoplayer2.upstream.d$a */\n public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }\n\n /* renamed from: a */\n int mo1684a(byte[] bArr, int i, int i2);\n\n /* renamed from: a */\n long mo1685a(C2369e c2369e);\n\n /* renamed from: a */\n Uri mo1686a();\n\n /* renamed from: b */\n void mo1687b();\n}",
"public void mo7378a(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(1, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }",
"@Override\n public void onCreate(){\n super.onCreate();\n createGoogleAPIClient();\n Log.i(TAG, \"On Create\");\n }",
"public final /* synthetic */ java.lang.Object createFromParcel(android.os.Parcel r14) {\n /*\n r13 = this;\n int r0 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.validateObjectHeader(r14)\n r1 = 1\n r2 = 1000(0x3e8, float:1.401E-42)\n r3 = 0\n r5 = 0\n r8 = r1\n r9 = r8\n r7 = r2\n r10 = r3\n r12 = r5\n L_0x000f:\n int r2 = r14.dataPosition()\n if (r2 >= r0) goto L_0x004d\n int r2 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readHeader(r14)\n int r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.getFieldId(r2)\n if (r3 == r1) goto L_0x0048\n r4 = 2\n if (r3 == r4) goto L_0x0043\n r4 = 3\n if (r3 == r4) goto L_0x003e\n r4 = 4\n if (r3 == r4) goto L_0x0039\n r4 = 5\n if (r3 == r4) goto L_0x002f\n com.google.android.gms.common.internal.safeparcel.SafeParcelReader.skipUnknownField(r14, r2)\n goto L_0x000f\n L_0x002f:\n android.os.Parcelable$Creator<com.google.android.gms.location.zzaj> r3 = com.google.android.gms.location.zzaj.CREATOR\n java.lang.Object[] r2 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createTypedArray(r14, r2, r3)\n r12 = r2\n com.google.android.gms.location.zzaj[] r12 = (com.google.android.gms.location.zzaj[]) r12\n goto L_0x000f\n L_0x0039:\n int r7 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readInt(r14, r2)\n goto L_0x000f\n L_0x003e:\n long r10 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readLong(r14, r2)\n goto L_0x000f\n L_0x0043:\n int r9 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readInt(r14, r2)\n goto L_0x000f\n L_0x0048:\n int r8 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readInt(r14, r2)\n goto L_0x000f\n L_0x004d:\n com.google.android.gms.common.internal.safeparcel.SafeParcelReader.ensureAtEnd(r14, r0)\n com.google.android.gms.location.LocationAvailability r14 = new com.google.android.gms.location.LocationAvailability\n r6 = r14\n r6.<init>(r7, r8, r9, r10, r12)\n return r14\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.location.zzaa.createFromParcel(android.os.Parcel):java.lang.Object\");\n }",
"static /* synthetic */ void m53869b(BindGoogleContactIntroUI bindGoogleContactIntroUI) {\n AppMethodBeat.m2504i(13346);\n bindGoogleContactIntroUI.gqp = new C32968w(C1993a.MM_BIND_GCONTACT_OPCODE_UNBIND, bindGoogleContactIntroUI.gqn, C32968w.gvM);\n C1720g.m3540Rg().mo14541a(bindGoogleContactIntroUI.gqp, 0);\n bindGoogleContactIntroUI.getString(C25738R.string.f9238tz);\n bindGoogleContactIntroUI.gqo = C30379h.m48458b((Context) bindGoogleContactIntroUI, bindGoogleContactIntroUI.getString(C25738R.string.f9260un), true, new C19664());\n AppMethodBeat.m2505o(13346);\n }",
"private static final Account m22607a(IBinder iBinder) {\n scb scb;\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.gms.common.internal.IAccountAccessor\");\n if (queryLocalInterface instanceof scb) {\n scb = (scb) queryLocalInterface;\n } else {\n scb = new sbz(iBinder);\n }\n return rzw.m34723a(scb);\n }",
"@Override // com.zhihu.android.sugaradapter.SugarHolder\n /* renamed from: a */\n public void mo56529a(Object obj) {\n }",
"private void b(int r14) {\n /*\n r13 = this;\n java.lang.Integer r0 = r13.w\n if (r0 != 0) goto L_0x000b\n java.lang.Integer r14 = java.lang.Integer.valueOf(r14)\n r13.w = r14\n goto L_0x005b\n L_0x000b:\n java.lang.Integer r0 = r13.w\n int r0 = r0.intValue()\n if (r0 == r14) goto L_0x005b\n java.lang.IllegalStateException r0 = new java.lang.IllegalStateException\n java.lang.String r14 = a(r14)\n java.lang.String r14 = java.lang.String.valueOf(r14)\n java.lang.Integer r1 = r13.w\n int r1 = r1.intValue()\n java.lang.String r1 = a(r1)\n java.lang.String r1 = java.lang.String.valueOf(r1)\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n java.lang.String r3 = java.lang.String.valueOf(r14)\n int r3 = r3.length()\n int r3 = r3 + 51\n java.lang.String r4 = java.lang.String.valueOf(r1)\n int r4 = r4.length()\n int r3 = r3 + r4\n r2.<init>(r3)\n java.lang.String r3 = \"Cannot use sign-in mode: \"\n r2.append(r3)\n r2.append(r14)\n java.lang.String r14 = \". Mode was already set to \"\n r2.append(r14)\n r2.append(r1)\n java.lang.String r14 = r2.toString()\n r0.<init>(r14)\n throw r0\n L_0x005b:\n com.google.android.gms.internal.zzqy r14 = r13.l\n if (r14 == 0) goto L_0x0060\n return\n L_0x0060:\n java.util.Map<com.google.android.gms.common.api.Api$zzc<?>, com.google.android.gms.common.api.Api$zze> r14 = r13.c\n java.util.Collection r14 = r14.values()\n java.util.Iterator r14 = r14.iterator()\n r0 = 0\n r1 = 0\n L_0x006c:\n boolean r2 = r14.hasNext()\n if (r2 == 0) goto L_0x0088\n java.lang.Object r2 = r14.next()\n com.google.android.gms.common.api.Api$zze r2 = (com.google.android.gms.common.api.Api.zze) r2\n boolean r3 = r2.zzahd()\n r4 = 1\n if (r3 == 0) goto L_0x0080\n r0 = 1\n L_0x0080:\n boolean r2 = r2.zzahs()\n if (r2 == 0) goto L_0x006c\n r1 = 1\n goto L_0x006c\n L_0x0088:\n java.lang.Integer r14 = r13.w\n int r14 = r14.intValue()\n switch(r14) {\n case 1: goto L_0x00ae;\n case 2: goto L_0x0092;\n case 3: goto L_0x00c2;\n default: goto L_0x0091;\n }\n L_0x0091:\n goto L_0x00c2\n L_0x0092:\n if (r0 == 0) goto L_0x00c2\n android.content.Context r2 = r13.n\n java.util.concurrent.locks.Lock r4 = r13.j\n android.os.Looper r5 = r13.o\n com.google.android.gms.common.GoogleApiAvailability r6 = r13.t\n java.util.Map<com.google.android.gms.common.api.Api$zzc<?>, com.google.android.gms.common.api.Api$zze> r7 = r13.c\n com.google.android.gms.common.internal.zzh r8 = r13.e\n java.util.Map<com.google.android.gms.common.api.Api<?>, java.lang.Integer> r9 = r13.f\n com.google.android.gms.common.api.Api$zza<? extends com.google.android.gms.internal.zzwz, com.google.android.gms.internal.zzxa> r10 = r13.g\n java.util.ArrayList<com.google.android.gms.internal.zzqf> r11 = r13.v\n r3 = r13\n com.google.android.gms.internal.zzqh r14 = com.google.android.gms.internal.zzqh.a(r2, r3, r4, r5, r6, r7, r8, r9, r10, r11)\n L_0x00ab:\n r13.l = r14\n return\n L_0x00ae:\n if (r0 != 0) goto L_0x00b8\n java.lang.IllegalStateException r14 = new java.lang.IllegalStateException\n java.lang.String r0 = \"SIGN_IN_MODE_REQUIRED cannot be used on a GoogleApiClient that does not contain any authenticated APIs. Use connect() instead.\"\n r14.<init>(r0)\n throw r14\n L_0x00b8:\n if (r1 == 0) goto L_0x00c2\n java.lang.IllegalStateException r14 = new java.lang.IllegalStateException\n java.lang.String r0 = \"Cannot use SIGN_IN_MODE_REQUIRED with GOOGLE_SIGN_IN_API. Use connect(SIGN_IN_MODE_OPTIONAL) instead.\"\n r14.<init>(r0)\n throw r14\n L_0x00c2:\n com.google.android.gms.internal.zzqr r14 = new com.google.android.gms.internal.zzqr\n android.content.Context r2 = r13.n\n java.util.concurrent.locks.Lock r4 = r13.j\n android.os.Looper r5 = r13.o\n com.google.android.gms.common.GoogleApiAvailability r6 = r13.t\n java.util.Map<com.google.android.gms.common.api.Api$zzc<?>, com.google.android.gms.common.api.Api$zze> r7 = r13.c\n com.google.android.gms.common.internal.zzh r8 = r13.e\n java.util.Map<com.google.android.gms.common.api.Api<?>, java.lang.Integer> r9 = r13.f\n com.google.android.gms.common.api.Api$zza<? extends com.google.android.gms.internal.zzwz, com.google.android.gms.internal.zzxa> r10 = r13.g\n java.util.ArrayList<com.google.android.gms.internal.zzqf> r11 = r13.v\n r1 = r14\n r3 = r13\n r12 = r13\n r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12)\n goto L_0x00ab\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzqp.b(int):void\");\n }",
"public static C0190d m1749K(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.gms.dynamic.IObjectWrapper\");\n return (queryLocalInterface == null || !(queryLocalInterface instanceof C0190d)) ? new C0574a(iBinder) : (C0190d) queryLocalInterface;\n }",
"private static b[] a(Context context, a aVar, String str) {\n Throwable th;\n Cursor cursor;\n ArrayList arrayList = new ArrayList();\n Uri build = new Builder().scheme(com.google.firebase.analytics.FirebaseAnalytics.b.CONTENT).authority(str).build();\n Uri build2 = new Builder().scheme(com.google.firebase.analytics.FirebaseAnalytics.b.CONTENT).authority(str).appendPath(\"file\").build();\n try {\n Cursor query;\n ArrayList arrayList2;\n if (VERSION.SDK_INT > 16) {\n query = context.getContentResolver().query(build, new String[]{\"_id\", \"file_id\", \"font_ttc_index\", \"font_variation_settings\", \"font_weight\", \"font_italic\", \"result_code\"}, \"query = ?\", new String[]{aVar.Kg}, null, null);\n } else {\n query = context.getContentResolver().query(build, new String[]{\"_id\", \"file_id\", \"font_ttc_index\", \"font_variation_settings\", \"font_weight\", \"font_italic\", \"result_code\"}, \"query = ?\", new String[]{aVar.Kg}, null);\n }\n if (query != null) {\n try {\n if (query.getCount() > 0) {\n int columnIndex = query.getColumnIndex(\"result_code\");\n arrayList2 = new ArrayList();\n int columnIndex2 = query.getColumnIndex(\"_id\");\n int columnIndex3 = query.getColumnIndex(\"file_id\");\n int columnIndex4 = query.getColumnIndex(\"font_ttc_index\");\n int columnIndex5 = query.getColumnIndex(\"font_weight\");\n int columnIndex6 = query.getColumnIndex(\"font_italic\");\n while (query.moveToNext()) {\n Uri withAppendedId;\n int i = columnIndex != -1 ? query.getInt(columnIndex) : 0;\n int i2 = columnIndex4 != -1 ? query.getInt(columnIndex4) : 0;\n if (columnIndex3 == -1) {\n withAppendedId = ContentUris.withAppendedId(build, query.getLong(columnIndex2));\n } else {\n withAppendedId = ContentUris.withAppendedId(build2, query.getLong(columnIndex3));\n }\n int i3 = columnIndex5 != -1 ? query.getInt(columnIndex5) : 400;\n boolean z = columnIndex6 != -1 && query.getInt(columnIndex6) == 1;\n arrayList2.add(new b(withAppendedId, i2, i3, z, i));\n }\n if (query != null) {\n query.close();\n }\n return (b[]) arrayList2.toArray(new b[0]);\n }\n } catch (Throwable th2) {\n th = th2;\n cursor = query;\n }\n }\n arrayList2 = arrayList;\n if (query != null) {\n }\n return (b[]) arrayList2.toArray(new b[0]);\n } catch (Throwable th3) {\n th = th3;\n cursor = null;\n }\n if (cursor != null) {\n cursor.close();\n }\n throw th;\n }",
"private void m2250b(String str) {\n try {\n if (C0661x.m1755b()) {\n m2251c(str);\n return;\n }\n C0661x.m1752a();\n sa.m1656a(C0650i.ERROR, \"'Google Play services' app not installed or disabled on the device.\");\n this.f1830c.mo1392a(null, -7);\n } catch (Throwable th) {\n C0650i c0650i = C0650i.ERROR;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Could not register with \");\n stringBuilder.append(mo1748c());\n stringBuilder.append(\" due to an issue with your AndroidManifest.xml or with 'Google Play services'.\");\n sa.m1657a(c0650i, stringBuilder.toString(), th);\n this.f1830c.mo1392a(null, -8);\n }\n }",
"public interface IMapsEngineLayerDelegate extends IInterface {\n\n /* renamed from: com.google.android.m4b.maps.model.internal.j.a */\n public static abstract class IMapsEngineLayerDelegate extends Binder implements IMapsEngineLayerDelegate {\n\n /* renamed from: com.google.android.m4b.maps.model.internal.j.a.a */\n static class IMapsEngineLayerDelegate implements IMapsEngineLayerDelegate {\n private IBinder f7659a;\n\n IMapsEngineLayerDelegate(IBinder iBinder) {\n this.f7659a = iBinder;\n }\n\n public final IBinder asBinder() {\n return this.f7659a;\n }\n\n public final void m10923b() {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n this.f7659a.transact(1, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final MapsEngineLayerInfo m10925d() {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n MapsEngineLayerInfo a;\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n this.f7659a.transact(2, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n a = MapsEngineLayerInfo.CREATOR.m11016a(obtain2);\n } else {\n a = null;\n }\n obtain2.recycle();\n obtain.recycle();\n return a;\n } catch (Throwable th) {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final void m10920a(float f) {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n obtain.writeFloat(f);\n this.f7659a.transact(3, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final float m10926f() {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n this.f7659a.transact(4, obtain, obtain2, 0);\n obtain2.readException();\n float readFloat = obtain2.readFloat();\n return readFloat;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final void m10921a(boolean z) {\n int i = 0;\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n if (z) {\n i = 1;\n }\n obtain.writeInt(i);\n this.f7659a.transact(5, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final boolean m10927h() {\n boolean z = false;\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n this.f7659a.transact(6, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n z = true;\n }\n obtain2.recycle();\n obtain.recycle();\n return z;\n } catch (Throwable th) {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final void m10924b(boolean z) {\n int i = 0;\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n if (z) {\n i = 1;\n }\n obtain.writeInt(i);\n this.f7659a.transact(7, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final boolean m10928j() {\n boolean z = false;\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n this.f7659a.transact(8, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n z = true;\n }\n obtain2.recycle();\n obtain.recycle();\n return z;\n } catch (Throwable th) {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final boolean m10922a(IMapsEngineLayerDelegate iMapsEngineLayerDelegate) {\n boolean z = false;\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n obtain.writeStrongBinder(iMapsEngineLayerDelegate != null ? iMapsEngineLayerDelegate.asBinder() : null);\n this.f7659a.transact(9, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n z = true;\n }\n obtain2.recycle();\n obtain.recycle();\n return z;\n } catch (Throwable th) {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public final int m10929l() {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n this.f7659a.transact(10, obtain, obtain2, 0);\n obtain2.readException();\n int readInt = obtain2.readInt();\n return readInt;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n }\n\n public IMapsEngineLayerDelegate() {\n attachInterface(this, \"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n }\n\n public static IMapsEngineLayerDelegate m8274a(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n if (queryLocalInterface == null || !(queryLocalInterface instanceof IMapsEngineLayerDelegate)) {\n return new IMapsEngineLayerDelegate(iBinder);\n }\n return (IMapsEngineLayerDelegate) queryLocalInterface;\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) {\n int i3 = 0;\n boolean z;\n boolean h;\n switch (i) {\n case R.SlidingUpPanelLayout_umanoShadowHeight /*1*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n m8267b();\n parcel2.writeNoException();\n return true;\n case R.SlidingUpPanelLayout_umanoParalaxOffset /*2*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n MapsEngineLayerInfo d = m8269d();\n parcel2.writeNoException();\n if (d != null) {\n parcel2.writeInt(1);\n d.writeToParcel(parcel2, 1);\n return true;\n }\n parcel2.writeInt(0);\n return true;\n case R.SlidingUpPanelLayout_umanoFadeColor /*3*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n m8264a(parcel.readFloat());\n parcel2.writeNoException();\n return true;\n case R.SlidingUpPanelLayout_umanoFlingVelocity /*4*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n float f = m8270f();\n parcel2.writeNoException();\n parcel2.writeFloat(f);\n return true;\n case R.SlidingUpPanelLayout_umanoDragView /*5*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n if (parcel.readInt() != 0) {\n z = true;\n }\n m8265a(z);\n parcel2.writeNoException();\n return true;\n case R.SlidingUpPanelLayout_umanoOverlay /*6*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n h = m8271h();\n parcel2.writeNoException();\n if (h) {\n i3 = 1;\n }\n parcel2.writeInt(i3);\n return true;\n case R.SlidingUpPanelLayout_umanoClipPanel /*7*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n if (parcel.readInt() != 0) {\n z = true;\n }\n m8268b(z);\n parcel2.writeNoException();\n return true;\n case R.SlidingUpPanelLayout_umanoAnchorPoint /*8*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n h = m8272j();\n parcel2.writeNoException();\n if (h) {\n i3 = 1;\n }\n parcel2.writeInt(i3);\n return true;\n case HTTP.HT /*9*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n h = m8266a(IMapsEngineLayerDelegate.m8274a(parcel.readStrongBinder()));\n parcel2.writeNoException();\n if (h) {\n i3 = 1;\n }\n parcel2.writeInt(i3);\n return true;\n case HTTP.LF /*10*/:\n parcel.enforceInterface(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n i3 = m8273l();\n parcel2.writeNoException();\n parcel2.writeInt(i3);\n return true;\n case 1598968902:\n parcel2.writeString(\"com.google.android.m4b.maps.model.internal.IMapsEngineLayerDelegate\");\n return true;\n default:\n return super.onTransact(i, parcel, parcel2, i2);\n }\n }\n }\n\n void m8264a(float f);\n\n void m8265a(boolean z);\n\n boolean m8266a(IMapsEngineLayerDelegate iMapsEngineLayerDelegate);\n\n void m8267b();\n\n void m8268b(boolean z);\n\n MapsEngineLayerInfo m8269d();\n\n float m8270f();\n\n boolean m8271h();\n\n boolean m8272j();\n\n int m8273l();\n}",
"protected void mo5420a(AdAdapter adAdapter, C2046c c2046c, C2044a c2044a, Map<String, Object> map) {\n final C1924i c1924i = (C1924i) adAdapter;\n final long currentTimeMillis = System.currentTimeMillis();\n final C2044a c2044a2 = c2044a;\n Runnable c19581 = new Runnable(this) {\n /* renamed from: d */\n final /* synthetic */ C1960g f4291d;\n\n public void run() {\n this.f4291d.m4607a(c1924i);\n Map a = C1960g.m4644a(this.f4291d, currentTimeMillis);\n a.put(\"error\", \"-1\");\n a.put(NotificationCompat.CATEGORY_MESSAGE, \"timeout\");\n C1960g.m4645a(this.f4291d, c2044a2.m4964a(C2048e.REQUEST), a);\n this.f4291d.m4622i();\n }\n };\n m4623j().postDelayed(c19581, (long) c2046c.m4970a().m4989j());\n final Runnable runnable = c19581;\n final long j = currentTimeMillis;\n final C2044a c2044a3 = c2044a;\n c1924i.m4494a(this.b, new C1837q(this) {\n /* renamed from: a */\n boolean f4292a = false;\n /* renamed from: b */\n boolean f4293b = false;\n /* renamed from: c */\n boolean f4294c = false;\n /* renamed from: g */\n final /* synthetic */ C1960g f4298g;\n\n /* renamed from: a */\n public void mo5372a(C1924i c1924i) {\n if (c1924i == this.f4298g.e) {\n this.f4298g.m4623j().removeCallbacks(runnable);\n this.f4298g.f = c1924i;\n this.f4298g.c.mo5325a((AdAdapter) c1924i);\n if (!this.f4292a) {\n this.f4292a = true;\n C1960g.m4645a(this.f4298g, c2044a3.m4964a(C2048e.REQUEST), C1960g.m4644a(this.f4298g, j));\n }\n }\n }\n\n /* renamed from: a */\n public void mo5373a(C1924i c1924i, C2065a c2065a) {\n if (c1924i == this.f4298g.e) {\n this.f4298g.m4623j().removeCallbacks(runnable);\n this.f4298g.m4607a((AdAdapter) c1924i);\n if (!this.f4292a) {\n this.f4292a = true;\n Map a = C1960g.m4644a(this.f4298g, j);\n a.put(\"error\", String.valueOf(c2065a.m5038a().getErrorCode()));\n a.put(NotificationCompat.CATEGORY_MESSAGE, String.valueOf(c2065a.m5039b()));\n C1960g.m4645a(this.f4298g, c2044a3.m4964a(C2048e.REQUEST), a);\n }\n this.f4298g.m4622i();\n }\n }\n\n /* renamed from: b */\n public void mo5374b(C1924i c1924i) {\n if (!this.f4293b) {\n this.f4293b = true;\n C1960g.m4645a(this.f4298g, c2044a3.m4964a(C2048e.IMPRESSION), null);\n }\n }\n\n /* renamed from: c */\n public void mo5375c(C1924i c1924i) {\n if (!this.f4294c) {\n this.f4294c = true;\n C1960g.m4645a(this.f4298g, c2044a3.m4964a(C2048e.CLICK), null);\n }\n if (this.f4298g.c != null) {\n this.f4298g.c.mo5323a();\n }\n }\n }, this.g, map, NativeAdBase.getViewTraversalPredicate());\n }",
"public void mo7382b(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(3, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }",
"private final int m8870a(Context context, Intent intent) {\n String str;\n ComponentName startWakefulService;\n synchronized (this.f5746c) {\n str = (String) this.f5746c.get(intent.getAction());\n }\n if (str == null) {\n ResolveInfo resolveService = context.getPackageManager().resolveService(intent, 0);\n if (resolveService == null || resolveService.serviceInfo == null) {\n Log.e(\"FirebaseInstanceId\", \"Failed to resolve target intent service, skipping classname enforcement\");\n if (this.f5747d == null) {\n this.f5747d = Boolean.valueOf(context.checkCallingOrSelfPermission(\"android.permission.WAKE_LOCK\") == 0);\n }\n if (this.f5747d.booleanValue()) {\n startWakefulService = C0429p.startWakefulService(context, intent);\n } else {\n startWakefulService = context.startService(intent);\n Log.d(\"FirebaseInstanceId\", \"Missing wake lock permission, service start may be delayed\");\n }\n if (startWakefulService == null) {\n return -1;\n }\n Log.e(\"FirebaseInstanceId\", \"Error while delivering the message: ServiceIntent not found.\");\n return WalletConstants.ERROR_CODE_INVALID_PARAMETERS;\n }\n ServiceInfo serviceInfo = resolveService.serviceInfo;\n if (!context.getPackageName().equals(serviceInfo.packageName) || serviceInfo.name == null) {\n String str2 = serviceInfo.packageName;\n str = serviceInfo.name;\n Log.e(\"FirebaseInstanceId\", new StringBuilder((String.valueOf(str2).length() + 94) + String.valueOf(str).length()).append(\"Error resolving target intent service, skipping classname enforcement. Resolved service was: \").append(str2).append(\"/\").append(str).toString());\n if (this.f5747d == null) {\n if (context.checkCallingOrSelfPermission(\"android.permission.WAKE_LOCK\") == 0) {\n }\n this.f5747d = Boolean.valueOf(context.checkCallingOrSelfPermission(\"android.permission.WAKE_LOCK\") == 0);\n }\n if (this.f5747d.booleanValue()) {\n startWakefulService = context.startService(intent);\n Log.d(\"FirebaseInstanceId\", \"Missing wake lock permission, service start may be delayed\");\n } else {\n startWakefulService = C0429p.startWakefulService(context, intent);\n }\n if (startWakefulService == null) {\n return -1;\n }\n Log.e(\"FirebaseInstanceId\", \"Error while delivering the message: ServiceIntent not found.\");\n return WalletConstants.ERROR_CODE_INVALID_PARAMETERS;\n }\n str = serviceInfo.name;\n if (str.startsWith(\".\")) {\n String valueOf = String.valueOf(context.getPackageName());\n str = String.valueOf(str);\n str = str.length() != 0 ? valueOf.concat(str) : new String(valueOf);\n }\n synchronized (this.f5746c) {\n this.f5746c.put(intent.getAction(), str);\n }\n }\n if (Log.isLoggable(\"FirebaseInstanceId\", 3)) {\n str2 = \"FirebaseInstanceId\";\n String str3 = \"Restricting intent to a specific service: \";\n valueOf = String.valueOf(str);\n Log.d(str2, valueOf.length() != 0 ? str3.concat(valueOf) : new String(str3));\n }\n intent.setClassName(context.getPackageName(), str);\n try {\n if (this.f5747d == null) {\n if (context.checkCallingOrSelfPermission(\"android.permission.WAKE_LOCK\") == 0) {\n }\n this.f5747d = Boolean.valueOf(context.checkCallingOrSelfPermission(\"android.permission.WAKE_LOCK\") == 0);\n }\n if (this.f5747d.booleanValue()) {\n startWakefulService = C0429p.startWakefulService(context, intent);\n } else {\n startWakefulService = context.startService(intent);\n Log.d(\"FirebaseInstanceId\", \"Missing wake lock permission, service start may be delayed\");\n }\n if (startWakefulService == null) {\n return -1;\n }\n Log.e(\"FirebaseInstanceId\", \"Error while delivering the message: ServiceIntent not found.\");\n return WalletConstants.ERROR_CODE_INVALID_PARAMETERS;\n } catch (Throwable e) {\n Log.e(\"FirebaseInstanceId\", \"Error while delivering the message to the serviceIntent\", e);\n return 401;\n } catch (IllegalStateException e2) {\n str = String.valueOf(e2);\n Log.e(\"FirebaseInstanceId\", new StringBuilder(String.valueOf(str).length() + 45).append(\"Failed to start service while in background: \").append(str).toString());\n return WalletConstants.ERROR_CODE_SERVICE_UNAVAILABLE;\n }\n }",
"public java.lang.String toString() {\n /*\n r4 = this;\n r1 = com.google.android.gms.internal.zzkq.a;\n r0 = r4.isEmpty();\t Catch:{ ClassCastException -> 0x000c }\n if (r0 == 0) goto L_0x000e;\n L_0x0008:\n r0 = \"{}\";\n L_0x000b:\n return r0;\n L_0x000c:\n r0 = move-exception;\n throw r0;\n L_0x000e:\n r2 = new java.lang.StringBuilder;\n r0 = r4.mSize;\n r0 = r0 * 28;\n r2.<init>(r0);\n r0 = 123; // 0x7b float:1.72E-43 double:6.1E-322;\n r2.append(r0);\n r0 = 0;\n L_0x001d:\n r3 = r4.mSize;\n if (r0 >= r3) goto L_0x0054;\n L_0x0021:\n if (r0 <= 0) goto L_0x0029;\n L_0x0023:\n r3 = \", \";\n r2.append(r3);\t Catch:{ ClassCastException -> 0x005e }\n L_0x0029:\n r3 = r4.keyAt(r0);\n if (r3 == r4) goto L_0x0034;\n L_0x002f:\n r2.append(r3);\t Catch:{ ClassCastException -> 0x0060 }\n if (r1 == 0) goto L_0x003a;\n L_0x0034:\n r3 = \"(this Map)\";\n r2.append(r3);\t Catch:{ ClassCastException -> 0x0060 }\n L_0x003a:\n r3 = 61;\n r2.append(r3);\n r3 = r4.valueAt(r0);\n if (r3 == r4) goto L_0x004a;\n L_0x0045:\n r2.append(r3);\t Catch:{ ClassCastException -> 0x0062 }\n if (r1 == 0) goto L_0x0050;\n L_0x004a:\n r3 = \"(this Map)\";\n r2.append(r3);\t Catch:{ ClassCastException -> 0x0062 }\n L_0x0050:\n r0 = r0 + 1;\n if (r1 == 0) goto L_0x001d;\n L_0x0054:\n r0 = 125; // 0x7d float:1.75E-43 double:6.2E-322;\n r2.append(r0);\n r0 = r2.toString();\n goto L_0x000b;\n L_0x005e:\n r0 = move-exception;\n throw r0;\n L_0x0060:\n r0 = move-exception;\n throw r0;\n L_0x0062:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzlh.toString():java.lang.String\");\n }",
"@androidx.annotation.WorkerThread\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final boolean zzc(com.google.firebase.iid.FirebaseInstanceId r5) {\n /*\n r4 = this;\n L_0x0000:\n monitor-enter(r4)\n java.lang.String r0 = r4.zzar() // Catch:{ all -> 0x0042 }\n r1 = 1\n if (r0 != 0) goto L_0x0017\n boolean r5 = com.google.firebase.iid.FirebaseInstanceId.zzm() // Catch:{ all -> 0x0042 }\n if (r5 == 0) goto L_0x0015\n java.lang.String r5 = \"FirebaseInstanceId\"\n java.lang.String r0 = \"topic sync succeeded\"\n android.util.Log.d(r5, r0) // Catch:{ all -> 0x0042 }\n L_0x0015:\n monitor-exit(r4) // Catch:{ all -> 0x0042 }\n return r1\n L_0x0017:\n monitor-exit(r4) // Catch:{ all -> 0x0042 }\n boolean r2 = zza(r5, r0)\n if (r2 != 0) goto L_0x0020\n r5 = 0\n return r5\n L_0x0020:\n monitor-enter(r4)\n java.util.Map<java.lang.Integer, com.google.android.gms.tasks.TaskCompletionSource<java.lang.Void>> r2 = r4.zzdx // Catch:{ all -> 0x003f }\n int r3 = r4.zzdw // Catch:{ all -> 0x003f }\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3) // Catch:{ all -> 0x003f }\n java.lang.Object r2 = r2.remove(r3) // Catch:{ all -> 0x003f }\n com.google.android.gms.tasks.TaskCompletionSource r2 = (com.google.android.gms.tasks.TaskCompletionSource) r2 // Catch:{ all -> 0x003f }\n r4.zzn(r0) // Catch:{ all -> 0x003f }\n int r0 = r4.zzdw // Catch:{ all -> 0x003f }\n int r0 = r0 + r1\n r4.zzdw = r0 // Catch:{ all -> 0x003f }\n monitor-exit(r4) // Catch:{ all -> 0x003f }\n if (r2 == 0) goto L_0x0000\n r0 = 0\n r2.setResult(r0)\n goto L_0x0000\n L_0x003f:\n r5 = move-exception\n monitor-exit(r4) // Catch:{ all -> 0x003f }\n throw r5\n L_0x0042:\n r5 = move-exception\n monitor-exit(r4) // Catch:{ all -> 0x0042 }\n throw r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.firebase.iid.zzba.zzc(com.google.firebase.iid.FirebaseInstanceId):boolean\");\n }",
"public void mo7383c(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(18, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }",
"private static abstract class <init> extends com.google.android.gms.games.hodImpl\n{\n\n public com.google.android.gms.games.quest.Result zzau(Status status)\n {\n return new com.google.android.gms.games.quest.Quests.ClaimMilestoneResult(status) {\n\n final Status zzQs;\n final QuestsImpl.ClaimImpl zzavH;\n\n public Milestone getMilestone()\n {\n return null;\n }\n\n public Quest getQuest()\n {\n return null;\n }\n\n public Status getStatus()\n {\n return zzQs;\n }\n\n \n {\n zzavH = QuestsImpl.ClaimImpl.this;\n zzQs = status;\n super();\n }\n };\n }",
"public final String mo6463a() {\n return \"com.google.android.gms.ads.identifier.service.EVENT_ATTESTATION\";\n }",
"private static java.lang.String[] a(android.content.Context r3, com.xiaomi.xmpush.thrift.u r4) {\n /*\n java.lang.String r0 = r4.h()\n java.lang.String r1 = r4.j()\n java.util.Map r4 = r4.s()\n if (r4 == 0) goto L_0x0073\n android.content.res.Resources r2 = r3.getResources()\n android.util.DisplayMetrics r2 = r2.getDisplayMetrics()\n int r2 = r2.widthPixels\n android.content.res.Resources r3 = r3.getResources()\n android.util.DisplayMetrics r3 = r3.getDisplayMetrics()\n float r3 = r3.density\n float r2 = (float) r2\n float r2 = r2 / r3\n r3 = 1056964608(0x3f000000, float:0.5)\n float r2 = r2 + r3\n java.lang.Float r3 = java.lang.Float.valueOf(r2)\n int r3 = r3.intValue()\n r2 = 320(0x140, float:4.48E-43)\n if (r3 > r2) goto L_0x0051\n java.lang.String r3 = \"title_short\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r2 = android.text.TextUtils.isEmpty(r3)\n if (r2 != 0) goto L_0x0042\n r0 = r3\n L_0x0042:\n java.lang.String r3 = \"description_short\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = android.text.TextUtils.isEmpty(r3)\n if (r4 != 0) goto L_0x0073\n goto L_0x0072\n L_0x0051:\n r2 = 360(0x168, float:5.04E-43)\n if (r3 <= r2) goto L_0x0073\n java.lang.String r3 = \"title_long\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r2 = android.text.TextUtils.isEmpty(r3)\n if (r2 != 0) goto L_0x0064\n r0 = r3\n L_0x0064:\n java.lang.String r3 = \"description_long\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = android.text.TextUtils.isEmpty(r3)\n if (r4 != 0) goto L_0x0073\n L_0x0072:\n r1 = r3\n L_0x0073:\n r3 = 2\n java.lang.String[] r3 = new java.lang.String[r3]\n r4 = 0\n r3[r4] = r0\n r4 = 1\n r3[r4] = r1\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.xiaomi.push.service.ah.a(android.content.Context, com.xiaomi.xmpush.thrift.u):java.lang.String[]\");\n }",
"public String mo7388hl() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(41, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }",
"static /* synthetic */ com.android.internal.telecom.IConnectionServiceAdapter m18-get0(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.-get0(android.telecom.ConnectionServiceAdapterServant):com.android.internal.telecom.IConnectionServiceAdapter, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.-get0(android.telecom.ConnectionServiceAdapterServant):com.android.internal.telecom.IConnectionServiceAdapter\");\n }",
"public void mo55177a() {\n long unused = C3615m3.this.f1452k = System.currentTimeMillis();\n if (C3615m3.this.f1443b) {\n C3615m3.this.m1171c(new MDExternalError(MDExternalError.ExternalError.SDK_INITIALIZATION_IN_PROGRESS), this.f1467a);\n } else if (!C3615m3.this.f1447f.mo55921b() || C3615m3.this.f1447f.mo55918a()) {\n C3615m3.this.f1449h.updateFilePath(C3595k3.m1060d().mo55511a());\n boolean unused2 = C3615m3.this.f1443b = true;\n C3615m3.this.f1448g.mo55372a(C3615m3.this.f1442a, C3615m3.this.f1443b);\n if (C3723s4.m1629b() || C3723s4.m1628a()) {\n C3490e3.m665e(\"SDK Upgrade - delete UUID and local configuration storage\");\n C3661o5.m1405a();\n Pair<String, Boolean> a = C3729t0.m1642a();\n if (a != null) {\n AnalyticsBridge.getInstance().reportDeleteStorageEvent((String) a.first, ((Boolean) a.second).booleanValue());\n }\n }\n C3723s4.m1630c();\n C3615m3.this.m1172c(this.f1467a);\n C3580j createApiToken = ModelFactory.getInstance().createApiToken(this.f1468b);\n if (createApiToken == null) {\n boolean unused3 = C3615m3.this.f1443b = false;\n C3615m3.this.f1448g.mo55372a(C3615m3.this.f1442a, C3615m3.this.f1443b);\n C3615m3.this.m1158a((C3665p2) new C3593k1(C3586j3.C3587a.API_TOKEN_PARSE_ERROR), this.f1467a);\n C3615m3.this.clearAndDisconnect();\n } else if (!C3615m3.this.f1442a || C3604l2.m1115c().mo55538b() == null || !C3604l2.m1115c().mo55538b().mo55850a().equals(createApiToken.mo55850a())) {\n C3604l2.m1115c().mo55537a(createApiToken);\n if (!C3604l2.m1115c().mo55538b().mo55850a().equals(C3659o3.m1391f().mo55687a(C3815z4.C3816a.API_TOKEN))) {\n C3659o3.m1391f().mo55689a(C3815z4.C3816a.API_TOKEN, C3604l2.m1115c().mo55538b().mo55850a());\n C3659o3.m1391f().mo55689a(C3815z4.C3816a.ACCESS_TOKEN, (String) null);\n }\n C3490e3.m665e(\"SDK init started\");\n AnalyticsBridge.getInstance().reportInitEvent();\n C3767w0.m1812b().mo55893a();\n C3646n3.m1337m().mo55661a(60000, 3, 60000, 0, 512, 3);\n C3615m3.this.m1150a(this.f1467a);\n } else {\n boolean unused4 = C3615m3.this.f1443b = false;\n C3615m3.this.f1448g.mo55372a(C3615m3.this.f1442a, C3615m3.this.f1443b);\n C3615m3.this.m1163b(new MDExternalError(MDExternalError.ExternalError.SDK_IS_ALREADY_INITIALIZED), this.f1467a);\n }\n } else {\n C3615m3.this.m1163b(new MDExternalError(MDExternalError.ExternalError.SDK_IS_KILLED), this.f1467a);\n C3461c3.m562g().clearAndDisconnect();\n }\n }",
"public qa a(com.google.android.gms.dynamic.d param1, com.google.android.gms.dynamic.c param2, WalletFragmentOptions param3, qb param4) throws RemoteException {\n }",
"public static String m21387a(Context context) {\n String str = \"wns_ab\";\n try {\n if (TextUtils.isEmpty(f16890a)) {\n f16890a = Secure.getString(context.getContentResolver(), \"android_id\");\n }\n if (TextUtils.isEmpty(f16890a)) {\n f16890a = C5206p.m21472b(context, str);\n if (TextUtils.isEmpty(f16890a)) {\n f16890a = UUID.randomUUID().toString().replace(\"-\", \"\");\n C5206p.m21471a(context, str, f16890a);\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return f16890a;\n }",
"protected synchronized void buildGoogleApiClient() {\n// mGoogleApiClient = new GoogleApiClient.Builder(this).addConnectionCallbacks(this).addOnConnectionFailedListener(this).addApi(LocationServices.API).build();\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n //.addApi(Places.GEO_DATA_API)\n //.addApi(Places.PLACE_DETECTION_API)\n .addApi(LocationServices.API)\n .build();\n mGoogleApiClient.connect();\n }",
"public static void openGooglePlayServicesInGooglePlay(final Context context) {\n\t Uri uri = Uri.parse(\"market://details?id=com.google.android.gms\");\n\t Intent myAppLinkToMarket = new Intent(Intent.ACTION_VIEW, uri);\n\t try {\n\t \tcontext.startActivity(myAppLinkToMarket);\n\t } catch (ActivityNotFoundException e) {\n\t Toast.makeText(context, \"Unable to find app in Google Play\", Toast.LENGTH_SHORT).show();\n\t }\n\t}",
"public AndroidInterfaceClass(){\n database = FirebaseDatabase.getInstance(\"https://brainstorming-1fa06-default-rtdb.europe-west1.firebasedatabase.app/\");\n }",
"protected String method_4266() {\r\n String[] var10000 = field_3418;\r\n return \"mob.enderdragon.growl\";\r\n }",
"public /* synthetic */ IInterface mo27354a(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.gms.location.internal.IGoogleLocationManagerService\");\n return queryLocalInterface instanceof zzao ? (zzao) queryLocalInterface : new C10508m(iBinder);\n }"
]
| [
"0.6966182",
"0.6905355",
"0.64912343",
"0.6007521",
"0.5946914",
"0.5923169",
"0.58601224",
"0.58149433",
"0.58131665",
"0.5761195",
"0.57401663",
"0.57130367",
"0.5704652",
"0.5636981",
"0.55999035",
"0.5568287",
"0.5502828",
"0.54919636",
"0.5478875",
"0.5464661",
"0.5464218",
"0.54417986",
"0.544053",
"0.5432135",
"0.5412702",
"0.5393161",
"0.53889996",
"0.53884786",
"0.53740096",
"0.536813",
"0.5362132",
"0.52916205",
"0.5247707",
"0.52244407",
"0.5215752",
"0.5207223",
"0.51877683",
"0.51839167",
"0.5176796",
"0.5173138",
"0.51715857",
"0.51705503",
"0.5169143",
"0.5163399",
"0.5159908",
"0.5151167",
"0.5097856",
"0.5076548",
"0.50650305",
"0.50551385",
"0.5054353",
"0.5045574",
"0.5045513",
"0.5040794",
"0.50314295",
"0.5028173",
"0.5010686",
"0.50080365",
"0.50061893",
"0.5004391",
"0.49958223",
"0.49958223",
"0.49958223",
"0.49854782",
"0.49851787",
"0.49825284",
"0.49812397",
"0.4975324",
"0.49625218",
"0.49562737",
"0.49545532",
"0.4944925",
"0.4943858",
"0.49421412",
"0.49371654",
"0.49334353",
"0.4931667",
"0.49235114",
"0.49188298",
"0.49169776",
"0.49122784",
"0.49102712",
"0.49056473",
"0.49036193",
"0.49033874",
"0.4902731",
"0.48889333",
"0.48829597",
"0.48801133",
"0.48718053",
"0.48546377",
"0.485415",
"0.484863",
"0.48471308",
"0.48397565",
"0.48363295",
"0.48301932",
"0.48170483",
"0.48141247",
"0.48127595",
"0.48124388"
]
| 0.0 | -1 |
Setup an MServerSocket for testing. | @Before
public void setUp() throws Exception
{
mss = new MServerSocket(LOCAL_PORT, 0, InetAddress.getByName(LOCALHOST));
System.out.println("MServerSocket created");
EchoServerThread accepterThread = new EchoServerThread(mss);
accepterThread.start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initServerSocket()\n\t{\n\t\tboundPort = new InetSocketAddress(port);\n\t\ttry\n\t\t{\n\t\t\tserverSocket = new ServerSocket(port);\n\n\t\t\tif (serverSocket.isBound())\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Server bound to data port \" + serverSocket.getLocalPort() + \" and is ready...\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Unable to initiate socket.\");\n\t\t}\n\n\t}",
"@Before\n public void setUp() throws IOException {\n serverSocket = new ServerSocket(0, 1);\n }",
"private ServerSocket setUpServer(){\n ServerSocket serverSocket = null;\n try{\n serverSocket = new ServerSocket(SERVER_PORT);\n\n }\n catch (IOException ioe){\n throw new RuntimeException(ioe.getMessage());\n }\n return serverSocket;\n }",
"private void createServerSocket()\r\n {\r\n\t\tDebug.assert(port != 0, \"(Server/105)\");\r\n try {\r\n serverSocket = new ServerSocket(port);\r\n serverSocket.setSoTimeout(TIMEOUT);\r\n\t }\r\n\t catch (IOException e)\r\n\t \t{\r\n log(\"Could not create ServerSocket on port \" + port);\r\n\t \tDebug.printStackTrace(e);\r\n System.exit(-1);\r\n\t }\r\n }",
"public static void setServerSocket(ServerSocket serverSocket) {\n\t\tServer.serverSocket = serverSocket;\n\t}",
"private static void openServerSocket(int port) {\n\t\ttry {\n\t\t\tserverSocket = new ServerSocket(port);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Server Error\");\n\t\t}\n\t}",
"public void setSocket(ServerSocket socket) {\n\t\tthis.socket = socket;\n\t}",
"private void setUpServerThread() {\n\t\ttry {\n\t\t\tthis.incomingMsgNodes = new TCPServerThread(0, this);\n\t\t\tThread thread = new Thread(incomingMsgNodes);\n\t\t\tthread.start();\n\t\t\tthis.myServerThreadPortNum = incomingMsgNodes.getPort();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" Trouble creating Server Socket\");\n\t\t}\n\t}",
"private void initServerSock(int port) throws IOException {\n\tserver = new ServerSocket(port);\n\tserver.setReuseAddress(true);\n }",
"public ServerSocket createServerSocket(int arg0) throws IOException {\n return null;\n }",
"private ServerSocket createServerSocket() throws IOException {\n ServerSocket serverSocket = new ServerSocket(Constants.SERVER_PORT);\n System.out.printf(\"Server for chatting started at %d\\n\", Constants.SERVER_PORT);\n return serverSocket;\n }",
"public static ServerSocket createServerSocket() {\n \t\n try {\n listener = new ServerSocket(PORT,1, InetAddress.getByName(hostname));\n } catch (IOException e) {\n e.printStackTrace();\n }\n return listener;\n }",
"public MockSocket () {\n state = UNBOUND;\n }",
"public SocketServerTest(String testName) {\n\t\tsuper(testName);\n\t}",
"public ServerSocket createServerSocket(int arg0, int arg1) throws IOException {\n return null;\n }",
"public void openServer() {\n try {\n this.serverSocket = new ServerSocket(this.portNumber);\n } catch (IOException ex) {\n System.out.println(ex);\n }\n }",
"@SuppressWarnings(\"resource\")\r\n\tprivate void tryToSetupServer() {\r\n\t\ttry {\r\n\t\t\tsetupStream.write(\"Trying to start on \" + Inet4Address.getLocalHost().toString() + \":\" + port);\r\n\t\t\tcientConn = new ServerSocket(port).accept();\r\n\t\t\tsetupStream.write(\"Client connectd, ready for data\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tif(e.getMessage().contains(\"Bind failed\")) {\r\n\t\t\t\tsetupStream.write(\"You can't use that port\");\r\n\t\t\t} else if(e.getMessage().contains(\"Address already in use\")) {\r\n\t\t\t\tsetupStream.write(\"That port is already in use\");\r\n\t\t\t}\r\n\t\t\tport = -1;\r\n\t\t}\r\n\t}",
"public ServerSocket createServerSocket(int arg0, int arg1, InetAddress arg2) throws IOException {\n return null;\n }",
"private static void createServerSocket() throws SocketTimeoutException, IOException, SocketTimeoutException {\r\n serverSocket.setSoTimeout(10000);\r\n socket = serverSocket.accept();\r\n System.out.println(\"Server: connection to: \" + socket.getInetAddress());\r\n }",
"public MockSocket (String host, int port) throws IOException {\n this (InetAddress.getByName(host), port);\n }",
"public void init() throws IOException {\r\n try {\r\n serverSocket = new ServerSocket(PORT);\r\n this.running = true;\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n }\r\n }",
"public MockSocket (String host, int port, \n InetAddress localAddr, int localPort) \n throws IOException {\n this (InetAddress.getByName(host), port, localAddr, localPort);\n }",
"public Server() throws IOException\n {\n socket = new ServerSocket(port);\n }",
"public hwServer(String ident, int monitor_port, int local_port)\n {\n try\n {\n MONITOR_PORT = monitor_port;\n LOCAL_PORT = local_port;\n s = new ServerSocket(LOCAL_PORT);\n IDENT = ident;\n }\n catch (Exception e)\n {\n System.out.println(\"Server [hwServer]: Error in Server: \" + e);\n System.exit(5);\n }\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:36:07.239 -0500\", hash_original_method = \"84F635671A3C26E6B4F1228C3E17A491\", hash_generated_method = \"544C09CA031344D5713194550EB2CB9D\")\n \npublic LocalServerSocket(String name) throws IOException\n {\n impl = new LocalSocketImpl();\n\n impl.create(true);\n\n localAddress = new LocalSocketAddress(name);\n impl.bind(localAddress);\n\n impl.listen(LISTEN_BACKLOG);\n }",
"@Test\r\n public void startServerAndThreads() throws IOException {\r\n //init\r\n InetAddress iPAddress = InetAddress.getByName(\"localhost\");\r\n int port = 99;\r\n\r\n Server server = new Server(port, iPAddress);\r\n server.start();\r\n }",
"private static void startServer(){\n try{\n MMServer server=new MMServer(50000);\n }catch (IOException ioe){\n System.exit(0);\n }\n \n }",
"public EnvironmentServerSocket createServerSocket(int port) throws IOException {\n return new EnvironmentServerSocketImpl(new ServerSocket(port), this);\n }",
"public void setSocket(SocketWrapper socket);",
"public DefaultTCPServer(int port) throws Exception {\r\n\t\tserverSocket = new ServerSocket(port);\t}",
"public static ServerSocket getServerSocket(){\n if (listener == null) {\n listener = createServerSocket();\n }\n return listener;\n }",
"private void initServer() throws IOException {\r\n \t\tLogger.logMessage(\"Binding Server to \" + this.serverIpAddress + \":\" + this.serverPort);\r\n \r\n \t\tthis.isAlive = true;\r\n \t\tthis.serverSocket = new ServerSocket(this.serverPort, this.backLog, this.serverIpAddress);\r\n \t\tthis.dataLayer = DataLayerFactory.getDataLayer();\r\n \r\n \t\t// Generate the grouplist\r\n \t\tCollection<String> dbGroupList = this.dataLayer.getGroups();\r\n \r\n \t\tfor (String group : dbGroupList) {\r\n \t\t\tthis.groupList.addGroup(group);\r\n \t\t}\r\n \r\n \t\tLogger.logMessage(\"Server successfuly bound!\");\r\n \t}",
"public MockSocket (InetAddress remoteAddr, int remotePort, \n InetAddress localAddr, int localPort) \n throws IOException {\n bind ( new InetSocketAddress (localAddr, localPort) );\n connect ( new InetSocketAddress (remoteAddr, remotePort) );\n }",
"private void startListen() {\n try {\n listeningSocket = new ServerSocket(listeningPort);\n } catch (IOException e) {\n throw new RuntimeException(\"Cannot open listeningPort \" + listeningPort, e);\n }\n }",
"public void startServerSocket(Integer port) throws IOException {\n this.port = port;\n startMEthod();\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:36:07.241 -0500\", hash_original_method = \"40EEF7A0A264136F662D7E1DA715A559\", hash_generated_method = \"73B4F21232108BF5282CD85457539E41\")\n \npublic LocalServerSocket(FileDescriptor fd) throws IOException\n {\n impl = new LocalSocketImpl(fd);\n impl.listen(LISTEN_BACKLOG);\n localAddress = impl.getSockAddress();\n }",
"public void setup_servers()\n {\n // get ServerInfo\n ServerInfo t = new ServerInfo();\n // all 3 servers\n for(int i=0;i<3;i++)\n {\n // get the server IP and port info\n String t_ip = t.hmap.get(i).ip;\n int t_port = Integer.valueOf(t.hmap.get(i).port);\n Thread x = new Thread()\n {\n public void run()\n {\n try\n {\n Socket s = new Socket(t_ip,t_port);\n // SockHandle instance with svr_hdl true and rx_hdl false as this is the socket initiator\n SockHandle t = new SockHandle(s,my_ip,my_port,my_c_id,c_list,s_list,false,true,cnode);\n }\n catch (UnknownHostException e) \n {\n \tSystem.out.println(\"Unknown host\");\n \tSystem.exit(1);\n } \n catch (IOException e) \n {\n \tSystem.out.println(\"No I/O\");\n e.printStackTrace(); \n \tSystem.exit(1);\n }\n }\n };\n \n x.setDaemon(true); \t// terminate when main ends\n x.setName(\"Client_\"+my_c_id+\"_SockHandle_to_Server\"+i);\n x.start(); \t\t\t// start the thread\n }\n }",
"public OOXXServer(){\n\t\ttry\n\t\t{\n\t\t\tserver = new ServerSocket(port);\n\t\t\t\n\t\t}\n\t\tcatch(java.io.IOException e)\n\t\t{\n\t\t}\n\t}",
"public ServerSocket createSocket (int port)\n throws IOException, KeyStoreException, NoSuchAlgorithmException,\n CertificateException, UnrecoverableKeyException,\n KeyManagementException;",
"public Server() throws IOException{\n\t\tsuper();\n\t\tthis.serversocket = new java.net.ServerSocket(DEFAULTPORT);\n\t\tif (DEBUG){\n\t\t\tSystem.out.println(\"Server socket created:\" + this.serversocket.getLocalPort());\n\t\t\tclient_list.add(String.valueOf(this.serversocket.getLocalPort()));\n\t\t}\n\t}",
"public static void setUpServer() {\n\t\tList<ServerDefinition> srvToSC0CascDefs = new ArrayList<ServerDefinition>();\r\n\t\tServerDefinition srvToSC0CascDef = new ServerDefinition(TestConstants.COMMUNICATOR_TYPE_PUBLISH, TestConstants.logbackSrv, TestConstants.pubServerName1,\r\n\t\t\t\tTestConstants.PORT_PUB_SRV_TCP, TestConstants.PORT_SC0_TCP, 1, 1, TestConstants.pubServiceName1);\r\n\t\tsrvToSC0CascDefs.add(srvToSC0CascDef);\r\n\t\tSystemSuperTest.srvDefs = srvToSC0CascDefs;\r\n\t}",
"@Override\r\n\tpublic void initial() {\n\t\ttry {\r\n\t\t\tserverSocket = new ServerSocket(port);\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\t// System.out.println(\"LocalProxy run on \" + port);\r\n\t}",
"public void start() throws IOException {\n\t\tserverSocket = new ServerSocket(port);\n\t\tserverCallbacks.forEach(c -> c.onServerStarted(this, port));\n\t}",
"public static ServerSocket createServerSocket(String hostName, int port) throws IOException {\n\t\tServerSocket serverSocket = new ServerSocket();\n\t\tInetSocketAddress endpoint = new InetSocketAddress(hostName, port);\n\t\tserverSocket.bind(endpoint);\n\t\treturn serverSocket;\n\t}",
"public Server(){\n\t\ttry {\n\t\t\t// initialize the server socket with the specified port\n\t\t\tsetServerSocket(new ServerSocket(PORT));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO Exception while creating a server\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void initialize() throws SocketException{\n defPortUsed = true;\n initializeReal(defPortNumber, defPacketSize);\n }",
"public MockSocket (InetAddress remoteAddr, int remotePort) \n throws IOException {\n bind ( null );\n connect ( new InetSocketAddress (remoteAddr, remotePort) );\n }",
"public ServerListener(ServerSocket socket) {\n\t\tsuper();\n\t\tthis.socket = socket;\n\t}",
"public boolean setupSocket() throws ExitProgram {\n\t\tboolean success = false;\n\t\t\n\t\tthis.showNamedMessage(\"Trying to open a new socket...\");\n\t\twhile (this.socket == null) { \n\t\t\ttry {\n\t\t\t\tthis.socket = TransportLayer.openNewDatagramSocket(this.ownPort);\n\t\t\t\tthis.showNamedMessage(\"Client now bound to port \" + ownPort);\n\t\t\t\tsuccess = true;\n\t\t\t} catch (SocketException e) {\n\t\t\t\tthis.showNamedError(\"Something went wrong when opening the socket: \"\n\t\t\t\t\t\t+ e.getLocalizedMessage());\n\t\t\t\tif (!textUI.getBoolean(\"Do you want to try again?\")) {\n\t\t\t\t\tthrow new exceptions.ExitProgram(\"User indicated to exit the \"\n\t\t\t\t\t\t\t+ \"program after socket opening failure.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn success;\n\t}",
"public void setServer(BluetoothServerSocket bluetoothServerSocket){\n // Primeiro passo: Verifica se o servidor já está aberto e o fecha.\n if (isAvailable()){\n closeConnection();\n }\n // Segundo passo: Define a nova instância do servidor.\n this.bluetoothServerSocket = bluetoothServerSocket;\n }",
"public Socket setupSocket(final String serverIP, final String serverPort) {\n mServerIP = serverIP;\n mServerPort = serverPort;\n mServerUrl = \"http://\" + mServerIP + \":\" + mServerPort;\n try {\n mSocket = IO.socket(mServerUrl);\n return mSocket;\n } catch (URISyntaxException e) {\n throw new RuntimeException(e);\n }\n }",
"public ServerSocket createSocket (int port, int backlog,\n InetAddress ifAddress)\n throws IOException, KeyStoreException, NoSuchAlgorithmException,\n CertificateException, UnrecoverableKeyException,\n KeyManagementException;",
"private void initSocket(String host, String port) throws IOException {\n\t\t// check the validity of the host name\n\t\tif (host == null || host.isEmpty()) throw new IllegalArgumentException(\"host == null || host.isEmpty()\");\n\t\t// check the validity of the port number\n\t\tint p = 0;\n\t\ttry {\n\t\t\tp = Integer.parseInt(port);\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new IllegalArgumentException(\"Illegal port argument\");\n\t\t}\n\t\tif (p <= 0) {\n\t\t\tthrow new IllegalArgumentException(\"Illegal port argument\");\n\t\t}\n\t\t// establish the network connection\n\t\ttry {\n\t\t\tthis.socket = new Socket(host, p);\n\t\t} catch (IOException e) {\n\t\t\tgetErrorManager().error(\"Failed to establish the network connection\", e,\n\t\t\t\tErrorManager.OPEN_FAILURE);\n\t\t\tthrow e;\n\t\t}\n\t\tsuper.internalSetOutputStream(new BufferedOutputStream(this.socket.getOutputStream()));\n\t}",
"public void start() {\n\t\t\n\t\ttry {\n\t\t\tmainSocket = new DatagramSocket(PORT_NUMBER);\n\t\t}\n\t\tcatch(SocketException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\t//Lambda expression to shorten the run method\n\t\tThread serverThread = new Thread( () -> {\n\t\t\tlisten();\n\t\t});\n\t\t\n\t\tserverThread.start();\n\t}",
"public TestCaseSocket() {\n\t}",
"public static void initCommunicationServerThread(ProjectType project){\r\n try{\r\n serverSocket = new ServerSocket(Attributes.PROFILING_PORT, 2, InetAddress.getLocalHost());\r\n System.out.println(\"Server - ServerSocket created on port: \" + serverSocket.getLocalPort());\r\n }catch (UnknownHostException uhe){\r\n uhe.printStackTrace();\r\n //TODO - log this stuff properly\r\n }catch (IOException ioe){\r\n ioe.printStackTrace();\r\n //TODO - log this stuff properly\r\n }\r\n new CommunicationServerThread(project);\r\n }",
"public MemcachedServerSocket(int port) throws IOException {\n this(port, 0);\n }",
"public void startServer() throws IOException {\n log.info(\"Starting server in port {}\", port);\n try {\n serverSocket = new ServerSocket(port);\n this.start();\n log.info(\"Started server. Server listening in port {}\", port);\n } catch (IOException e) {\n log.error(\"Error starting the server socket\", e);\n throw e;\n }\n }",
"public Server() {\n\t\t\n\t\ttry {\n\t\t\tss= new ServerSocket(PORT);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace(); // Default\n\t\t}\n\t}",
"public static RoMServer createServer() throws IOException, Exception {\r\n \t\t// Ip and Port out of config\r\n \t\tIConfig cfg = ConfigurationFactory.getConfig();\r\n \r\n \t\treturn RoMServer.createServer(cfg.getIp(), cfg.getPort());\r\n \t}",
"void startServer(int port) throws Exception;",
"@Override\n public void beforeAll(ExtensionContext context) {\n localServer = RSocketFactory.receive()\n .acceptor((setupPayload, rSocket) -> Mono.just(new SimpleResponderImpl(setupPayload, rSocket)))\n .transport(LocalServerTransport.create(\"test\"))\n .start()\n .block();\n }",
"public Server() {\n try {\n welcomeSocket = new ServerSocket(PORT);\n System.out.println(\"Server listening on \" + PORT);\n } catch (IOException e) {\n System.out.println(\"Error creating welcome socket. Is this socket available?\");\n }\n }",
"private StubSocket createTestSocket(String inputStreamContents) {\n InputStream inputStream = new ByteArrayInputStream(inputStreamContents.getBytes());\n return new StubSocket(DEFAULT_HOST, inputStream, outputStream);\n }",
"public void InitSocket(String server, int port) throws IOException {\n socket = new Socket(server, port);\n outputStream = socket.getOutputStream();\n\n Thread receivingThread = new Thread() {\n @Override\n public void run() {\n try {\n \n BufferedReader reader = new BufferedReader(\n new InputStreamReader(socket.getInputStream()));\n String line;\n while ((line = reader.readLine()) != null)\n notifyObservers(line);\n } catch (IOException ex) {\n notifyObservers(ex);\n }\n }\n };\n receivingThread.start();\n }",
"public UDPEchoServer() throws SocketException {\r\n super(DEFAULT_PORT);\r\n }",
"TestNamingServer(Test test) throws IOException\n {\n this.test = test;\n this.registration_skeleton = HttpServer.create(new InetSocketAddress(REGISTRATION_PORT), 0);\n this.registration_skeleton.setExecutor(Executors.newCachedThreadPool());\n\n this.service_skeleton = HttpServer.create(new InetSocketAddress(SERVICE_PORT), 0);\n this.service_skeleton.setExecutor(Executors.newCachedThreadPool());\n\n this.gson = new Gson();\n }",
"public void start()\n throws IOException, StunException\n {\n localSocket = new IceUdpSocketWrapper(\n new SafeCloseDatagramSocket(serverAddress));\n\n stunStack.addSocket(localSocket);\n stunStack.addRequestListener(serverAddress, this);\n\n }",
"public void InitSocket(String server, int port) throws IOException {\r\n socket = new Socket(server, port);\r\n outputStream = socket.getOutputStream();\r\n\r\n Thread receivingThread = new Thread() {\r\n @Override\r\n public void run() {\r\n try {\r\n BufferedReader reader = new BufferedReader(\r\n new InputStreamReader(socket.getInputStream()));\r\n String line;\r\n while ((line = reader.readLine()) != null) {\r\n notifyObservers(line);\r\n }\r\n } catch (IOException ex) {\r\n notifyObservers(ex);\r\n }\r\n }\r\n };\r\n receivingThread.start();\r\n }",
"public void testSSLSocketInetAddressint() throws Exception {\n ServerSocket ss = new ServerSocket(0);\n SSLSocket soc = new MySSLSocket(InetAddress.getLocalHost(), ss\n .getLocalPort());\n ss.close();\n soc.close();\n }",
"@Before\n\tpublic void setUp() throws Exception {\n\t\tserverChannel = ServerSocketChannel.open();\n\t\tserverChannel.socket().bind(null, 0);\n\t\tportNumber = serverChannel.socket().getLocalPort();\n\t\t\n\t\t// Connect the client\n\t\tFuture<Boolean> result = service.submit(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tclient = new Client(\"bob\");\n\t\t\t\ttry {\n\t\t\t\t\tclient.Connect(\"localhost\", portNumber);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tfail(\"Failure during setup...\");\n\t\t\t\t}\n\t\t\t}\n\t\t}, Boolean.TRUE);\n\t\t\n\t\tchannel = serverChannel.accept();\n\t\t\n\t\t// Get the connection request\n\t\tConnectionRequest conRequest = (ConnectionRequest) this.getMessage(channel);\n\t\t\n\t\tthis.sendMessage(new RequestResponse(Status.SUCCESS), channel);\n\t\tresult.get();\n\t}",
"protected void bind() throws SocketException {\n super.bind();\n\n //start the secure socket\n dtlsSocket = options.getSecurePort() > 0 ? new DatagramSocket(options.getSecurePort()) : new DatagramSocket();\n dtslReceiverThread = createDatagramServer(\"mqttsn-dtls-receiver\", options.getReceiveBuffer(), dtlsSocket);\n }",
"public ServerSocket createSocket (int port, int backlog)\n throws IOException, KeyStoreException, NoSuchAlgorithmException,\n CertificateException, UnrecoverableKeyException,\n KeyManagementException;",
"public ServerSocketConnexion(PostmanServer postmanServer) {\n this.postmanServer = postmanServer;\n stateSocket = AbstractSocket.StateSocket.CONNEXION;\n ServerSocketConnexion.SetUpConnexion setUpConnexion = new ServerSocketConnexion.SetUpConnexion();\n setUpConnexion.start();\n }",
"public Server() throws IOException {\n try {\n this.serverSocket = new ServerSocket(this.port,100, InetAddress.getByName(host));\n } catch (UnknownHostException e) {\n System.out.println(\"Erreur lors de la construction du serveur (Hôte inconnu) - Server Constructor Error\");\n e.printStackTrace();\n } catch(IOException e) {\n e.printStackTrace();\n }\n }",
"@Before\n public void setup() {\n mServerContext = mock(ServerContext.class);\n mServerRouter = mock(IServerRouter.class);\n mChannelHandlerContext = mock(ChannelHandlerContext.class);\n mBatchProcessor = mock(BatchProcessor.class);\n mStreamLog = mock(StreamLog.class);\n mCache = mock(LogUnitServerCache.class);\n\n // Initialize with newDirectExecutorService to execute the server RPC\n // handler methods on the calling thread.\n when(mServerContext.getExecutorService(anyInt(), anyString()))\n .thenReturn(MoreExecutors.newDirectExecutorService());\n\n // Initialize basic LogUnit server parameters.\n when(mServerContext.getServerConfig())\n .thenReturn(ImmutableMap.of(\n \"--cache-heap-ratio\", \"0.5\",\n \"--memory\", false,\n \"--no-sync\", false));\n\n // Prepare the LogUnitServerInitializer.\n LogUnitServer.LogUnitServerInitializer mLUSI = mock(LogUnitServer.LogUnitServerInitializer.class);\n when(mLUSI.buildStreamLog(\n any(LogUnitServerConfig.class),\n eq(mServerContext),\n any(BatchProcessorContext.class)\n )).thenReturn(mStreamLog);\n\n when(mLUSI.buildLogUnitServerCache(any(LogUnitServerConfig.class), eq(mStreamLog))).thenReturn(mCache);\n when(mLUSI.buildStreamLogCompaction(mStreamLog)).thenReturn(mock(StreamLogCompaction.class));\n when(mLUSI.buildBatchProcessor(\n any(LogUnitServerConfig.class),\n eq(mStreamLog),\n eq(mServerContext),\n any(BatchProcessorContext.class)\n )).thenReturn(mBatchProcessor);\n\n logUnitServer = new LogUnitServer(mServerContext, mLUSI);\n }",
"final public static void main(String[] args)\r\n\t{\n\t\ttry\r\n\t\t{\r\n\t\t\tServerSocket test = new ServerSocket(9999);\r\n\t\t\ttest.close();\r\n\t\t\ttest = null;\r\n\t\t} catch (IOException e)\r\n\t\t{\r\n\t\t\tCommonMethods.displayErrorMessage(Text.MAIN.PORT9999_TAKEN_ERROR);\r\n\t\t\tCommonMethods.terminate();\r\n\t\t}\r\n\t\t//start the program\r\n\t\tStartUp startUp = new StartUp();\r\n\t\tstartUp.addStartUpListener(new StartUpListener(startUp));\r\n\t}",
"public boolean setServer() {\n\t\tboolean success = false;\n\t\t\n\t\tthis.serverPort = FileTransferProtocol.DEFAULT_SERVER_PORT;\n\t\t\n\t\tboolean searchByHostName = textUI.getBoolean(\"Do you want to search by hostname? \"\n\t\t\t\t+ \"(if not, client will try multicast search)\");\n\t\t\n\t\tif (searchByHostName) {\n\t\t\tsuccess = this.findServerByHostName();\n\t\t} else {\n\t\t\tsuccess = this.discoverServer();\n\t\t}\n\t\t\n\t\tif (success) {\n\t\t\tthis.showNamedMessage(\"Server set to \" + this.serverName + \", with address \" +\n\t\t\t\t\tthis.serverAddress + \" and port \" + this.serverPort);\n\t\t}\n\t\t\n\t\treturn success;\n\t}",
"public Server(int port) throws IOException{\n\t\tsuper();\n\t\tthis.serversocket= new java.net.ServerSocket(port);\n\t\t\n\t\tif (DEBUG){\n\t\t\tSystem.out.println(\"Server socket created:\" + this.serversocket.getLocalPort());\n\t\t\tclient_list.add(String.valueOf(this.serversocket.getLocalPort()));\n\t\t}\n\t}",
"@Override\r\n\tpublic void start(Socket socket){}",
"public ServerThread(Socket socket) {\r\n\t\tsoc = socket;\r\n\t}",
"public SocketServer() {\n \n super();\n start();\n\n }",
"void setServerSocketFactory(String factoryClassName)\n throws ClassNotFoundException, InstantiationException, IllegalAccessException;",
"@Override\n @SuppressWarnings(\"CallToPrintStackTrace\")\n public void simpleInitApp() {\n \n\n try {\n System.out.println(\"Using port \" + port);\n // create the server by opening a port\n server = Network.createServer(port);\n server.start(); // start the server, so it starts using the port\n } catch (IOException ex) {\n ex.printStackTrace();\n destroy();\n this.stop();\n }\n System.out.println(\"Server started\");\n // create a separat thread for sending \"heartbeats\" every now and then\n new Thread(new NetWrite()).start();\n server.addMessageListener(new ServerListener(), ChangeVelocityMessage.class);\n // add a listener that reacts on incoming network packets\n \n }",
"@BeforeEach\n public void setup() {\n wireMockServer = new WireMockServer(8090);\n wireMockServer.start();\n setupStubs();\n }",
"@Override\r\n \tpublic void initialize() {\n \t\tThreadRenamingRunnable.setThreadNameDeterminer(ThreadNameDeterminer.CURRENT);\r\n \r\n \t\tInetSocketAddress address;\r\n \r\n \t\tif (m_host == null) {\r\n \t\t\taddress = new InetSocketAddress(m_port);\r\n \t\t} else {\r\n \t\t\taddress = new InetSocketAddress(m_host, m_port);\r\n \t\t}\r\n \r\n \t\tm_queue = new LinkedBlockingQueue<ChannelBuffer>(m_queueSize);\r\n \r\n \t\tExecutorService bossExecutor = Threads.forPool().getCachedThreadPool(\"Cat-TcpSocketReceiver-Boss-\" + address);\r\n \t\tExecutorService workerExecutor = Threads.forPool().getCachedThreadPool(\"Cat-TcpSocketReceiver-Worker\");\r\n \t\tChannelFactory factory = new NioServerSocketChannelFactory(bossExecutor, workerExecutor);\r\n \t\tServerBootstrap bootstrap = new ServerBootstrap(factory);\r\n \r\n \t\tbootstrap.setPipelineFactory(new ChannelPipelineFactory() {\r\n \t\t\tpublic ChannelPipeline getPipeline() {\r\n \t\t\t\treturn Channels.pipeline(new MyDecoder(), new MyHandler());\r\n \t\t\t}\r\n \t\t});\r\n \r\n \t\tbootstrap.setOption(\"child.tcpNoDelay\", true);\r\n \t\tbootstrap.setOption(\"child.keepAlive\", true);\r\n \t\tbootstrap.bind(address);\r\n \r\n \t\tm_logger.info(\"CAT server started at \" + address);\r\n \t\tm_factory = factory;\r\n \t}",
"void startServer(String name, Config.ServerConfig config);",
"public Socket createSocket() {\n try {\n // Create socket\n server = new Socket(\"127.0.0.1\", 8520);\n } catch (IOException ioe) {\n System.out.println(\"IOException: \" + ioe.getMessage());\n }\n return server;\n }",
"public BorrowMyStuffServer(int port) throws IOException {\n\t\t// model = new MessageModel();\n\t\tserverSocket = new ServerSocket(port);\n\t\tserverSocket.setSoTimeout(500000);\n\t\t// users = new ArrayList<>();\n\t}",
"private static void startServer() {\n new Thread() {\n public void run() {\n Server server = new Server();\n server.startUDP();\n }\n }.start();\n }",
"@Test\n public void testServerStart() {\n assertDoesNotThrow(() -> {\n Server server = new Server(500);\n server.start();\n });\n }",
"@Test\n public void serverConfiguration() throws IOException {\n initJadlerUsing(new JettyStubHttpServer());\n \n try {\n onRequest().respond().withStatus(EXPECTED_STATUS);\n assertExpectedStatus();\n }\n finally {\n closeJadler();\n }\n }",
"public TCPServer(int portNumber){\r\n\t\t// Abro el socket en el puerto dado y obtengo los stream\r\n\t\ttry {\r\n\t\t\tmServerSocket = new ServerSocket(portNumber);\r\n\t\t} catch (IOException e) { e.printStackTrace(); }\r\n\t}",
"public static SSLServerSocket createSSLServerSocket(String hostName, int port, KeyManager[] keyManagers)\n\t\t\tthrows IOException, KeyManagementException, NoSuchAlgorithmException {\n\n\t\tSSLContext sc = SSLContext.getInstance(\"TLS\");\n\t\tsc.init(keyManagers, null, null);\n\t\tSSLServerSocketFactory ssf = sc.getServerSocketFactory();\n\t\tSSLServerSocket serverSocket = (SSLServerSocket) ssf.createServerSocket();\n\n\t\tInetSocketAddress endpoint = new InetSocketAddress(hostName, port);\n\t\tserverSocket.bind(endpoint);\n\t\treturn serverSocket;\n\t}",
"public ServerSocket getServerSocket() {\n\t\treturn serverSocket;\n\t}",
"public TCPServer() throws SocketException\n\t{\n\t\tsuper();\n\t\tsetCheck(null);\n\t}",
"public interface ServerSocketFactory {\n\n\t\tpublic ServerSocket create() throws IOException;\n\n\t}",
"public static void setupRMI(final boolean localHostOnly) {\n if (System.getProperty(SERVER_HOSTNAME) == null) {\n System.setProperty(SERVER_HOSTNAME, getLoopbackAddress());\n }\n // do not use HTTP tunnelling\n System.setProperty(\"java.rmi.server.disableHttp\", \"true\");\n\n if (RMISocketFactory.getSocketFactory() != null) return;\n try {\n RMISocketFactory.setSocketFactory(new RMISocketFactory() {\n final InetAddress loopbackAddress = InetAddress.getByName(getListenAddress(localHostOnly));\n\n @Override\n public Socket createSocket(String host, int port) throws IOException {\n Socket socket = new Socket(host, port);\n socket.setKeepAlive(true);\n return socket;\n }\n\n @Override\n public ServerSocket createServerSocket(int port) throws IOException {\n return new ServerSocket(port, 0, loopbackAddress);\n }\n });\n }\n catch (IOException e) {\n throw new AssertionError(e);\n }\n }",
"LocalSocketImpl(FileDescriptor fd)\n {\n this.fd = fd;\n }",
"public void startClientServer() {\n try {\n this.server_socket = new ServerSocket( port );\n this.start();\n } catch (IOException e ) {\n System.err.println( \"Failure: Socket couldn't OPEN! -> \" + e );\n } finally {\n System.out.println( \"Success: Server socket is now Listening on port \" + port + \"...\" );\n }\n }"
]
| [
"0.7301637",
"0.7218824",
"0.70891166",
"0.70839524",
"0.6916302",
"0.66862804",
"0.66744053",
"0.6532441",
"0.6527286",
"0.646755",
"0.6421589",
"0.64128435",
"0.6376618",
"0.6376449",
"0.62874436",
"0.6276567",
"0.62707204",
"0.6270637",
"0.6139092",
"0.6134119",
"0.611401",
"0.6110767",
"0.6096662",
"0.60820144",
"0.6054974",
"0.6049924",
"0.60355866",
"0.6025703",
"0.60238165",
"0.60079426",
"0.5998149",
"0.5988065",
"0.5958583",
"0.5955275",
"0.59413236",
"0.5935235",
"0.5923463",
"0.5918374",
"0.5912581",
"0.59068507",
"0.59049046",
"0.5899618",
"0.5895647",
"0.589382",
"0.5877551",
"0.58443874",
"0.58377945",
"0.58041084",
"0.5799953",
"0.57993674",
"0.57678926",
"0.5736718",
"0.57359356",
"0.5735358",
"0.5731262",
"0.573074",
"0.5725868",
"0.5719421",
"0.5711151",
"0.5698575",
"0.5688961",
"0.56852657",
"0.5681574",
"0.5677614",
"0.5668599",
"0.566646",
"0.56631035",
"0.5657245",
"0.56530976",
"0.56411994",
"0.56387323",
"0.56121784",
"0.55979204",
"0.55864334",
"0.558423",
"0.5579384",
"0.5554547",
"0.55503404",
"0.5514704",
"0.5504374",
"0.54974365",
"0.5482058",
"0.548118",
"0.5476194",
"0.54744124",
"0.5463669",
"0.5463245",
"0.5459841",
"0.54450685",
"0.544389",
"0.54382366",
"0.5437104",
"0.5434084",
"0.54338056",
"0.5414893",
"0.5412765",
"0.54087085",
"0.54068035",
"0.5396556",
"0.53942484"
]
| 0.7588061 | 0 |
Test a simple connection to a local IP without GNS resolution | @Test
public void ipConnectionTest()
{
try
{
MSocket ms = new MSocket(InetAddress.getByName(LOCALHOST), LOCAL_PORT);
InputStream is = ms.getInputStream();
OutputStream os = ms.getOutputStream();
echoTest(is, os, 54);
echoTest(is, os, 45);
ms.close();
}
catch (Exception e)
{
e.printStackTrace();
fail("IP Connection test failed");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\r\n public void gnsConnectionTest()\r\n {\r\n try\r\n {\r\n MSocket ms = new MSocket(InetAddress.getByName(LOCALHOST), LOCAL_PORT);\r\n InputStream is = ms.getInputStream();\r\n OutputStream os = ms.getOutputStream();\r\n echoTest(is, os, 54);\r\n echoTest(is, os, 45);\r\n System.out.println(\"Closing MSocket\");\r\n ms.close();\r\n }\r\n catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n fail(\"IP Connection test failed\");\r\n }\r\n }",
"@Test\n public void testClient() throws Exception {\n final CandidateProvider<InetSocketAddress> stunCandidateProvider = \n new DnsSrvCandidateProvider(\"_stun._udp.littleshoot.org\");\n /*\n new SrvCandidateProvider(srv, \"_stun._udp.littleshoot.org\", \n new InetSocketAddress(\"stun.littleshoot.org\", StunConstants.STUN_PORT));\n */\n // We do this a bunch of times because the server selection is random.\n for (int i = 0; i < 20; i++) {\n final UdpStunClient client = new UdpStunClient(\n stunCandidateProvider);\n final InetSocketAddress srflx = client.getServerReflexiveAddress();\n // System.out.println(\"Got address: \"+srflx);\n assertNotNull(\"Did not get server reflexive address\", srflx);\n }\n }",
"@Test\n public void shouldGetHostAddress() {\n assertEquals(NE_IP, session.getAddress().getHostAddress());\n }",
"public void testSSLSocketInetAddressint() throws Exception {\n ServerSocket ss = new ServerSocket(0);\n SSLSocket soc = new MySSLSocket(InetAddress.getLocalHost(), ss\n .getLocalPort());\n ss.close();\n soc.close();\n }",
"@Test\r\n public void testInternetConnection(){\r\n CheckConnection checkConnection = new CheckConnection();\r\n checkConnection.checkURL();\r\n }",
"@Test\n public void testAddress() throws UnknownHostException {\n InetAddress address = InetAddress.getByAddress(\"www.baidu.com\", new byte[]{(byte) 192, (byte) 168, 0, 1});\n System.out.println(address.getHostName());\n InetSocketAddress socketAddress = new InetSocketAddress(address, 8009);\n System.out.println(socketAddress.getHostString());\n }",
"private void testConnection(){ \n\t\t\tconnection=false;\n\t\t\tip = ipfield.getText().toString();\n\t\t\tLog.d(null,\"ip is \"+ip);\n\t\t\tif(ip.equals(\"\")) \n\t\t\t\tToast.makeText(getApplicationContext(), \"Please Enter an IP Address\", Toast.LENGTH_SHORT).show();\n\t\t\telse{\n\t\t\t\tRunnable runnable = new Runnable(){\n\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tSocket s = new Socket(ip,6969);\n\t\t\t\t\t\t\t\ts.close();\n\t\t\t\t\t\t\t\tconnection=true;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t catch (UnknownHostException e1) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\tLog.d(null, \"Wrong ip\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t\tLog.d(null, \"Wrong ip\");\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tThread thread = new Thread(runnable);\n\t\t\t\tthread.start();\n\t\t\t}\n\t}",
"public void testSSLSocketInetAddressintInetAddressint() throws Exception {\n try {\n ServerSocket ss1 = new ServerSocket(0);\n ServerSocket ss2 = new ServerSocket(0);\n SSLSocket soc = new MySSLSocket(InetAddress.getLocalHost(), ss1\n .getLocalPort(), InetAddress.getLocalHost(), ss2\n .getLocalPort());\n ss1.close();\n ss2.close();\n soc.close();\n } catch (IOException e) {\n }\n }",
"@Override\n\tpublic void testEtherNet() {\n\t\tieWebDriver.checkEthernet();\n\t}",
"public boolean isNetworkReachable();",
"@Test\n public void testConnectToInvalidService()\n throws IOException\n {\n final boolean availability = ConnectionChecker.checkServiceAvailability(\"localhost\", 65534, 3000);\n\n assertFalse(availability);\n }",
"@Test\n public void testGetDefaultSocketAddress() throws Exception {\n \tInetAddress adr = InetAddress.getByName(\"252.10.0.200\");\n \t// RFC 2131 compliance\n \t// sorry we ignore the broadcast bit\n \t// fully broadcast by client\n \tgetDefaultSocketAddressTester(INADDR_ANY, INADDR_ANY, DHCPOFFER, INADDR_BROADCAST, 68);\n \tgetDefaultSocketAddressTester(INADDR_ANY, INADDR_ANY, DHCPACK, INADDR_BROADCAST, 68);\n \tgetDefaultSocketAddressTester(INADDR_ANY, INADDR_ANY, DHCPNAK, INADDR_BROADCAST, 68);\n \t// unicast from client\n \tgetDefaultSocketAddressTester(adr, INADDR_ANY, DHCPOFFER, adr, 68);\n \tgetDefaultSocketAddressTester(adr, INADDR_ANY, DHCPACK, adr, 68);\n \tgetDefaultSocketAddressTester(adr, INADDR_ANY, DHCPNAK, INADDR_BROADCAST, 68);\n \t// when though a relay\n \tgetDefaultSocketAddressTester(INADDR_ANY, adr, DHCPOFFER, adr, 67);\n \tgetDefaultSocketAddressTester(INADDR_ANY, adr, DHCPACK, adr, 67);\n \tgetDefaultSocketAddressTester(INADDR_ANY, adr, DHCPNAK, adr, 67);\n }",
"void onConnectToNetByIPFailure();",
"private void print_addr() {\n try(final DatagramSocket socket = new DatagramSocket()){\n socket.connect(InetAddress.getByName(\"8.8.8.8\"), 10002);\n System.out.println(socket.getLocalAddress().getHostAddress()+\":\"+port);\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void testSSLSocketStringintInetAddressint() throws Exception {\n try {\n ServerSocket ss1 = new ServerSocket(0);\n ServerSocket ss2 = new ServerSocket(0);\n SSLSocket soc = new MySSLSocket(\"localhost\", ss1.getLocalPort(),\n InetAddress.getLocalHost(), ss2.getLocalPort());\n ss1.close();\n ss2.close();\n soc.close();\n } catch (IOException e) {\n }\n }",
"static void test4 () throws Exception {\n server = new ServerSocket (0);\n int port = server.getLocalPort();\n\n /* create an IPv4 mapped address corresponding to local host */\n\n byte[] b = {0,0,0,0,0,0,0,0,0,0,(byte)0xff,(byte)0xff,0,0,0,0};\n byte[] ia4 = ia4addr.getAddress();\n b[12] = ia4[0];\n b[13] = ia4[1];\n b[14] = ia4[2];\n b[15] = ia4[3];\n\n InetAddress dest = InetAddress.getByAddress (b);\n c1 = new Socket (dest, port);\n s1 = server.accept ();\n simpleDataExchange (c1,s1);\n c1.close ();\n s1.close ();\n server.close ();\n System.out.println (\"Test4: OK\");\n }",
"@Test\n public void testGetMyIP() {\n System.out.println(\"getMyIP\");\n String expResult = MY_IP_ADDRESS;\n String result = instance.getMyIP();\n assertEquals(expResult, result);\n }",
"private static void init() {\n\t\ttry {\n\t\t\tlocalAddr = InetAddress.getLocalHost();\n\t\t\tlogger.info(\"local IP:\" + localAddr.getHostAddress());\n\t\t} catch (UnknownHostException e) {\n\t\t\tlogger.info(\"try again\\n\");\n\t\t}\n\t\tif (localAddr != null) {\n\t\t\treturn;\n\t\t}\n\t\t// other way to get local IP\n\t\tEnumeration<InetAddress> localAddrs;\n\t\ttry {\n\t\t\t// modify your network interface name\n\t\t\tNetworkInterface ni = NetworkInterface.getByName(networkInterface);\n\t\t\tif (ni == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlocalAddrs = ni.getInetAddresses();\n\t\t\tif (localAddrs == null || !localAddrs.hasMoreElements()) {\n\t\t\t\tlogger.error(\"choose NetworkInterface\\n\" + getNetworkInterface());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\twhile (localAddrs.hasMoreElements()) {\n\t\t\t\tInetAddress tmp = localAddrs.nextElement();\n\t\t\t\tif (!tmp.isLoopbackAddress() && !tmp.isLinkLocalAddress() && !(tmp instanceof Inet6Address)) {\n\t\t\t\t\tlocalAddr = tmp;\n\t\t\t\t\tlogger.info(\"local IP:\" + localAddr.getHostAddress());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Failure when init ProxyUtil\", e);\n\t\t\tlogger.error(\"choose NetworkInterface\\n\" + getNetworkInterface());\n\t\t}\n\t}",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tSocket s = new Socket(ip,6969);\n\t\t\t\t\t\t\t\ts.close();\n\t\t\t\t\t\t\t\tconnection=true;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t catch (UnknownHostException e1) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\tLog.d(null, \"Wrong ip\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t\tLog.d(null, \"Wrong ip\");\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}",
"public boolean testConnection() {\r\n boolean toReturn = true;\r\n\r\n String[] paramFields = {};\r\n SocketMessage request = new SocketMessage(\"admin\", \"ping\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY, \"\", paramFields);\r\n SocketMessage response = handleMessage(request);\r\n if (isSuccessful(response)) {\r\n toReturn = true;\r\n } else {\r\n toReturn = false;\r\n }\r\n\r\n return toReturn;\r\n }",
"@Test\n public void testLocalIPOverride() throws Exception {\n System.setProperty(PacScriptMethods.OVERRIDE_LOCAL_IP, \"123.123.123.123\");\n try {\n PacProxySelector pacProxySelector = new PacProxySelector(\n new UrlPacScriptSource(toUrl(\"testLocalIP.pac\")));\n List<Proxy> result = pacProxySelector.select(TestUtil.HTTP_TEST_URI);\n assertEquals(\n result.get(0),\n new Proxy(Type.HTTP, InetSocketAddress.createUnresolved(\n \"123.123.123.123\", 8080)));\n } finally {\n System.setProperty(PacScriptMethods.OVERRIDE_LOCAL_IP, \"\");\n }\n\n }",
"private boolean isReachable(String addr, int openPort) {\n try \n {\n ClienteUDP cliente = new ClienteUDP(addr);\n cliente.enviar(\"hola,df,df\");\n String rpta = cliente.recibir();\n if(rpta.equals(\"hola\"))\n return true;\n }catch(Exception e)\n {\n return false;\n }\n return false;\n }",
"boolean hasIp();",
"boolean hasIp();",
"boolean hasIp();",
"boolean hasIp();",
"private static void getServerIPAddress() {\r\n // Get local IP address\r\n try {\r\n Enumeration<NetworkInterface> enumeratedNetworkInterface = NetworkInterface.getNetworkInterfaces();\r\n\r\n NetworkInterface networkInterface;\r\n Enumeration<InetAddress> enumeratedInetAddress;\r\n InetAddress inetAddress;\r\n\r\n for (; enumeratedNetworkInterface.hasMoreElements(); ) {\r\n networkInterface = enumeratedNetworkInterface.nextElement();\r\n enumeratedInetAddress = networkInterface.getInetAddresses();\r\n\r\n for (; enumeratedInetAddress.hasMoreElements(); ) {\r\n inetAddress = enumeratedInetAddress.nextElement();\r\n String anIPAddress = inetAddress.getHostAddress();\r\n if (log.isDebugEnabled()) {\r\n log.debug(\"Scanning local IP space: \" + anIPAddress);\r\n }\r\n\r\n // exclude loop-back and MAC address\r\n if (!(anIPAddress.equals(\"127.0.0.1\") || anIPAddress.contains(\":\")))\r\n localIPAddress = anIPAddress;\r\n }\r\n }\r\n } catch (Exception e) {\r\n log.error(\"Error in retrieving the local IP address: \" + e.toString());\r\n }\r\n }",
"static void test2 () throws Exception {\n\n server = new ServerSocket ();\n InetSocketAddress sadr = new InetSocketAddress (ia4addr, 0);\n server.bind (sadr);\n dprintln (\"server bound to \" + sadr);\n int port = server.getLocalPort();\n InetSocketAddress sadr6 = new InetSocketAddress (ia6addr, port);\n\n c1 = new Socket (ia4addr, port);\n try {\n dprintln (\"connecting to \" + ia6addr);\n c2 = new Socket ();\n c2.connect (sadr6, 1000);\n throw new RuntimeException (\"connect to IPv6 address should be refused\");\n } catch (IOException e) { }\n server.close ();\n c1.close ();\n\n /* now try IPv6 only */\n\n server = new ServerSocket ();\n sadr = new InetSocketAddress (ia6addr, 0);\n dprintln (\"binding to \" + sadr);\n server.bind (sadr);\n port = server.getLocalPort();\n\n c1 = new Socket (ia6addr, port);\n try {\n c2 = new Socket (ia4addr, port);\n throw new RuntimeException (\"connect to IPv4 address should be refused\");\n } catch (IOException e) { }\n server.close ();\n c1.close ();\n\n /* now try IPv6 specific port only */\n\n server = new ServerSocket ();\n sadr = new InetSocketAddress (ia6addr, 5200);\n server.bind (sadr);\n port = server.getLocalPort();\n t_assert (port == 5200);\n\n c1 = new Socket (ia6addr, port);\n try {\n c2 = new Socket (ia4addr, port);\n throw new RuntimeException (\"connect to IPv4 address should be refused\");\n } catch (IOException e) { }\n server.close ();\n c1.close ();\n\n /* now try IPv4 specific port only */\n\n server = new ServerSocket ();\n sadr = new InetSocketAddress (ia4addr, 5200);\n server.bind (sadr);\n port = server.getLocalPort();\n t_assert (port == 5200);\n\n c1 = new Socket (ia4addr, port);\n\n try {\n c2 = new Socket (ia6addr, port);\n throw new RuntimeException (\"connect to IPv6 address should be refused\");\n } catch (IOException e) { }\n server.accept().close();\n c1.close ();\n server.close();\n System.out.println (\"Test2: OK\");\n }",
"@POST(\"/TestConnection\")\n\tboolean testConnection() throws UnknownHostException;",
"private void connect(){\n // Averiguem quina direccio IP hem d'utilitzar\n InetAddress iAddress;\n try {\n iAddress = InetAddress.getLocalHost();\n String IP = iAddress.getHostAddress();\n\n //Socket sServidor = new Socket(\"172.20.31.90\", 33333);\n sServidor = new Socket (String.valueOf(IP), 33333);\n doStream = new DataOutputStream(sServidor.getOutputStream());\n diStream = new DataInputStream(sServidor.getInputStream());\n } catch (ConnectException c){\n System.err.println(\"Error! El servidor no esta disponible!\");\n System.exit(0);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static boolean isConnectedToInternet() {\n String pingServerURL = pingBackUrl.substring(0, pingBackUrl.indexOf(\"/\", \"http://url\".length()));\n try {\n URL url = new URL(pingServerURL);\n HttpURLConnection urlConn = (HttpURLConnection) url.openConnection();\n urlConn.connect();\n return (HttpURLConnection.HTTP_NOT_FOUND != urlConn.getResponseCode());\n } catch (MalformedURLException e) {\n LOG.error(\"LeadCapture : Error creating HTTP connection to the server : \" + pingServerURL);\n \n } catch (IOException e) {\n LOG.error(\"LeadCapture : Error creating HTTP connection to the server : \" + pingServerURL);\n }\n return false;\n }",
"@Test(timeout = 4000)\n public void test12() throws Throwable {\n boolean boolean0 = true;\n UsernamePasswordToken usernamePasswordToken0 = new UsernamePasswordToken(\")PXz-\", (String) null, true);\n byte[] byteArray0 = new byte[9];\n byteArray0[0] = (byte) (-82);\n byteArray0[1] = (byte)0;\n byteArray0[2] = (byte)0;\n byteArray0[3] = (byte)56;\n byteArray0[4] = (byte)78;\n byteArray0[5] = (byte)88;\n byteArray0[6] = (byte)0;\n byteArray0[7] = (byte)84;\n byteArray0[8] = (byte) (-1);\n try { \n MockInetAddress.getByAddress(\"\", byteArray0);\n fail(\"Expecting exception: UnknownHostException\");\n \n } catch(UnknownHostException e) {\n //\n // Not IPv4: [-82, 0, 0, 56, 78, 88, 0, 84, -1]\n //\n verifyException(\"org.evosuite.runtime.mock.java.net.MockInetAddress\", e);\n }\n }",
"boolean testConnection(RemoteService service);",
"SocketAddress getLocalAddress();",
"int getIp();",
"int getIp();",
"int getIp();",
"private boolean testConn(String URL)\n {\n\n if(TestHTTP.test(URL))\n \treturn true;\n else \n {\n \tlogfile.severe(URL+\" DOWN\");\n \treturn false;\n }\n }",
"public static String getWANIP() {\n URL whatismyip = null;\n BufferedReader in = null;\n try {\n \twhatismyip = new URL(\"http://checkip.amazonaws.com\");\n in = new BufferedReader(new InputStreamReader(whatismyip.openStream()));\n String ip = in.readLine();\n return ip;\n } catch (IOException e) {\n \treturn \"No internet.\";\n\t\t}\n }",
"int getInIp();",
"int getInIp();",
"String getIp();",
"String getIp();",
"static void test1 (int port) throws Exception {\n server = new ServerSocket (port);\n if (port == 0) {\n port = server.getLocalPort();\n }\n // try Ipv6 only\n c1 = new Socket (\"::1\", port);\n s1 = server.accept ();\n simpleDataExchange (c1, s1);\n s1.close ();\n c1.close();\n // try with both IPv4 and Ipv6\n c1 = new Socket (\"127.0.0.1\", port);\n c2 = new Socket (\"::1\", port);\n s1 = server.accept();\n s2 = server.accept();\n s1peer = s1.getInetAddress();\n s2peer = s2.getInetAddress();\n if (s1peer instanceof Inet6Address) {\n t_assert ((s2peer instanceof Inet4Address));\n simpleDataExchange (c2, s1);\n simpleDataExchange (c1, s2);\n } else {\n t_assert ((s2peer instanceof Inet6Address));\n simpleDataExchange (c1, s1);\n simpleDataExchange (c2, s2);\n }\n c1.close();\n c2.close();\n s1.close();\n s2.close();\n server.close ();\n System.out.println (\"Test1: OK\");\n }",
"public DummyDNS() {\n\n\t\ttry {\n\t\t\tonlyOne = InetAddress.getByName(\"127.0.0.1\").getAddress();\n\t\t} catch (UnknownHostException e) {\n\t\t\t// impossible\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public static void main(String[] args) throws UnknownHostException {\n\t\tInetAddress inet=InetAddress.getLocalHost(); \t\r\n\t\ttry {\r\n\t\t\tSocket clien=new Socket(inet.getHostAddress(),8899);\r\n\t\t\t\r\n\t\t\tOutputStream os=clien.getOutputStream();\r\n\t\t\t\r\n\t\t\tInputStream is=clien.getInputStream();\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private String getLocalIpAddress() throws Exception {\n return InetAddress.getLocalHost().getHostAddress();\n }",
"String getExternalIPAddress() throws NotDiscoverUpnpGatewayException, UpnpException;",
"public boolean isHostReachable(String sIPAddress) {\n try {\n\n Process p1 = java.lang.Runtime.getRuntime().exec(\"ping \" + sIPAddress);\n int iRetVal = p1.waitFor();\n if (iRetVal == 0) {\n return true;\n } else {\n return false;\n }\n\n //InetAddress inet = InetAddress.getByName(sIPAddress);\n //return (inet.isReachable(5000) ? true : false);\n } catch (Exception e) {\n return false;\n }\n }",
"String getRemoteIpAddress();",
"@Override\n\tpublic void testEtherNet() {\n\t\tSystem.out.println(\"ethernet test success\");\n\t\t\n\t}",
"public static void main(String[] args) throws UnknownHostException {\n InetAddress myIP= InetAddress.getLocalHost();\n\n /* public String getHostAddress(): Returns the IP\n * address string in textual presentation.\n */\n System.out.println(\"My IP Address is:\");\n System.out.println(myIP.getHostAddress());\n }",
"public InetAddress getIP();",
"public PingToInternet(String ip)throws IllegalArgumentException, UnknownHostException, IOException {\r\n\t\tsetIp(ip);\r\n\t}",
"public static void main(String[] args) {\n\t\tlog(isSocketAliveUitlitybyCrunchify(\"172.19.16.233\", 5056));\r\n \r\n\t\t// Now change port to 8081 and you should see failure\r\n\t\tlog(isSocketAliveUitlitybyCrunchify(\"localhost\", 8080));\r\n \r\n\t\t// Connect to Crunchify.com on port 80\r\n\t\tlog(isSocketAliveUitlitybyCrunchify(\"crunchify.com\", 80));\r\n \r\n\t\t// Connection to crunchify.me on port 81\r\n\t\tlog(isSocketAliveUitlitybyCrunchify(\"crunchify.me\", 81));\r\n \r\n\t\t// Connection to crunchify.me on port 80\r\n\t\tlog(isSocketAliveUitlitybyCrunchify(\"crunchify.me\", 80));\r\n\r\n String ARP_GET_IP_HW = \"arp -a\";\r\n\r\n \r\n\r\n System.out.println(getARPTable(ARP_GET_IP_HW ));\r\n\r\n\t}",
"String getAddr();",
"@Test\n public void testInterfaceIp() throws Exception {\n isisNeighbor.setInterfaceIp(interfaceIp);\n result2 = isisNeighbor.interfaceIp();\n assertThat(result2, is(interfaceIp));\n }",
"int getS1Ip();",
"public void testFromInterface() throws Exception\n {\n EthernetAddress addr = EthernetAddress.fromInterface();\n assertNotNull(addr);\n assertNotNull(addr.toString());\n }",
"public void autoConnect() {\n Log.i(TAG, \"HERE AUTOCONNECT\");\n connect(staticIp, staticPort);\n }",
"public boolean isIpAccessible(String url) {\n URL img = null;\n try {\n img = new URL(url);\n InputStream s = img.openStream();\n byte[] b = new byte[256];\n s.read(b);\n String str = new String(b);\n System.out.println(str);\n s.close();\n return true;\n } catch (java.io.IOException e) {\n return false;\n }\n }",
"public void setSipNetworkReachable(boolean value);",
"public interface IPingStratedy {\n\n boolean pingServer();\n}",
"boolean hasSock();",
"private void probeTcpPort(String ip, int port) throws IOException\n {\n Socket socket = new Socket();\n SocketAddress address = new InetSocketAddress(ip, port);\n\n socket.connect(address, TIMEOUT);\n\n log.debug(\"Ip: \" + ip + \" appears to be open... on port: \" + port);\n\n socket.close();\n\n // let exceptions bubble\n }",
"public Boolean isOnlineNet() {\n\n try {\n Process p = java.lang.Runtime.getRuntime().exec(\"ping -c 1 www.google.es\");\n\n int val = p.waitFor();\n boolean reachable = (val == 0);\n return reachable;\n\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return false;\n }",
"@Override\r\n\tpublic boolean hasIpAddressSupport() {\n\t\treturn false;\r\n\t}",
"int localPort();",
"public static void ping() {}",
"public static void ping() {}",
"public boolean IsReachable(Context context) {\n final ConnectivityManager connMgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n final NetworkInfo netInfo = connMgr.getActiveNetworkInfo();\n boolean isReachable = false;\n\n if (netInfo != null && netInfo.isConnected()) {\n // Some sort of connection is open, check if server is reachable\n try {\n URL url = new URL(\"http://\"+ipAddress);\n HttpURLConnection urlc = (HttpURLConnection) url.openConnection();\n urlc.setRequestProperty(\"User-Agent\", \"Android Application\");\n urlc.setRequestProperty(\"Connection\", \"close\");\n urlc.setConnectTimeout(10 * 2000);\n urlc.connect();\n isReachable = (urlc.getResponseCode() == 200);\n } catch (IOException e) {\n //Log.e(TAG, e.getMessage());\n }\n }\n\n return isReachable;\n }",
"public boolean openConnection(String address) {\n\t\t\ttry {\n\t\t\t\t// the following line wont work because server already occupies that port\n\t\t\t\t// socket = new DatagramSocket(port);\n\t\t\t\t// now we will bind to any port that is available\n\t\t\t\t// however this way server needs to know the port we are sending from\n\t\t\t\t// UDP protocoll: we dont have to connect to serverto begin with\n\t\t\t\tsocket = new DatagramSocket();\n\t\t\t} catch (SocketException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tip = InetAddress.getByName(address);\n\t\t\t} catch (UnknownHostException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t}",
"public void setNetworkReachable(boolean value);",
"public MockSocket (InetAddress remoteAddr, int remotePort, \n InetAddress localAddr, int localPort) \n throws IOException {\n bind ( new InetSocketAddress (localAddr, localPort) );\n connect ( new InetSocketAddress (remoteAddr, remotePort) );\n }",
"private void udpTest() throws Exception {\n\n\t\tint targetPort = 5221;\n\t\tfinal String text = \"some text\";\n\t\tfinal Server server = new UDP.Server(targetPort);\n\t\tserver.receivePackage(new UDP.ReceiveListener() {\n\t\t\t@SuppressWarnings(\"null\")\n\t\t\t@Override\n\t\t\tpublic void onReceive(String message) {\n\t\t\t\tSystem.out.println(\"UDP: recieved \" + message);\n\t\t\t\ttry {\n\t\t\t\t\tassertTrue(message.equals(text));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.e(\"\", \"UDP test failed: \" + e);\n\t\t\t\t\tObject x = null;\n\t\t\t\t\tx.toString();\n\t\t\t\t}\n\t\t\t\tserver.closeConnection();\n\t\t\t}\n\t\t});\n\n\t\tString targetIp = UDP.getDeviceIp();\n\t\tSystem.out.println(\"UDP ip: \" + targetIp);\n\t\tClient x = new UDP.Client(targetIp, targetPort);\n\t\tx.sendPackage(text);\n\t\tx.closeConnection();\n\n\t}",
"public static void main(String[] args) {\n\t\tInetAddress localip,googleip[];\n\t\ttry {\n\t\t\tlocalip = InetAddress.getLocalHost();\n\t\t\tSystem.out.println(localip);\n\t\t\tgoogleip = InetAddress.getAllByName(\"tech.kiet.edu\");\n\t\t\tfor(int i=0;i<googleip.length;i++)\n\t\t\t{\n\t\t\tSystem.out.println(googleip[i]);\n\t\t\t}\n\t\t} catch (UnknownHostException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"@Test\n public void testReplyExternalPortBadRequestIpv6() {\n replay(hostService); // no further host service expectations\n replay(interfaceService);\n\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::ffff\");\n\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC1,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n Ip6Address.valueOf(\"3000::1\"));\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(0, packetService.packets.size());\n\n // Request for a valid internal IP address but coming in an external port\n packetService.packets.clear();\n ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC1,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n IP3);\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(0, packetService.packets.size());\n }",
"public String getIp();",
"Target(String host) {\n try {\n address = new InetSocketAddress(InetAddress.getByName(host), 80);\n } catch (UnknownHostException e) {\n// e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n failure = e;\n }\n }",
"public boolean ping();",
"private Callable<Boolean> isReachable() {\n return () -> {\n try {\n if (!isOnline()) {\n return false;\n }\n\n URL url = new URL(\"https://api.vk.com\"); //url for ex.\n HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();\n httpURLConnection.setConnectTimeout(2000);\n httpURLConnection.connect();\n\n return true;\n } catch (Exception e) {\n return false;\n }\n };\n }",
"public abstract void connect() throws UnknownHostException, IOException;",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"private static void init() {\n System.setProperty(\"java.net.preferIPv4Stack\", \"true\");\r\n }",
"@Test\n public void sipAddressTest() {\n // TODO: test sipAddress\n }",
"abstract String getRemoteAddress();",
"public boolean checkServer() {\n boolean result = false;\n \n int url = 195885416; //Using www.vg.no for now. There might be a problem in the ip-format, but we'll know more after testing.\n if(isNetworkAvailable()) {\n ConnectivityManager cm = (ConnectivityManager)ctx.getSystemService(Context.CONNECTIVITY_SERVICE);\n \n if(cm.requestRouteToHost(ConnectivityManager.TYPE_WIFI, url)) {\n result = true;\n } else if(cm.requestRouteToHost(ConnectivityManager.TYPE_MOBILE, url)) {\n result = true;\n }\n }\n \n return result;\n }",
"private static boolean isServerReachable() {\n\t\treturn new PingRpcExample().pingServer();\n\t}",
"public void test4(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().equalsIgnoreCase(\"trustme.com\")){ /* BUG */\n\n }\n }",
"public static String getLocalIPAddress() {\r\n return (localIPAddress);\r\n }",
"boolean startNetwork() throws IOException;",
"public String getIP() throws UnknownHostException{\n\t\tInetAddress addr = InetAddress.getLocalHost();//Get local IP\n \t String ip = addr.toString().split(\"\\\\/\")[1];//local IP\n \t //ip = ip.indexOf('\\\\');\n \t if(!getIsLocal()){\n\t \ttry{\n\t\t \tURL whatismyip = new URL(\"http://automation.whatismyip.com/n09230945.asp\");\n\t\t \tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t \t whatismyip.openStream()));\n\t\t \tip = in.readLine(); //you get the IP as a String\n\t\t \t//System.out.println(ip);\n\t\t \tin.close();\n\t\t \treturn ip;\n\n\t \t}\n\t \tcatch(IOException e){\n\t \t\te.printStackTrace();\n\t \t}\n\t \treturn null;\n \t }\n\t\treturn ip;\n\t }",
"public boolean networkCheck(String region) throws IOException {\r\n // Debug mode can be run offline.\r\n if(DEBUG) {\r\n return true;\r\n }\r\n \r\n try {\r\n getServerStatusData();\r\n networkOK = true;\r\n return true;\r\n }\r\n catch(UnknownHostException e) {\r\n System.out.println(e);\r\n networkOK = false;\r\n return false;\r\n }\r\n }"
]
| [
"0.7491156",
"0.6836329",
"0.6530819",
"0.64962035",
"0.64613324",
"0.64328074",
"0.6397576",
"0.63051665",
"0.6158994",
"0.6148263",
"0.6144073",
"0.61059916",
"0.6097892",
"0.6063352",
"0.6058563",
"0.60522324",
"0.6025026",
"0.5997287",
"0.5972924",
"0.5972274",
"0.59654963",
"0.59393126",
"0.5937895",
"0.5937895",
"0.5937895",
"0.5937895",
"0.5898674",
"0.5866331",
"0.58482254",
"0.58441097",
"0.58059925",
"0.5796176",
"0.579049",
"0.5774916",
"0.57639074",
"0.57639074",
"0.57639074",
"0.57372224",
"0.57255244",
"0.5720582",
"0.5720582",
"0.56824887",
"0.56824887",
"0.5660646",
"0.56606054",
"0.56593126",
"0.56562716",
"0.5652914",
"0.56523585",
"0.56404626",
"0.5638732",
"0.5625273",
"0.5605344",
"0.5591378",
"0.55868685",
"0.55860466",
"0.55860233",
"0.5562204",
"0.5558133",
"0.5529166",
"0.55194473",
"0.5512238",
"0.5510556",
"0.55062205",
"0.54951",
"0.54907364",
"0.5489968",
"0.5488899",
"0.5484812",
"0.5484812",
"0.5476837",
"0.5475129",
"0.54741716",
"0.5472677",
"0.5471669",
"0.5468868",
"0.54641235",
"0.54589593",
"0.54584455",
"0.5448862",
"0.54456806",
"0.54404217",
"0.5437213",
"0.5437213",
"0.5437213",
"0.5437213",
"0.5437213",
"0.5437213",
"0.5437213",
"0.5437213",
"0.54371554",
"0.5436693",
"0.5435664",
"0.5430696",
"0.54303676",
"0.5429144",
"0.542437",
"0.54234767",
"0.5422168",
"0.54191256"
]
| 0.7748679 | 0 |
Test a simple connection to a local IP without GNS resolution | @Test
public void gnsConnectionTest()
{
try
{
MSocket ms = new MSocket(InetAddress.getByName(LOCALHOST), LOCAL_PORT);
InputStream is = ms.getInputStream();
OutputStream os = ms.getOutputStream();
echoTest(is, os, 54);
echoTest(is, os, 45);
System.out.println("Closing MSocket");
ms.close();
}
catch (Exception e)
{
e.printStackTrace();
fail("IP Connection test failed");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\r\n public void ipConnectionTest()\r\n {\r\n try\r\n {\r\n MSocket ms = new MSocket(InetAddress.getByName(LOCALHOST), LOCAL_PORT);\r\n InputStream is = ms.getInputStream();\r\n OutputStream os = ms.getOutputStream();\r\n echoTest(is, os, 54);\r\n echoTest(is, os, 45);\r\n ms.close();\r\n }\r\n catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n fail(\"IP Connection test failed\");\r\n }\r\n }",
"@Test\n public void testClient() throws Exception {\n final CandidateProvider<InetSocketAddress> stunCandidateProvider = \n new DnsSrvCandidateProvider(\"_stun._udp.littleshoot.org\");\n /*\n new SrvCandidateProvider(srv, \"_stun._udp.littleshoot.org\", \n new InetSocketAddress(\"stun.littleshoot.org\", StunConstants.STUN_PORT));\n */\n // We do this a bunch of times because the server selection is random.\n for (int i = 0; i < 20; i++) {\n final UdpStunClient client = new UdpStunClient(\n stunCandidateProvider);\n final InetSocketAddress srflx = client.getServerReflexiveAddress();\n // System.out.println(\"Got address: \"+srflx);\n assertNotNull(\"Did not get server reflexive address\", srflx);\n }\n }",
"@Test\n public void shouldGetHostAddress() {\n assertEquals(NE_IP, session.getAddress().getHostAddress());\n }",
"public void testSSLSocketInetAddressint() throws Exception {\n ServerSocket ss = new ServerSocket(0);\n SSLSocket soc = new MySSLSocket(InetAddress.getLocalHost(), ss\n .getLocalPort());\n ss.close();\n soc.close();\n }",
"@Test\r\n public void testInternetConnection(){\r\n CheckConnection checkConnection = new CheckConnection();\r\n checkConnection.checkURL();\r\n }",
"@Test\n public void testAddress() throws UnknownHostException {\n InetAddress address = InetAddress.getByAddress(\"www.baidu.com\", new byte[]{(byte) 192, (byte) 168, 0, 1});\n System.out.println(address.getHostName());\n InetSocketAddress socketAddress = new InetSocketAddress(address, 8009);\n System.out.println(socketAddress.getHostString());\n }",
"private void testConnection(){ \n\t\t\tconnection=false;\n\t\t\tip = ipfield.getText().toString();\n\t\t\tLog.d(null,\"ip is \"+ip);\n\t\t\tif(ip.equals(\"\")) \n\t\t\t\tToast.makeText(getApplicationContext(), \"Please Enter an IP Address\", Toast.LENGTH_SHORT).show();\n\t\t\telse{\n\t\t\t\tRunnable runnable = new Runnable(){\n\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tSocket s = new Socket(ip,6969);\n\t\t\t\t\t\t\t\ts.close();\n\t\t\t\t\t\t\t\tconnection=true;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t catch (UnknownHostException e1) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\tLog.d(null, \"Wrong ip\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t\tLog.d(null, \"Wrong ip\");\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tThread thread = new Thread(runnable);\n\t\t\t\tthread.start();\n\t\t\t}\n\t}",
"public void testSSLSocketInetAddressintInetAddressint() throws Exception {\n try {\n ServerSocket ss1 = new ServerSocket(0);\n ServerSocket ss2 = new ServerSocket(0);\n SSLSocket soc = new MySSLSocket(InetAddress.getLocalHost(), ss1\n .getLocalPort(), InetAddress.getLocalHost(), ss2\n .getLocalPort());\n ss1.close();\n ss2.close();\n soc.close();\n } catch (IOException e) {\n }\n }",
"@Override\n\tpublic void testEtherNet() {\n\t\tieWebDriver.checkEthernet();\n\t}",
"public boolean isNetworkReachable();",
"@Test\n public void testConnectToInvalidService()\n throws IOException\n {\n final boolean availability = ConnectionChecker.checkServiceAvailability(\"localhost\", 65534, 3000);\n\n assertFalse(availability);\n }",
"@Test\n public void testGetDefaultSocketAddress() throws Exception {\n \tInetAddress adr = InetAddress.getByName(\"252.10.0.200\");\n \t// RFC 2131 compliance\n \t// sorry we ignore the broadcast bit\n \t// fully broadcast by client\n \tgetDefaultSocketAddressTester(INADDR_ANY, INADDR_ANY, DHCPOFFER, INADDR_BROADCAST, 68);\n \tgetDefaultSocketAddressTester(INADDR_ANY, INADDR_ANY, DHCPACK, INADDR_BROADCAST, 68);\n \tgetDefaultSocketAddressTester(INADDR_ANY, INADDR_ANY, DHCPNAK, INADDR_BROADCAST, 68);\n \t// unicast from client\n \tgetDefaultSocketAddressTester(adr, INADDR_ANY, DHCPOFFER, adr, 68);\n \tgetDefaultSocketAddressTester(adr, INADDR_ANY, DHCPACK, adr, 68);\n \tgetDefaultSocketAddressTester(adr, INADDR_ANY, DHCPNAK, INADDR_BROADCAST, 68);\n \t// when though a relay\n \tgetDefaultSocketAddressTester(INADDR_ANY, adr, DHCPOFFER, adr, 67);\n \tgetDefaultSocketAddressTester(INADDR_ANY, adr, DHCPACK, adr, 67);\n \tgetDefaultSocketAddressTester(INADDR_ANY, adr, DHCPNAK, adr, 67);\n }",
"void onConnectToNetByIPFailure();",
"private void print_addr() {\n try(final DatagramSocket socket = new DatagramSocket()){\n socket.connect(InetAddress.getByName(\"8.8.8.8\"), 10002);\n System.out.println(socket.getLocalAddress().getHostAddress()+\":\"+port);\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void testSSLSocketStringintInetAddressint() throws Exception {\n try {\n ServerSocket ss1 = new ServerSocket(0);\n ServerSocket ss2 = new ServerSocket(0);\n SSLSocket soc = new MySSLSocket(\"localhost\", ss1.getLocalPort(),\n InetAddress.getLocalHost(), ss2.getLocalPort());\n ss1.close();\n ss2.close();\n soc.close();\n } catch (IOException e) {\n }\n }",
"static void test4 () throws Exception {\n server = new ServerSocket (0);\n int port = server.getLocalPort();\n\n /* create an IPv4 mapped address corresponding to local host */\n\n byte[] b = {0,0,0,0,0,0,0,0,0,0,(byte)0xff,(byte)0xff,0,0,0,0};\n byte[] ia4 = ia4addr.getAddress();\n b[12] = ia4[0];\n b[13] = ia4[1];\n b[14] = ia4[2];\n b[15] = ia4[3];\n\n InetAddress dest = InetAddress.getByAddress (b);\n c1 = new Socket (dest, port);\n s1 = server.accept ();\n simpleDataExchange (c1,s1);\n c1.close ();\n s1.close ();\n server.close ();\n System.out.println (\"Test4: OK\");\n }",
"@Test\n public void testGetMyIP() {\n System.out.println(\"getMyIP\");\n String expResult = MY_IP_ADDRESS;\n String result = instance.getMyIP();\n assertEquals(expResult, result);\n }",
"private static void init() {\n\t\ttry {\n\t\t\tlocalAddr = InetAddress.getLocalHost();\n\t\t\tlogger.info(\"local IP:\" + localAddr.getHostAddress());\n\t\t} catch (UnknownHostException e) {\n\t\t\tlogger.info(\"try again\\n\");\n\t\t}\n\t\tif (localAddr != null) {\n\t\t\treturn;\n\t\t}\n\t\t// other way to get local IP\n\t\tEnumeration<InetAddress> localAddrs;\n\t\ttry {\n\t\t\t// modify your network interface name\n\t\t\tNetworkInterface ni = NetworkInterface.getByName(networkInterface);\n\t\t\tif (ni == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlocalAddrs = ni.getInetAddresses();\n\t\t\tif (localAddrs == null || !localAddrs.hasMoreElements()) {\n\t\t\t\tlogger.error(\"choose NetworkInterface\\n\" + getNetworkInterface());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\twhile (localAddrs.hasMoreElements()) {\n\t\t\t\tInetAddress tmp = localAddrs.nextElement();\n\t\t\t\tif (!tmp.isLoopbackAddress() && !tmp.isLinkLocalAddress() && !(tmp instanceof Inet6Address)) {\n\t\t\t\t\tlocalAddr = tmp;\n\t\t\t\t\tlogger.info(\"local IP:\" + localAddr.getHostAddress());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Failure when init ProxyUtil\", e);\n\t\t\tlogger.error(\"choose NetworkInterface\\n\" + getNetworkInterface());\n\t\t}\n\t}",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tSocket s = new Socket(ip,6969);\n\t\t\t\t\t\t\t\ts.close();\n\t\t\t\t\t\t\t\tconnection=true;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t catch (UnknownHostException e1) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\tLog.d(null, \"Wrong ip\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t\tLog.d(null, \"Wrong ip\");\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}",
"public boolean testConnection() {\r\n boolean toReturn = true;\r\n\r\n String[] paramFields = {};\r\n SocketMessage request = new SocketMessage(\"admin\", \"ping\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY, \"\", paramFields);\r\n SocketMessage response = handleMessage(request);\r\n if (isSuccessful(response)) {\r\n toReturn = true;\r\n } else {\r\n toReturn = false;\r\n }\r\n\r\n return toReturn;\r\n }",
"@Test\n public void testLocalIPOverride() throws Exception {\n System.setProperty(PacScriptMethods.OVERRIDE_LOCAL_IP, \"123.123.123.123\");\n try {\n PacProxySelector pacProxySelector = new PacProxySelector(\n new UrlPacScriptSource(toUrl(\"testLocalIP.pac\")));\n List<Proxy> result = pacProxySelector.select(TestUtil.HTTP_TEST_URI);\n assertEquals(\n result.get(0),\n new Proxy(Type.HTTP, InetSocketAddress.createUnresolved(\n \"123.123.123.123\", 8080)));\n } finally {\n System.setProperty(PacScriptMethods.OVERRIDE_LOCAL_IP, \"\");\n }\n\n }",
"private boolean isReachable(String addr, int openPort) {\n try \n {\n ClienteUDP cliente = new ClienteUDP(addr);\n cliente.enviar(\"hola,df,df\");\n String rpta = cliente.recibir();\n if(rpta.equals(\"hola\"))\n return true;\n }catch(Exception e)\n {\n return false;\n }\n return false;\n }",
"boolean hasIp();",
"boolean hasIp();",
"boolean hasIp();",
"boolean hasIp();",
"private static void getServerIPAddress() {\r\n // Get local IP address\r\n try {\r\n Enumeration<NetworkInterface> enumeratedNetworkInterface = NetworkInterface.getNetworkInterfaces();\r\n\r\n NetworkInterface networkInterface;\r\n Enumeration<InetAddress> enumeratedInetAddress;\r\n InetAddress inetAddress;\r\n\r\n for (; enumeratedNetworkInterface.hasMoreElements(); ) {\r\n networkInterface = enumeratedNetworkInterface.nextElement();\r\n enumeratedInetAddress = networkInterface.getInetAddresses();\r\n\r\n for (; enumeratedInetAddress.hasMoreElements(); ) {\r\n inetAddress = enumeratedInetAddress.nextElement();\r\n String anIPAddress = inetAddress.getHostAddress();\r\n if (log.isDebugEnabled()) {\r\n log.debug(\"Scanning local IP space: \" + anIPAddress);\r\n }\r\n\r\n // exclude loop-back and MAC address\r\n if (!(anIPAddress.equals(\"127.0.0.1\") || anIPAddress.contains(\":\")))\r\n localIPAddress = anIPAddress;\r\n }\r\n }\r\n } catch (Exception e) {\r\n log.error(\"Error in retrieving the local IP address: \" + e.toString());\r\n }\r\n }",
"static void test2 () throws Exception {\n\n server = new ServerSocket ();\n InetSocketAddress sadr = new InetSocketAddress (ia4addr, 0);\n server.bind (sadr);\n dprintln (\"server bound to \" + sadr);\n int port = server.getLocalPort();\n InetSocketAddress sadr6 = new InetSocketAddress (ia6addr, port);\n\n c1 = new Socket (ia4addr, port);\n try {\n dprintln (\"connecting to \" + ia6addr);\n c2 = new Socket ();\n c2.connect (sadr6, 1000);\n throw new RuntimeException (\"connect to IPv6 address should be refused\");\n } catch (IOException e) { }\n server.close ();\n c1.close ();\n\n /* now try IPv6 only */\n\n server = new ServerSocket ();\n sadr = new InetSocketAddress (ia6addr, 0);\n dprintln (\"binding to \" + sadr);\n server.bind (sadr);\n port = server.getLocalPort();\n\n c1 = new Socket (ia6addr, port);\n try {\n c2 = new Socket (ia4addr, port);\n throw new RuntimeException (\"connect to IPv4 address should be refused\");\n } catch (IOException e) { }\n server.close ();\n c1.close ();\n\n /* now try IPv6 specific port only */\n\n server = new ServerSocket ();\n sadr = new InetSocketAddress (ia6addr, 5200);\n server.bind (sadr);\n port = server.getLocalPort();\n t_assert (port == 5200);\n\n c1 = new Socket (ia6addr, port);\n try {\n c2 = new Socket (ia4addr, port);\n throw new RuntimeException (\"connect to IPv4 address should be refused\");\n } catch (IOException e) { }\n server.close ();\n c1.close ();\n\n /* now try IPv4 specific port only */\n\n server = new ServerSocket ();\n sadr = new InetSocketAddress (ia4addr, 5200);\n server.bind (sadr);\n port = server.getLocalPort();\n t_assert (port == 5200);\n\n c1 = new Socket (ia4addr, port);\n\n try {\n c2 = new Socket (ia6addr, port);\n throw new RuntimeException (\"connect to IPv6 address should be refused\");\n } catch (IOException e) { }\n server.accept().close();\n c1.close ();\n server.close();\n System.out.println (\"Test2: OK\");\n }",
"@POST(\"/TestConnection\")\n\tboolean testConnection() throws UnknownHostException;",
"private void connect(){\n // Averiguem quina direccio IP hem d'utilitzar\n InetAddress iAddress;\n try {\n iAddress = InetAddress.getLocalHost();\n String IP = iAddress.getHostAddress();\n\n //Socket sServidor = new Socket(\"172.20.31.90\", 33333);\n sServidor = new Socket (String.valueOf(IP), 33333);\n doStream = new DataOutputStream(sServidor.getOutputStream());\n diStream = new DataInputStream(sServidor.getInputStream());\n } catch (ConnectException c){\n System.err.println(\"Error! El servidor no esta disponible!\");\n System.exit(0);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static boolean isConnectedToInternet() {\n String pingServerURL = pingBackUrl.substring(0, pingBackUrl.indexOf(\"/\", \"http://url\".length()));\n try {\n URL url = new URL(pingServerURL);\n HttpURLConnection urlConn = (HttpURLConnection) url.openConnection();\n urlConn.connect();\n return (HttpURLConnection.HTTP_NOT_FOUND != urlConn.getResponseCode());\n } catch (MalformedURLException e) {\n LOG.error(\"LeadCapture : Error creating HTTP connection to the server : \" + pingServerURL);\n \n } catch (IOException e) {\n LOG.error(\"LeadCapture : Error creating HTTP connection to the server : \" + pingServerURL);\n }\n return false;\n }",
"@Test(timeout = 4000)\n public void test12() throws Throwable {\n boolean boolean0 = true;\n UsernamePasswordToken usernamePasswordToken0 = new UsernamePasswordToken(\")PXz-\", (String) null, true);\n byte[] byteArray0 = new byte[9];\n byteArray0[0] = (byte) (-82);\n byteArray0[1] = (byte)0;\n byteArray0[2] = (byte)0;\n byteArray0[3] = (byte)56;\n byteArray0[4] = (byte)78;\n byteArray0[5] = (byte)88;\n byteArray0[6] = (byte)0;\n byteArray0[7] = (byte)84;\n byteArray0[8] = (byte) (-1);\n try { \n MockInetAddress.getByAddress(\"\", byteArray0);\n fail(\"Expecting exception: UnknownHostException\");\n \n } catch(UnknownHostException e) {\n //\n // Not IPv4: [-82, 0, 0, 56, 78, 88, 0, 84, -1]\n //\n verifyException(\"org.evosuite.runtime.mock.java.net.MockInetAddress\", e);\n }\n }",
"boolean testConnection(RemoteService service);",
"SocketAddress getLocalAddress();",
"int getIp();",
"int getIp();",
"int getIp();",
"private boolean testConn(String URL)\n {\n\n if(TestHTTP.test(URL))\n \treturn true;\n else \n {\n \tlogfile.severe(URL+\" DOWN\");\n \treturn false;\n }\n }",
"public static String getWANIP() {\n URL whatismyip = null;\n BufferedReader in = null;\n try {\n \twhatismyip = new URL(\"http://checkip.amazonaws.com\");\n in = new BufferedReader(new InputStreamReader(whatismyip.openStream()));\n String ip = in.readLine();\n return ip;\n } catch (IOException e) {\n \treturn \"No internet.\";\n\t\t}\n }",
"int getInIp();",
"int getInIp();",
"String getIp();",
"String getIp();",
"static void test1 (int port) throws Exception {\n server = new ServerSocket (port);\n if (port == 0) {\n port = server.getLocalPort();\n }\n // try Ipv6 only\n c1 = new Socket (\"::1\", port);\n s1 = server.accept ();\n simpleDataExchange (c1, s1);\n s1.close ();\n c1.close();\n // try with both IPv4 and Ipv6\n c1 = new Socket (\"127.0.0.1\", port);\n c2 = new Socket (\"::1\", port);\n s1 = server.accept();\n s2 = server.accept();\n s1peer = s1.getInetAddress();\n s2peer = s2.getInetAddress();\n if (s1peer instanceof Inet6Address) {\n t_assert ((s2peer instanceof Inet4Address));\n simpleDataExchange (c2, s1);\n simpleDataExchange (c1, s2);\n } else {\n t_assert ((s2peer instanceof Inet6Address));\n simpleDataExchange (c1, s1);\n simpleDataExchange (c2, s2);\n }\n c1.close();\n c2.close();\n s1.close();\n s2.close();\n server.close ();\n System.out.println (\"Test1: OK\");\n }",
"public DummyDNS() {\n\n\t\ttry {\n\t\t\tonlyOne = InetAddress.getByName(\"127.0.0.1\").getAddress();\n\t\t} catch (UnknownHostException e) {\n\t\t\t// impossible\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public static void main(String[] args) throws UnknownHostException {\n\t\tInetAddress inet=InetAddress.getLocalHost(); \t\r\n\t\ttry {\r\n\t\t\tSocket clien=new Socket(inet.getHostAddress(),8899);\r\n\t\t\t\r\n\t\t\tOutputStream os=clien.getOutputStream();\r\n\t\t\t\r\n\t\t\tInputStream is=clien.getInputStream();\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private String getLocalIpAddress() throws Exception {\n return InetAddress.getLocalHost().getHostAddress();\n }",
"String getExternalIPAddress() throws NotDiscoverUpnpGatewayException, UpnpException;",
"public boolean isHostReachable(String sIPAddress) {\n try {\n\n Process p1 = java.lang.Runtime.getRuntime().exec(\"ping \" + sIPAddress);\n int iRetVal = p1.waitFor();\n if (iRetVal == 0) {\n return true;\n } else {\n return false;\n }\n\n //InetAddress inet = InetAddress.getByName(sIPAddress);\n //return (inet.isReachable(5000) ? true : false);\n } catch (Exception e) {\n return false;\n }\n }",
"String getRemoteIpAddress();",
"@Override\n\tpublic void testEtherNet() {\n\t\tSystem.out.println(\"ethernet test success\");\n\t\t\n\t}",
"public static void main(String[] args) throws UnknownHostException {\n InetAddress myIP= InetAddress.getLocalHost();\n\n /* public String getHostAddress(): Returns the IP\n * address string in textual presentation.\n */\n System.out.println(\"My IP Address is:\");\n System.out.println(myIP.getHostAddress());\n }",
"public InetAddress getIP();",
"public PingToInternet(String ip)throws IllegalArgumentException, UnknownHostException, IOException {\r\n\t\tsetIp(ip);\r\n\t}",
"public static void main(String[] args) {\n\t\tlog(isSocketAliveUitlitybyCrunchify(\"172.19.16.233\", 5056));\r\n \r\n\t\t// Now change port to 8081 and you should see failure\r\n\t\tlog(isSocketAliveUitlitybyCrunchify(\"localhost\", 8080));\r\n \r\n\t\t// Connect to Crunchify.com on port 80\r\n\t\tlog(isSocketAliveUitlitybyCrunchify(\"crunchify.com\", 80));\r\n \r\n\t\t// Connection to crunchify.me on port 81\r\n\t\tlog(isSocketAliveUitlitybyCrunchify(\"crunchify.me\", 81));\r\n \r\n\t\t// Connection to crunchify.me on port 80\r\n\t\tlog(isSocketAliveUitlitybyCrunchify(\"crunchify.me\", 80));\r\n\r\n String ARP_GET_IP_HW = \"arp -a\";\r\n\r\n \r\n\r\n System.out.println(getARPTable(ARP_GET_IP_HW ));\r\n\r\n\t}",
"String getAddr();",
"@Test\n public void testInterfaceIp() throws Exception {\n isisNeighbor.setInterfaceIp(interfaceIp);\n result2 = isisNeighbor.interfaceIp();\n assertThat(result2, is(interfaceIp));\n }",
"int getS1Ip();",
"public void testFromInterface() throws Exception\n {\n EthernetAddress addr = EthernetAddress.fromInterface();\n assertNotNull(addr);\n assertNotNull(addr.toString());\n }",
"public void autoConnect() {\n Log.i(TAG, \"HERE AUTOCONNECT\");\n connect(staticIp, staticPort);\n }",
"public boolean isIpAccessible(String url) {\n URL img = null;\n try {\n img = new URL(url);\n InputStream s = img.openStream();\n byte[] b = new byte[256];\n s.read(b);\n String str = new String(b);\n System.out.println(str);\n s.close();\n return true;\n } catch (java.io.IOException e) {\n return false;\n }\n }",
"public void setSipNetworkReachable(boolean value);",
"public interface IPingStratedy {\n\n boolean pingServer();\n}",
"boolean hasSock();",
"private void probeTcpPort(String ip, int port) throws IOException\n {\n Socket socket = new Socket();\n SocketAddress address = new InetSocketAddress(ip, port);\n\n socket.connect(address, TIMEOUT);\n\n log.debug(\"Ip: \" + ip + \" appears to be open... on port: \" + port);\n\n socket.close();\n\n // let exceptions bubble\n }",
"public Boolean isOnlineNet() {\n\n try {\n Process p = java.lang.Runtime.getRuntime().exec(\"ping -c 1 www.google.es\");\n\n int val = p.waitFor();\n boolean reachable = (val == 0);\n return reachable;\n\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return false;\n }",
"@Override\r\n\tpublic boolean hasIpAddressSupport() {\n\t\treturn false;\r\n\t}",
"int localPort();",
"public static void ping() {}",
"public static void ping() {}",
"public boolean IsReachable(Context context) {\n final ConnectivityManager connMgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n final NetworkInfo netInfo = connMgr.getActiveNetworkInfo();\n boolean isReachable = false;\n\n if (netInfo != null && netInfo.isConnected()) {\n // Some sort of connection is open, check if server is reachable\n try {\n URL url = new URL(\"http://\"+ipAddress);\n HttpURLConnection urlc = (HttpURLConnection) url.openConnection();\n urlc.setRequestProperty(\"User-Agent\", \"Android Application\");\n urlc.setRequestProperty(\"Connection\", \"close\");\n urlc.setConnectTimeout(10 * 2000);\n urlc.connect();\n isReachable = (urlc.getResponseCode() == 200);\n } catch (IOException e) {\n //Log.e(TAG, e.getMessage());\n }\n }\n\n return isReachable;\n }",
"public boolean openConnection(String address) {\n\t\t\ttry {\n\t\t\t\t// the following line wont work because server already occupies that port\n\t\t\t\t// socket = new DatagramSocket(port);\n\t\t\t\t// now we will bind to any port that is available\n\t\t\t\t// however this way server needs to know the port we are sending from\n\t\t\t\t// UDP protocoll: we dont have to connect to serverto begin with\n\t\t\t\tsocket = new DatagramSocket();\n\t\t\t} catch (SocketException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tip = InetAddress.getByName(address);\n\t\t\t} catch (UnknownHostException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t}",
"public void setNetworkReachable(boolean value);",
"public MockSocket (InetAddress remoteAddr, int remotePort, \n InetAddress localAddr, int localPort) \n throws IOException {\n bind ( new InetSocketAddress (localAddr, localPort) );\n connect ( new InetSocketAddress (remoteAddr, remotePort) );\n }",
"private void udpTest() throws Exception {\n\n\t\tint targetPort = 5221;\n\t\tfinal String text = \"some text\";\n\t\tfinal Server server = new UDP.Server(targetPort);\n\t\tserver.receivePackage(new UDP.ReceiveListener() {\n\t\t\t@SuppressWarnings(\"null\")\n\t\t\t@Override\n\t\t\tpublic void onReceive(String message) {\n\t\t\t\tSystem.out.println(\"UDP: recieved \" + message);\n\t\t\t\ttry {\n\t\t\t\t\tassertTrue(message.equals(text));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.e(\"\", \"UDP test failed: \" + e);\n\t\t\t\t\tObject x = null;\n\t\t\t\t\tx.toString();\n\t\t\t\t}\n\t\t\t\tserver.closeConnection();\n\t\t\t}\n\t\t});\n\n\t\tString targetIp = UDP.getDeviceIp();\n\t\tSystem.out.println(\"UDP ip: \" + targetIp);\n\t\tClient x = new UDP.Client(targetIp, targetPort);\n\t\tx.sendPackage(text);\n\t\tx.closeConnection();\n\n\t}",
"public static void main(String[] args) {\n\t\tInetAddress localip,googleip[];\n\t\ttry {\n\t\t\tlocalip = InetAddress.getLocalHost();\n\t\t\tSystem.out.println(localip);\n\t\t\tgoogleip = InetAddress.getAllByName(\"tech.kiet.edu\");\n\t\t\tfor(int i=0;i<googleip.length;i++)\n\t\t\t{\n\t\t\tSystem.out.println(googleip[i]);\n\t\t\t}\n\t\t} catch (UnknownHostException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"@Test\n public void testReplyExternalPortBadRequestIpv6() {\n replay(hostService); // no further host service expectations\n replay(interfaceService);\n\n Ip6Address theirIp = Ip6Address.valueOf(\"1000::ffff\");\n\n Ethernet ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC1,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n Ip6Address.valueOf(\"3000::1\"));\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(0, packetService.packets.size());\n\n // Request for a valid internal IP address but coming in an external port\n packetService.packets.clear();\n ndpRequest = buildNdp(ICMP6.NEIGHBOR_SOLICITATION,\n MAC1,\n MacAddress.valueOf(\"33:33:ff:00:00:01\"),\n theirIp,\n IP3);\n proxyArp.reply(ndpRequest, LOC1);\n assertEquals(0, packetService.packets.size());\n }",
"public String getIp();",
"Target(String host) {\n try {\n address = new InetSocketAddress(InetAddress.getByName(host), 80);\n } catch (UnknownHostException e) {\n// e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n failure = e;\n }\n }",
"public boolean ping();",
"private Callable<Boolean> isReachable() {\n return () -> {\n try {\n if (!isOnline()) {\n return false;\n }\n\n URL url = new URL(\"https://api.vk.com\"); //url for ex.\n HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();\n httpURLConnection.setConnectTimeout(2000);\n httpURLConnection.connect();\n\n return true;\n } catch (Exception e) {\n return false;\n }\n };\n }",
"public abstract void connect() throws UnknownHostException, IOException;",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"private static void init() {\n System.setProperty(\"java.net.preferIPv4Stack\", \"true\");\r\n }",
"@Test\n public void sipAddressTest() {\n // TODO: test sipAddress\n }",
"abstract String getRemoteAddress();",
"public boolean checkServer() {\n boolean result = false;\n \n int url = 195885416; //Using www.vg.no for now. There might be a problem in the ip-format, but we'll know more after testing.\n if(isNetworkAvailable()) {\n ConnectivityManager cm = (ConnectivityManager)ctx.getSystemService(Context.CONNECTIVITY_SERVICE);\n \n if(cm.requestRouteToHost(ConnectivityManager.TYPE_WIFI, url)) {\n result = true;\n } else if(cm.requestRouteToHost(ConnectivityManager.TYPE_MOBILE, url)) {\n result = true;\n }\n }\n \n return result;\n }",
"private static boolean isServerReachable() {\n\t\treturn new PingRpcExample().pingServer();\n\t}",
"public void test4(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().equalsIgnoreCase(\"trustme.com\")){ /* BUG */\n\n }\n }",
"public static String getLocalIPAddress() {\r\n return (localIPAddress);\r\n }",
"boolean startNetwork() throws IOException;",
"public String getIP() throws UnknownHostException{\n\t\tInetAddress addr = InetAddress.getLocalHost();//Get local IP\n \t String ip = addr.toString().split(\"\\\\/\")[1];//local IP\n \t //ip = ip.indexOf('\\\\');\n \t if(!getIsLocal()){\n\t \ttry{\n\t\t \tURL whatismyip = new URL(\"http://automation.whatismyip.com/n09230945.asp\");\n\t\t \tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t \t whatismyip.openStream()));\n\t\t \tip = in.readLine(); //you get the IP as a String\n\t\t \t//System.out.println(ip);\n\t\t \tin.close();\n\t\t \treturn ip;\n\n\t \t}\n\t \tcatch(IOException e){\n\t \t\te.printStackTrace();\n\t \t}\n\t \treturn null;\n \t }\n\t\treturn ip;\n\t }",
"public boolean networkCheck(String region) throws IOException {\r\n // Debug mode can be run offline.\r\n if(DEBUG) {\r\n return true;\r\n }\r\n \r\n try {\r\n getServerStatusData();\r\n networkOK = true;\r\n return true;\r\n }\r\n catch(UnknownHostException e) {\r\n System.out.println(e);\r\n networkOK = false;\r\n return false;\r\n }\r\n }"
]
| [
"0.7748679",
"0.6836329",
"0.6530819",
"0.64962035",
"0.64613324",
"0.64328074",
"0.6397576",
"0.63051665",
"0.6158994",
"0.6148263",
"0.6144073",
"0.61059916",
"0.6097892",
"0.6063352",
"0.6058563",
"0.60522324",
"0.6025026",
"0.5997287",
"0.5972924",
"0.5972274",
"0.59654963",
"0.59393126",
"0.5937895",
"0.5937895",
"0.5937895",
"0.5937895",
"0.5898674",
"0.5866331",
"0.58482254",
"0.58441097",
"0.58059925",
"0.5796176",
"0.579049",
"0.5774916",
"0.57639074",
"0.57639074",
"0.57639074",
"0.57372224",
"0.57255244",
"0.5720582",
"0.5720582",
"0.56824887",
"0.56824887",
"0.5660646",
"0.56606054",
"0.56593126",
"0.56562716",
"0.5652914",
"0.56523585",
"0.56404626",
"0.5638732",
"0.5625273",
"0.5605344",
"0.5591378",
"0.55868685",
"0.55860466",
"0.55860233",
"0.5562204",
"0.5558133",
"0.5529166",
"0.55194473",
"0.5512238",
"0.5510556",
"0.55062205",
"0.54951",
"0.54907364",
"0.5489968",
"0.5488899",
"0.5484812",
"0.5484812",
"0.5476837",
"0.5475129",
"0.54741716",
"0.5472677",
"0.5471669",
"0.5468868",
"0.54641235",
"0.54589593",
"0.54584455",
"0.5448862",
"0.54456806",
"0.54404217",
"0.5437213",
"0.5437213",
"0.5437213",
"0.5437213",
"0.5437213",
"0.5437213",
"0.5437213",
"0.5437213",
"0.54371554",
"0.5436693",
"0.5435664",
"0.5430696",
"0.54303676",
"0.5429144",
"0.542437",
"0.54234767",
"0.5422168",
"0.54191256"
]
| 0.7491156 | 1 |
System.out.println("Input files will be read from dir: "+ System.getenv("INPUTS_DIR")); String fileName = "cars.xml"; File carsFile = new File("input" + File.separator + fileName);//oggetto di tipo file,nome oggetto = chiamata al costruttore | public static void main(String[] args) {
if (args.length !=0) {
// get the file name
String filePath = args [0];
File carsFile = new File(filePath);
FileReader fileReader;
try {
fileReader = new FileReader(carsFile);
System.out.println("Found file: "+carsFile.getAbsolutePath());
System.out.println("-----------------------------------------");
System.out.println("Reading file, line by line...");
BufferedReader br = new BufferedReader (fileReader);
String currentLine;
int counter = 0;
while ((currentLine = br.readLine())!= null) {
System.out.println(++counter + ": "+ currentLine);
}
System.exit(0);
} catch (FileNotFoundException e) {
//e.printStackTrace();
System.err.println("File " + carsFile.getAbsolutePath() + " not found \n"+"Terminating.");
System.exit(1);
// is a
} catch (IOException e) {
System.err.println("A problem occurred with file "+carsFile.getAbsolutePath()+"\n"+"Terminating.");
//e.printStackTrace();
System.exit(1);
}
// separator: variabile statica, ad accesso pubblico, dichiarata final della classe
}
else {
System.err.println("You must run this program with arguments. \n"+"Terminating.");
System.exit(0);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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 browseInputFile()\n\t{\n\t\ttry\n\t\t{\n\t\t\tJFileChooser fc = new JFileChooser(\".\");\n\t\t\tfc.setDialogTitle(\"Please choose an XML file\");\n\t\t\tFileNameExtensionFilter xmldata = new FileNameExtensionFilter(\"XML\", \"xml\");\n\t\t\tfc.addChoosableFileFilter(xmldata);\n\n\t\t\tint returnVal = fc.showOpenDialog(this); // shows the dialog of the file browser\n\t\t\t// get name und path\n\t\t\tif(returnVal == JFileChooser.APPROVE_OPTION)\n\t\t\t{\n\t\t\t\tcurFile = fc.getSelectedFile();\n\t\t\t\tinputfilepath = curFile.getAbsolutePath();\n\t\t\t\tmainframe.setInputFileText(inputfilepath);\n\t\t\t}\n\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tJOptionPane\n\t\t\t\t\t.showMessageDialog(new JFrame(),\n\t\t\t\t\t\t\t\"Please select a valid xml file downloaded from Pathway Interaction Database, or a converted SIF file.\",\n\t\t\t\t\t\t\t\"Warning\", JOptionPane.WARNING_MESSAGE);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public static void main(String[] args) throws IOException {\n File ruta = new File(\"C:\\\\Users\\\\usuario\\\\Documents\\\\curso de java online sepe\\\\unidad 1 clase file\\\\ejercicios\");\n // establecer el nombre del fichero a crear\n File f = new File(ruta, \"datos.txt\");\n File f1 = new File(ruta, \"datosNuevos.txt\");\n // imprimir la ruta absoluta del archivo\n System.out.println(f.getAbsolutePath());\n // Devuelve un String conteniendo el directorio padre del File. Devuelve null si no tiene directorio padre. del archivo\n System.out.println(f.getParent());\n // imprimir la ruta absoluta de la ruta del archivo\n System.out.println(ruta.getAbsolutePath());\n // Devuelve un String conteniendo el directorio padre del File. Devuelve null si no tiene directorio padre. de la ruta\n System.out.println(ruta.getParent());\n if (!f.exists()) { //se comprueba si el fichero existe o no\n System.out.println(\"Fichero \" + f.getName() + \" no existe\");\n if (!ruta.exists()) { //se comprueba si la ruta existe o no\n System.out.println(\"El directorio \" + ruta.getName() + \" no existe\");\n if (ruta.mkdir()) { //se crea la carpeta\n System.out.println(\"Directorio creado\");\n if (f.createNewFile()) { //se crea el fichero.\n System.out.println(\"Fichero \" + f.getName() + \" creado\");\n } else {\n System.out.println(\"No se ha podido crear \" + f.getName());\n }\n } else {\n System.out.println(\"No se ha podido crear \" + ruta.getName());\n }\n } else { //si la ruta existe creamos el fichero\n if (f.createNewFile()) {\n System.out.println(\"Fichero \" + f.getName() + \" creado\");\n } else {\n System.out.println(\"No se ha podido crear \" + f.getName());\n }\n }\n } else { //el fichero existe. Mostramos el tamaño\n System.out.println(\"Fichero \" + f.getName() + \" existe\");\n System.out.println(\"Tamaño \" + f.length() + \" bytes\");\n }\n\n // mostrar los archivos en esa carpeta\n File f2 = new File(ruta, \".\");\n // creamos un array para mostrar todos los archivos en esa ruta\n String[] listaArchivos = f2.list();\n if (!f1.exists()) { //se comprueba si el fichero existe o no\n System.out.println(\"Fichero \" + f1.getName() + \" no existe\");\n }\n if (f1.createNewFile()) { //se crea el fichero. Si se ha creado correctamente\n System.out.println(\"Fichero \" + f1.getName() + \" creado\");\n } else {\n System.out.println(\"No se ha podido crear \" + f1.getName());\n }\n for (int i = 0; i < listaArchivos.length; i++) {\n System.out.println(listaArchivos[i]);\n }\n // mostrar el numero de archivos en esa carpeta\n String[] elementos = ruta.list();\n System.out.println(\"La carpeta \" + ruta.getAbsolutePath() + \" tiene \" + elementos.length + \" subelementos\");\n }",
"private void buildInput(String inputPath) {\n\t\ttry {\n\t\t\tJAXBContext jxbcontext = (JAXBContext) JAXBContext.newInstance(\"es.ujaen.sinai.first.io.xml.nlptoolsshare\");\n\t\t\tMarshaller marshaller = jxbcontext.createMarshaller();\n\t\t\tmarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\t\tmarshaller.setProperty(\"com.sun.xml.bind.namespacePrefixMapper\", new XMLPrefixMapper());\n\t\t\tObjectFactory factory = new ObjectFactory();\n\t\t\tJAXBElement<NlptoolsshareType> xml = factory.createNlptoolsshare(xmldoc);\n\t\t\tmarshaller.marshal(xml, new File(inputPath));\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 main(String[] args) throws FileNotFoundException {\n Scanner scanner = new Scanner(new FileInputStream(\"/Users/guoziren/IdeaProjects/剑指offer for Java/src/main/java/com/ustc/leetcode/algorithmidea/dynamicprogramming/input.txt\"));\n }",
"public void abrirArchivo() {\r\n try {\r\n entrada = new Scanner(new File(\"estudiantes.txt\"));\r\n } // fin de try\r\n catch (FileNotFoundException fileNotFoundException) {\r\n System.err.println(\"Error al abrir el archivo.\");\r\n System.exit(1);\r\n } // fin de catch\r\n }",
"public void processInput(String theFile){processInput(new File(theFile));}",
"private void convertFile() throws Exception {\n\t\t// Inform the user that we're working\n\t\tmainframe.isLoading();\n\t\toutputMessage = \"Starting conversion...\";\n\n\t\t// ---------- Setting the output\n\t\t// *** Creating the dir\n\n\t\t// if the outputfiletextfield is empty, output file folder is same as input file's\n\t\tif(mainframe.getOutputTextfieldText().trim().equals(\"\")) {\n\t\t\tString[] temporarypath = null;\n\t\t\ttemporarypath = curFile.getAbsolutePath().split(\".xml\");\n\t\t\tdir = temporarypath[0];\n\n\t\t\toutputMessage += '\\n' + \"No output filled, same directory as input will be used\";\n\t\t}\n\t\telse{\n\t\t\ttry {\n\t\t\t\tFile f = new File(mainframe.getOutputTextfieldText());\n\n\t\t\t\t// if the selected is a directory\n\t\t\t\tif(f.isDirectory())\n\t\t\t\t{\n\t\t\t\t\t// split the file name\n\t\t\t\t\tString[] temporarypath = curFile.getName().split(\".xml\");\n\n\t\t\t\t\tdir = f.getAbsolutePath() + File.separator + temporarypath[0];\n \n\t\t\t\t}\n\t\t\t\telse if(f.getAbsolutePath().endsWith(\"sif\"))\n\t\t\t\t{\n\t\t\t\t\tString[] temporarypath = f.getAbsolutePath().split(\".sif\");\n\t\t\t\t\tdir = temporarypath[0];\n\t\t\t\t}\n\t\t\t\telse if(f.getAbsolutePath().endsWith(\"csv\"))\n\t\t\t\t{\n\t\t\t\t\tString[] temporarypath = f.getAbsolutePath().split(\".csv\");\n\t\t\t\t\tdir = temporarypath[0];\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthrow new Exception(\"Invalid output : directory, SIF file or CSV file expected\");\n\t\t\t\t}\n\t\t\t} catch (NullPointerException nullExp){\n\t\t\t\toutputMessage += '\\n' + \"No output fuilled, same directory as input will be used\";\n\t\t\t}\n\t\t}\n\n\n\n\t\t// *** Setting the targets\n\t\tsetTargetSIFpath(dir.concat(\".sif\"));\n\t\tsetTargetCSVpath(dir.concat(\".csv\"));\n\t\t// set the target node type NA path\n\t\tsetTargetNODE_TYPEpath(dir.concat(\".NODE_TYPE.NA\"));\n\t\t// set the UNIPROT NA path\n\t\tsetTargetUNIPROTpath(dir.concat(\".UNIPROT.NA\"));\n\t\t// set the MODIFICATIONS NA path\n\t\tsetTargetMODIFICATIONSpath(dir.concat(\".MODIFICATIONS.NA\"));\n\t\t// set the PREFERRED_SYMBOL NA path\n\t\tsetTargetPREFERRED_SYMBOLpath(dir.concat(\".PREFERRED_SYMBOL.NA\"));\n\t\t// set the PREFERRED_SYMBOL_EXT NA path\n\t\tsetTargetPREFERRED_SYMBOL_EXTpath(dir.concat(\".PREFERRED_SYMBOL_EXT.NA\"));\n\t\t// set the PID NA path\n\t\tsetTargetPIDpath(dir.concat(\".PID.NA\"));\n\t\t// set the ID_PREF NA path\n\t\tsetTargetID_PREFpath(dir.concat(\".ID_PREF.NA\"));\n\t\t// set the IDCytoUniProtFile path\n\t\tsetTargetIDCytoUniProtFilepath(dir.concat(\".IDCytoToUniProt.NA\"));\n\t\t// set the UniqueUniProtFile path\n\t\tsetTargetUniqueUniProtFilepath(dir.concat(\".UNIQUEUNIPROT.NA\"));\n\t\t// set the UniProt to GeneID map file path\n\t\tsetTargetUniProtToGeneIDMapFilepath(dir.concat(\".UPToGeneIDMap.NA\"));\n\t\t// set the GeneID to Affymetrix map file path\n\t\tsetTargetGeneIDtoAffymetrixMapFilepath(dir.concat(\".GeneIDToAffyMap.NA\"));\n\n\t\t// For the user\n\t\toutputMessage += '\\n' + \"Target for conversion : \" + dir;\n\t\tmainframe.setTextToOutputText(dir);\n\n\t\t// ----------------- Converting\n\t\tif(inputfilepath.endsWith(\"xml\"))\n\t\t{\n\t\t\tNodeManagerImpl manager = NodeManagerImpl.getInstance();\n\t\t\tFileReader reader = PidFileReader.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\treader.read(inputfilepath);\n\t\t\t}\n\t\t\tcatch (NoValidManagerSetException e1) {\n\t\t\t\tthrow e1;\n\t\t\t}\n\t\t\tcatch (FileParsingException e1) {\n\t\t\t\tthrow e1;\n\t\t\t}\n\n\t\t\tFileWriter writer = SifFileWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\twriter.write(getTargetSIFpath(), manager);\n\t\t\t\tif (mainframe.isExpandChecked())\n\t\t\t\t{\n\t\t\t\t\twriter = SifFileExpandMolWriter.getInstance();\n\t\t\t\t\twriter.write(getTargetSIFpath(), manager);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\tthrow e;\n\t\t\t}\n\n\t\t\tFileWriter nWriter = NodeTypeAttributeForUniprotWithModWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tnWriter.write(getTargetNODE_TYPEpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tFileWriter uWriter = UniprotIdForUniprotWithModWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tuWriter.write(getTargetUNIPROTpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tFileWriter modiWriter = ModificationsWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tmodiWriter.write(getTargetMODIFICATIONSpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tFileWriter pWriter = PreferredSymbolForUniprotWithModWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpWriter.write(getTargetPREFERRED_SYMBOLpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tpWriter = ExtPreferredSymbolWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpWriter.write(getTargetPREFERRED_SYMBOL_EXTpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tFileWriter pidWriter = PidForUniprotWithModWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpidWriter.write(getTargetPIDpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tFileWriter prefIdWriter = IdWithPreferredSymbolWriter.getInstance();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tprefIdWriter.write(getTargetID_PREFpath(), manager);\n\t\t\t}\n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t// Parsing NA to CSV\n\t\t\ttry {\n\t\t\t\tparserTask = new ParserTask(getTargetCSVpath(),getTargetPIDpath(), getTargetNODE_TYPEpath(), getTargetUNIPROTpath(), getTargetMODIFICATIONSpath(),\n\t\t\t\t\t\tgetTargetPREFERRED_SYMBOLpath(), getTargetPREFERRED_SYMBOL_EXTpath(), getTargetPREFERRED_SYMBOL_EXTpath(), getTargetID_PREFpath());\n\n\t\t\t\tFile SIFFile = new File(getTargetSIFpath());\n\t\t\t\tMyTaskObserver myTaskObserver = new MyTaskObserver(mainframe, tm, ldt, parserTask);\n\n\t\t\t\titr = ldn.createTaskIterator(SIFFile);\n\t\t\t\titr.append(parserTask);\n\t\t\t\ttm.execute(itr, myTaskObserver);\n\t\t\t} catch (Exception exp) {\n\t\t\t\tthrow new Exception(\"Problem when trying to parse the NA files or loading the graph : \\n\" + exp.toString());\n\t\t\t}\n\n\t\t}\n\t\telse // not an xml\n\t\t{\n\t\t\tthrow new Exception(\"Invalid input : .xml expected\");\n\t\t}\n \n\t}",
"public static void main(String[] args) {\n File file = new File (\"tesEt.txt\");\n // Path file = Paths.get(\"test.txt\");\n // System.out.println(file.get);\n System.out.println(file.getAbsoluteFile());\n System.out.println(file.isAbsolute());\n System.out.println(file.exists());\n \n // try {\n // // File.createTempFile(\"prefix\", \"suffix\");\n // sy\n // } catch (IOException e) {\n // // TODO Auto-generated catch block\n // e.printStackTrace();\n // }finally\n // {\n // System.out.println(\"hehehehe\");\n // }\n // file.\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 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 void readResult() {\n File dirXml = new File(System.getProperty(\"user.dir\") + \"/target/classes/\");\n /// Get Parent Directory\n String parentDirectory = dirXml.getParent();\n File folder = new File(parentDirectory + \"/jbehave\");\n File[] listOfFiles = folder.listFiles();\n\n if (listOfFiles != null) {\n for (File listOfFile : listOfFiles) {\n if (listOfFile.isFile()) {\n String filePath = folder.getPath() + \"/\" + listOfFile.getName();\n System.out.println(\"File \" + filePath);\n if (filePath.contains(\".xml\") && !filePath.contains(\"AfterStories\") && !filePath.contains(\n \"BeforeStories\")) {\n readXML(filePath);\n }\n }\n }\n }\n }",
"public void createXMLFile(String INPUT_XML_SYMBOL) throws IOException {\n\n\t\t// creates isoxxxx-xxx_temp.xml\n\t\tOUTPUT_FILE_TEMP = INPUT_XML_SYMBOL.replace(\".xml\", \"_temp.xml\");\n\n\t\t// get Symbol\n\t\tString xmlSymbol = readFile(INPUT_XML_SYMBOL);\n\n\t\t// get ComponentName\n\t\tint i = xmlSymbol.indexOf(\"ComponentName=\") + 15;\n\t\tint j = xmlSymbol.indexOf(\"\\\"\", i);\n\t\tString componentName = xmlSymbol.substring(i, j);\n\n\t\t// get basic file stuff\n\t\tString xmlHeader = readFile(this.INPUT_XML_HEADER);\n\t\tString xmlBottom = readFile(this.INPUT_XML_FOOTER).replace(\"abc\", componentName);\n\n\t\t// create the new file\n\t\twriteStringToFile(\n\t\t\t\txmlHeader + \"\\n\" + xmlSymbol + \"\\n\" + \"</ShapeCatalogue>\" + \"\\n\" + xmlBottom + \"\\n\" + \"</PlantModel>\");\n\t}",
"public static void main(String args[]) throws FileNotFoundException, \n SAXException, IOException {\n FileInputStream fis1 = new FileInputStream(\"C:/cucumber/Source.xml\");\n FileInputStream fis2 = new FileInputStream(\"C:/cucumber/Target.xml\");\n \n // using BufferedReader for improved performance\n BufferedReader source = new BufferedReader(new InputStreamReader(fis1));\n BufferedReader target = new BufferedReader(new InputStreamReader(fis2));\n \n //configuring XMLUnit to ignore white spaces\n XMLUnit.setIgnoreWhitespace(true);\n \n //comparing two XML using XMLUnit in Java\n List differences = compareXML(source, target);\n \n //showing differences found in two xml files\n try{\n \t \n \n printDifferences(differences);\n \n }\n catch (ClassCastException e) {\n \t LOGGER.error(e);\n\t\t// TODO: handle exception\n\t}\n \n }",
"public static void main(String[] args) {\n\n File file = new File(\"./src/cat.txt\");\n System.out.println(file.exists());\n System.out.println(file.getName());\n System.out.println(file.getAbsolutePath());\n System.out.println(file.isDirectory());\n System.out.println(file.isFile());\n System.out.println(file.length());\n System.out.println(file.renameTo(new File(\"cat.txt\")));\n\n File folder = new File(\"./cat.txt\");\n boolean mkdir = folder.mkdir();\n\n File folderInFolder = new File(\"./folder/unAltFolder\");\n folderInFolder.mkdirs();\n\n System.out.println(file.getParent());\n File srcFile = new File(\"./src/main\");\n File[] filesFromSrc = srcFile.listFiles();\n\n for (File fileSrc : filesFromSrc) {\n System.out.println(fileSrc);\n }\n\n }",
"public static void main(String[] args) throws IOException {\n\t\tString outPath = \"/home/sujay/Documents/FilesFromJavaCode/output/\";\n\t\tString inPath = \"/home/sujay/Documents/FilesFromJavaCode/input/\";\n\n\t\t// folder name need to generate\n\t\t// (At run time, based on selected company or selected Account number)\n\t\tString floder = \"1116884005_FEB-2020\";\n\n\t\t// Output path to create new folder and copy the file(s)\n\t\tString destPath = outPath + floder;\n\n\t\t// Creating a File object\n\t\tFile file = new File(destPath);\n\n\t\t// Checking is particular folder exist or not\n\t\tif (!file.exists()) {\n\t\t\t// Creating the directory, if not exist\n\t\t\tfile.mkdir();\n\t\t}\n\n\t\t// from path mention from yml file and file name have to be declare\n\t\tFile from = null;\n\t\tFile dest = null;\n\t\tint fileNum = 1;\n\t\tfor (int i = 1; i <= fileNum; i++) {\n\t\t\tfrom = new File(inPath + \"example-\" + i + \".csv\");\n\t\t\tdest = new File(destPath + \"/example-\" + i + \".csv\");\n\t\t\t// File exists copy from source to destination path else send error message\n\t\t\tif (from.exists()) {\n\t\t\t\tcopyFileSourceToDestination(from, dest);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"From File is not exist & throw an Exception\");\n\t\t\t}\n\t\t}\n\t\tZipFolder2 zipFolder = new ZipFolder2();\n\t\tzipFolder.generateZipFile(destPath,destPath);\n\t}",
"public static void main(String[] args) throws FileNotFoundException {\n Scanner input = new Scanner(System.in);\n files(input); // calls files method \n }",
"public void setupFiles() {\n File inputDataFile = new File(inputFileName);\n try {\n inputFile = new Scanner(inputDataFile);\n FileWriter outputDataFileOA = new FileWriter(outputFileNameOA);\n FileWriter outputDataFileLL = new FileWriter(outputFileNameLL);\n outputFileOA = new PrintWriter(outputDataFileOA);\n outputFileLL = new PrintWriter(outputDataFileLL);\n outputFileOA.println(\"Output from open addressing hash table:\");\n outputFileOA.println();\n outputFileLL.println(\"Output from linked list hash table:\");\n outputFileLL.println();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"please input the file path....\");\n String filePath = sc.next();\n\n // Second: list the file path, and iterator it's sub direction\n File file = new File(filePath);\n for(File f : file.listFiles()){\n // F:\\MyStudyFile\\IT-Books\\书籍仓库\\Java书籍类\n System.out.println(f.getPath());\n iteratorFilePath(f);\n }\n }",
"public static void main(String[] args) {\n\n\t\tString filePath = FilePath.FILE_PATH;\n\t\t\n\t\ttry {\n\t\t\t// File 클래스는 자바에서 파일 및 폴더 객체를 다루는 클래스이다. \n\t\t\t// new File() : File 클래스의 인스턴스를 생성 \n\t\t\t// 실제 하드디스크에 물리적인 파일/폴더(디렉토리)를 생성하지 않는다. \n\t\t\t// 실제 파일/폴더(디렉토리)를 만들기 위해서는 File 클래스에 있는 함수를 호출해야 한다. \n\t\t\t// createNewFile(), mkdir(), mkdirs()\n\t\t\tFile f = new File(\"aaaaaa\");\n\t\t\tSystem.out.println(\"f >>> : \" + f);\n\t\t\tSystem.out.println(\"f.getName() >>> : \" + f.getName());\n\t\t\tboolean bf = f.createNewFile();\n\t\t\tSystem.out.println(\"bf >>> : \" + bf);\n\t\t\n\t\t\tboolean bdir = f.isDirectory();\n\t\t\tSystem.out.println(\"bdir >>> : \" + bdir);\n\t\t\tboolean bfile = f.isFile();\n\t\t\tSystem.out.println(\"bfile >>> : \" + bfile);\n\t\t\t\n\t\t\tString getPath = f.getPath(); // File에 입력된 경로 출력 \n\t\t\tSystem.out.println(\"getPath >>> : \" + getPath);\n\t\t\tString getAbsolutePath = f.getAbsolutePath(); // 현재경로 + 입력된 경로(연산되지 않은 경로)\n\t\t\tSystem.out.println(\"getAbsolutePath >>> : \" + getAbsolutePath);\n\t\t\tString getCanonicalPath = f.getCanonicalPath(); // 현재경로 + 입력된 경로(연산된 경로)\n\t\t\tSystem.out.println(\"getCanonicalPath >>> : \" + getCanonicalPath);\n\t\t\t\t\t\t\n\t\t\tFile f1 = new File(filePath + \"/\" + \"aaaaaa.txt\");\n\t\t\tSystem.out.println(\"f1 >>> : \" + f1);\n\t\t\tSystem.out.println(\"f1.getName() >>> : \" + f1.getName());\n\t\t\tboolean bf1 = f1.createNewFile();\n\t\t\tSystem.out.println(\"bf1 >>> : \" + bf1);\n\t\t\t\n\t\t\tboolean bdir1 = f1.isDirectory();\n\t\t\tSystem.out.println(\"bdir1 >>> : \" + bdir1);\n\t\t\tboolean bfile1 = f1.isFile();\n\t\t\tSystem.out.println(\"bfile1 >>> : \" + bfile1);\n\t\t\t\n\t\t\tString getPath1 = f1.getPath(); // File에 입력된 경로 출력 \n\t\t\tSystem.out.println(\"getPath1 >>> : \" + getPath1);\n\t\t\tString getAbsolutePath1 = f1.getAbsolutePath(); // 현재경로 + 입력된 경로(연산되지 않은 경로)\n\t\t\tSystem.out.println(\"getAbsolutePath1 >>> : \" + getAbsolutePath1);\n\t\t\tString getCanonicalPath1 = f1.getCanonicalPath(); // 현재경로 + 입력된 경로(연산된 경로)\n\t\t\tSystem.out.println(\"getCanonicalPath1 >>> : \" + getCanonicalPath1);\n\t\t\t\n\t\t}catch(Exception io) {\n\t\t\t\n\t\t}\t\t\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tFileReader fin = null;\n\t\tFileWriter fout = null;\n\t\tXMLString x;\n\t\tScanner f;\n\t\tString fname, fpath, tpath, wd = \"\", tag, content;\n\t\tint ch, k = 0, n = 0 ;\n\t\tchar c;\n\t\tSystem.out.println(\"Enter the File Name (without .xml)\");\n\t\tfname = sc.next();\n\t\tfpath = \"C:\\\\Users\\\\HP\\\\Desktop\\\\adobe interview projects\\\\XML JSON Parser (1)\\\\src\\\\miniProject\\\\\" + fname + \".xml\";\n\t\tSystem.out.println(fpath);\n\t\ttpath = \"C:\\\\Users\\\\HP\\\\Desktop\\\\adobe interview projects\\\\XML JSON Parser (1)\\\\src\\\\miniProject\\\\\" + fname + \".txt\";\n\t\tSystem.out.println(tpath);\n\t\tSystem.out.print(\"Parsing \" + fname + \".xml\");\n\t\twhile(n!=5) {\n\t\t\tSystem.out.print(\" .\");\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tn++;\n\t\t}\n\t\tSystem.out.println();\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(fname +\".xml PARSED SUCCESSFULLY !\");\n\t\ttry {\n\t\t\tThread.sleep(500);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(fname + \".txt FILE CREATED SUCCESSFULLY\");\n\t\tSystem.out.println();\n\t\ttry {\n\t\t\tfin = new FileReader(fpath);\n\t\t\tfout = new FileWriter(tpath);\n\t\t\tf = new Scanner(fin);\n\t\t\tf.useDelimiter(\"\\n\");\n\t\t\twhile(f.hasNext()) {\n\t\t\t\twd = f.next();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tx = new XMLString();\n\t\t\t\ttag = x.XMLtoTag(wd);\n\t\t\t\t\n\t\t\t\tfor(int i=0; i<wd.length()-1; i++) {\n\t\t\t\t\tc = wd.charAt(i+1);\n\t\t\t\t\tif(wd.charAt(i) == '>') {\n\t\t\t\t\t\tif( !(Character.isLetter(c)) && !(Character.isDigit(c)) && !(x.isSpecialCharacter(c)) ) {\n\t\t\t\t\t\t\tk = 0;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tk = 1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(tag != \"\") {\n\t\t\t\t\tif(k == 1) {\n\t\t\t\t\t\tSystem.out.print(tag + \" : \");\n\t\t\t\t\t\tfout.write(tag + \" : \");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print(tag);\n\t\t\t\t\t\tfout.write(tag);\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcontent = x.XMLtoString(wd);\n\t\t\t\tSystem.out.println(content);\n\t\t\t\t\n\t\t\t\tfout.write(content);\n\t\t\t\t//Can use either for getting a newline\n\t\t\t\t//fout.write(\"\\r\\n\");\n\t\t\t\tfout.write(System.lineSeparator());\n\t\t\t}\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(fname + \".xml File Not Found\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tif(fin != null) {\n\t\t\t\t\tfin.close();\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tif(fout !=null) {\n\t\t\t\t\tfout.close();\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(IOException e) {\n\t\t\t\tSystem.out.println(\"Unable to Close File\" + e);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}",
"public static void main (String[] args) throws IOException\n {\n Scanner fileScan, lineScan;\n String fileName;\n\n Scanner scan = new Scanner(System.in);\n\n System.out.print (\"Enter the name of the input file: \");\n fileName = scan.nextLine();\n fileScan = new Scanner(new File(fileName));\n\n // Read and process each line of the file\n\n\n\n\n }",
"public void fileOpen () {\n\t\ttry {\n\t\t\tinput = new Scanner(new File(file));\n\t\t\tSystem.out.println(\"file created\");\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"file could not be created\");\n\t\t}\n\t}",
"public void readFromFile() {\n\n\t}",
"public InputSystemTests() throws URISyntaxException {\n URI uri = ClassLoader.getSystemResource(txtTestFilenameList.get(0)).toURI();\n databaseInstance.setTaxpayersInfoFilesPath(Paths.get(uri).getParent().toString());\n }",
"public static void main(String[] args) {\n\t\tPath ulaznaPutanja = Paths.get(\"input.txt\");\n\t\t\n\t\t// Neke zanimljivosti\n\t\tSystem.out.println(\"path.toString() = \" + ulaznaPutanja/*.toString()*/);\n\t\t\n\t\t// Npr ako je path: /home/korisnik/Desktop/input.txt\n\t\t// getFileName(): vratice se \"input.txt\"\n\t\t// getParent(): vratice se \"/home/korisnik\"\n\t\t// getRoot(): vratice se \"/\"\n\t\tSystem.out.println(\"Ime datoteke: \" + ulaznaPutanja.getFileName());\n\t\tSystem.out.println(\"Parent putanje: \" + ulaznaPutanja.getParent());\n\t\tSystem.out.println(\"Root: \" + ulaznaPutanja.getRoot());\n\t\t\n\t\t// Izuzetno koristan metod za slucaj da nam se ne pronalazi datoteka\n\t\t// koja je zadataka relativno (jer najcesce ne znamo od odnosu NA STA je relativno).\n\t\tSystem.out.println(\"Apsolutna putanja: \" + ulaznaPutanja.toAbsolutePath().toString());\n\t\tSystem.out.println();\n\t\t\n\t\t// ----------------------------------------------------------------------------------------\n\t\t// CITANJE\n\t\t// ----------------------------------------------------------------------------------------\n\t\ttry {\n\t\t\t// Liste i ostale genericke kolekcije u Javi ce biti obradjeni narednih casova.\n\t\t\t// Za sada, dovoljno nam je da znamo da iteriramo kroz listu.\n\t\t\t// StandardCharsets predstavlja klasu kojoj mozemo pronaci kodiranje koje nam je potrebno.\n\t\t\t// Na kursu cemo uvek specifikovati UTF_8.\n\t\t\tList<String> linije = Files.readAllLines(ulaznaPutanja, StandardCharsets.UTF_8);\n\t\t\tSystem.out.println(\"Sadrzaj datoteke:\" + ulaznaPutanja.toAbsolutePath());\n\t\t\tfor (String linija: linije)\n\t\t\t\tSystem.out.println(linija);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Neuspelo otvaranje ulazne datoteke!\");\n\t\t\te.printStackTrace();\n\t\t} \n\n\t\t// ----------------------------------------------------------------------------------------\n\t\t// PISANJE\n\t\t// ----------------------------------------------------------------------------------------\n\t\tPath izlaznaPutanja = Paths.get(\"output.txt\");\n\t\tSystem.out.println(\"\\nPisemo u datoteku: \" + izlaznaPutanja.toAbsolutePath());\n\t\tList<String> linije;\n\t\t\n\t\t// Primer kako mozemo da inicijalizujemo listu (slicno poput int[] a = {1, 2, 3, 4};\n\t\tlinije = Arrays.asList(\"Zdravo\", \" \", \"svete\", \"!\");\n\n\t\ttry {\n\t\t\t// Klasa StandardOpenOption omogucava da specifikujemo na koji nacin se \"otvara\" datoteka.\n\t\t\t// Odnosno, da li da ukoliko postoji datoteka, ne uspe otvaranje (eng. File already exists),\n\t\t\t// da li da se pisanje vrsi tako sto se stari sadrzaj obrise, ili se ipak pise na kraj datoteke i slicno.\n\t\t\t// Ukoliko se ne specifikuju opcije java radi:\n // * StandardOpenOption.CREATE \t\t\t\t\t- kreira datoteku \n // * StandardOpenOption.TRUNCATE_EXISTING \t\t- brise prethodni sadrzaj ukoliko postoji\n\t\t\t// Files.write(izlaznaPutanja, linije);\n\t\t\tFiles.write(izlaznaPutanja, linije, StandardOpenOption.APPEND); \t// dodaje sadrzaj na kraj datoteke\n\t\t\tSystem.out.println(\"Sadrzaj je uspesno upisan!\");\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Neuspelo pisanje u datotekU!\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public CreateInputFiles()\n\t{\n\t\ttry\n\t\t{\n\t\t\tEXCEL_FILE = new FileInputStream(new File(INPUT_FILE_NAME));\n\t\t\t/* Log File */\n\t\t\tLOG_WRITER = writerCreator(LOG_FILE, BLANK);\n\t\t\tLOG_WRITER.write(START_TIME + new java.util.Date() + LINE_SEPERATOR);\n\t\t\tSystem.out.println(NEW_LINE + START_TIME + new java.util.Date() + LINE_SEPERATOR);\n\n\t\t\t/* Service Part Creation */\n\t\t\tSERVICE_PART_WRITER = writerCreator(SERVICE_PARTS_CREATION_INPUT_FILE,\n\t\t\t\t\tSERVICE_PART_CREATION_CONFIG);\n\n\t\t\t/* Service Form Update */\n\t\t\tSERVICE_FORM_WRITER = writerCreator(SERVICE_FORM_PROPERTIES_INPUT_FILE,\n\t\t\t\t\tSERVICE_FORM_UPDATE_CONFIG);\n\n\t\t\t/* PS_UPLOAD - Service Structures Creation \n\t\t\tPS_STRUCTURE_WRITER = writerCreator(PS_STRUCTURE_CREATION_INPUT_FILE,\n\t\t\t\t\tPS_STRUCTURE_CREATION_CONFIG); */\n\n\t\t\t/* Service Structures Creation */\n\t\t\tSTRUCTURE_WRITER = writerCreator(STRUCTURE_CREATION_INPUT_FILE,\n\t\t\t\t\tSTRUCTURE_CREATION_CONFIG);\n\n\t\t\t/* EngParts' Service Form Creation and Attachment*/\n\t\t\tEP_SERVICE_FORM_WRITER = writerCreator(EP_SERVICE_FORM_CREATION_INPUT_FILE,\n\t\t\t\t\tEP_SERVICE_FORM_CREATION_CONFIG);\n\n\t\t\t/* Service Parts' Global Alternate */\n\t\t\tSP_GLOBAL_ALT_WRITER = writerCreator(SP_GLOBAL_ALT_INPUT_FILE, BLANK);\n\n\t\t\t/* Service Parts' Group ID update */\n\t\t\tSP_GROUP_ID_WRITER = writerCreator(SP_GROUP_ID_INPUT_FILE, SP_GROUP_ID_UPDATE_CONFIG);\n\n\t\t\t/* Relate Service Parts to three types of attachments*/\n\t\t\tSP_ATTACHMENT_WRITER = writerCreator(SP_ATTACHMENT_INPUT_FILE, SP_ATTACHMENT_CONFIG);\n\n\t\t\t/* Made From Relation Creation */\n\t\t\tMADE_FROM_RELATION_WRITER = writerCreator(MADE_FROM_REL_INPUT_FILE,\n\t\t\t\t\tMADE_FROM_REL_CONFIG);\n\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(EXCEPTION + e.getMessage());\n\t\t\tSystem.exit(1);\n\t\t}\n\t}",
"public void readAndWrite() {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n List<String> passedFiles = new ArrayList<>();\n copy(new File(s), true, passedFiles);\n\n }",
"public static void main(String[] args) {\n\t\tFile file = new File(\"test/a.txt\");\r\n\t\tFileUtil.createFile(file);\r\n\t\t/*if(! file.exists()){\r\n\t\t\ttry {\r\n\t\t\t\tSystem.out.println(file.getAbsolutePath());\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t*/\r\n\t}",
"public static void main(String[] args) throws IOException {\n\t\t\n\t\tFile f = new File(\"c:\\\\Ranjan\", \"ranjan1.txt\");\n\t\tf.createNewFile();\n\t\t\n\t\tSystem.out.println(f.getPath());\n\t\tSystem.out.println(f);\n\t}",
"public static void main(String[] args) {\n File myFile= new File(\"D:/yeah.txt\");\n System.out.println(\"Iiim file bnuu? \"+myFile.exists());\n\t System.out.println(\"Zaagdsan zam deeree bnuu?\"+myFile.isFile());\t \n\t System.out.println(\"Ug file iin ner \"+myFile.getName());\n\t System.out.println(\"Ug file iin zam \"+myFile.getPath());\n\t}",
"public XMLReader()\r\n {\r\n \r\n String filePathHead = \"\";\r\n\r\n Path inputPath = Paths.get(\"src\\\\dataFiles\");\r\n\r\n try\r\n {\r\n filePathHead = inputPath.toRealPath().toString();\r\n System.out.println(\"PATH: \" + inputPath.toRealPath().toString());\r\n }\r\n catch (NoSuchFileException x)\r\n {\r\n System.err.format(\"%s: no such\" + \" file or directory%n\", filePathHead);\r\n // Logic for case when file doesn't exist.\r\n }\r\n catch (IOException x)\r\n {\r\n System.err.format(\"%s%n\", x);\r\n // Logic for other sort of file error.\r\n }\r\n }",
"public static void main(String[] args) {\n\n\t\tArquivo arq = new Arquivo();\n\t\tint opcao = -1;\n\t\tScanner entrada = new Scanner(System.in);\n\t\tString caminhoArquivo, caminhoDiretorio, diretorio, diretorioNovo;\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nPrograma de manipulação de arquivos e diretórios.\"\n\t\t\t\t\t\t\t\t+\"Digite uma das seguintes opções:\");\n\t\t\tSystem.out.println(\"1 para criar um arquivo\"+\n\t\t\t\t\t\t\t\t\"\\n2 para excluir um arquivo\"+\n\t\t\t\t\t\t\t\t\"\\n3 para renomear um arquivo\"+\n\t\t\t\t\t\t\t\t\"\\n4 para mover um arquivo\"+\n\t\t\t\t\t\t\t\t\"\\n5 para criar um diretório\"+\n\t\t\t\t\t\t\t\t\"\\n6 para excluir um diretório\"+\n\t\t\t\t\t\t\t\t\"\\n7 para renomear um diretório\"+\n\t\t\t\t\t\t\t\t\"\\n8 para mover um diretório\"+\n\t\t\t\t\t\t\t\t\"\\n9 para criar um arquivo e escrever um texto nesse mesmo arquivo\"+\n\t\t\t\t\t\t\t\t\"\\n10 para ler um arquivo\"+\n\t\t\t\t\t\t\t\t\"\\n11 para exibir informações sobre um arquivo\"+\n\t\t\t\t\t\t\t\t\"\\n12 para exibir informações sobre um diretório\"+\n\t\t\t\t\t\t\t\t\"\\n13 para exibir todos os arquivos e subdiretórios de um diretório\"+\n\t\t\t\t\t\t\t\t\"\\n0 para encerrar\");\n\t\t\ttry {\n\t\t\t\topcao = entrada.nextInt();\n\t\t\t}\n\t\t\tcatch(InputMismatchException e) {\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tentrada.nextLine();\n\t\t\t\n\t\t\tswitch (opcao) {\n\t\t\tcase 0:\n\t\t\t\tSystem.out.println(\"Programa encerrado!\");\n\t\t\t\tentrada.close();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println(\"Digite o nome e o caminho do arquivo: \");\n\t\t\t\tcaminhoArquivo = entrada.nextLine();\n\t\t\t\tarq.criarArquivo(caminhoArquivo);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\tSystem.out.println(\"Digite o nome e o caminho do arquivo: \");\n\t\t\t\tcaminhoArquivo = entrada.nextLine();\n\t\t\t\tarq.excluirArquivo(caminhoArquivo);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3:\n\t\t\t\tSystem.out.println(\"Digite o nome e o caminho do arquivo: \");\n\t\t\t\tcaminhoArquivo = entrada.nextLine();\n\t\t\t\tSystem.out.println(\"Digite o novo nome do arquivo: \");\n\t\t\t\tString novoNome = entrada.nextLine();\n\t\t\t\tarq.renomearArquivo(caminhoArquivo, novoNome);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 4:\n\t\t\t\tSystem.out.println(\"Digite o nome e o caminho do arquivo: \");\n\t\t\t\tcaminhoArquivo = entrada.nextLine();\n\t\t\t\tSystem.out.println(\"Digite o novo destino do arquivo: \");\n\t\t\t\tString novoCaminho = entrada.nextLine();\n\t\t\t\tarq.moverArquivo(caminhoArquivo, novoCaminho);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 5:\n\t\t\t\tSystem.out.println(\"Digite o caminho do diretório: \");\n\t\t\t\tdiretorio = entrada.nextLine();\n\t\t\t\tarq.criarDiretorio(diretorio);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 6:\n\t\t\t\tSystem.out.println(\"Digite o caminho do diretório: \");\n\t\t\t\tdiretorio = entrada.nextLine();\n\t\t\t\tarq.excluirDiretorio(diretorio);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 7:\n\t\t\t\tSystem.out.println(\"Digite o caminho atual do diretório: \");\n\t\t\t\tdiretorio = entrada.nextLine();\n\t\t\t\tSystem.out.println(\"Digite o caminho novo do diretório: \");\n\t\t\t\tdiretorioNovo = entrada.nextLine();\n\t\t\t\tarq.renomearDiretorio(diretorio, diretorioNovo);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 8:\n\t\t\t\tSystem.out.println(\"Digite o caminho atual do diretório: \");\n\t\t\t\tdiretorio = entrada.nextLine();\n\t\t\t\tSystem.out.println(\"Digite o caminho novo do diretório: \");\n\t\t\t\tdiretorioNovo = entrada.nextLine();\n\t\t\t\tarq.moverDiretorio(diretorio, diretorioNovo);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 9:\n\t\t\t\tSystem.out.println(\"Digite o nome e o caminho do arquivo: \");\n\t\t\t\tcaminhoArquivo = entrada.nextLine();\n\t\t\t\tSystem.out.println(\"Escreva o texto a ser incluído no arquivo: \");\n\t\t\t\tString texto = entrada.nextLine();\n\t\t\t\tarq.criaEEscreveNoArquivo(caminhoArquivo, texto);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 10:\n\t\t\t\tSystem.out.println(\"Digite o nome e o caminho do arquivo: \");\n\t\t\t\tcaminhoArquivo = entrada.nextLine();\n\t\t\t\tSystem.out.println(\"Digite 't' para ler todas as linhas do arquivo e\"\n\t\t\t\t\t\t\t\t\t+\" 'p' para selecionar as linhas do arquivo a serem lidas: \");\n\t\t\t\tchar lerLinhas = entrada.next().charAt(0);\n\t\t\t\tif(lerLinhas == 't')\n\t\t\t\t\tarq.lerArquivo(caminhoArquivo);\n\t\t\t\telse if(lerLinhas == 'p') {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tSystem.out.println(\"Digite a linha inicial a ser lida: \");\n\t\t\t\t\t\tint linhaIni = entrada.nextInt();\n\t\t\t\t\t\tSystem.out.println(\"Digite a linha final a ser lida: \");\n\t\t\t\t\t\tint linhaFinal = entrada.nextInt();\n\t\t\t\t\t\tarq.lerArquivo(caminhoArquivo, linhaIni, linhaFinal);\n\t\t\t\t\t}\n\t\t\t\t\tcatch(InputMismatchException e) {\n\t\t\t\t\t\tSystem.out.println(\"Entrada inválida!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"Opção inválida!\");\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 11:\n\t\t\t\tSystem.out.println(\"Digite o nome e o caminho do arquivo: \");\n\t\t\t\tcaminhoArquivo = entrada.nextLine();\n\t\t\t\tarq.infosDoArquivo(caminhoArquivo);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 12:\n\t\t\t\tSystem.out.println(\"Digite o nome e o caminho do diretório: \");\n\t\t\t\tcaminhoDiretorio = entrada.nextLine();\n\t\t\t\tarq.infosDoDiretorio(caminhoDiretorio);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 13:\n\t\t\t\tSystem.out.println(\"Digite o nome e o caminho do diretório: \");\n\t\t\t\tcaminhoDiretorio = entrada.nextLine();\n\t\t\t\tarq.infosArqESubdirDoDiretorio(caminhoDiretorio);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Operação inválida!\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}while(opcao != 0);\n\t}",
"void setFileName(String inputFileName)\n {\n this.inputFileName = inputFileName;\n }",
"public static void main(String[] args) { String dirname = \"/home/diego/IdeaProjects/JAVAStuff/src/tmp/dirTest.txt\";\n// File d = new File(dirname);\n// d.mkdirs();\n//\n File file = null;\n String[] paths;\n\n try {\n file = new File(\"/home/diego/IdeaProjects/JAVAStuff/src\");\n paths = file.list();\n\n for(String s: paths) {\n System.out.println(s);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n }",
"public static void main(String[] args) throws FileNotFoundException {\n\t\tListaNombre nombres = new ListaNombre();\n//\t\tnombres.add(new Nombre(\"guido\"));\n//\t\tnombres.add(new Nombre(\"guido\"));\n//\t\tnombres.add(new Nombre(\"guido\"));\n//\t\tnombres.add(new Nombre(\"juan\"));\n//\t\tnombres.add(new Nombre(\"juan\"));\n//\t\tnombres.add(new Nombre(\"daria\"));\n//\t\tnombres.add(new Nombre(\"daria\"));\n//\t\tnombres.add(new Nombre(\"pedro\"));\n//\t\tnombres.add(new Nombre(\"pedro\"));\n//\t\tnombres.add(new Nombre(\"pedro\"));\n//\t\tnombres.setCantRepetidos(3);\n//\t\tfor (Nombre nom : nombres.getNombres()) {\n//\t\t\tSystem.out.println(nom.getNombre() + \" \" + nom.getCant());\n//\t\t}\n\t\tnombres = ( Archivo.leer(\"C:\\\\Users\\\\guido\\\\eclipse-workspace\\\\DescubriendoNombresRepetidos\\\\premioA.in\"));\n\t\tArchivo.escribir(\"C:\\\\Users\\\\guido\\\\eclipse-workspace\\\\DescubriendoNombresRepetidos\\\\salida.out\",nombres);\n\t}",
"public void open(){\n\t\ttry {\n\t\t\tdocFactory = DocumentBuilderFactory.newInstance();\n\t\t\tdocBuilder = docFactory.newDocumentBuilder();\n\t\t\tdoc = docBuilder.parse(ManipXML.class.getResourceAsStream(path));\n\t\t\t\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void openFile(){\n\t\ttry{\n\t\t\t//input = new Scanner (new File(\"input.txt\")); // creates file \"input.txt\" or will rewrite existing file\n\t\t\tFile inFile = new File(\"input.txt\");\n\t\t\tinput = new Scanner(inFile);\n\t\t\t//for (int i = 0; i < 25; i ++){\n\t\t\t\t//s = input.nextLine();\n\t\t\t\t//System.out.println(s);\n\t\t\t//}\n\t\t}catch (SecurityException securityException){ // catch errors\n\t\t\tSystem.err.println (\"You do not have the write access to this file.\");\n\t\t\tSystem.exit(1);\n\t\t}catch (FileNotFoundException fnf){// catch errors\n\t\t\tSystem.err.println (\"Trouble opening file\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t}",
"public static void main(String[] a) throws IOException {\n Scanner in = new Scanner(System.in);\r\n System.out.println(\"Введите название файла.\");\r\n //fn = br.readLine();\r\n System.out.println(\"Читайте ReadMe.txt\\n\\n\" +\r\n \"Выберите вариант:\\n\" +\r\n \"1 - Показать все записи со всеми атрибутами.\\n\" +\r\n \"2 - Показать только дату и текст.\\n\" +\r\n \"3 - Поиск по id.\\n\" +\r\n \"4 - Добавить запись\\n\" +\r\n \"5 - Удалить запись по id\");\r\n\r\n try {\r\n // Создается построитель документа\r\n DocumentBuilder documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\r\n Document document = documentBuilder.parse(\"Other.xml\");\r\n //Document document = documentBuilder.parse(fn);\r\n Node root = document.getDocumentElement();\r\n NodeList books = root.getChildNodes();\r\n\r\n //int k = 1;\r\n\r\n int k = in.nextInt();\r\n String fn = \"1\";\r\n switch(k) {\r\n case 1:\r\n\r\n int idd=0;\r\n System.out.println(\"\\nСписок записей:\\n\");\r\n for (int i = 0; i < books.getLength(); i++) {\r\n Node book = books.item(i);\r\n if (book.getNodeType() != Node.TEXT_NODE) {\r\n// idd++;\r\n// System.out.println(\"id: \" + idd);\r\n NodeList bookProps = book.getChildNodes();\r\n //System.out.println(bookProps.getLength());\r\n for(int j = 0; j < bookProps.getLength(); j++) {\r\n Node bookProp = bookProps.item(j);\r\n if (bookProp.getNodeType() != Node.TEXT_NODE /*&& bookProp.getNodeName() != \"id\"*/) {\r\n System.out.println(bookProp.getNodeName() + \":\" + bookProp.getChildNodes().item(0).getTextContent());\r\n }\r\n }\r\n System.out.println(\"===============\");\r\n }\r\n }\r\n\r\n\r\n break;\r\n case 2:\r\n\r\n\r\n System.out.println(\"\\nСписок записей:\\n\");\r\n for (int i = 0; i < books.getLength(); i++) {\r\n Node book = books.item(i);\r\n if (book.getNodeType() != Node.TEXT_NODE) {\r\n NodeList bookProps = book.getChildNodes();\r\n //System.out.println(bookProps.getLength());\r\n for(int j = 0; j < bookProps.getLength(); j++) {\r\n Node bookProp = bookProps.item(j);\r\n if (bookProp.getNodeType() != Node.TEXT_NODE && (bookProp.getNodeName() == \"Text\" || bookProp.getNodeName() == \"Date\")) {\r\n System.out.println(/*bookProp.getNodeName() + \":\" +*/ bookProp.getChildNodes().item(0).getTextContent());\r\n }\r\n }\r\n System.out.println(\"====================\");\r\n }\r\n }\r\n\r\n\r\n break;\r\n case 3:\r\n\r\n\r\n System.out.println(\"\\nВведите id для поиска:\");\r\n int id = in.nextInt();\r\n //int id = 2;\r\n System.out.println(\"id - \" + id);\r\n System.out.println();\r\n XPathFactory pathFactory = XPathFactory.newInstance();\r\n XPath xpath = pathFactory.newXPath();\r\n XPathExpression expr = xpath.compile(\"DayilyPlanner/Plan[id=\" + id + \"]\");\r\n NodeList nodes = (NodeList) expr.evaluate(document, XPathConstants.NODESET);\r\n //for (int i = 0; i < nodes.getLength(); i++) {\r\n Node book = books.item(id*2-1);\r\n if (book.getNodeType() != Node.TEXT_NODE) {\r\n NodeList bookProps = book.getChildNodes();\r\n //System.out.println(bookProps.getLength());\r\n for(int j = 0; j < bookProps.getLength(); j++) {\r\n Node bookProp = bookProps.item(j);\r\n if (bookProp.getNodeType() != Node.TEXT_NODE && bookProp.getNodeName() != \"id\") {\r\n System.out.println(bookProp.getNodeName() + \":\" + bookProp.getChildNodes().item(0).getTextContent());\r\n\r\n }\r\n }\r\n }\r\n //}\r\n\r\n\r\n break;\r\n case 4:\r\n addNewBook(document);\r\n break;\r\n case 5:\r\n System.out.println(\"\\nВведите id для удаления:\");\r\n //int id_d = 1;\r\n int id_d = in.nextInt();\r\n XPathFactory xpf = XPathFactory.newInstance();\r\n XPath xpaths = xpf.newXPath();\r\n XPathExpression expression = xpaths.compile(\"DayilyPlanner/Plan[id=\"+id_d+\"]\");\r\n //NodeList nodes = (NodeList) expr.evaluate(document, XPathConstants.NODESET);\r\n Node b13Node = (Node) expression.evaluate(document, XPathConstants.NODE);\r\n b13Node.getParentNode().removeChild(b13Node);\r\n\r\n writeDocument(document);\r\n /*TransformerFactory tf = TransformerFactory.newInstance();\r\n Transformer t = tf.newTransformer();\r\n t.transform(new DOMSource(document), new StreamResult(System.out));*/\r\n break;\r\n default:\r\n System.out.println(\"Ошибка. Введено неверное значение\");\r\n }\r\n } catch (ParserConfigurationException | IOException | SAXException | XPathExpressionException ex) {\r\n ex.printStackTrace(System.out);\r\n }\r\n\r\n\r\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 static void inputs(Scanner fileScanner) {\n\t\tSystem.out.printf(\"You will now need to enter in the correct pathway to the files containing: \\n\\t1.) RNA table\\n\\t2.) RNA strand\\n\\t3.) Output Protien strand (this will create a new file)\\n\");\n\t\tSystem.out.println(\"Example pathway: C:/CSC142_143/DataFiles/RNATable.txt\");\n\t\tSystem.out.print(\"Please enter file pathway for the RNA Table: \");\n\t\tsetRNATablePathway(fileScanner.next());\n\t\tSystem.out.print(\"Please enter file pathway for the RNA Strand: \");\n\t\tsetRNAStrandPathway(fileScanner.next());\n\t\tSystem.out.print(\"Please enter file pathway for the decoded protien: \");\n\t\tsetRNAOutPathway(fileScanner.next());\n\t\tfileScanner.close();\n\t\t\n\t}",
"public static void setFileReaer(String inputFileName){\r\n System.out.println(\"file name in converting : \" + inputFileName);\r\n System.out.println(\"This is file reader\");\r\n try{\r\n if(!(inputFileName.contains(\".md\") | inputFileName.contains(\".MD\"))){\r\n throw new Exception(\"Input exact file. Extention is vd\\n\");\r\n }\r\n } catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n\r\n // this.inputFileName = inputFileName;\r\n\r\n try{\r\n BufferedReader in = new BufferedReader(new FileReader(new File(inputFileName)));\r\n String s;\r\n\r\n while((s = in.readLine()) != null){\r\n System.out.println(s);\r\n }\r\n\r\n in.close();\r\n } catch (IOException e) {\r\n System.err.println(e);\r\n System.exit(1);\r\n }\r\n\r\n // System.out.println(\"This is for \" + inputFileName + \".\");\r\n printOption();\r\n }",
"public static void main(String[] args) throws IOException {\n\t\t\n\t\tFile file = new File(\"F:/Chandu/Test/Test1/Test2/Test3/Test4\");\n\t\t\n\t\t//create a directory\n\t\t\n\t\tboolean isFolderCreated =file.mkdirs();\n\t\t\n\t\tSystem.out.println(isFolderCreated);\n\t\t\n\t\t//get AbsolutePath\n\t\t\n\t\tString absolutePath =file.getAbsolutePath();\n\t\tSystem.out.println(absolutePath);\n\t\t\n\t\tString canonicalPath =file.getCanonicalPath();\n\t\tSystem.out.println(canonicalPath);\n\t\t\n\t\tboolean isDirectory =file.isDirectory();\n\t\t\n\t\tSystem.out.println(isDirectory);\n\t\t\n\t\t//how to create file\n\t\t\n\t\tFile file1 = new File(\"F:/Chandu/Test/abc.java\") ;\n\t\t\n\t\t//write data into file\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}",
"public static void main(String[] args) {\n\n\t\tFile fi = new File(\"C:/test_io\");\n\t\tif(fi.exists()) {\n\t\t\t\n\t\t\tSystem.out.println(\"exists!\");\n\t\t}else {\n\t\t\tSystem.out.println(\"new\");\n\t\t\tfi.mkdir();\n\t\t}\n\t\t\n\t\tFile fic1 = new File(fi, \"AA\");\n\t\tfic1.mkdir();\n\t\t\n\t\tFile fic2 = new File(\"C:/test_io\", \"BB\");\n\t\tfic2.mkdir();\n\t\t\n\t\tFile fitxt = new File(fic1,\"a.txt\");\n\t\t\n\t\ttry {//checked exception\n\t\t\tfitxt.createNewFile();\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}",
"private static File identifyFile() {\n try {\n File inputFile = new File(\"inputFile.txt\");\n if (inputFile.createNewFile()) {\n System.out.println(\"Debug : File Created\");\n } else {\n System.out.println(\"Debug : File Exists\");\n }\n return inputFile;\n } catch (IOException e) {\n System.out.println(\"Error reading input\");\n e.printStackTrace();\n }\n return null;\n }",
"private void load(FileInputStream input) {\n\t\t\r\n\t}",
"public DataInput( String filepath)\r\n {\r\n this.filepath = filepath;\r\n }",
"@Before\n\tpublic void init() {\n\t\ttry {\n\t\t\tinputStream = new FileInputStream(new File(getPathToXmlResource().concat(\"test.xml\")));\n\t\t\tinputStream2 = new FileInputStream(new File(getPathToXmlResource().concat(\"test.xsl\")));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void main(String[] args) throws IOException {\n File archivo = new File(\"/Users/Germayn/Documents/NetBeansProjects/busquedalineal/archivoprueba.txt\");\r\n \r\n Scanner teclado = new Scanner(System.in);\r\n \r\n System.out.println(\"palabra a buscar\");\r\n String palabra = teclado.nextLine();\r\n System.out.println(\"\");\r\n \r\n buscarpalabra(archivo,palabra);\r\n \r\n }",
"String prepareFile();",
"public void testXML() {\n // check XML Entity Catalogs\n\n // \"Tools\"\n String toolsItem = Bundle.getStringTrimmed(\"org.netbeans.core.ui.resources.Bundle\", \"Menu/Tools\"); // NOI18N\n // \"DTDs and XML Schemas\"\n String dtdsItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.catalog.Bundle\", \"LBL_CatalogAction_Name\");\n new Action(toolsItem + \"|\" + dtdsItem, null).perform();\n // \"DTDs and XML Schemas\"\n String dtdsTitle = Bundle.getString(\"org.netbeans.modules.xml.catalog.Bundle\", \"LBL_CatalogPanel_Title\");\n NbDialogOperator dtdsOper = new NbDialogOperator(dtdsTitle);\n\n String publicID = \"-//DTD XMLCatalog//EN\";\n Node catalogNode = new Node(new JTreeOperator(dtdsOper),\n \"NetBeans Catalog|\"\n + publicID);\n // view and close it\n new ViewAction().perform(catalogNode);\n new EditorOperator(publicID).close();\n dtdsOper.close();\n\n // create an XML file\n\n // create xml package\n // select Source Packages to not create xml folder in Test Packages\n new SourcePackagesNode(SAMPLE_PROJECT_NAME).select();\n // \"Java Classes\"\n String javaClassesLabel = Bundle.getString(\"org.netbeans.modules.java.project.Bundle\", \"Templates/Classes\");\n NewJavaFileWizardOperator.create(SAMPLE_PROJECT_NAME, javaClassesLabel, \"Java Package\", null, \"xml\"); // NOI18N\n Node xmlNode = new Node(new SourcePackagesNode(SAMPLE_PROJECT_NAME), \"xml\"); //NOI18N\n // \"XML\"\n String xmlCategory = Bundle.getString(\"org.netbeans.api.xml.resources.Bundle\", \"Templates/XML\");\n // \"XML Document\"\n String xmlDocument = Bundle.getString(\"org.netbeans.modules.xml.resources.Bundle\", \"Templates/XML/XMLDocument.xml\");\n NewFileWizardOperator.invoke(xmlNode, xmlCategory, xmlDocument);\n NewJavaFileNameLocationStepOperator nameStepOper = new NewJavaFileNameLocationStepOperator();\n nameStepOper.setObjectName(\"XMLDocument\"); // NOI18N\n nameStepOper.next();\n nameStepOper.finish();\n // wait node is present\n Node xmlDocumentNode = new Node(xmlNode, \"XMLDocument.xml\"); // NOI18N\n // wait xml document is open in editor\n new EditorOperator(\"XMLDocument.xml\").close(); // NOI18N\n\n // \"Check XML\"\n\n String checkXMLItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.actions.Bundle\", \"NAME_Check_XML\");\n // invoke context action to check xml\n new Action(null, checkXMLItem).perform(xmlDocumentNode);\n // \"XML check\"\n String xmlCheckTitle = Bundle.getString(\"org.netbeans.modules.xml.actions.Bundle\", \"TITLE_XML_check_window\");\n // find and close an output with the result of xml check\n new OutputTabOperator(xmlCheckTitle).close();\n\n // \"Validate XML\"\n\n String validateItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.actions.Bundle\", \"NAME_Validate_XML\");\n // invoke context action to validate xml\n new Action(null, validateItem).perform(xmlDocumentNode);\n // find and close an output with the result of xml validation\n new OutputTabOperator(xmlCheckTitle).close();\n\n // \"Generate DTD...\"\n\n String generateDTDItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.generator.Bundle\", \"PROP_GenerateDTD\");\n new ActionNoBlock(null, generateDTDItem).perform(xmlDocumentNode);\n // \"Select File Name\"\n String selectTitle = Bundle.getString(\"org.netbeans.modules.xml.tools.generator.Bundle\", \"PROP_fileNameTitle\");\n NbDialogOperator selectDialog = new NbDialogOperator(selectTitle);\n // name has to be set because of issue http://www.netbeans.org/issues/show_bug.cgi?id=46049\n new JTextFieldOperator(selectDialog).setText(\"DTD\");\n String oKLabel = Bundle.getString(\"org.netbeans.core.windows.services.Bundle\", \"OK_OPTION_CAPTION\");\n new JButtonOperator(selectDialog, oKLabel).push();\n // wait DTD is open in editor\n new EditorOperator(\"DTD.dtd\").close(); // NOI18N\n Node dtdNode = new Node(xmlNode, \"DTD.dtd\"); // NOI18N\n\n // \"Check DTD\"\n\n String checkDTDItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.actions.Bundle\", \"NAME_Validate_DTD\");\n new Action(null, checkDTDItem).perform(dtdNode);\n // find and close an output with the result of dtd check\n new OutputTabOperator(xmlCheckTitle).close();\n\n // \"Generate DOM Tree Scanner\"\n String generateScannerItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.generator.Bundle\", \"PROP_GenerateDOMScanner\");\n new ActionNoBlock(null, generateScannerItem).perform(dtdNode);\n selectDialog = new NbDialogOperator(selectTitle);\n new JButtonOperator(selectDialog, oKLabel).push();\n // wait Scanner is open in editor\n new EditorOperator(\"DTDScanner.java\").close(); // NOI18N\n new Node(xmlNode, \"DTDScanner.java\"); // NOI18N\n }",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Add the location of the source file\");\n String location1 = scanner.next();\n System.out.println(\"Add the location of the destination file\");\n String location2 = scanner.next();\n System.out.println(copyFile(location1, location2));\n }",
"public static void main(String[] args)throws IOException {\r\n\t\t\r\n\t\t String inputFolder = \"C:/Users/Nekromantik/Desktop/321\";\r\n\t\t String inputfile = \"C:/Users/Nekromantik/Desktop/222/disagreements.txt\";\r\n\t\t \r\n\t\t String outputfile = \"C:/Users/Nekromantik/Desktop/222/result.txt\";\r\n\t\t \r\n\t\t Eva_help2 test = new Eva_help2();\r\n\t\t test.generate(inputfile, inputFolder, outputfile);\r\n\t\t\r\n\t}",
"public static void main(String args[])\n {\n LoadFileSupport sample = new LoadFileSupport();\n sample.createNewInstance(\"C:/pavan/j2eeWork/ws-studio-ie-workspace/xml-test/HTMLtoXSLProject/IncomingTimber/LoadSampleSample.xml\");\n sample.loadExistingInstance(\"C:/pavan/j2eeWork/ws-studio-ie-workspace/xml-test/HTMLtoXSLProject/IncomingTimber/LoadSampleSample.xml\");\n }",
"public static void main(String argv[]) throws FileNotFoundException {\n ClassLoader classLoader = MainJava.class.getClassLoader();\n\n InputStream is = new FileInputStream(classLoader.getResource(\"file/input.txt\").getFile());\n\n EngineImplementation myEngineImplementation = new EngineImplementation();\n\n //Create object of SparkDistributor\n SparkDistributor mySparkDistributor = new SparkDistributor();\n\n myDataConsumer DataConsumer = new myDataConsumer();\n\n mySparkDistributor.setDataConsumer(DataConsumer);\n\n myEngineImplementation.setModelByInputFileStream(is);\n\n myEngineImplementation.process(mySparkDistributor);\n\n }",
"@Before\r\n\tpublic void faireAvant(){\r\n\t\tfile3Donnees = new File(\"fichierTest3Donnees.csv\");\r\n\t\tfile11Donnees = new File(\"fichierTest11Donnees.csv\");\r\n\t}",
"public static void main(String[] args) {\n String path = System.getProperty(\"user.dir\")+\"\\\\src\\\\test\\\\java\\\\FileHandling\\\\Data.xlsx\";\n //Xls_Reader xls = new Xls_Reader(path);\n\n // counting rows\n\n //counting cols\n\n //reading\n\n //writing\n\n }",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tString str=sc.next();\r\n\t\tFile f=new File(str);\r\n\t\tSystem.out.println(f.exists());\r\n\t\tSystem.out.println(f.canRead());\r\n\t\tSystem.out.println(f.canWrite());\r\n System.out.println(f.length());\r\n System.out.println(f.getClass());\r\n\t}",
"public static void main(String[] args) {\n\t\txmlToMapForIterator(\"E:\\\\xx\\\\xx\\\\book.xml\");\n\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\n\t\t final JFileChooser sorceXmFileChooser;\t\t\n\t\t \n\t if (e.getSource() instanceof JButton) \n\t {\t \t \n\t // The user want choose a source XML file\n\t if (e.getActionCommand().equals(\"Find\")) \n\t {\n\t \t sorceXmFileChooser = new JFileChooser();\n\t \t sorceXmFileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\n\t \t sorceXmFileChooser.setDialogTitle(\"Choose xml file source\");\n\t \t sorceXmFileChooser.setFileFilter(new CustomFileFilter());\n\t \n\t int value = sorceXmFileChooser.showOpenDialog(this);\n\t \n\t // Return value if approved (ie yes, ok) is chosen.\n\t if (value==JFileChooser.APPROVE_OPTION)\n\t {\n\t \t File f = sorceXmFileChooser.getSelectedFile();\n\t \t \n\t \t pathSourceXMLfile = f.getAbsolutePath(); \t \n\t \t sourceXMLfileTextField.setText(pathSourceXMLfile); \n\t \t \n\t \t try {\n\t\t\t\t\t\tthis.loadOrRefreshXml(f,true);\n\t\t\t\t\t } catch (Exception e1) {\t\n\t\t\t\t\t\t messageLabel.setText(e1.getMessage());\t\t\t\t\t\t\n\t\t\t\t\t } \n\t }\t \n\t }\n\t \n\t // Edit the chosen input XML file\n\t if(e.getActionCommand().equals(\"Edit XML\"))\n\t {\n\t \t InputFileEditorGui editor = new InputFileEditorGui(this.sourceXMLfileTextField.getText());\n\t }\n\t \n\t // Refresh the XML showed in the text area after his editing with internal (or external) editor -----\n\t if(e.getActionCommand().equals(\"Refresh XML\"))\n\t {\t \t \n\t \t File f = new File(this.sourceXMLfileTextField.getText()); \n\t \t try {\n\t\t\t\t\tthis.loadOrRefreshXml(f,false);\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\tmessageLabel.setText(e1.getMessage());\n\t\t\t\t}\t \n\t } \n\t \n\t // Close the application\n\t if (e.getActionCommand().equals(\"Close\"))\n\t {\t \t \n\t \t\tif (mainFrame.isDisplayable()) { \n\t \t\t mainFrame.dispose();\n\t }\n \t }\n\t \n\t // Expand all the tree nodes\n\t if (e.getActionCommand().equals(\"Expand All\"))\n\t {\t \t \n\t \tint row = xmlJTree.getRowCount() - 1;\n\t \twhile (row >= 0) {\n\t \t xmlJTree.expandRow(row);\t \t \n\t \t row--;\n\t \t}\t\n \t } \n\n\t // Compact all the tree nodes\n\t\t\t if (e.getActionCommand().equals(\"Compact All\"))\n\t\t\t {\t\t\t\t\n\t\t\t\tint row = xmlJTree.getRowCount() - 1;\t \t\n\t \twhile (row >= 2) {\n\t \t xmlJTree.collapseRow(row);\t \t \n\t \t row--;\n\t \t}\t\t\t\t\n\t\t\t }\t \n\t } \t\n\t}",
"public static void main(String[] args) {\n try {\n String url = \"file:///C:/enwiktionary-latest-pages-articles.xml.bz2.xml.bz2.xml\";\n// String url = \"file:///D:/enWikt_Samp.xml\n File file = new File(new URI(url));\n System.out.println(file.toURI());\n\n\n// fileLoader(file);\n staxReader(file);\n// vtdReader(file); vtd is where kittens go to die.\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) throws Exception {\n \n\n\t File pasta = new File(\"C:\\\\Users\\\\Álvaro\\\\workspace\\\\ProjetoTCC\\\\src\\\\data\\\\dir\\\\training\\\\phishing\");\n\t \n\t File[] arquivos = pasta.listFiles();\n\t \n\t \n\t for (File file : arquivos) {\n\t\t System.out.println(file.getName()+ \"\tphishing\");\n\t }\n\t \n\t File pasta1 = new File(\"C:\\\\Users\\\\Álvaro\\\\workspace\\\\ProjetoTCC\\\\src\\\\data\\\\dir\\\\training\\\\not_phishing\");\n\t \n\t File[] arquivos1 = pasta1.listFiles();\n\t \n\t \n\t for (File file : arquivos1) {\n\t\t if(!file.isDirectory()){\n\t\t\t System.out.println(file.getName()+ \"\tnot_phishing\"); \n\t\t }\t\t \n\t }\n\t \n//\t FileReader m = new FileReader(\"C:\\\\Users\\\\Álvaro\\\\workspace\\\\ProjetoTCC\\\\src\\\\data\\\\dir\\\\training\\\\EMAIL000240\");\n//\n//\t\tStringBuffer text = new StringBuffer();\n//\t\tint l;\n//\t\twhile ((l = m.read()) != -1) {\n//\t\t\ttext.append((char) l);\n//\t\t}\n//\t\tm.close();\n//\t\t\n//\t\tString texto = text.toString();\n//\t\t\n//\t\tSystem.out.println(texto);\n//\t\tSystem.out.println(\"#########################################################################################################\");\n//\t\tSystem.out.println(\"############################################### NOVO TEXTO ##############################################\");\n//\t\tSystem.out.println(\"#########################################################################################################\");\n//\t\tString texto1 = texto.replaceAll(\"<.*?>\", \"\");\n//\t\ttexto1 = texto1.replaceAll(\"<.*?>\", \"\");\n//\t\ttexto1 = texto1.replaceAll(\"[0-9]\", \"\");\n//\t\tSystem.out.println(texto1);\n\t \n\t\t\n\t\t \n\t \n\t \n }",
"void createFile()\n {\n //Check if file already exists\n try {\n File myObj = new File(\"src/main/java/ex45/exercise45_output.txt\");\n if (myObj.createNewFile()) {\n System.out.println(\"File created: \" + myObj.getName());// created\n } else {\n System.out.println(\"File already exists.\"); //exists\n }\n //Error check\n } catch (IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n }",
"@Test(expected = XmlException.class)\n\tpublic void testReadFileXxml() throws XmlException {\n\t\tString[][] cities = rcx.readFileXml(\"ConfigurazionePartita.xml\");\n\t\tassertEquals(cities.length, 15);\n\n\t\tfor (int i = 0; i < cities.length; i++) {// controllo che l'array sia\n\t\t\t\t\t\t\t\t\t\t\t\t\t// pieno\n\t\t\tassertNotEquals(cities[i][0], \"\");\n\t\t\tassertNotEquals(cities[i][1], \"\");\n\t\t\tassertNotEquals(cities[i][2], \"\");\n\t\t\tassertNotEquals(cities[i][3], \"\");\n\t\t\tassertNotEquals(cities[i][5], \"\");\n\t\t}\n\t\tassertNotEquals(rcx.readFileXml(\"ConfigurazionePartitas.xml\").length, 15);// file\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// inesistente\n\t}",
"@Test\n\tpublic void test(){\n\t\tFile srcFile = new File(\"E:\\\\Workspaces\\\\MyPro\\\\ssh\\\\WebRoot\\\\products\\\\2\\\\男鞋\");\n//\t\tSystem.out.println(ss);\n\t\tthis.getAllJavaFilePaths(srcFile);\n\t}",
"private void getFiles() {\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(inputFileName);\n\t\t\tinputBuffer = new BufferedReader(fr);\n\n\t\t\tFileWriter fw = new FileWriter(outputFileName);\n\t\t\toutputBuffer = new BufferedWriter(fw);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File not found: \" + e.getMessage());\n\t\t\tSystem.exit(-2);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IOException \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-3);\n\t\t}\n\t}",
"public static void main(String[] args) {\n File myFile = new File (\"d:/names.txt\");\r\n // para saber si el archivo no existe, devuelve true o false\r\n System.out.println(\"file.exists(): \" + myFile.exists());\r\n System.out.println(\"file.isDirectory(): \" + myFile.isDirectory());\r\n // para saber la fecha de modificación\r\n System.out.println(\"file.lastModified(): \" + myFile.lastModified());\r\n // para saber el nombre del archivo\r\n System.out.println(\"file.getName(): \" + myFile.getName());\r\n // para saber la ruta\r\n System.out.println(\"file.getPath(): \" + myFile.getPath());\r\n // para saber el tamaño en bytes que ocupa en disco\r\n System.out.println(\"file.length(): \" + myFile.length()+\" bytes\");\r\n // para saber si es de lectura, devuelve true o false\r\n System.out.println(\"file.canRead():\" + myFile.canRead());\r\n\r\n //File newfolder = new File(\"D:/carpeta con archivos año mío\");\r\n //System.out.println(newfolder.mkdir());\r\n\r\n // si fuera un directorio, para saber los archivos que contiene\r\n File carpeta = new File(\"D:/carpeta_con_archivos\");\r\n System.out.println(\"----listado archivos D:/carpeta_archivos------\");\r\n for (String archivo : carpeta.list()) {\r\n System.out.println(archivo);\r\n }\r\n\r\n //agregar una linea nueva a un archivo existente (METODO 1)\r\n /*try {\r\n //abra el archivo , TRUE en un forma append (agregar nuevos valores)\r\n FileWriter myFile2 = new FileWriter(\"d:/names.txt\", true);\r\n //cargar en memora ram del SO el contenido del archivo\r\n BufferedWriter dataFile = new BufferedWriter(myFile2);\r\n //agregar una nueva linea\r\n dataFile.write(\"\\nnueva linea tres\");\r\n dataFile.close();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }*/\r\n //agregar una linea nueva a un archivo existente (METODO 1 optimizado)\r\n /*try{\r\n BufferedWriter dataFile = new BufferedWriter(new FileWriter(\"d:/names.txt\",true));\r\n //agregamos la nueva linea\r\n dataFile.write(\"nueva linea sin borrar\");\r\n dataFile.close();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }*/\r\n // agregar nueva linea con metodo super optimizado en lineas (METODO FLAHS)\r\n try{\r\n PrintWriter myFile3 = new PrintWriter(new BufferedWriter(new FileWriter(\"d:/names.txt\", true)));\r\n myFile3.println(\"Otra nueva línea mezclando las dos librerías (PrintWriter + FileWriter) \");\r\n myFile3.close();\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n\r\n }",
"public static void main(String[] args) {\n\n\t\tFile parent = new File(\"/home/subham/Desktop/JAVAcodes/FILEHANDLING/FILES\");\n\t\tFile obj = new File(parent, \"test1.txt\");\n\n\t\tSystem.out.println(\".seperator: \" + obj.separator);\n\t\tSystem.out.println(\"getName(): \" + obj.getName());\n\t\tSystem.out.println(\"getParent(): \" + obj.getParent());\n\t\tSystem.out.println(\"getPath(): \" + obj.getPath());\n\t\tSystem.out.println(\"isAbsolute(): \" + obj.isAbsolute());\n\t\tSystem.out.println(\"getAbsolutePath(): \" + obj.getAbsolutePath());\n\t\tSystem.out.println(\"canRead(): \" + obj.canRead());\n\t\tSystem.out.println(\"canWrite(): \" + obj.canWrite());\n\t\tSystem.out.println(\"exists(): \" + obj.exists());\n\t\tSystem.out.println(\"isDirectory(): \" + obj.isDirectory());\n\t\tSystem.out.println(\"isFile(): \" + obj.isFile());\n\t\tSystem.out.println(\"length(): \" + obj.length());\n\n\t\tString[] s = parent.list();\n\t\tFile[] f = parent.listFiles();\n\t\tSystem.out.println(\"\\n\\n\");\n\t\tfor (String a : s) {\n\t\t\tSystem.out.println(a);\n\t\t}\n\t\tSystem.out.println(\"\\n\\n\");\n\t\tfor (File a : f) {\n\t\t\tSystem.out.println(a.getName());\n\t\t}\n\t}",
"public void testTestInputOutput() {\n String fileName = \"file_with_invalid_uri_in_setting_xml.docx\";\n String file1 = inputDirectory + fileName;\n String expectedResult = expectedDirectory + fileName;\n ZipFile zipFileSource1;\n try {\n zipFileSource1 = new ZipFile(file1);\n File destFile = new File(outputDirectory + fileName);\n if (logger.isDebugEnabled()) {\n logger.debug(\"reading and saving\" + file1);\n }\n Package packSource1 = Package.open(zipFileSource1, PackageAccess.ReadWrite);\n WordDocument docxSource1 = new WordDocument(packSource1);\n assertTrue(docxSource1.save(destFile));\n OpenXmlAssert.assertEquals(new File(outputDirectory + fileName), new File(expectedResult));\n } catch (IOException e) {\n logger.error(e);\n fail(\"cannot open:\" + file1);\n } catch (OpenXML4JException e) {\n logger.error(e);\n fail(\"cannot open:\" + file1);\n }\n }",
"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 }",
"@Test\n public void run_main(){\n\n String resource_folder = (new File(\"src/test/resources/\")).getAbsolutePath()+ File.separator ;\n\n String[] args = new String[7];\n args[0] = \"-run\";\n args[1] = resource_folder + \"test_configs/line_ctm.xml\";\n args[2] = \"mytest\";\n args[3] = resource_folder+\"sample_output_request.xml\";\n args[4] = \"temp\";\n args[5] = \"0\";\n args[6] = \"100\";\n\n OTM.main(args);\n\n }",
"private void handleXMLBrowse(Shell parent) {\n\t\tFileDialog fileDialog = new FileDialog(parent);\n\t\tfileDialog.setFilterExtensions(new String[] { WSASCreationUIMessages.FILE_XML });\n\t\tString fileName = fileDialog.open();\n\t\tif (fileName != null) {\n\t\t\tservicesXMLPath.setText(fileName);\n\t\t\tmodel.setPathToServicesXML( servicesXMLPath.getText() );\n\t\t}\n\t}",
"public static void main (String[] args){\n\t\t Model model1 = ModelFactory.createDefaultModel();\n\t\t Model model2 = ModelFactory.createDefaultModel();\n\t\t // use the FileManager to find the input file\n\t\t InputStream in1 = FileManager.get().open( \"D:\\\\eclipse\\\\carta-de-exigencia-cetesb.rdf\" );\n\t\t InputStream in2 = FileManager.get().open( \"D:\\\\eclipse\\\\liminar-contra-a-usp.rdf\" );\n\t\tif (in1 == null || in2 ==null) {\n\t\t throw new IllegalArgumentException(\n\t\t \"File: \" + \"D:\\\\eclipse\\\\carta-de-exigencia-cetesb.rdf\" + \" not found\");\n\t\t}\n\n\t\t// read the RDF/XML file\n\t\tmodel1.read(in1, null);\n\t\tmodel2.read(new InputStreamReader (in2), \"\");\n\t\tModel model = model1.union(model2);\n\n\t\tmodel.write(System.out);\n\t\t// write it to standard out\n\t\t//model1.write(System.out);\n\t\t//model1.read(new InputStreamReader(in1 ), \"\"); \n\t}",
"public static void createFile(String path) {\n try {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Enter the file name :\");\n String filepath = path+\"/\"+scanner.next();\n File newFile = new File(filepath);\n newFile.createNewFile();\n System.out.println(\"File is Created Successfully\");\n\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }",
"private static void initializeInput(String filename) {\n\t\t// Reading from specified file.\n\t\ttry\n\t\t{\n\t\t\tfileInput = new Scanner(new FileInputStream(filename));\n\t\t}\n\t\tcatch(FileNotFoundException e) \n\t\t{ \n\t\t\tSystem.err.println(\"\\nFile not found. Please re-enter.\");\n\t\t\tinitializeInput(getFilename());\n\t\t}\n\t}",
"public static void main(String[] args) throws IOException, \n FileNotFoundException, ValidacionPS2, \n IllegalArgumentException, \n IllegalAccessException, URISyntaxException { \n ArchivoIO archivoIO = new ArchivoIO(); \n InputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n System.out.println(\"Introduce el path del archivo de excel.\");\n System.out.println(\"ejemplo: C:\\\\Users\\\\Laptop\\\\Downloads\\\\\"\n + \"archivo.xls: \");\n System.out.println(\"path: \");\n String path = br.readLine();\n ArrayList<LDL> datos = archivoIO.convertirExcelALDL(path);\n File f=archivoIO.escribirResultados(datos,path);\n System.out.println(\"Revise los resultados en la ruta:\\n\" \n + f.getAbsolutePath());\n isr.close();\n br.close(); \n }",
"public static void init(){\n Path path = FileDirectoryUtil.getPath(\"src\", \"fileIO\", \"test.txt\");\n FileDirectoryUtil.tryCreateDirectory(path);\n\n // Try to create the file\n path = Paths.get(path.toAbsolutePath().toString(), \"test.txt\");\n FileDirectoryUtil.tryCreateFile(path);\n\n // Print out the final location of the file\n System.out.println(path.toAbsolutePath());\n\n // Try to write to the file\n IOUtil.tryWriteToFile(getContent(), path);\n\n // Try to print the content of the file\n IOUtil.tryPrintContents(path);\n\n }",
"public static void main(String[] args) throws IOException {\n FileInputStream fis = new FileInputStream(\"out/cities.txt\");\r\n \r\n // Create DataInputStream object wrap 'fis'.\r\n DataInputStream dis = new DataInputStream(fis);\r\n \r\n //\r\n // Read data.\r\n //\r\n int cityId1 = dis.readInt();\r\n System.out.println(\"Id: \" + cityId1);\r\n String cityName1 = dis.readUTF();\r\n System.out.println(\"Name: \" + cityName1);\r\n int cityPopulation1 = dis.readInt();\r\n System.out.println(\"Population: \" + cityPopulation1);\r\n float cityTemperature1 = dis.readFloat();\r\n System.out.println(\"Temperature: \" + cityTemperature1);\r\n \r\n //\r\n // Read data.\r\n //\r\n int cityId2 = dis.readInt();\r\n System.out.println(\"Id: \" + cityId2);\r\n String cityName2 = dis.readUTF();\r\n System.out.println(\"Name: \" + cityName2);\r\n int cityPopulation2 = dis.readInt();\r\n System.out.println(\"Population: \" + cityPopulation2);\r\n float cityTemperature2 = dis.readFloat();\r\n System.out.println(\"Temperature: \" + cityTemperature2);\r\n \r\n dis.close();\r\n }",
"@Test\n\tpublic void testEntityInputDir() throws IOException, IOCombinationNotPossibleException {\n\t\tPair<Path, Path> outDirAndFile = copyToTemp(\"/scripts/input.txt\");\n\t\tPath inputDir = outDirAndFile.getName();\n\n\t\tnew BPT()\n\t\t\t\t.setInput(inputDir.toAbsolutePath().toString())\n\t\t\t\t.setOutput(inputDir.toAbsolutePath().toString())\n\t\t\t\t.setInFormat(Format.text)\n\t\t\t\t.eEntity(\"en\", \"dbpedia\", null);\n\n\t\t// check if output file exists and print to std out\n\t\tPath outFile = outDirAndFile.getValue().resolveSibling(\"input.ttl\");\n\t\tassertTrue(Files.exists(outFile));\n\t\tFiles.copy(outFile, System.out);\n\t}",
"public void arquivo(String nomarq)\r\n {\n }",
"public static void main (String[] args) {\n \n //initilialize Scanner, pass file input in same directory, pass to boyGirl function\n Scanner input = new Scanner(new File('tas.txt'));\n boyGirl(input);\n }",
"public static void main(String[] args) throws IOException {\n TxtToDocX z = new TxtToDocX();\r\n Sala x = new Sala();\r\n z.catchNameFiles();\r\n\r\n for (int i = 0; i < nomeArquivos.length; i++) {\r\n z.LoadTxt(nomeArquivos[i]);\r\n }\r\n z.replaces();\r\n \r\n \r\n for (int i = 0; i < nomeArquivos.length; i++) {\r\n System.out.println(nomeArquivos[i]);\r\n }\r\n // z.replaces();\r\n for (int j = 0; j < salas2.size(); j++) {\r\n System.out.println(\"Turma: \" + salas2.get(j).getNome());\r\n for (int i = 0; i < salas2.get(j).getDadosalas().size(); i++) {\r\n if (salas2.get(j).getDadosalas().get(i).getSerie().equals(salas2.get(j).getNome())) {\r\n\r\n System.out.println(\"Matricula:\" + salas2.get(j).getDadosalas().get(i).getMatricula()\r\n + \" Nome:\" + salas2.get(j).getDadosalas().get(i).getNome()\r\n + \" Senha:\" + salas2.get(j).getDadosalas().get(i).getSenha() + \"\\n\");\r\n }\r\n }\r\n }\r\n \r\n z.WriteDocx();\r\n }",
"public static void findFile() throws IOException {\n File newFile = new File(\"test.txt\");\n FileInputStream stream = new FileInputStream(newFile);\n }",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n \r\n System.out.println(\"Enter dirpath:\");\r\n String dirpath=br.readLine();\r\n System.out.println(\"Enter the dirname\");\r\n String dname=br.readLine();\r\n \r\n //create File object with dirpath and dname\r\n File f = new File(dirpath, dname);\r\n \r\n // File folder = new File(\"your/path\");\r\n File[] listOfFiles = f.listFiles();\r\n\r\n for (int i = 0; i < listOfFiles.length; i++) {\r\n if (listOfFiles[i].isFile()) {\r\n System.out.println(\"File \" + listOfFiles[i].getName());\r\n } else if (listOfFiles[i].isDirectory()) {\r\n System.out.println(\"Directory \" + listOfFiles[i].getName());\r\n }\r\n }\r\n }",
"public static void createFiles()\n\t{\n\t\t//Variable Declaration\n\t\tScanner obj = new Scanner (System.in);\n\t\tString fileName; \n\t\tint linesCount;\n\t\tList<String> content = new ArrayList<String>();\n\t\t\n\t\t//Read file name from user\n\t\tSystem.out.println(\"Enter the FIle Name:\");\n\t\tfileName= obj.nextLine();\n\t\t\n\t\t//Read number of lines from user\n\t\tSystem.out.println(\"Enter how many line in the file:\");\n\t\tlinesCount= Integer.parseInt(obj.nextLine());\n\t\t\n\t\t//Read Lines from user\n\t\tfor(int i=1; i<=linesCount;i++)\n\t\t{\n\t\t\tSystem.out.println(\"Enter line \"+i+\":\");\n\t\t\tcontent.add(obj.nextLine());\n\t\t}\n\t\t\n\t\t//Save the content into the file\n\t\tboolean isSaved = FileManager.createFiles(folderpath, fileName, content);\n\t\t\n\t\tif(isSaved)\n\t\t\tSystem.out.println(\"File and data is saved sucessfully\");\n\t\telse\n\t\t\tSystem.out.println(\"Some error occured. Please contact [email protected]\");\n\t}",
"public static void main(String argv[]) throws IOException {\n\ttry {\n\t\tArrayList<String> list1 = new ArrayList<String>(listFiles(XML_FILE_DIRECTORY));\n\t\thowManyFiles(list1);\n\t\tgenerateFilter(FILTER);\n\t\tinsertRecordIntoDbUserTable(list1);\n\t\tconfirmationDone();\n\t} catch (SQLException e) {\n\t\te.printStackTrace();\n\t}\n }",
"public static void main(String[] args) \n\t{\n\t\tFile archivo=new File(\"archivo.txt\");\n\t\t\n\t\t//el metodo getAbsolutePath() te indica la ruta absoluta si le damos play al programa imprime la \n\t\t//ruta donde se encuentra este programa porque el archivo no existe ya que la ruta que pusimos \n\t\t//no corresponde a ninguna\n\t\tSystem.out.println(archivo.getAbsolutePath());\n\t\t\n\t\t//comprobamos con el metodo exist() si la ruta existe o no\n\t\t\n\t\tSystem.out.println(archivo.exists());//lanza el false ya que no existe el archivo si existe un true\n\t\t\n\t\t\n\t\t\n\t}",
"private static Scanner determineInputSource(String[] args) throws FileNotFoundException{\n if (args.length > 0) {\n //Reading from file\n return new Scanner(new File(args[0]));\n }\n else {\n //Reading from standard Input\n return new Scanner(System.in);\n }\n }",
"private void jButtonCreateInsexActionPerformed(java.awt.event.ActionEvent evt) {\n try {\n lstPerson = new ArrayList();\n Properties prop = new Properties();//почти тоже самое что ini файлы\n content = Files.readAllLines(Paths.get(PATH_FILE_SOURCE), Charset.forName(\"cp1251\"));\n String s = content.get(0);\n for (int i = 0, j = 1; i < s.length(); i += 128, j++) {\n Person p = new Person(\n s.substring(i, i + 30).trim(),\n s.substring(i + 30, i + 50).trim(),\n s.substring(i + 50, i + 70).trim(),\n s.substring(i + 70, i + 78).trim(),\n s.substring(i + 78).trim(), j);\n lstPerson.add(p);\n }\n\n for (Person person : lstPerson) {\n prop.put(person.getSurname().toUpperCase(), Integer.toString(person.getID()));\n }\n prop.storeToXML(new FileOutputStream(FILE_PATH_INDEX_SURNAME), \"LIB\");//можно и без xml\n jLabelStatusBar.setForeground(Color.magenta);\n jLabelStatusBar.setText(\"Индексный файл создан!\");\n jLabelStatusBar.setForeground(Color.BLACK);\n\n } catch (IOException ex) {\n jLabelStatusBar.setForeground(Color.red);\n jLabelStatusBar.setText(\"Индексный файл не создан!\");\n Logger.getLogger(NewJFrame1.class.getName()).log(Level.SEVERE, null, ex);\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 static void main(String[] args) {\n\t\tPath path = Paths.get(\"F:\\\\AccentureMayBatch\\\\JSTLProject\");\r\n\r\n\t\r\n\r\n\t\tSystem.out.format(\"toString: %s%n\", path.toString());\r\n\t\tSystem.out.format(\"getFileName: %s%n\", path.getFileName());\r\n\t\tSystem.out.format(\"getName(0): %s%n\", path.getName(0));\r\n\t\tSystem.out.format(\"getNameCount: %d%n\", path.getNameCount());\r\n\t\tSystem.out.format(\"subpath(0,2): %s%n\", path.subpath(0,2));\r\n\t\tSystem.out.format(\"getParent: %s%n\", path.getParent());\r\n\t\tSystem.out.format(\"getRoot: %s%n\", path.getRoot());\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFiles.list(new File(\".\").toPath())\r\n\t\t\t .forEach(System.out::println);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tFiles.walk(new File(\".\").toPath())\r\n\t\t .filter(p -> !p.getFileName()\r\n\t\t .toString().startsWith(\".\"))\r\n\t\t .forEach(System.out::println);\r\n\t\t\t\r\n\t\t\tFiles.lines(new File(\"./src/com/polaris/utility/PathDemo.java\").toPath())\r\n\t\t .map(s -> s.trim())\r\n\t\t .filter(s -> !s.isEmpty())\r\n\t\t .forEach(System.out::println);\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\t//finding path and sub path into string\r\n\t\t Path start = Paths.get(\".\");\r\n\t\t int maxDepth = 5;\r\n\t\t try (Stream<Path> stream = Files.find(start, maxDepth, (path2, attr) -> String.valueOf(path2).endsWith(\".java\"))) \r\n\t\t {\r\n\t\t String joined = stream\r\n\t\t .sorted()\r\n\t\t .map(String::valueOf)\r\n\t\t .collect(Collectors.joining(\"; \"));\r\n\t\t System.out.println(\"Found: \" + joined);\r\n\t\t } catch (IOException e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t\t \r\n\t\t\r\n\t\tPath source = Paths.get(\"./src/com/polaris/utility/PathDemo.java\");\r\n\t\tPath target = Paths.get(\"F:/yatrabakup\");\r\n\t\t\r\n/*\r\n\t\ttry {\r\n\t\t // Files.copy(source, target);\r\n\t\t} catch(FileAlreadyExistsException fae) {\r\n\t\t fae.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t // something else went wrong\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t\t*/\r\n\t\ttry (BufferedReader reader = Files.newBufferedReader(Paths.get(\"f:\\\\yatrabakup\\\\EmployeeData.csv\"))) {\r\n\t\t reader.lines().map(String::toLowerCase).forEach(System.out::println);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public static void main(String[] args) // FileNotFoundException caught by this application\n {\n\n Scanner console = new Scanner(System.in);\n System.out.print(\"Input file: \");\n String inputFileName = console.next();\n System.out.print(\"Output file: \");\n String outputFileName = console.next();\n\n Scanner in = null;\n PrintWriter out =null;\n\n File inputFile = new File(inputFileName);\n try\n {\n in = new Scanner(inputFile);\n out = new PrintWriter(outputFileName);\n\n double total = 0;\n\n while (in.hasNextDouble())\n {\n double value = in.nextDouble();\n int x = in.nextInt();\n out.printf(\"%15.2f\\n\", value);\n total = total + value;\n }\n\n out.printf(\"Total: %8.2f\\n\", total);\n\n\n } catch (FileNotFoundException exception)\n {\n System.out.println(\"FileNotFoundException caught.\" + exception);\n exception.printStackTrace();\n }\n catch (InputMismatchException exception)\n {\n System.out.println(\"InputMismatchexception caught.\" + exception);\n }\n finally\n {\n\n in.close();\n out.close();\n }\n\n }",
"private void selectXmlFile() {\n\t\t JFileChooser chooser = new JFileChooser();\n\t\t // ask for a file to open\n\t\t int option = chooser.showSaveDialog(this);\n\t\t if (option == JFileChooser.APPROVE_OPTION) {\n\t\t\t // get pathname and stick it in the field\n\t\t\t xmlfileField.setText(\n chooser.getSelectedFile().getAbsolutePath());\n\t\t } \n }",
"public static void main(String[] args)\n {\n URL xmlURL = RpgConfMain.class.getResource(\"/baseList.xml\");\n\n if(xmlURL == null)\n {\n System.out.println(\"Failed to read xml file, xmlURL was null\");\n System.exit(-1);\n }\n\n //Getting the xml file\n try(InputStream xmlStream = (InputStream) xmlURL.getContent())\n {\n //Reading the xml file\n xmlReader = new StructXMLReader(xmlStream);\n } catch (IOException | XMLStreamException e)\n {\n System.exit(-1);\n e.printStackTrace();\n }\n\n MainFrame frame = new MainFrame(new ConfigCode(), xmlReader); //Used before initialization is wrong. If the xmlReader\n //variable is wrong, the program will exit\n\n frame.setVisible(true);\n }",
"public static void reading(String fileName)\n {\n\n }",
"public static void main(String []args){\n miFichero = new Fichero(\"peliculas.xml\");\n //cargamos los datos del fichero\n misPeliculas = (ListaPeliculas) miFichero.leer();\n\n //si no habia fichero\n\n if(misPeliculas == null) {\n misPeliculas = new ListaPeliculas();\n }\n int opcion;\n do{\n mostrarMenu();\n opcion = InputData.pedirEntero(\"algo\");\n switch (opcion){\n case 1:\n altaPelicula();\n break;\n case 2:\n break;\n case 3:\n break;\n case 4:\n break;\n }\n\n }while(opcion!= 0);\n }",
"Path getBaseInputDir();",
"public static void main(String[] args) {\n\t\tFile f = new File(\"src/com/briup/java_day19/ch11/FileTest.txt\");// \"src/com/briup/\"(win and linux)\r\n\t\t\r\n\t\tSystem.out.println(f);\r\n\t\tSystem.out.println(f.exists());\r\n\t\tif(!f.exists()){\r\n\t\t\ttry {\r\n\t\t\t\tf.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(f.canWrite());\r\n\t\tSystem.out.println(f.canExecute());\r\n\t\tSystem.out.println(f.canRead());\r\n\t\tSystem.out.println(f.getAbsolutePath());//override toString\r\n\t\tSystem.out.println(f.getAbsoluteFile());\r\n\t\tSystem.out.println(f.getName());\r\n\t\tSystem.out.println(f.getParent());\r\n\t\tSystem.out.println(f.getParentFile());\r\n\t\tSystem.out.println(f.isDirectory());\r\n\t\tSystem.out.println(f.isFile());\r\n\t\tSystem.out.println(f.length());//how many byte\r\n\t\t\r\n\t\tSystem.out.println(\"=================\");\r\n\t\tString[] str = f.getParentFile().list();\r\n\t\tSystem.out.println(Arrays.toString(str));\r\n\t\tfor(String s:str){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\tSystem.out.println(\"=================\");\r\n\t\tFile pf = f.getParentFile();\r\n\t\tString[] str2 = pf.list(new FilenameFilter() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic boolean accept(File dir, String name) {\r\n\t\t\t\t//文件名以txt结尾的\r\n//\t\t\t\treturn name.endsWith(\"java\");\r\n//\t\t\t\treturn name.contains(\"Byte\");\r\n\t\t\t\treturn name.startsWith(\"Byte\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfor(String s:str2){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n byte[] content = null;\n try {\n content = Files.readAllBytes(new File(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\diemkhang\\\\test reader\\\\introduce.txt\").toPath());\n } catch (IOException e) {\n e.printStackTrace();\n }\n System.out.println(new String(content));\n }",
"public void run(String[] args){\n if (args.length > 0)\n {\n try{\n InputStreamReader is = new InputStreamReader(getClass().getResourceAsStream(\"/\" + args[0]));\n BufferedReader txtReader = new BufferedReader(is);\n Scanner inputScanner = new Scanner(txtReader);\n System.out.println(String.format(\"Processing file %s\", args[0]));\n ToyRobot toyRobot = new ToyRobot();\n ToyRobotController controller = new ToyRobotController(toyRobot);\n while (inputScanner.hasNext()){\n String line = inputScanner.nextLine().toUpperCase();\n if (line.contains(Constants.COMMAND_PLACE) && Utilities.isOnTable(Utilities.getCoordinateFromInput(line))){\n controller.place(Utilities.getCoordinateFromInput(line), Utilities.getDirectionFromInput(line));\n System.out.println(String.format(\"Robot placement at %s,%s\", controller.getRobot().getCoordinates().getxCoordinate(), controller.getRobot().getCoordinates().getyCoordinate() ));;\n } else if (line.contains(Constants.COMMAND_MOVE)){\n controller.move();\n System.out.println(String.format(\"Robot moving at direction %s\", controller.getRobot().getDirection()));\n } else if ((line.contains(Constants.COMMAND_TURN_LEFT) || line.contains(Constants.COMMAND_TURN_RIGHT))){\n controller.turn(line);\n System.out.println(String.format(\"Robot changed direction to %s\", controller.getRobot().getDirection()));\n } else if (line.contains(Constants.COMMAND_REPORT)){\n controller.location();\n }\n }\n } catch (Exception e){\n System.out.println(\"No input found\");\n }\n }\n else\n {\n System.out.println(\"No input found\");\n }\n }"
]
| [
"0.5898899",
"0.58479875",
"0.5778747",
"0.5718375",
"0.56947356",
"0.5625917",
"0.5612225",
"0.55704236",
"0.55547345",
"0.5554477",
"0.55307055",
"0.5513429",
"0.55124843",
"0.5505926",
"0.54888695",
"0.54804784",
"0.54740626",
"0.5466103",
"0.5454942",
"0.54515386",
"0.54208344",
"0.5415018",
"0.5410053",
"0.5404415",
"0.5402598",
"0.5394037",
"0.53890336",
"0.5385125",
"0.53769386",
"0.5376025",
"0.5370721",
"0.537011",
"0.537001",
"0.53674287",
"0.53407556",
"0.533394",
"0.53240037",
"0.53179216",
"0.53165",
"0.53119147",
"0.53054327",
"0.5300179",
"0.52939236",
"0.52889156",
"0.52826446",
"0.5280015",
"0.52700967",
"0.52626896",
"0.5252199",
"0.524157",
"0.5234913",
"0.5227719",
"0.52194947",
"0.5218881",
"0.52173406",
"0.52024704",
"0.5192702",
"0.51925856",
"0.5191654",
"0.51911944",
"0.5182967",
"0.5181382",
"0.51789457",
"0.51778924",
"0.5177708",
"0.51636374",
"0.51632553",
"0.5162687",
"0.516155",
"0.5156394",
"0.5153266",
"0.5151392",
"0.5151277",
"0.51492727",
"0.5143187",
"0.5142989",
"0.51412505",
"0.51290303",
"0.51272285",
"0.51261246",
"0.51248163",
"0.5124043",
"0.5121473",
"0.5119767",
"0.5119552",
"0.51186484",
"0.5118263",
"0.51171523",
"0.51157504",
"0.5114662",
"0.5112216",
"0.51046294",
"0.5099398",
"0.5092972",
"0.50888723",
"0.50866735",
"0.5082129",
"0.507958",
"0.5074147",
"0.50698763"
]
| 0.52892107 | 43 |
load prepopulate data from database and configure camera around markers. | @Override
public void onMapReady(GoogleMap googleMap) {
firebaseLoadData(googleMap);
//get user input data
Intent intent = getIntent();
Double latitude = intent.getDoubleExtra("LATITUDE", 0);
Double longitude = intent.getDoubleExtra("LONGITUDE", 0);
String location = intent.getStringExtra("LOCATION");
String description = intent.getStringExtra("DESCRIPTION");
createCustomMapMarkers(googleMap, new LatLng(latitude, longitude), location, description);
//set map listeners to handle events.
useMapClickListener(googleMap);
useMarkerClickListener(googleMap);
useMarkerDragListener(googleMap);
useMapOnLongClickListener(googleMap);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loadData() {\n String[] animalsListRaw = loadStrings(\"data/animalList.csv\");\n //String[] animalsListRaw = loadStrings(\"data/mythical.creatures.csv\");\n String[] animalList = getList(animalsListRaw);\n SearchQuery newSearch = new SearchQuery(animalList); \n allMaps = newSearch.getMap();\n \n map = new UnfoldingMap(this);\n map.setBackgroundColor(color(179, 223, 222, 255));\n map.zoomAndPanTo(width/2, height/2, 2);\n //MapUtils.createDefaultEventDispatcher(this, map);\n countries = GeoJSONReader.loadData(this, \"countries.geo.json\");\n marks = new MarkerMaker(allMaps, countries);\n map.draw();\n}",
"private void loadDataFromDatabase() {\n mSwipeRefreshLayout.setRefreshing(true);\n mPresenter.loadDataFromDatabase();\n }",
"private void loadRecords() {\r\n\t\tpanContent.updateContent();\r\n\t}",
"private void loadPersistedData() {\n IntegerRange storedAutoStartOnDisconnectDelayRange =\n AUTOSTART_ON_DISCONNECT_DELAY_RANGE_SETTING.load(mDeviceDict);\n if (storedAutoStartOnDisconnectDelayRange != null) {\n mPilotingItf.getAutoStartOnDisconnectDelay().updateBounds(storedAutoStartOnDisconnectDelayRange);\n }\n\n DoubleRange endingHoveringAltitudeRange = ENDING_HOVERING_ALTITUDE_RANGE_SETTING.load(mDeviceDict);\n if (endingHoveringAltitudeRange != null) {\n mPilotingItf.getEndingHoveringAltitude().updateBounds(endingHoveringAltitudeRange);\n }\n\n DoubleRange minAltitudeRange = MIN_ALTITUDE_RANGE_SETTING.load(mDeviceDict);\n if (minAltitudeRange != null) {\n mPilotingItf.getMinAltitude().updateBounds(minAltitudeRange);\n }\n\n applyPresets();\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 }",
"public void preSaveInit() {\n persistentData.clear();\n for (int i = 0; i < getNumPoints(); i++) {\n persistentData.add(getPoint(i));\n }\n }",
"private void populateMap() {\n DatabaseHelper database = new DatabaseHelper(this);\n Cursor cursor = database.getAllDataForScavengerHunt();\n\n //database.updateLatLng(\"Gym\", 34.181243783767364, -117.31866795569658);\n\n while (cursor.moveToNext()) {\n double lat = cursor.getDouble(cursor.getColumnIndex(database.COL_LAT));\n double lng = cursor.getDouble(cursor.getColumnIndex(database.COL_LONG));\n int image = database.getImage(cursor.getString(cursor.getColumnIndex(database.COL_LOC)));\n\n //Log.i(\"ROW\", R.drawable.library + \"\");\n LatLng coords = new LatLng(lat, lng);\n\n GroundOverlayOptions overlayOptions = new GroundOverlayOptions()\n .image(BitmapDescriptorFactory.fromResource(image))\n .position(coords, 30f, 30f);\n\n mMap.addGroundOverlay(overlayOptions);\n }\n }",
"private static void initializeDatabase() {\n\t\tArrayList<String> data = DatabaseHandler.readDatabase(DATABASE_NAME);\n\t\tAbstractSerializer serializer = new CineplexSerializer();\n\t\trecords = serializer.deserialize(data);\n\t}",
"public void loadDataFromFile() {\n startX = 0;\n startY = 540;\n\n }",
"private void loadData(){\n\t\t \n\t\t model.getDataVector().clear();\n\t\t ArrayList<Person> personList = DataBase.getInstance().getPersonList();\n\t\t for(Person person : personList){\n\t\t\t addRow(person.toBasicInfoStringArray());\n\t\t }\n\t\t \n\t }",
"private void initData() {\n\t\tnamesInfo = new NameSurferDataBase(fileName);\n\n\t}",
"@PostConstruct\n public void loaddata() throws IOException {\n File file = ResourceUtils.getFile(configProvider.getFilePath());\n Reader in = new FileReader(file.getPath());\n Iterable<CSVRecord> records = CSVFormat.RFC4180.withHeader(\n \"locationid\", \"Applicant\", \"FacilityType\", \"cnn\", \"LocationDescription\", \"Address\", \"blocklot\", \"block\", \"lot\",\n \"permit\", \"Status\", \"FoodItems\", \"X\", \"Y\", \"Latitude\", \"Longitude\", \"Schedule\",\n \"dayshours\", \"NOISent\", \"Approved\", \"Received\", \"PriorPermit\", \"ExpirationDate\",\n \"Location\", \"Fire Prevention Districts\", \"Police Districts\",\n \"Supervisor Districts\", \"Zip Codes\", \"Neighborhoods (old)\"\n ).parse(in);\n\n Iterator<CSVRecord> iterator = records.iterator();\n iterator.next();\n // use our own ids because of how atomic integers work, we can't have a 0 for an id, so can't rely on outside sources.\n int i = 0;\n while (iterator.hasNext()) {\n CSVRecord record = iterator.next();\n FoodTruck truck = new FoodTruck(Float.parseFloat(record.get(\"Latitude\")), Float.parseFloat(record.get(\"Longitude\")),\n record.get(\"Address\"), record.get(\"FoodItems\"), ++i);\n //add food truck to datastore\n truckDataStore.addTruck(truck.getId(), truck);\n\n final Rectangle rect = new Rectangle(truck.getLat(), truck.getLon(),\n truck.getLat(), truck.getLon());\n //add food truck location + id to location data store.\n locationDataStore.getSpatialIndex().add(rect, truck.getId());\n }\n }",
"private void initData() {\n mSurfaceView.getHolder().addCallback(new SurfaceHolder.Callback() {\n @Override\n public void surfaceCreated(SurfaceHolder surfaceHolder) {\n CameraControl.getInstance().initRender(mSurfaceView.getHolder(), mSurfaceView);\n CameraControl.getInstance().startStreamAndPreview();\n }\n\n @Override\n public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n if (mSurfaceView.getHolder() == holder) {\n CameraControl.getInstance().setDrawingArea(width, height);\n }\n }\n\n @Override\n public void surfaceDestroyed(SurfaceHolder surfaceHolder) {\n CameraControl.getInstance().stopMediaStreamAndPreview();\n }\n });\n flyControlData = FlyControlData.getInstance();\n }",
"protected void loadData()\n {\n }",
"public void initData(){\n\n String birdname,birdscientificname,birdfamily,birdecosystem;\n Bundle extras = getActivity().getIntent().getExtras();\n if(extras == null) {\n birdname=null;\n birdscientificname=null;\n birdfamily=null;\n birdecosystem=null;\n } else {\n birdname=extras.getString(\"birdname\");\n birdscientificname=extras.getString(\"birdscientificname\");\n birdfamily=extras.getString(\"birdfamily\");\n birdecosystem=extras.getString(\"birdecosystem\");\n }\n\n presenter.initData(birdname,birdscientificname,birdfamily,birdecosystem,imageView1,imageView2,imageView3);\n }",
"public void postOpenInit() {\n logger = Logger.getLogger(Dataset.class);\n clear();\n for (DataPoint point : persistentData) {\n addPoint(point);\n }\n }",
"private void loadData(){\n try (BufferedReader br = new BufferedReader(new FileReader(this.fileName))) {\n String line;\n while((line=br.readLine())!=null){\n E e = createEntity(line);\n super.save(e);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void loadData() {\n\t\tbookingRequestList = bookingRequestDAO.getAllBookingRequests();\n\t\tcabDetailList = cabDAO.getAllCabs();\n\t}",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tif(map!=null)\n\t\t{\n\t\t\tsetup();\n\t\t}\n\t}",
"private void initDataLoader() {\n\t}",
"void populateData();",
"private void setup() {\n\t\t map.setMyLocationEnabled(true);\n\t \n\t CameraPosition cameraPosition = new CameraPosition.Builder()\n\t .target(USMP_LOCATION) // Sets the center of the map to\n\t // Golden Gate Bridge\n\t .zoom(16) // Sets the zoom\n\t .bearing(90) // Sets the orientation of the camera to east\n\t .tilt(60) // Sets the tilt of the camera to 30 degrees\n\t .build(); // Creates a CameraPosition from the builder\n\t \n\t CameraUpdate cameraUpdate=CameraUpdateFactory.newCameraPosition(\n\t \t cameraPosition);\n\t\t map.animateCamera(cameraUpdate);\n\t\t \n\t map.addMarker(new MarkerOptions()\n\t .position(USMP_LOCATION)\n\t .title(\"DevFest 2013 Season 2\"));\n\t}",
"private void LoadingDatabaseGameLocation() {\n\n\t\tCursor cursor = helper.getDataAll(GamelocationTableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tGAME_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_GAME_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_GAME_LCOATION_COLUMN);\n\t\t\tString isGameVisited = cursor.getString(GAME_IS_VISITED_COLUMN);\n\n\t\t\tGAME_LIST.add(new gameLocation(ID, Description,\n\t\t\t\t\tisUsed(isGameVisited)));\n\t\t\t\n\t\t\tLog.d(TAG, \"game ID : \"+ ID);\n\t\t\t\n\t\t} // travel to database result\n\n\t}",
"protected abstract void loadData();",
"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 }",
"@Override\n\tprotected void initData() {\n\t\tisSearch = (boolean) getIntent().getExtras().getBoolean(Constant.IntentKey.isSearch,false);\n\t\t\n\t\tif (isSearch) {//非来自直播列表\n\t\t\tarticleID = getIntent().getExtras().getLong(Constant.IntentKey.articleID);\n//\t\t\tprogressActivity.showLoading();\n\t\t\t\n\t\t\t// 查询发现详情\n\t\t\tobtainDetailRequest();\n\t\t} else {\n\t\t\tsquareLiveModel = (SquareLiveModel) getIntent().getExtras().getSerializable(Constant.IntentKey.squareLiveModel);\n\t\t\t\n\t\t\tinitLoadView();\n\t\t}\n\t\t\n\t\t//启动定时器\n//\t\tinitTimerTask();\n\t}",
"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 }",
"private void setTrainingData() throws IOException {\r\n\t\ttrainIdBodyMap = readInIdBodiesMap(new File(TRAIN_BODIES_CSV_LOCATION));\r\n\t\ttrainStances = readStances(new File(TRAIN_STANCES_CSV_LOCATION));\r\n\r\n\t}",
"private void preloadDb() {\n String[] branches = getResources().getStringArray(R.array.branches);\n //Insertion from xml\n for (String b : branches)\n {\n dataSource.getTherapyBranchTable().insertTherapyBranch(b);\n }\n String[] illnesses = getResources().getStringArray(R.array.illnesses);\n for (String i : illnesses)\n {\n dataSource.getIllnessTable().insertIllness(i);\n }\n String[] drugs = getResources().getStringArray(R.array.drugs);\n for (String d : drugs)\n {\n dataSource.getDrugTable().insertDrug(d);\n }\n }",
"public void setUpData(final FeatureCollection collection) {\n if (map == null) {\n return;\n }\n featureCollection = collection;\n setupSource();\n setUpImage();\n setUpMarkerLayer();\n // setupClusterSource();\n setUpInfoWindowLayer();\n\n }",
"synchronized private void setupForDisplay() {\n \t\tif (-1 == n_points) n_points = 0;\n \t\t// load points\n \t\t/* Database storage not implemented yet\n \t\tif (null == p) {\n \t\t\tArrayList al = project.getLoader().fetchPolylinePoints(id);\n \t\t\tn_points = al.size();\n \t\t\tp = new double[2][n_points];\n \t\t\tp_layer = new long[n_points];\n \t\t\tIterator it = al.iterator();\n \t\t\tint i = 0;\n \t\t\twhile (it.hasNext()) {\n \t\t\t\tObject[] ob = (Object[])it.next();\n \t\t\t\tp[0][i] = ((Double)ob[0]).doubleValue();\n \t\t\t\tp[1][i] = ((Double)ob[1]).doubleValue();\n \t\t\t\tp_layer[i] = ((Long)ob[7]).longValue();\n \t\t\t\ti++;\n \t\t\t}\n \t\t}\n \t\t*/\n \t}",
"private synchronized void initializeData() {\n\n System.out.println(\"En inicializar datos\");\n // Only perform initialization once per app lifetime. If initialization has already been\n // performed, we have nothing to do in this method.\n if (mInitialized) return;\n mInitialized = true;\n\n mExecutors.diskIO().execute(() -> {\n if (isFetchNeeded()) {\n System.out.println(\"Se necesita actualizar, fetch is needed\");\n startFetchPublicacionService();\n }\n });\n }",
"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}",
"@Override\n public boolean doLoadTrackersData() {\n\n TrackerManager tManager = TrackerManager.getInstance();\n ObjectTracker objectTracker = (ObjectTracker) tManager\n .getTracker(ObjectTracker.getClassType());\n if (objectTracker == null)\n return false;\n\n if (markerDataSet == null)\n markerDataSet = objectTracker.createDataSet();\n\n if (markerDataSet == null)\n return false;\n\n if (!markerDataSet.load(\n \"Test0000.xml\",\n STORAGE_TYPE.STORAGE_APPRESOURCE))\n return false;\n\n if (!objectTracker.activateDataSet(markerDataSet))\n return false;\n\n int numTrackers = markerDataSet.getNumTrackables();\n for (int count = 0; count < numTrackers; count++) {\n Trackable trackable = markerDataSet.getTrackable(count);\n if (enableExtendedTracking) {\n trackable.startExtendedTracking();\n }\n\n String name = \"Current Dataset : \" + trackable.getName();\n trackable.setUserData(name);\n Log.d(TAG, \"UserData:Set the following user data \" + trackable.getUserData());\n }\n\n return true;\n }",
"private void setUpMap() {\n if (mGoogleMap != null && mParkingField != null) {\n LatLng latLng = new LatLng(mParkingField.getLatitude(), mParkingField.getLongitude());\n mGoogleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 16));\n mGoogleMap.addMarker(mMapFactory.createParkingFieldMakerOptions(mParkingField, getContext()));\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n mMap.setOnMarkerClickListener(this);\n\n\n // Add a marker in Sydney and move the camera\n\n getData(All_urls.values.mapData);\n\n\n\n\n }",
"private void loadData() {\n Log.d(LOG_TAG, \"loadData()\");\n /* If the device does not have an internet connection, then... */\n if (!NetworkUtils.hasInternetConnection(this)){\n showErrorMessage(true);\n return;\n }\n /* Make the View for the data visible and hide the error message */\n showDataView();\n\n /* Fetch the data from the web asynchronous using Retrofit */\n TMDBApi the_movie_database_api = new TMDBApi(new FetchDataTaskCompleteListener());\n /* Start the network transactions */\n the_movie_database_api.start(sortOrderCurrent);\n\n /* Display the loading indicator */\n displayLoadingIndicator(true);\n }",
"@Override\n protected void onResume() {\n super.onResume();\n loadData();\n }",
"@Override\n protected void onResume() {\n super.onResume();\n loadData();\n }",
"abstract void initializeNeededData();",
"public void loadInitialData() {\n\t\t\texecuteTransaction(new Transaction<Boolean>() {\n\t\t\t\t@Override\n\t\t\t\tpublic Boolean execute(Connection conn) throws SQLException {\n\t\t\t\t\tList<Item> inventory;\n\t\t\t\t\tList<Location> locationList;\n\t\t\t\t\tList<User> userList;\n\t\t\t\t\tList<JointLocations> jointLocationsList;\n\t\t\t\t\t//List<Description> descriptionList; \n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tinventory = InitialData.getInventory();\n\t\t\t\t\t\tlocationList = InitialData.getLocations(); \n\t\t\t\t\t\tuserList = InitialData.getUsers();\n\t\t\t\t\t\tjointLocationsList = InitialData.getJointLocations();\n\t\t\t\t\t\t//descriptionList = //InitialData.getDescriptions();\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tthrow new SQLException(\"Couldn't read initial data\", e);\n\t\t\t\t\t}\n\n\t\t\t\t\tPreparedStatement insertItem = null;\n\t\t\t\t\tPreparedStatement insertLocation = null; \n\t\t\t\t\tPreparedStatement insertUser = null;\n\t\t\t\t\tPreparedStatement insertJointLocations = null;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// AD: populate locations first since location_id is foreign key in inventory table\n\t\t\t\t\t\tinsertLocation = conn.prepareStatement(\"insert into locations (description_short, description_long) values (?, ?)\" );\n\t\t\t\t\t\tfor (Location location : locationList)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinsertLocation.setString(1, location.getShortDescription());\n\t\t\t\t\t\t\tinsertLocation.setString(2, location.getLongDescription());\n\t\t\t\t\t\t\tinsertLocation.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertLocation.executeBatch(); \n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertJointLocations = conn.prepareStatement(\"insert into jointLocations (fk_location_id, location_north, location_south, location_east, location_west) values (?, ?, ?, ?, ?)\" );\n\t\t\t\t\t\tfor (JointLocations jointLocations: jointLocationsList)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinsertJointLocations.setInt(1, jointLocations.getLocationID());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(2, jointLocations.getLocationNorth());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(3, jointLocations.getLocationSouth());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(4, jointLocations.getLocationEast());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(5, jointLocations.getLocationWest());\n\t\t\t\t\t\t\tinsertJointLocations.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertJointLocations.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertItem = conn.prepareStatement(\"insert into inventory (location_id, item_name) values (?, ?)\");\n\t\t\t\t\t\tfor (Item item : inventory) \n\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t// Auto generate itemID\n\t\t\t\t\t\t\tinsertItem.setInt(1, item.getLocationID());\n\t\t\t\t\t\t\tinsertItem.setString(2, item.getName());\n\t\t\t\t\t\t\tinsertItem.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertItem.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertUser = conn.prepareStatement(\"insert into users (username, password) values (?, ?)\");\n\t\t\t\t\t\tfor(User user: userList) {\n\t\t\t\t\t\t\tinsertUser.setString(1, user.getUsername());\n\t\t\t\t\t\t\tinsertUser.setString(2, user.getPassword());\n\t\t\t\t\t\t\tinsertUser.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertUser.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"Tables populated\");\n\t\t\t\t\t\t\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tDBUtil.closeQuietly(insertLocation);\t\n\t\t\t\t\t\tDBUtil.closeQuietly(insertItem);\n\t\t\t\t\t\tDBUtil.closeQuietly(insertUser);\n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"public void initData() {\n\t\tnotes = new ArrayList<>();\n\t\t//place to read notes e.g from file\n\t}",
"private void loadFieldGuideData() {\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tLog.d(TAG, \"Loading data via loadData()\");\n\t\t\t\t\t\tloadData();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}).start();\n\t\t}",
"public void requestTracksDataLoad() {\n getSupportLoaderManager().initLoader(TRACK_LOADER_INDEX, null, this).forceLoad();\n }",
"void initData() {\r\n\t\tthis.daVinci = new Artist(\"da Vinci\");\r\n\t\tthis.mona = new Painting(daVinci, \"Mona Lisa\");\r\n\t\t//this.lastSupper = new Painting(this.daVinci, \"Last Supper\");\r\n\t}",
"public void refreshData(){ \n \t\tif(!mIsFirstRun){\n \t if(mDb == null) mDb = new Sqlite(this.getContext());\n \t if(!mDb.isOpen()) mDb.openRead();\n \t \n \t\t\tgetLoaderManager().restartLoader(0,null,this);\n \t\t}else mIsFirstRun = false;\n \t}",
"private void initializeData() {\n String[] sportsList = getResources().getStringArray(R.array.track_title);\n String[] sportsInfo = getResources().getStringArray(R.array.track_category);\n\n // Clear the existing data (to avoid duplication).\n mSportsData.clear();\n\n TypedArray trackImageResources =\n getResources().obtainTypedArray(R.array.track_image);\n\n // Create the ArrayList of Sports objects with titles and\n // information about each sport.\n for (int i = 0; i < sportsList.length; i++) {\n for (int j = 0; j < workout.size(); j++) {\n if (workout.get(j).equals(sportsList[i])) {\n mSportsData.add(new Track(sportsList[i], sportsInfo[i], trackImageResources.getResourceId(i, 0)));\n }\n }\n }\n\n // Notify the adapter of the change.\n mAdapter.notifyDataSetChanged();\n\n trackImageResources.recycle();\n }",
"private void populateMap(Cursor data) {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n String language = preferences.getString(getActivity().getString(R.string.pref_key_language), getActivity().getString(R.string.pref_language_english));\n\n if (mMap != null && data.moveToFirst()) {\n //Get visibile bounds of map\n LatLngBounds bounds = mMap.getProjection().getVisibleRegion().latLngBounds;\n if (data.moveToFirst()) {\n do {\n int stationId = data.getInt(StationContract.COL_STATION_ID);\n if (bounds.contains(new LatLng(data.getDouble(StationContract.COL_STATION_LAT), data.getDouble(StationContract.COL_STATION_LONG)))) {\n\n if (mMarkerMap.indexOfKey(stationId)<0) {\n int bikesAvailable = data.getInt(StationContract.COL_BIKES_AVAILABLE);\n int spacesAvailable = data.getInt(StationContract.COL_SPACES_AVAILABLE);\n int markerDrawable = Utilities.getMarkerIconDrawable(bikesAvailable, spacesAvailable);\n String snippet = getString(R.string.snippet_string_bikes) + String.valueOf(bikesAvailable) + \" \" + getString(R.string.snippet_string_spaces) + String.valueOf(spacesAvailable);\n\n\n String title;\n if (language.equals(getActivity().getString(R.string.pref_language_english))) {\n title = data.getString(StationContract.COL_STATION_NAME_EN);\n } else if(language.equals(getActivity().getString(R.string.pref_language_pinyin))){\n int stringId = getResources().getIdentifier(\"station\" + String.valueOf(stationId), \"string\", getActivity().getPackageName());\n title = getString(stringId);\n }\n else {\n title = data.getString(StationContract.COL_STATION_NAME_ZH);\n }\n\n MarkerOptions markerOptions = new MarkerOptions().position(new LatLng(data.getDouble(StationContract.COL_STATION_LAT), data.getDouble(StationContract.COL_STATION_LONG))).title(title);\n markerOptions.snippet(snippet);\n markerOptions.icon(BitmapDescriptorFactory.fromResource(markerDrawable));\n Marker marker = mMap.addMarker(markerOptions);\n mIdMap.put(marker, stationId);\n mMarkerMap.put(stationId, marker);\n }\n } else {\n //If the marker was previously on screen, remove it from the map and hashmap\n if (mMarkerMap.indexOfKey(stationId)>=0) {\n mMarkerMap.get(stationId).remove();\n mMarkerMap.remove(stationId);\n }\n }\n\n } while (data.moveToNext());\n }\n //If a station ID has been set from detail fragment, display its info window\n if (mStationId != -1) {\n Marker currentMarker = mMarkerMap.get(mStationId);\n if (currentMarker != null) {\n currentMarker.showInfoWindow();\n }\n }\n }\n }",
"private void loadData() {\n //load general data\n Settings.loadSettings();\n\n this.spCrawlTimeout.setValue(Settings.CRAWL_TIMEOUT / 1000);\n this.spRetryPolicy.setValue(Settings.RETRY_POLICY);\n this.spRecrawlInterval.setValue(Settings.RECRAWL_TIME / 3600000);\n this.spRecrawlCheckTime.setValue(Settings.RECRAWL_CHECK_TIME / 60000);\n }",
"private void init_fields(String subor, Maps map) throws FileNotFoundException{ //inicializacia vsetkych zoznamov -> hlavne tych z triedy Maps\n map.setCars(new ArrayList<>());\n map.setStations(new ArrayList<>());\n Free_time_window free[][] = map.getFree_windows();\n Reserved_time_window reserved[][] = map.getReserved_windows();\n Road[][] road_matrix = map.getRoads();\n ArrayList<Car>cars;\n \n fr = new FileReader(subor); //nabijem do File Readera moj subor\n br = new BufferedReader(fr); //a budem ho citat\n \n cars = new ArrayList<>();\n \n for(int i= 0;i< max_NO_of_stations; i++){\n for(int j = 0;j< max_NO_of_stations; j++){\n if(i==j){ \n road_matrix[i][j] = new Road(0,-1,-1,-1);\n }\n else{\n road_matrix[i][j] = new Road(-1,-1,-1,-1);\n }\n }\n }\n \n for(int i= 0;i< max_NO_of_stations; i++){\n for(int j = 0;j< max_NO_of_windows; j++){\n free[i][j] = new Free_time_window(-1,-1,-1, -1);\n \n reserved[i][j] = new Reserved_time_window(-1,-1, new Car(-1));\n }\n }\n \n map.setFree_windows(free);\n map.setReserved_windows(reserved);\n map.setRoads(road_matrix);\n map.setCars(cars);\n }",
"private void loadRecordDetails() {\n updateRecordCount();\n loadCurrentRecord();\n }",
"private void loadDataOnFirst(){\n updateDateTimeText();\n\n mPbLoading.setVisibility(View.VISIBLE);\n mCalendarListView.setVisibility(View.GONE);\n\n // Call API to get the schedules\n mPresenter.loadAllExaminationSchedulesForSpecificDate(mMyDate.generateDateString(AppConstants.DATE_FORMAT_YYYY_MM_DD));\n }",
"private void importData() {\n // if alarmAdapter null it's means data have not imported, yet or database is empty\n if (alarmAdapter == null) {\n // initialize database manager\n dataBaseManager = new DataBaseManager(this);\n // get Alarm ArrayList from database\n ArrayList<Alarm> arrayList = dataBaseManager.getAlarmList();\n // create Alarm adapter to display detail through RecyclerView\n alarmAdapter = new AlarmAdapter(arrayList, this);\n\n }\n }",
"private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}",
"public void initialize() {\n setThisFacility(null);\n loadData();\n initCols();\n\n }",
"public static void populateData() {\n\n }",
"private void mockUpDB() {\n locationDBAdapter.insertLocationData(\n \"ChIJd0UHJHcw2jARVTHgHdgUyrk\",\n \"Baan Thong Luang\",\n \"https://maps.gstatic.com/mapfiles/place_api/icons/lodging-71.png\",\n \"https://maps.google.com/maps/contrib/101781857378275784222/photos\",\n \"CmRSAAAAEegLHnt03YODdRQ658VBWtIhOoz3TjUAj1oVqQIlLq0DkfSttuS-SQ3aOLBBbuFdwKbpkbsrFzMWghgyZeRD-n5rshknOXv6p5Xo3bdYr5FMOUGCy-6f6LYRy1PN9cKOEhBuj-7Dc5fBhX_38N_Sn7OPGhTBRgFIvThYstd7e8naYNPMUS2rTQ\",\n \"GOOGLE\",\n \"236/10 Wualai Road Tumbon Haiya, CHIANG MAI\",\n 18.770709,\n 98.978078,\n 0.0);\n\n }",
"void loadData();",
"void loadData();",
"private void loadData() {\r\n titleProperty.set(TITLE);\r\n imageView.setImage(null);\r\n scrollPane.setContent(null);\r\n final Task<Void> finisher = new Task<Void>() {\r\n @Override\r\n protected Void call() throws Exception {\r\n Platform.runLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n buffer = replay.politicalBuffer;\r\n output = new WritableImage(replay.bufferWidth, replay.bufferHeight);\r\n output.getPixelWriter().setPixels(0, 0, replay.bufferWidth, replay.bufferHeight, PixelFormat.getIntArgbPreInstance(), buffer, 0, replay.bufferWidth);\r\n progressBar.progressProperty().unbind();\r\n progressBar.setProgress(0);\r\n statusLabel.textProperty().unbind();\r\n statusLabel.setText(l10n(\"replay.map.loaded\"));\r\n scrollPane.setContent(null);\r\n imageView.setImage(output);\r\n scrollPane.setContent(imageView);\r\n int fitWidth = Integer.parseInt(settings.getProperty(\"map.fit.width\", \"0\"));\r\n int fitHeight = Integer.parseInt(settings.getProperty(\"map.fit.height\", \"0\"));\r\n imageView.setFitHeight(fitHeight);\r\n imageView.setFitWidth(fitWidth);\r\n lock.release();\r\n }\r\n });\r\n return null;\r\n }\r\n };\r\n progressBar.progressProperty().bind(finisher.progressProperty());\r\n statusLabel.textProperty().bind(finisher.titleProperty());\r\n replay.loadData(finisher);\r\n }",
"private void loadData() {\n\t\tOptional<ServerData> loaded_data = dataSaver.load();\n\t\tif (loaded_data.isPresent()) {\n\t\t\tdata = loaded_data.get();\n\t\t} else {\n\t\t\tdata = new ServerData();\n\t\t}\n\t}",
"private void prepareData() {\n devices.clear();\n\n Set<String> s = Blue.getInstance().devices.keySet();\n Iterator<String> it = s.iterator();\n String address;\n while (it.hasNext()) {\n address = it.next();\n devices.add(new Device(address, Blue.getInstance().devices.get(address)));\n }\n }",
"public void load()\n\t{\n\t\tfor(String s : playerData.getConfig().getKeys(false))\n\t\t{\n\t\t\tPlayerData pd = new PlayerData(playerData, s);\n\t\t\tpd.load();\n\t\t\tdataMap.put(s, pd);\n\t\t}\n\t}",
"private void fetchDataFromDatabase() {\n\n listOfPersons.clear();\n Cursor cursor = AppDatabase.getInstance(context).getPersonList();\n if (cursor != null && cursor.moveToFirst()) {\n do {\n String firstName = cursor.getString(cursor.getColumnIndex(\"firstName\"));\n String lastName = cursor.getString(cursor.getColumnIndex(\"lastName\"));\n String email = cursor.getString(cursor.getColumnIndex(\"email\"));\n String dob = cursor.getString(cursor.getColumnIndex(\"dobDate\"));\n String phoneNumber = cursor.getString(cursor.getColumnIndex(\"phoneNumber\"));\n String pictureUrl = cursor.getString(cursor.getColumnIndex(\"pictureMediumUrl\"));\n String pictureImageData = cursor.getString(cursor.getColumnIndex(\"pictureImageData\"));\n String fullName = firstName + \" \" + lastName;\n Bitmap imageBitmap = UtilFunctions.stringToBitmap(pictureImageData);\n\n PersonWrapper person = new PersonWrapper(fullName, email, dob, phoneNumber, pictureUrl, imageBitmap);\n listOfPersons.add(person);\n\n } while (cursor.moveToNext());\n }\n\n initView(listOfPersons);\n }",
"private void LoadingDatabasePoolLocation() {\n\n\t\tCursor cursor = helper.getDataAll(PooltableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tPOOL_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_POOL_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_POOL_LCOATION_COLUMN);\n\t\t\tString isCouponUsed = cursor.getString(COUPON_IS_USED_COLUMN);\n\n\t\t\tPOOL_LIST.add(new poolLocation(ID, Description,\n\t\t\t\t\tisUsed(isCouponUsed), ThumbNailFactory.create()\n\t\t\t\t\t\t\t.getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}",
"private void initRecords() {\r\n\t\tthis.records = recHandler.getRecords(RecordsDisplayPanel.DEFAULT_MAX_ONSCREEN);\r\n\t}",
"private void addArchitectureMarkers() {\n try {\n // Get the text file\n InputStream file = getResources().openRawResource(R.raw.architecture);\n\n // Read the file to get contents\n BufferedReader reader = new BufferedReader(new InputStreamReader(file));\n String line;\n\n // Read every line of the file one line at a time\n while ((line = reader.readLine()) != null) {\n String[] architecture = line.split(\";\", 6);\n\n String architectureName = architecture[0];\n String placeID = architecture[1];\n String architectureDate = architecture[2];\n String architectureInfo = architecture[3];\n String architectureStyle = architecture[4];\n String architect = architecture[5];\n\n // Initialize Places.\n Places.initialize(getApplicationContext(), getString(R.string.google_directions_key));\n // Create a new Places client instance.\n PlacesClient placesClient = Places.createClient(this);\n // Specify the fields to return.\n List<Place.Field> placeFields = Arrays.asList(Place.Field.NAME, Place.Field.LAT_LNG,\n Place.Field.PHOTO_METADATAS);\n // Construct a request object, passing the place ID and fields array.\n FetchPlaceRequest request = FetchPlaceRequest.builder(placeID, placeFields).build();\n\n placesClient.fetchPlace(request).addOnSuccessListener((response) -> {\n Place place = response.getPlace();\n Log.i(\"TAG\", \"Place found: \" + place.getName());\n LatLng latlng = place.getLatLng();\n\n //Get the photo metadata.\n if (place.getPhotoMetadatas() == null) {\n Log.i(\"mylog\", \"no photo\");\n } else {\n //choose better default pictures for these buildings\n PhotoMetadata photoMetadata = place.getPhotoMetadatas().get(0);\n if (place.getName().equals(\"The Cube\")) {\n photoMetadata = place.getPhotoMetadatas().get(2);\n }\n if (place.getName().equals(\"Millennium Point Car Park\")) {\n photoMetadata = place.getPhotoMetadatas().get(1);\n }\n if (place.getName().equals(\"School of Art\")) {\n photoMetadata = place.getPhotoMetadatas().get(1);\n }\n if (place.getName().equals(\"Saint Martin in the Bull Ring\")) {\n photoMetadata = place.getPhotoMetadatas().get(2);\n }\n if (place.getName().equals(\"Bullring & Grand Central\")) {\n photoMetadata = place.getPhotoMetadatas().get(1);\n }\n if (place.getName().equals(\"Mailbox Birmingham\")) {\n photoMetadata = place.getPhotoMetadatas().get(1);\n }\n if (place.getName().equals(\"The International Convention Centre\")) {\n photoMetadata = place.getPhotoMetadatas().get(1);\n }\n if (place.getName().equals(\"Birmingham Museum & Art Gallery\")) {\n photoMetadata = place.getPhotoMetadatas().get(1);\n }\n // Create a FetchPhotoRequest.\n FetchPhotoRequest photoRequest = FetchPhotoRequest.builder(photoMetadata)\n .setMaxWidth(200)\n .setMaxHeight(200)\n .build();\n\n placesClient.fetchPhoto(photoRequest).addOnSuccessListener((fetchPhotoResponse) -> {\n Bitmap bitmap = fetchPhotoResponse.getBitmap();\n // Add border to image\n Bitmap bitmapWithBorder = Bitmap.createBitmap(bitmap.getWidth() + 12, bitmap.getHeight()\n + 12, bitmap.getConfig());\n Canvas canvas = new Canvas(bitmapWithBorder);\n canvas.drawColor(Color.rgb(255, 128, 128));\n canvas.drawBitmap(bitmap, 6, 6, null);\n //Add marker onto map\n Marker marker = mMap.addMarker(new MarkerOptions()\n .position(new LatLng(latlng.latitude, latlng.longitude))\n .title(architectureName)\n .icon(BitmapDescriptorFactory.fromBitmap(bitmapWithBorder)));\n marker.setTag(placeID);\n String url = getUrl(currentPosition, marker.getPosition(), \"walking\");\n new FetchURL(MapsActivity.this).execute(url, \"walking\");\n //Store marker info\n markersList.add(marker);\n markerHashmap.put(marker.getTitle(), bitmap);\n architectureDateHashmap.put(marker.getTitle(), architectureDate);\n architectureInfoHashmap.put(marker.getTitle(), architectureInfo);\n architectureStyleHashmap.put(marker.getTitle(), architectureStyle);\n architectHashmap.put(marker.getTitle(), architect);\n if (markersList.size() == 34) {\n //Set camera position once all markers loaded in\n setCameraPosition(mMap, markersList);\n }\n }).addOnFailureListener((exception) -> {\n if (exception instanceof ApiException) {\n ApiException apiException = (ApiException) exception;\n int statusCode = apiException.getStatusCode();\n // Handle error with given status code.\n Log.e(TAG, \"Photo not found: \" + exception.getMessage());\n }\n });\n }\n }).addOnFailureListener((exception) -> {\n if (exception instanceof ApiException) {\n ApiException apiException = (ApiException) exception;\n int statusCode = apiException.getStatusCode();\n // Handle error with given status code.\n Log.e(\"TAG\", \"Place not found: \" + placeID + exception.getMessage());\n\n }\n });\n }\n reader.close();\n } catch (NullPointerException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public abstract void loadData();",
"public abstract void loadData();",
"private void loadData() {\n RetrofitHelper.getInstance().getNearbyItems(new Observer<MainItemListBean>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(MainItemListBean mainItemListBean) {\n if (refreshLayout.getState() == RefreshState.Refreshing) {\n dataBeans.clear();\n }\n dataBeans.addAll(mainItemListBean.getData());\n if (dataBeans.isEmpty()) {\n emptyView.setVisibility(View.VISIBLE);\n } else {\n emptyView.setVisibility(View.GONE);\n }\n adapter.setData(dataBeans);\n }\n\n @Override\n public void onError(Throwable e) {\n e.printStackTrace();\n endLoading();\n }\n\n @Override\n public void onComplete() {\n endLoading();\n }\n }, longitude, latitude, maxDistance, page, category);\n }",
"public void load() {\n mapdb_ = DBMaker.newFileDB(new File(\"AllPoems.db\"))\n .closeOnJvmShutdown()\n .encryptionEnable(\"password\")\n .make();\n\n // open existing an collection (or create new)\n poemIndexToPoemMap_ = mapdb_.getTreeMap(\"Poems\");\n \n constructPoems();\n }",
"@Override\n protected void onResume() {\n\n super.onResume();\n getdatatext();\n if( MapActivity.activityPaused()==true){\n loadImageFromStorage();\n\n }\n }",
"private void loadingAnalysis(DatasetInformation datasetInfos) {\r\n datasetInfo = datasetInfos;\r\n updateLeftPanel(datasetInfos);\r\n if (reload) {\r\n\r\n Selection s = Selection_Manager.getSelectedRows();\r\n Selection_Manager.setSelectedRows(s);\r\n return;\r\n }\r\n processProfilePlot();\r\n reload = true;\r\n\r\n if (!init) {\r\n SelectionManager.Busy_Task(false, true);\r\n }\r\n\r\n }",
"public void initArrayList()\n {\n\tSQLiteDatabase db = getWritableDatabase();\n\tCursor cursor = db.rawQuery(\"SELECT * FROM \" + TABLE_NAME, null);\n\n\tif (cursor.moveToFirst())\n\t{\n\t do\n\t {\n\t\tJacocDBLocation newLocation = new JacocDBLocation();\n\t\tnewLocation.setLocationName(cursor.getString(1));\n\t\tnewLocation.setRealLocation(new LocationBorder(new LatLng(cursor.getDouble(2), cursor.getDouble(3)), new LatLng(cursor.getDouble(4), cursor.getDouble(5))));\n\t\tnewLocation.setMapLocation(new LocationBorder(new LatLng(cursor.getInt(6), cursor.getInt(7)), new LatLng(cursor.getInt(8), cursor.getInt(9))));\n\t\tnewLocation.setHighSpectrumRange(cursor.getDouble(10));\n\t\tnewLocation.setLowSpectrumRange(cursor.getDouble(11));\n\n\t\t// adding the new Location to the collection\n\t\tlocationList.add(newLocation);\n\t }\n\t while (cursor.moveToNext()); // move to the next row in the DB\n\n\t}\n\tcursor.close();\n\tdb.close();\n }",
"private void addMakerToMap() {\n if (mapboxMap != null) {\r\n mapboxMap.removeAnnotations();\r\n if (res.getData().size() > 0) {\r\n for (UserBasicInfo info : res.getData()) {\r\n if (info.getRole().equalsIgnoreCase(\"student\")) {\r\n if (isStudentSwitchOn) {\r\n setMarker(info);\r\n }\r\n }\r\n if (info.getRole().equalsIgnoreCase(\"teacher\")) {\r\n if (isTeacherSwitchOn) {\r\n setMarker(info);\r\n }\r\n }\r\n }\r\n } else {\r\n getMvpView().noRecordFound();\r\n }\r\n }\r\n }",
"@EventListener(ApplicationReadyEvent.class)\n\tpublic void loadData() {\n\t\tList<AppUser> allUsers = appUserRepository.findAll();\n\t\tList<Customer> allCustomers = customerRepository.findAll();\n\t\tList<Part> allPArts = partRepository.findAll();\n\n\t\tif (allUsers.size() == 0 && allCustomers.size() == 0 && allPArts.size() == 0) {\n\t\t\tSystem.out.println(\"Pre-populating the database with test data\");\n\n\t\t\tResourceDatabasePopulator resourceDatabasePopulator = new ResourceDatabasePopulator(\n\t\t\t\tfalse,\n\t\t\t\tfalse,\n\t\t\t\t\"UTF-8\",\n\t\t\t\tnew ClassPathResource(\"data.sql\"));\n\t\t\tresourceDatabasePopulator.execute(dataSource);\n\t\t}\n\t\tSystem.out.println(\"Application successfully started!\");\n\t}",
"public void setUpMapIfNeeded() {\n // Do a null check to confirm that we have not already instantiated the map.\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n ((SupportMapFragment) getChildFragmentManager().findFragmentById(R.id.farmMap)).getMapAsync(new OnMapReadyCallback() {\n @Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n setUpMap();\n\n db.open();\n Cursor c1 = db.getallContour(AppConstant.user_id);\n\n allFarmsArray = new ArrayList<String>();\n allFarmsContour = new ArrayList<String>();\n allFarmsArray.add(\"All\");\n\n if (c1.moveToFirst()) {\n do {\n String ss = c1.getString(c1.getColumnIndex(DBAdapter.FARM_NAME));\n String c_lat = c1.getString(c1.getColumnIndex(DBAdapter.CENTRE_LAT));\n String c_lon = c1.getString(c1.getColumnIndex(DBAdapter.CENTRE_LON));\n String contour = c1.getString(c1.getColumnIndex(DBAdapter.CONTOUR));\n allFarmsContour.add(contour);\n allFarmsArray.add(ss);\n\n Log.v(\"contourrrr\", \"\" + contour);\n\n FarmData data = new FarmData();\n\n data.setFarmerName(ss);\n\n if (c_lat != null) {\n data.setLatitude(Double.parseDouble(c_lat));\n data.setLongitude(Double.parseDouble(c_lon));\n }\n\n if (mMap != null) {\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.home);\n\n MarkerOptions markerOptions = new MarkerOptions().position(new LatLng(data.getLatitude(), data.getLongitude()))\n .title(\"\" + data.getFarmerName())\n .icon(icon);\n\n\n Marker mMarker = mMap.addMarker(markerOptions);\n if (mMarker != null) {\n\n Log.v(\"markerAddd\", \"Addedddd\");\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(data.getLatitude(), data.getLongitude()), 5));\n }\n data.setMarker(mMarker);\n }\n mandiArray.add(data);\n\n Log.v(\"contour\", \"-0\" + ss);\n } while (c1.moveToNext());\n }\n db.close();\n\n if (mandiArray.size() < 1) {\n if (mMap != null) {\n mMap.addMarker(new MarkerOptions().position(new LatLng(latitude, longitude)).title(\"My Home\").snippet(\"Home Address\"));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude, longitude), 12.0f));\n }\n }\n\n\n ArrayAdapter<String> chooseYourFarmSpiner = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_spinner_item, allFarmsArray);\n chooseYourFarmSpiner.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n farmSpinner.setAdapter(chooseYourFarmSpiner);\n\n farmSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n if (i > 0) {\n String conto = allFarmsContour.get(i - 1);\n if (conto != null) {\n if (mMap != null) {\n mMap.clear();\n\n }\n points = new ArrayList<LatLng>();\n List<String> l_List = Arrays.asList(conto.split(\"-\"));\n Double lat1 = null;\n Double lon1 =null;\n\n /* Double lat1 = Double.valueOf(l_List.get(0));\n Double lon1 = Double.valueOf(l_List.get(l_List.size() - 1));\n points.add(new LatLng(lat1, lon1));*/\n\n for (int j = 0; j < l_List.size(); j++) {\n String currentString = l_List.get(j);\n if (currentString != null) {\n String[] separated = currentString.split(\",\");\n if (separated.length>1) {\n String la = separated[0];\n String lo = separated[1];\n\n lat1=Double.parseDouble(la);\n lon1=Double.parseDouble(lo);\n\n points.add(new LatLng(Double.valueOf(la), Double.valueOf(lo)));\n\n Log.v(\"points\",la+\",\"+lo);\n }\n }\n }\n\n if (lat1 != null) {\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(lat1, lon1), 19.0f));\n mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\n\n SharedPreferences prefs = getActivity().getSharedPreferences(AppConstant.SHARED_PREFRENCE_NAME, getActivity().MODE_PRIVATE);\n SharedPreferences.Editor ed = prefs.edit();\n ed.putString(\"lat\",lat1+\"\");\n ed.putString(\"lon\",lon1+\"\");\n ed.apply();\n\n } else {\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(Double.valueOf(latitude), Double.valueOf(longitude)), 13.0f));\n Log.v(\"latlon2\", lat1 + \"---\" + lon1);\n mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\n\n SharedPreferences prefs = getActivity().getSharedPreferences(AppConstant.SHARED_PREFRENCE_NAME, getActivity().MODE_PRIVATE);\n SharedPreferences.Editor ed = prefs.edit();\n ed.putString(\"lat\",latitude+\"\");\n ed.putString(\"lon\",longitude+\"\");\n ed.apply();\n }\n if (mMap != null) {\n mMap.clear();\n setUpMap();\n }\n }\n } else {\n\n if (mMap != null) {\n mMap.clear();\n\n }\n\n db.open();\n Cursor c1 = db.getallContour(AppConstant.user_id);\n\n allFarmsArray = new ArrayList<String>();\n allFarmsContour = new ArrayList<String>();\n allFarmsArray.add(\"All\");\n\n if (c1.moveToFirst()) {\n do {\n String ss = c1.getString(c1.getColumnIndex(DBAdapter.FARM_NAME));\n String c_lat = c1.getString(c1.getColumnIndex(DBAdapter.CENTRE_LAT));\n String c_lon = c1.getString(c1.getColumnIndex(DBAdapter.CENTRE_LON));\n String contour = c1.getString(c1.getColumnIndex(DBAdapter.CONTOUR));\n allFarmsContour.add(contour);\n allFarmsArray.add(ss);\n\n FarmData data = new FarmData();\n\n data.setFarmerName(ss);\n\n if (c_lat != null) {\n data.setLatitude(Double.parseDouble(c_lat));\n data.setLongitude(Double.parseDouble(c_lon));\n }\n\n if (mMap != null) {\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.home);\n\n MarkerOptions markerOptions = new MarkerOptions().position(new LatLng(data.getLatitude(), data.getLongitude()))\n .title(\"\" + data.getFarmerName())\n .icon(icon);\n\n\n Marker mMarker = mMap.addMarker(markerOptions);\n if (mMarker != null) {\n\n Log.v(\"markerAddd\", \"Addedddd\");\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(data.getLatitude(), data.getLongitude()), 5));\n }\n data.setMarker(mMarker);\n }\n mandiArray.add(data);\n\n Log.v(\"contour\", \"-0\" + ss);\n } while (c1.moveToNext());\n }\n db.close();\n\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n\n }\n });\n\n // Setting a custom info window adapter for the google map\n mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {\n\n // Use default InfoWindow frame\n @Override\n public View getInfoWindow(Marker arg0) {\n return null;\n }\n\n // Defines the contents of the InfoWindow\n @Override\n public View getInfoContents(Marker arg0) {\n View v = getActivity().getLayoutInflater().inflate(R.layout.info_window, null);\n // Getting reference to the TextView to set latitude\n TextView tvLat = (TextView) v.findViewById(R.id.title);\n\n // Getting reference to the TextView to set longitude\n TextView tvLng = (TextView) v.findViewById(R.id.distance);\n System.out.println(\"Title : \" + arg0.getTitle());\n if (arg0.getTitle() != null && arg0.getTitle().length() > 0) {\n // Getting the position from the marker\n\n final String title = arg0.getTitle();\n\n db.open();\n Cursor c = db.getStateFromSelectedFarm(title);\n if (c.moveToFirst()) {\n do {\n AppConstant.stateID = c.getString(c.getColumnIndex(DBAdapter.STATE_ID));\n /* String contour = c.getString(c.getColumnIndex(DBAdapter.CONTOUR));\n getAtLeastOneLatLngPoint(contour);*/\n }\n while (c.moveToNext());\n }\n db.close();\n\n final String distance = arg0.getSnippet();\n tvLat.setText(title);\n tvLng.setText(distance);\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(title).\n setMessage(distance).\n setPositiveButton(\"Farm Data\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n dialogInterface.cancel();\n Intent intent = new Intent(getActivity(), NavigationDrawerActivity.class);\n intent.putExtra(\"calling-activity\", AppConstant.HomeActivity);\n intent.putExtra(\"FarmName\", title);\n\n startActivity(intent);\n getActivity().finish();\n\n\n }\n }).\n setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.cancel();\n }\n });\n builder.show();\n\n } else {\n // Setting the latitude\n tvLat.setText(String.valueOf(arg0.getPosition().latitude));\n // Setting the longitude\n tvLng.setText(String.valueOf(arg0.getPosition().longitude));\n }\n return v;\n }\n });\n\n\n }\n });\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\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 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}",
"public void prepareCamera() {\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n\n autoFocusHandler = new Handler();\n mCamera = getCameraInstance();\n\n /* Instance barcode scanner */\n scanner = new ImageScanner();\n scanner.setConfig(0, Config.X_DENSITY, 3);\n scanner.setConfig(0, Config.Y_DENSITY, 3);\n\n mPreview = new CameraPreview(this, mCamera, previewCb, autoFocusCB);\n\n cameraPreview.addView(mPreview);\n\n }",
"private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }",
"private void initData() {\n requestServerToGetInformation();\n }",
"private void initMapEngine() {\n String path = new File(m_activity.getExternalFilesDir(null), \".here-map-data\")\n .getAbsolutePath();\n // This method will throw IllegalArgumentException if provided path is not writable\n com.here.android.mpa.common.MapSettings.setDiskCacheRootPath(path);\n\n MapEngine.getInstance().init(new ApplicationContext(m_activity), new OnEngineInitListener() {\n @Override\n public void onEngineInitializationCompleted(Error error) {\n if (error == Error.NONE) {\n /*\n * Similar to other HERE Android SDK objects, the MapLoader can only be\n * instantiated after the MapEngine has been initialized successfully.\n */\n getMapPackages();\n } else {\n Log.e(TAG, \"Failed to initialize MapEngine: \" + error);\n new AlertDialog.Builder(m_activity).setMessage(\n \"Error : \" + error.name() + \"\\n\\n\" + error.getDetails())\n .setTitle(R.string.engine_init_error)\n .setNegativeButton(android.R.string.cancel,\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(\n DialogInterface dialog,\n int which) {\n m_activity.finish();\n }\n }).create().show();\n }\n }\n });\n }",
"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 }",
"protected void loadData(final Map<String, Object> values) {\n\t\tmodel.loadRecord(new SingleStaticDataSet(values));\n\t}",
"public void initialize()\r\n\t{\r\n\t\tdatabaseHandler = DatabaseHandler.getInstance();\r\n\t\tfillPatientsTable();\r\n\t}",
"private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}",
"private void initData() {\n\t\tpages = new ArrayList<WallpaperPage>();\n\n\t}",
"public void loadObjData() {\n this.updateGeometryAndUVs(SquareCoords, UVCoords, DrawOrder);\n SquareCoords = new float[0];\n UVCoords = new float[0];\n DrawOrder = new int[0];\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 init() {\n\t\tmap = new LinkedHashMap<String, HeaderData>();\r\n\t\tList<HeaderData> list = config.getColumns();\r\n\t\tfor(HeaderData info: list){\r\n\t\t\tString id = info.getId();\r\n\t\t\tif(id == null) throw new IllegalArgumentException(\"Null id found for \"+info.getClass().getName());\r\n\t\t\t// Map the id to info\r\n\t\t\tmap.put(info.getId(), info);\r\n\t\t}\r\n\t}",
"@PostConstruct\r\n public void init() {\n File database = new File(applicationProps.getGeodb());\r\n try {\r\n reader = new DatabaseReader.Builder(database).withCache(new CHMCache()).build();\r\n } catch (IOException e) {\r\n log.error(\"Error reading maxmind DB, \", e);\r\n }\r\n }",
"public void initializeWallpaper() {\n \t// if database not set\n\t\tSQLiteDatabase db = nodeData.getReadableDatabase();\n\t\t\n\t\tCursor cursor = db.query(EventDataSQLHelper.TABLE, null, null, null, null, null, null);\n\t\tstartManagingCursor(cursor);\n\t\twhile (cursor.moveToNext()) {\n\t\t\twallpapers.add(stringToNode(cursor.getString(1)));\n\t\t\tLog.d(\"Initialize\", \"Loading \" + cursor.getString(1));\n\t\t}\n\t\tcursor.close();\n\t\tdb.close();\n\t\tboolean empty = wallpapers.size() == 0;\n\t\tfillWallpaper();\n\t\tif (empty) {\n\t\t\tshowHelp(resetclick);\n\t\t} else {\n\t\t\tresetImages();\n\t\t}\n }",
"private void initData() {\n\t}",
"void fetchStartHousesData();",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n \tmMap = ((com.google.android.gms.maps.MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\n \t// Check if we were successful in obtaining the map.\n \tif (mMap != null) {\n \t\tmakeMarkers();\n \t\tloadMarkersFromParse();\n \t}\n }\n \n }",
"public void initDatabase() throws SQLException {\n\n ModelFactory factory = new ModelFactory(this.connection);\n\n StopsDao stopsData = factory.getStopsDao();\n\n ArrayList<Stop> stops = stopsData.getStopsFromCsv(getResource(\"stops.csv\"));\n\n Iterator<Stop> it = stops.iterator();\n while(it.hasNext()) {\n Stop stop = it.next();\n System.out.println(stop.toString());\n }\n\n\n /*\n ShapesDao shapesData = factory.getShapesDao();\n\n ArrayList<Shape> shapes = shapesData.getShapesFromCsv(getResource(\"shapes.csv\"));\n\n Iterator<Shape> it = shapes.iterator();\n while(it.hasNext()) {\n Shape shape = it.next();\n System.out.println(shape.toString());\n }\n\n CalendarDateDao calendarData = factory.getCalendarDatesDao();\n\n ArrayList<CalendarDate> agencies = calendarData.getCalendarDatesFromCsv(getResource(\"calendar_dates.csv\"));\n\n Iterator<CalendarDate> it = agencies.iterator();\n while(it.hasNext()) {\n CalendarDate date = it.next();\n System.out.println(date.toString());\n }\n\n AgencyDao agencyData = factory.getAgencyDao();\n agencyData.drop();\n agencyData.create();\n\n ArrayList<Agency> agencies = agencyData.getAgenciesFromCsv(getResource(\"agency.csv\"));\n\n Iterator<Agency> it = agencies.iterator();\n while(it.hasNext()) {\n Agency age = it.next();\n System.out.println(age.toString());\n agencyData.saveAgency(age);\n }\n\n RoutesDao routesDao = factory.getRouteDao();\n routesDao.drop();\n routesDao.create();\n\n ArrayList<Route> routes = routesDao.getRoutesFromCsv(getResource(\"routes.csv\"));\n\n Iterator<Route> it = routes.iterator();\n while(it.hasNext()) {\n Route route = it.next();\n System.out.println(route.toString());\n }*/\n }",
"@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}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n setInitialLocation(VehicleData.getLatitude(), VehicleData.getLongitude());\n }",
"public void load(){\n // Recover docIDs\n try(Reader reader = new FileReader(\"postings/docIDs.json\")){\n this.docIDs = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, String>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try(Reader reader = new FileReader(\"postings/docLengths.json\")){\n this.docLengths = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, Integer>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try(Reader reader = new FileReader(\"postings/titleToNumber.json\")){\n this.titleToNumber = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, Integer>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void processMetadataFromLoader() {\n\n int recordCount = mdi.readInt();\n\n long currentTime = System.currentTimeMillis();\n synchronized (entities) {\n clearOldTempIndexes(currentTime);\n\n for (int i = 0; i < recordCount; i++) {\n int tempIndex = mdi.readInt();\n assert DirectProtocol.isValidTempIndex(tempIndex);\n String symbol = mdi.readCharSequence().toString().intern();\n\n ConstantIdentityKey key;\n int entityIndex = entities.get(symbol, NOT_FOUND_VALUE);\n if (entityIndex == NOT_FOUND_VALUE) {\n entityIndex = entities.size();\n key = new ConstantIdentityKey(symbol);\n entities.put(key, entityIndex);\n } else {\n key = entities.getKeyObject(symbol);\n }\n\n // Note: key is guarantied to be same object as in \"entities\" field\n tempIndexes.put(tempIndex, key);\n\n sendMetadata(symbol, entityIndex);\n }\n if (recordCount > 0) {\n lastTempIndexAdded = currentTime;\n }\n }\n }"
]
| [
"0.6471614",
"0.63776994",
"0.63505834",
"0.634411",
"0.6227262",
"0.6130189",
"0.61156404",
"0.6081767",
"0.6025516",
"0.60186803",
"0.5967029",
"0.59167606",
"0.5909689",
"0.58611757",
"0.58112174",
"0.5790234",
"0.5769646",
"0.5752121",
"0.57469094",
"0.5743631",
"0.57130164",
"0.568745",
"0.5685269",
"0.5657712",
"0.5653182",
"0.5640069",
"0.5613445",
"0.5613303",
"0.55951256",
"0.558773",
"0.5577128",
"0.5572321",
"0.5565045",
"0.5563178",
"0.5555072",
"0.5553355",
"0.5543722",
"0.5543289",
"0.5543289",
"0.55417585",
"0.55396956",
"0.5538024",
"0.553646",
"0.55335724",
"0.5533368",
"0.5530119",
"0.55271345",
"0.5522318",
"0.5507819",
"0.5492497",
"0.54920757",
"0.54873526",
"0.5480554",
"0.5478876",
"0.5474262",
"0.5473971",
"0.5461614",
"0.5455869",
"0.5455869",
"0.54523283",
"0.54465526",
"0.54431677",
"0.5441798",
"0.54251844",
"0.54187906",
"0.54178",
"0.54166764",
"0.5413076",
"0.5413076",
"0.5404993",
"0.539877",
"0.5398671",
"0.53977233",
"0.5396705",
"0.5393785",
"0.53934276",
"0.5382903",
"0.53798836",
"0.53720915",
"0.53706026",
"0.53597426",
"0.5357366",
"0.53488064",
"0.53481376",
"0.5345395",
"0.53446454",
"0.5340848",
"0.53405046",
"0.53345644",
"0.5332892",
"0.53302956",
"0.5328958",
"0.53286576",
"0.53239274",
"0.5311267",
"0.5307032",
"0.530403",
"0.52959347",
"0.5294001",
"0.52897954",
"0.52857673"
]
| 0.0 | -1 |
Get locality from latlon | @Override
public void onMapLongClick(LatLng latLng) {
String newLocation = null;
Geocoder gcd = new Geocoder(getBaseContext(), Locale.getDefault());
List<Address> addresses = null;
try {
addresses = gcd.getFromLocation(latLng.latitude, latLng.longitude, 1);
} catch (IOException e) {
e.printStackTrace();
}
if (addresses.size() > 0) {
newLocation = addresses.get(0).getLocality();
}
// Set new marker attributes
MapLocation newMarker = new MapLocation();
newMarker.setLocation(newLocation);
newMarker.setLatitude(latLng.latitude);
newMarker.setLongitude(latLng.longitude);
// Add to firebase
FirebaseDatabase database = FirebaseDatabase.getInstance();
DatabaseReference dbRef = database.getReference();
DatabaseReference newRef = dbRef.push();
newRef.setValue(newMarker);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getLon();",
"public String myLocation(double latitude, double longitude){\n String myCity = \"\";\n Geocoder geocoder = new Geocoder(getActivity(), Locale.getDefault());\n List<Address> addressList ;\n try{\n addressList = geocoder.getFromLocation(latitude,longitude,1);\n\n if(addressList.size()>0){\n myCity = addressList.get(0).getLocality();\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n return myCity;\n }",
"public double getLon() {\n return lon;\n }",
"public double getLon() {\n return lon;\n }",
"public String getLocality(Context context, double latitude, double longitude, int maxAddresses) {\n List<Address> addresses = getGeocoderAddress(context, latitude, longitude, maxAddresses);\n\n if (addresses != null && addresses.size() > 0) {\n Address address = addresses.get(0);\n String locality = address.getLocality();\n\n return locality;\n }\n else {\n return null;\n }\n }",
"double getLongitude();",
"long getLongitude();",
"public int getLat();",
"int getLongitude();",
"private String getLocationName( double lat, double lon ) {\n\t\t//\n\t // Write the location name.\n\t //\n\t try {\n\t Geocoder geo = new Geocoder(this, Locale.getDefault());\n\t List<Address> addresses = geo.getFromLocation(lat, lon, 1);\n\t if (addresses.size() > 0) {\n\t \treturn addresses.get(0).getLocality();\n\t }\n\t }\n\t catch (Exception e) {\n\t e.printStackTrace(); \n\t }\n\t\treturn \"\";\n\t}",
"@Override\n public String getLon() {\n return lon;\n }",
"public float getLongitude() { return longitude; }",
"public double getLon() {\r\n\t\t\treturn lon;\r\n\t\t}",
"private String getCurrentCity(double lat, double longitude) {\n String currentCity = \"\";\n Geocoder geocoder = new Geocoder(this, Locale.getDefault());\n try {\n List<Address> addresses = geocoder.getFromLocation(lat,longitude,1);\n currentCity = addresses.get(0).getLocality();\n } catch(IOException e){\n e.printStackTrace();\n }\n return currentCity;\n }",
"Double getLongitude();",
"Double getLongitude();",
"public float getLongitudeValue (){\n return trackLon.getValue ();\n }",
"@Override\r\n\tpublic double getLon() {\n\t\treturn this.lon;\r\n\t}",
"public Coord addressToCoord(String localisation);",
"long getLatitude();",
"public io.envoyproxy.envoy.config.core.v3.Locality getLocality() {\n if (localityBuilder_ == null) {\n return locality_ == null ? io.envoyproxy.envoy.config.core.v3.Locality.getDefaultInstance() : locality_;\n } else {\n return localityBuilder_.getMessage();\n }\n }",
"double lon(long v) {\n return world.get(v).lon;\n }",
"public double getLongitude() {\n if (slon == GempakConstants.IMISSD) {\n return slon;\n }\n return slon / 100.;\n }",
"double lat(long v) {\n return world.get(v).lat;\n }",
"Double getLatitude();",
"Double getLatitude();",
"double getLatitude();",
"public String getLocality() {\r\n return locality;\r\n }",
"public Locus3f getLocus() {\r\n return locus;\r\n }",
"public Float getLongitude() {\n return longitude;\n }",
"public float getLongitude() {\n return longitude;\n }",
"int getLatitude();",
"@java.lang.Override\n public io.envoyproxy.envoy.config.core.v3.Locality getLocality() {\n return locality_ == null ? io.envoyproxy.envoy.config.core.v3.Locality.getDefaultInstance() : locality_;\n }",
"public Double z() {\n return this.f917a.getAsDouble(\"CFG_LOCATION_LATITUDE\");\n }",
"public float getLongitude() {\n return longitude;\n }",
"public float getLongitude() {\n return longitude;\n }",
"public String getLocation() {\n\t\treturn \"-12.9990189,-38.5140298\";\n\t}",
"@Override\r\n\tpublic List<Locality> getLocality() {\n\t\treturn customerdao.getLocality();\r\n\t}",
"@Override\n public ArrayList<ICatLocDetail> getLocalities() {\n return localities;\n }",
"public LatLng getLocation() {\n LocationManager locationManager = (LocationManager) getActivity().getSystemService(LOCATION_SERVICE);\n String locationProvider = LocationManager.NETWORK_PROVIDER;\n Location location = locationManager.getLastKnownLocation(locationProvider);\n\n Double lat,lon;\n try {\n lat = location.getLatitude();\n lon = location.getLongitude();\n return new LatLng(lat, lon);\n }\n catch (NullPointerException e){\n e.printStackTrace();\n return null;\n }\n\n\n\n }",
"public java.lang.String getListLatLon()\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(LISTLATLON$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public String getSubLocality(Context context, double latitude, double longitude, int maxAddresses) {\n List<Address> addresses = getGeocoderAddress(context, latitude, longitude, maxAddresses);\n\n if (addresses != null && addresses.size() > 0) {\n Address address = addresses.get(0);\n String locality = address.getSubLocality();\n\n return locality;\n }\n else {\n return null;\n }\n }",
"BigDecimal getWgs84Latitude();",
"IPGeolocationLevel getIPGeolocationLevel();",
"public GeoOrigin getGeoOrigin();",
"public double getLat() {\n return lat;\n }",
"public double getLat() {\n return lat;\n }",
"public double getLat() {\n return lat;\n }",
"public int getLocation()\r\n {\n }",
"BigDecimal getWgs84Longitude();",
"public double longitude() {\n return this.longitude;\n }",
"public double getLongitude() {\n return longitude_;\n }",
"public static float getLocY(double lon) {\n\t\treturn (float) ((lon - Graph.CENTRE_LON) * Graph.SCALE_LON * Graph.zoom);\n\t}",
"public double getLongitude() {\n return longitude;\n }",
"public double getLongitude() {\n return longitude;\n }",
"public double getLongitude() {\n return longitude;\n }",
"public double getLongitude() {\n return longitude;\n }",
"public String getLattitude(String lat) {\n String latt = null;\n latt = lat.substring(lat.lastIndexOf(\"(\") + 1, lat.indexOf(\",\"));\n return latt;\n }",
"public io.envoyproxy.envoy.config.core.v3.LocalityOrBuilder getLocalityOrBuilder() {\n if (localityBuilder_ != null) {\n return localityBuilder_.getMessageOrBuilder();\n } else {\n return locality_ == null ?\n io.envoyproxy.envoy.config.core.v3.Locality.getDefaultInstance() : locality_;\n }\n }",
"int getLngE6();",
"int getLngE6();",
"public Location getLocation(){\n\t\tWorld w = Bukkit.getWorld(worldName);\n\t\tif(w==null){\n\t\t\tSystem.out.println(\"Error, null world in Location from SQL\");\n\t\t\treturn null;\n\t\t}\n\t\treturn new Location(w, x+0.5, y, z+0.5);\n\t\t\n\t}",
"public Longitude getLongitude (){\n return trackLon;\n }",
"Location getLocation();",
"Location getLocation();",
"Location getLocation();",
"Location getLocation();",
"public void setLon(double value) {\n lon = value;\n }",
"public String getLongitude()\r\n {\r\n return longitude;\r\n }",
"private String getCurrentState(double lat, double longitude) {\n String currentState = \"\";\n Geocoder geocoder = new Geocoder(this, Locale.getDefault());\n try {\n List<Address> addresses = geocoder.getFromLocation(lat,longitude,1);\n currentState = addresses.get(0).getAdminArea();\n } catch(IOException e){\n e.printStackTrace();\n }\n return currentState;\n }",
"public String getLat() {\n return lat;\n }",
"public double getLongitude()\n {\n \treturn longitude;\n }",
"String getLocation();",
"String getLocation();",
"String getLocation();",
"public Double getLongitude() {\n return longitude;\n }",
"public Double getLongitude() {\n return longitude;\n }",
"public Double getLongitude() {\n return longitude;\n }",
"public Double getLongitude() {\n return longitude;\n }",
"LazyResponse<LocationBit> getLocation( double lon, double lat, double accuracy_in_meters);",
"public BigDecimal getLongitude() {\n return longitude;\n }",
"public double getLat() {\r\n\t\treturn lat;\r\n\t}",
"double lat(long v) {\n return nodes.get(v).lat;\n }",
"com.google.ads.googleads.v14.common.LocationInfo getLocation();",
"BigDecimal getWgs84EndingLatitude();",
"@java.lang.Override\n public io.envoyproxy.envoy.config.core.v3.LocalityOrBuilder getLocalityOrBuilder() {\n return getLocality();\n }",
"public double getStartLon() {\n\t\treturn startLon;\n\t}",
"double lon(long v) {\n return nodes.get(v).lon;\n }",
"public int getLongitude() {\n return longitude;\n }",
"public double getLatitude() { return coordinates.latitude; }",
"public LatLng getGeolocation() {\n\t\treturn LatLng.toLatLng(geolocation);\n\n\t}",
"boolean hasHasLongitude();",
"public double getLongitude_() { \n return longitude_; \n }",
"public String getLongitude() {\n return longitude;\n }",
"public String getLongitude() {\n return longitude;\n }",
"public double getLat() {\r\n\t\t\treturn lat;\r\n\t\t}",
"boolean hasLongitude();",
"boolean hasLongitude();",
"public String getlat() {\n\t\treturn lat;\n\t}",
"public double getLng() {\n return lng;\n }",
"public float getLatitudeValue (){\n return trackLat.getValue ();\n }"
]
| [
"0.68296903",
"0.67504317",
"0.66988707",
"0.66988707",
"0.65493786",
"0.65483755",
"0.65474737",
"0.6528833",
"0.65109783",
"0.64213717",
"0.6417757",
"0.64083743",
"0.64039075",
"0.6378548",
"0.6377984",
"0.6377984",
"0.635357",
"0.63505983",
"0.6304868",
"0.6304713",
"0.6293961",
"0.62228507",
"0.6217973",
"0.6215393",
"0.6200982",
"0.6200982",
"0.6178397",
"0.61718094",
"0.61519283",
"0.61241287",
"0.61240923",
"0.6113172",
"0.6042406",
"0.6035624",
"0.6021892",
"0.6021892",
"0.60163146",
"0.599142",
"0.59885615",
"0.59866333",
"0.59827477",
"0.596566",
"0.59466374",
"0.5942484",
"0.59209293",
"0.5891919",
"0.5891919",
"0.5891919",
"0.5873402",
"0.5867203",
"0.58623075",
"0.585845",
"0.5854172",
"0.5803403",
"0.5803403",
"0.5803403",
"0.5803403",
"0.57979155",
"0.57913065",
"0.57778794",
"0.57778794",
"0.57741237",
"0.5773899",
"0.57725596",
"0.57725596",
"0.57725596",
"0.57725596",
"0.5768634",
"0.5764919",
"0.57638377",
"0.5762216",
"0.5756921",
"0.57506543",
"0.57506543",
"0.57506543",
"0.5749778",
"0.5749778",
"0.5749778",
"0.5749778",
"0.5734207",
"0.5727296",
"0.5722114",
"0.5716503",
"0.57138604",
"0.57121485",
"0.57118565",
"0.5703875",
"0.56904334",
"0.56734914",
"0.5668813",
"0.5664522",
"0.56557554",
"0.56548184",
"0.56541777",
"0.56541777",
"0.56365556",
"0.5625851",
"0.5625851",
"0.5625761",
"0.56228375",
"0.5622644"
]
| 0.0 | -1 |
If FALSE, when the map should have the standard behavior (based on the android framework) When the marker is clicked, it wil focus / centralize on the specific point on the map and show the InfoWindow. IF TRUE, a new behavior needs to be specified in the source code. However, you are not required to change the behavior for this method. | @Override
public boolean onMarkerClick(Marker marker) {
Log.i(LOG_MAP, "setOnMarkerClickListener");
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onMarkerClick(Marker marker) {\n //Cuando se presiona un marker, se abre la ventana de info (default)\n marker.showInfoWindow();\n return true;\n }",
"@Override\n public boolean onMarkerClick(Marker marker) {\n\n Integer markerId = markers.get(marker);\n LatLng latLng = marker.getPosition();\n OnMarkerClick(markerId, latLng.latitude, latLng.longitude);\n\n // We return false to indicate that we have not consumed the event and that we wish\n // for the default behavior to occur (which is for the camera to move such that the\n // marker is centered and for the marker's info window to open, if it has one).\n return false;\n }",
"@Override\n public boolean onMarkerClick(final Marker marker) {\n // Return false to indicate that we have not consumed the event and that we wish\n // for the default behavior to occur (which is for the camera to move such that the\n // marker is centered and for the marker's info window to open, if it has one).\n Toast.makeText(mContext, \"onMarkerClick called\", Toast.LENGTH_SHORT).show();\n\n return false;\n }",
"protected boolean onMarkerClickDefault(Marker marker, MapView mapView) {\n\t\tmarker.showInfoWindow();\n\t\tif (marker.mPanToView)\n\t\t\tmapView.getController().animateTo(marker.getPosition());\n\t\treturn true;\n\t}",
"@Override\n public void onInfoWindowClick(Marker marker) {\n\n if (Config.CEK_KONEKSI(ListDealerMaps.this)) {\n if (markerAccessMapping.get(marker).equals(\"1\")) {\n Intent resultIntent = new Intent();\n resultIntent.putExtra(Config.DISP_KD_DEALER, markerIdMapping.get(marker));\n resultIntent.putExtra(Config.DISP_COY_DEALER, markerCoyMapping.get(marker));\n resultIntent.putExtra(Config.DISP_NAMA_DEALER, marker.getTitle());\n setResult(Activity.RESULT_OK, resultIntent);\n finish();\n }else{\n Toast.makeText(ListDealerMaps.this, Config.ALERT_ONLY_VIEW, Toast.LENGTH_SHORT).show();\n }\n } else {\n showDialog(Config.TAMPIL_ERROR);\n }\n\n }",
"@Override\n\t\t\tpublic void onInfoWindowClick(Marker marker) {\n\t\t\t}",
"@Override\n public void onMapClick(LatLng latLng) {\n if(findViewById(R.id.marker_window).getVisibility() == View.VISIBLE){\n findViewById(R.id.marker_window).setVisibility(View.INVISIBLE);\n setIconListVisibility(true);\n }else{\n if (!firstMapTouch) {\n Toast.makeText(getApplicationContext(), R.string.maps_onmapclick, Toast.LENGTH_SHORT).show();\n firstMapTouch = true;\n }\n }\n }",
"@Override\n public void onMapClick(LatLng arg0) {\n mBaiduMap.hideInfoWindow();\n if (window != null) {\n window.showAtLocation(search, Gravity.BOTTOM, 0, 0);\n }\n }",
"@Override\n public void onMapClick(LatLng latLng) {\n System.out.println(\"The map was clicked\");\n if(lineSelected == true) {\n resetInfoBox();\n }\n }",
"@Override\n public void onInfoWindowClick(Marker marker) {\n Integer markerId = markers.get(marker);\n InfoWindowClicked(markerId);\n }",
"@Override\n public boolean onMarkerClick(Marker marker) {\n Toast.makeText(CameraInfoActivity.this,\"点击布点\",Toast.LENGTH_SHORT).show();\n return true;\n }",
"@Override\n\t\t\t\t\tpublic void onInfoWindowClick(Marker marker) {\n\t\t\t\t\t\tLog.d(\"ASD\", marker.getTitle());\n\t\t\t\t\t\tString markerItemId = infoList.get(marker.getTitle());\n\t\t\t\t\t\tonMapWindwosClick(markerItemId, marker.getTitle());\n\t\t\t\t\t}",
"protected boolean onClickDefault(Polyline polyline, MapView mapView, GeoPoint eventPos) {\n\t\tpolyline.showInfoWindow(eventPos);\n\t\treturn true;\n\t}",
"@Override\n\tpublic void onInfoWindowClick(Marker marker) {\n\t\tString url = \"http://maps.google.com/maps?daddr=\"+marker.getPosition().latitude+\",\"+marker.getPosition().longitude+\"&dirflg=w\";\n\t\tIntent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(url));\n\t\tintent.setClassName(\"com.google.android.apps.maps\", \"com.google.android.maps.MapsActivity\");\n\t\tstartActivity(intent);\n\t}",
"@Override\n public boolean onMarkerClick(Marker marker) {\n layoutManager.smoothScrollToPosition(recyclerView, null, stationList.indexOf(main.stationMap.get(marker.getTag())));\n centreOnStation(main.stationMap.get(marker.getTag()), true);\n return true;\n }",
"@Override\n public View getInfoContents(Marker marker) {\n infoWindow = getLayoutInflater().inflate(R.layout.custom_info_contents,\n (FrameLayout) findViewById(R.id.map), false);\n\n title = ((TextView) infoWindow.findViewById(R.id.title));\n title.setText(place.getAddress());\n\n snippet = ((TextView) infoWindow.findViewById(R.id.snippet));\n snippet.setText(place.getLatLng().latitude + \",\" + place.getLatLng().longitude);\n\n clickhere = ((TextView) infoWindow.findViewById(R.id.tvClickHere));\n clickhere.setText(R.string.click_here);\n\n googleMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n Intent intent = new Intent(MapActivity.this, MoreOptionsActivity.class);\n if (source == null) {\n source = new LatLng(mDefaultLocation.latitude, mDefaultLocation.longitude);\n }\n if (destination == null) {\n destination = source;\n }\n\n intent.putExtra(\"source_Latitude\", source.latitude);\n intent.putExtra(\"source_Longitude\", source.longitude);\n\n intent.putExtra(\"dest_Latitude\", destination.latitude);\n intent.putExtra(\"dest_Longitude\", destination.longitude);\n\n intent.putExtra(\"title\", place.getAddress());\n intent.putExtra(\"place_selection\", place_selection_flag);\n\n startActivity(intent);\n\n }\n });\n\n return infoWindow;\n }",
"@Override\n\t\t\t\tpublic boolean onMarkerClick(Marker arg0) {\n\t\t\t\t\t\n\t\t\t\t\tfor(final PoiInfo poiInfo:AppContext.listmap){\n\t\t\t\t\t\tif(poiInfo.location.latitude==arg0.getPosition().latitude&&poiInfo.location.longitude==arg0.getPosition().longitude){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tView mView = LayoutInflater.from(ZhouBianYaodian.this).inflate(R.layout.map_massage_data, null);\n\t\t\t\t\t\t\tTextView dataname=(TextView) mView.findViewById(R.id.txt_map_name);\n\t\t\t\t\t\t\tTextView address=(TextView)mView. findViewById(R.id.txt_map_address);\n\t\t\t\t\t\t\tImageView imageView=(ImageView)mView. findViewById(R.id.map_image_call); \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tdataname.setText(poiInfo.name==null?\"\":poiInfo.name);\n\t\t\t\t\t\t\t\taddress.setText(poiInfo.address==null?\"\":poiInfo.address);\n\t\t\t\t\t\t\t\tif(poiInfo.phoneNum!=null&&!poiInfo.phoneNum.equals(\"\")){\n\t\t\t\t\t\t\t\t\timageView.setVisibility(ImageView.VISIBLE);\n\t\t\t\t\t\t\t\t\timageView.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t\t\tIntent intent = new Intent(Intent.ACTION_DIAL, Uri\n\t\t\t\t\t\t\t\t\t\t\t\t\t.parse(\"tel:\" + poiInfo.phoneNum));\n\t\t\t\t\t\t\t\t\t\t\tLog.d(\"测试数据\", poiInfo.phoneNum);\n\t\t\t\t\t\t\t\t\t\t\tstartActivity(intent);\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\tmInfoWindow= new InfoWindow(mView,arg0.getPosition(), -47);\n\t\t\t\t\t\t\tmBaiduMap.showInfoWindow(mInfoWindow);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n //setOnInfoWindowClick listener\n mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n if(markerOnClick.get(marker).isItUserMarker()) {\n Intent intent = new Intent(MainActivity.this, FriendProfileActivity.class);\n intent.putExtra(\"friendID\", markerOnClick.get(marker).getID());\n startActivity(intent);\n }else{\n Intent intent = new Intent(MainActivity.this, AnswerTheQuestionActivity.class);\n intent.putExtra(\"questionID\", markerOnClick.get(marker).getID());\n intent.putExtra(\"userID\", user.getId());\n startActivityForResult(intent,ANSWER_THE_QUESTION_ACTIVITY_REQUSET_CODE);\n }\n }\n });\n restoreCurrentLocation();\n }",
"@Override\n public View getInfoWindow(Marker marker) {\n\n if(shownMarker!=null&&shownMarker.isInfoWindowShown()){\n shownMarker.hideInfoWindow();\n shownMarker.showInfoWindow();\n\n }\n\n return null;\n }",
"@Override\n public void onMapClick(LatLng latLng) {\n showMarkerButtons(false);\n current_number=\"\";\n markerClickflag=false;\n }",
"public void click(final Marker marker) {\n final long start = SystemClock.uptimeMillis();\n final long duration = 1500L;\n animbounce=true;\n\n\n //if(!animbounce){\n // animbounce=true;\n // Cancels the previous animation\n mHandler.removeCallbacks(mAnimation);\n // Starts the bounce animation\n mAnimation = new MapView.BounceAnimation(start, duration, marker, mHandler);\n mHandler.post(mAnimation);\n //}\n // Cancels the previous animation\n //mHandler.removeCallbacks(mAnimation);\n\n // for the default behavior to occur (which is for the camera to move such that the\n // marker is centered and for the marker's info window to open, if it has one).\n //return false;\n //return true;\n }",
"@Override\n public boolean onMarkerClick(final Marker marker) {\n final long start = SystemClock.uptimeMillis();\n final long duration = 1500L;\n\n // Cancels the previous animation\n mHandler.removeCallbacks(mAnimation);\n\n // Starts the bounce animation\n mAnimation = new MapView.BounceAnimation(start, duration, marker, mHandler);\n mHandler.post(mAnimation);\n // for the default behavior to occur (which is for the camera to move such that the\n // marker is centered and for the marker's info window to open, if it has one).\n return true;\n }",
"private void focus() {\n getMapRef().animateCamera(CameraUpdateFactory.newLatLngZoom(\n newHazard.getLatLong(), FOCUS_ZOOM));\n switch (newHazard.getTitle()) {\n case \"Road Works\" :\n getMapRef().addMarker(new MarkerOptions()\n .position(newHazard.getLatLong())\n .flat(true)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_warning_orange_24dp)));\n break;\n case \"Pothole\" :\n getMapRef().addMarker(new MarkerOptions()\n .position(newHazard.getLatLong())\n .flat(true)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_move_to_inbox_orange_24dp)));\n break;\n case \"Road Closure\" :\n getMapRef().addMarker(new MarkerOptions()\n .position(newHazard.getLatLong())\n .flat(true)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_directions_car_orange_24dp)));\n break;\n case \"Flooding\" :\n getMapRef().addMarker(new MarkerOptions()\n .position(newHazard.getLatLong())\n .flat(true)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_pool_orange_24dp)));\n break;\n case \"Traffic Accident\" :\n getMapRef().addMarker(new MarkerOptions()\n .position(newHazard.getLatLong())\n .flat(true)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_directions_car_orange_24dp)));\n break;\n case \"Broken Glass\" :\n getMapRef().addMarker(new MarkerOptions()\n .position(newHazard.getLatLong())\n .flat(true)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_local_bar_orange_24dp)));\n break;\n default :\n getMapRef().addMarker(new MarkerOptions()\n .position(newHazard.getLatLong())\n .flat(true)\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_error_orange_24dp)));\n break;\n }\n\n }",
"@Override\n public void onMapClick(LatLng latLng) {\n rvTencentMapViewMessage.setVisibility(View.GONE);\n rlyTencentMapViewCollect.setVisibility(View.GONE);\n handler.removeCallbacks(runnable);\n InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);\n View v = getWindow().peekDecorView();\n if (null != v) {\n imm.hideSoftInputFromWindow(v.getWindowToken(), 0);\n }\n\n rlyTencentMapViewBaiTang.setVisibility(View.GONE);\n if(markers != null){\n markers.remove();\n latLng1 = orginalLng;\n }\n if(scaleMarker != null){\n Animation scaleAnimation2 = new ScaleAnimation((float)1.36,(float) 1,(float)1.36,(float)1);\n scaleAnimation2.setDuration(100);\n scaleMarker.setAnimation(scaleAnimation2);\n scaleMarker.startAnimation();\n scaleMarker = null;\n// scaleMarker.refreshInfoWindow();\n// scaleMarker.setFastLoad(true);\n }\n\n// marker.setIcon(BitmapDescriptorFactory.fromBitmap(getBitMap(R.mipmap.booth,40,40)));\n }",
"@Override\r\n public boolean onTap(GeoPoint arg0, MapView arg1) {\n if(getMyLocation()!=null){\r\n int size = 30;\r\n Point out=new Point();\r\n mMapView.getProjection().toPixels(getMyLocation(), out); \r\n Rect rect = new Rect(out.x-size,out.y-size,out.x+size,out.y+size);\r\n mMapView.getProjection().toPixels(arg0, out);\r\n if(rect.contains(out.x, out.y)){\r\n //Log.e(\"MyLocation\", \"click my location \");\r\n mPopView.setVisibility(View.GONE);\r\n MapView.LayoutParams params = (MapView.LayoutParams) mPopView.getLayoutParams();\r\n params.x = 0;// Y轴偏移\r\n params.y = -5;// Y轴偏移\r\n GeoPoint point = getMyLocation().e();\r\n params.point = point;\r\n //mMapCtrl.animateTo(point);\r\n mMapView.updateViewLayout(mPopView, params);\r\n mPopView.setVisibility(View.VISIBLE);\r\n }else{\r\n mPopView.setVisibility(View.GONE) ; \r\n }\r\n }\r\n return super.onTap(arg0, arg1);\r\n }",
"@Override\n public boolean onMarkerClick(Marker marker) {\n if (Objects.equals(marker.getTag(), true)) {\n Toast.makeText(MapsActivity.this,\n \"Own marker\", Toast.LENGTH_SHORT).show();\n } else {\n try {\n showDetails(marker);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n return true;\n }",
"@Override\n\t\t\tpublic void onMapClick(LatLng arg0) {\n\t\t\t\tfinal LatLng location = arg0;\n \tAlertDialog builder = new AlertDialog.Builder(MainActivity.this)\n\t .setMessage(\"Do you want to add your location here?\")\n\t .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t \t setFlag = true;\n\t \t myLocation = location;\n\t \t //use this flag to indicate that we want to see the path from current location or a set point\n\t \t Log.d(\"my location:\", \"\"+myLocation.latitude + myLocation.longitude);\n\t \t if(setFlag == true){\n\t \t\t if(myMarker != null){\n\t\t \t\t myMarker.remove();\n\t\t \t }\n\t\t \t myMarker = mMap.addMarker(new MarkerOptions().position(myLocation).title(\"myLocation\").draggable(true)\n\t\t \t\t\t\t\t\t.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE)));\n\t\t \t\t\t\t landmarks.addMarker(\"myLocation\", myMarker);\n\t \t } \n\t }\n\t })\n\t .setNegativeButton(\"Not now\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t // User cancelled the dialog\n\t }\n\t }).create();\n \tbuilder.show();\n\t\t\t}",
"public void showInfoWindow(){\n\t\tif (mInfoWindow == null)\n\t\t\treturn;\n\t\tfinal int markerWidth = mIcon.getIntrinsicWidth();\n\t\tfinal int markerHeight = mIcon.getIntrinsicHeight();\n\t\tfinal int offsetX = (int)(markerWidth * (mIWAnchorU - mAnchorU));\n\t\tfinal int offsetY = (int)(markerHeight * (mIWAnchorV - mAnchorV));\n\t\tif (mBearing == 0) {\n\t\t\tmInfoWindow.open(this, mPosition, offsetX, offsetY);\n\t\t\treturn;\n\t\t}\n\t\tfinal int centerX = 0;\n\t\tfinal int centerY = 0;\n\t\tfinal double radians = -mBearing * Math.PI / 180.;\n\t\tfinal double cos = Math.cos(radians);\n\t\tfinal double sin = Math.sin(radians);\n\t\tfinal int rotatedX = (int)RectL.getRotatedX(offsetX, offsetY, centerX, centerY, cos, sin);\n\t\tfinal int rotatedY = (int)RectL.getRotatedY(offsetX, offsetY, centerX, centerY, cos, sin);\n\t\tmInfoWindow.open(this, mPosition, rotatedX, rotatedY);\n\t}",
"@Override\n\t\t\tpublic boolean onMyLocationButtonClick() {\n\t\t\t\tsupportClassObj.fitInMap(parentActivity.getItinerary(), googlemap, parentActivity);\n\t\t\t\treturn true;\n\t\t\t}",
"@Override\n public void onInfoWindowClick(Marker marker) {\n makeText(this, \"Info window clicked\",\n LENGTH_SHORT).show();\n marker.getTag();\n marker.getTitle();\n marker.getId();\n\n }",
"@Override\n\t\t\t\tpublic void onMapClick(LatLng arg0) {\n\t\t\t\t\tgoogleMap.clear();\n\n\t\t\t\t\t// Creating an instance of MarkerOptions to set position\n\t\t\t\t\t// MarkerOptions markerOptions = new MarkerOptions();\n\n\t\t\t\t\t// Setting position on the MarkerOptions\n\t\t\t\t\tmarker.position(arg0);\n\n\t\t\t\t\t// Animating to the currently touched position\n\t\t\t\t\tgoogleMap.animateCamera(CameraUpdateFactory.newLatLng(arg0));\n\n\t\t\t\t\t// Adding marker on the GoogleMap\n\t\t\t\t\tMarker marker1 = googleMap.addMarker(marker);\n\n\t\t\t\t\t// Showing InfoWindow on the GoogleMap\n\t\t\t\t\tmarker1.showInfoWindow();\n\t\t\t\t}",
"@Override\n public boolean onMarkerClick(final Marker marker) {\n\n // Recupera la información del marcador\n Integer marcadorId = (Integer) marker.getTag();\n\n //le pasa el nombre del punto punto00...punto99\n if (marcadorId<10){\n intent.putExtra(\"puntoId\", \"punto0\"+marcadorId);\n startActivity(intent);\n }\n else{\n intent.putExtra(\"puntoId\", \"punto\"+marcadorId);\n startActivity(intent);\n }\n\n // Return false to indicate that we have not consumed the event and that we wish\n // for the default behavior to occur (which is for the camera to move such that the\n // marker is centered and for the marker's info window to open, if it has one).\n return false;\n }",
"@Override\n\t\t\tpublic void onInfoWindowClick(Marker arg0) {\n\t\t\t\tString id = arg0.getTitle();\n\t\t\t\t\n\t\t\t\tif(id.startsWith(\"Dis\") || id.startsWith(\"my\")){\n\t\t\t\t\tif(id.startsWith(\"Dis\")){\n\t\t\t\t\t\t AlertDialog dialog = new AlertDialog.Builder(MainActivity.this).setTitle(\"Warning\")\n\t\t\t\t\t .setMessage(\"Please select a right victim!!!\")\n\t\t\t\t\t .setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t\t\t \t // finish();\n\t\t\t\t }\n\t\t\t\t }).create();\n\t\t\t\t\t dialog.show();\n\t\t\t\t\t\t}\n\t\t\t\t\tif(id.startsWith(\"my\")){\n\t\t\t\t\t\tmyLocation = arg0.getPosition();\n\t\t\t\t AlertDialog dialog = new AlertDialog.Builder(MainActivity.this)\n\t\t\t\t .setMessage(\"Do you what to update your current location?\")\n\t\t\t\t .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\t\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t\t \t setFlag = false;\n\t\t\t }\n\t\t\t })\n\t\t\t .setNegativeButton(\"Not now\", new DialogInterface.OnClickListener() {\n\t\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t\t \t \n\t\t\t }\n\t\t\t }).create();\n\t\t\t\t dialog.show();\n\t\t\t\t\t\t}\t\n\t\t\t\t}else{\n\t\t\t\t\tvicLocation = arg0.getPosition();\n\t\t\t\t\tfinal String PoVictim = readOneVictim(id);\n\t\t\t\t\tLog.d(\"victim infomtion:\",PoVictim);\n\t\t\t AlertDialog dialog = new AlertDialog.Builder(MainActivity.this)\n\t\t\t .setMessage(\"What do you want to do with this victim?\")\n\t\t\t .setNegativeButton(\"Edit/Delect Victim\", new DialogInterface.OnClickListener() {\n\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t \t EditVictim(PoVictim);\n\t\t }\n\t\t })\n\t\t .setPositiveButton(\"Find THIS Victim\", new DialogInterface.OnClickListener() {\n\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t \t //String[] PoVIF = PoVictim.split(\",\");\n\t\t \t vicFlag = true;\n\t\t \t //LatLng vic = new LatLng(42.39398619218224,-72.52872716635466);\n\t\t \t if(vicLocation != null && myLocation != null){\n\t\t \t\t if(wayList != null){\n\t\t \t\t\t wayList.clear();\n\t\t \t\t }\n\t\t \t\t \n\t\t \t\t if(indoorFlag){ //when isindoor return true\n\t\t \t\t\t wayList = findOneVictim(myLocation, vicLocation);\n\t\t \t\t\t if(wayList != null){\n\t\t \t\t\t\t getPath();\n\t\t \t\t\t\t}\n\t\t \t\t }else{\n\t\t \t\t\t LatLng door = getNearestDoor(vicLocation);\n\t\t \t\t\t //get the first part outdoor path \n\t\t \t\t\t findDirections(myLocation.latitude,myLocation.longitude,door.latitude,door.longitude,GMapV2Direction.MODE_DRIVING );\n\t\t \t\t\t //wayList.addAll(findOneVictim(door, vicLocation));\n\t\t \t\t } \n\t\t \t }\n\t\t }\n\t\t }).create();\n\t\t\t dialog.show();\n\t\t\t\t}\t\n\t\t\t}",
"@Override\n public View getInfoContents(final Marker marker) {\n infoWindow = getLayoutInflater().inflate(R.layout.custom_info_contents,\n (FrameLayout) findViewById(R.id.map), false);\n\n title = ((TextView) infoWindow.findViewById(R.id.title));\n title.setText(marker.getTitle());\n\n snippet = ((TextView) infoWindow.findViewById(R.id.snippet));\n snippet.setText(marker.getSnippet());\n\n clickhere = ((TextView) infoWindow.findViewById(R.id.tvClickHere));\n clickhere.setText(R.string.click_here);\n\n googleMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n Intent intent = new Intent(MapActivity.this, MoreOptionsActivity.class);\n if (source == null) {\n source = new LatLng(mDefaultLocation.latitude, mDefaultLocation.longitude);\n }\n if (destination == null) {\n destination = source;\n }\n\n intent.putExtra(\"source_Latitude\", source.latitude);\n intent.putExtra(\"source_Longitude\", source.longitude);\n\n intent.putExtra(\"dest_Latitude\", destination.latitude);\n intent.putExtra(\"dest_Longitude\", destination.longitude);\n\n intent.putExtra(\"title\", marker.getTitle());\n\n startActivity(intent);\n\n }\n });\n\n return infoWindow;\n }",
"@Override\n\tpublic void onInfoWindowClick(Marker marker)\n\t{\n\t\tString id = marker.getId();\n\t\tid = id.substring(1);\n\n\t\tmyLocation = new LatLng(map.getMyLocation().getLatitude(), map.getMyLocation().getLongitude());\n\n\t\tif (myLocation != null)\n\t\t{\n\t\t\tBundle bundle = new Bundle();\n\t\t\tbundle.putString(KEY_NAMA, listTempatMakan.get(Integer.parseInt(id)).getNama());\n\t\t\tbundle.putString(KEY_ALAMAT, listTempatMakan.get(Integer.parseInt(id)).getAlamat());\n\t\t\tbundle.putDouble(KEY_LAT_TUJUAN, marker.getPosition().latitude);\n\t\t\tbundle.putDouble(KEY_LNG_TUJUAN, marker.getPosition().longitude);\n\t\t\tbundle.putDouble(KEY_LAT_ASAL, myLocation.latitude);\n\t\t\tbundle.putDouble(KEY_LNG_ASAL, myLocation.longitude);\n\n\t\t\tIntent i = new Intent(MainActivity.this, InfoTempatMakanActivity.class);\n\t\t\ti.putExtras(bundle);\n\t\t\tstartActivity(i);\n\n\t\t} else\n\t\t{\n\t\t\tToast.makeText(this, \"Tidak dapat menemukan lokasi anda \", Toast.LENGTH_LONG).show();\n\t\t}\n\t}",
"public void onInfoWindowClick(Marker marker2) {\n\n AlertDialog.Builder builder2 = new AlertDialog.Builder(Detalles.this);\n builder2.setTitle(\"Epicent\");\n builder2.setMessage(\"Referencia : \" +\"ddddddd\" +\"\\n\" +\n \"Fecha local : \" + \"ccccccc\" +\"\\n\" +\n \"Hora local : \" + \"ccccccc\"+ \"\\n\" +\n \"Profundidad : \" + \"ccccccc\"+\" km\"+ \"\\n\" +\n \"Intensidad : \" + \"ccccccc\"+ \"\\n\" +\n \"Magnitud : \" + \"ccccccc\"+ \"\\n\" +\n \"Ubicación : \" + \"ccccccc\"+ \", \" + \"ccccccc\");\n builder2.setNegativeButton(\"Cerrar\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog2, int which) {\n dialog2.cancel();\n }\n });\n\n builder2.setCancelable(true);\n builder2.create().show();\n\n }",
"@Override\n public void onCameraMove() {\n if(!markerClickflag)\n showMarkerButtons(false);\n }",
"@Override\n\tpublic boolean onMarkerClick(Marker marker) {\n\t\tImageView imageView = ((ImageView) infobox.findViewById(R.id.loaded_image));\n\t\t\n//\t\t title.setText( marker.getTitle() );\n\t\t \n\t\t // load the image\n//\t\t imageLoader.displayImage( protestMap.get( marker.getId() ).getImageUrl(), imageView, new SimpleImageLoadingListener() {\n//\t\t @Override\n//\t\t public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n//\t\t super.onLoadingComplete(imageUri, view, loadedImage);\n//\t\t getInfoContents(marker);\n//\t\t }\n//\t\t });\n//\t\t \n \timageLoader.displayImage( protestMap.get( marker.getId() ).getImageUrl(), imageView);\n\t\t\n\t\t// if the Infobox is already showing hide it \n if( infobox.isShown() )\n \tinfobox.setVisibility(LinearLayout.GONE);\n // else show it\n else\n \tinfobox.setVisibility(LinearLayout.VISIBLE);\n\t\treturn false;\n\t}",
"@Override\n public void onMapClick(LatLng latLng) {\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(latLng);\n\n String address = getMarkerAddress(latLng);\n //if there is a valid address associated with marker\n if (address != null) {\n markerOptions.title(address);\n }\n mMap.clear();\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 15));\n mMap.addMarker(markerOptions);\n markerPlaced = true;\n lat = latLng.latitude;\n lon = latLng.longitude;\n }",
"@Override\n public void onMapClick(LatLng latLng) {\n AlertDialog.Builder builder = new AlertDialog.Builder(MapsActivity.this);\n //Set the title of the dialog.\n builder.setTitle(\"Create a new Marker\");\n\n final LatLng markerPoint = latLng;\n\n // Set up the input\n final EditText input = new EditText(MapsActivity.this);\n // Specify the type of input expected; this, for example, sets the input as a password, and will mask the text\n input.setInputType(InputType.TYPE_CLASS_TEXT);\n builder.setView(input);\n\n // Set up the buttons\n builder.setPositiveButton(\"Create\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Create a new marker with the Latitude and Longitude of the click event.\n MarkerOptions marker = new MarkerOptions().position(\n new LatLng(markerPoint.latitude, markerPoint.longitude)).title(input.getText().toString());\n mMap.addMarker(marker);\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Cancel\n dialog.cancel();\n }\n });\n\n builder.show();\n\n }",
"@Override\n public void onMapReady(final GoogleMap googleMap) {\n\n this.googleMap = googleMap;\n\n\n // Use a custom info window adapter to handle multiple lines of text in the\n // info window contents.\n googleMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {\n\n @Override\n // Return null here, so that getInfoContents() is called next.\n public View getInfoWindow(Marker arg0) {\n return null;\n }\n\n @Override\n public View getInfoContents(final Marker marker) {\n // Inflate the layouts for the info window, title and snippet.\n infoWindow = getLayoutInflater().inflate(R.layout.custom_info_contents,\n (FrameLayout) findViewById(R.id.map), false);\n\n title = ((TextView) infoWindow.findViewById(R.id.title));\n title.setText(marker.getTitle());\n\n snippet = ((TextView) infoWindow.findViewById(R.id.snippet));\n snippet.setText(marker.getSnippet());\n\n clickhere = ((TextView) infoWindow.findViewById(R.id.tvClickHere));\n clickhere.setText(R.string.click_here);\n\n googleMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n Intent intent = new Intent(MapActivity.this, MoreOptionsActivity.class);\n if (source == null) {\n source = new LatLng(mDefaultLocation.latitude, mDefaultLocation.longitude);\n }\n if (destination == null) {\n destination = source;\n }\n\n intent.putExtra(\"source_Latitude\", source.latitude);\n intent.putExtra(\"source_Longitude\", source.longitude);\n\n intent.putExtra(\"dest_Latitude\", destination.latitude);\n intent.putExtra(\"dest_Longitude\", destination.longitude);\n\n intent.putExtra(\"title\", marker.getTitle());\n\n startActivity(intent);\n\n }\n });\n\n return infoWindow;\n }\n });\n\n // Turn on the My Location layer and the related control on the map.\n updateLocationUI();\n\n // Get the current location of the device and set the position of the map.\n getDeviceLocation();\n\n }",
"@Override\n public void onInfoWindowClick(Marker marker) {\n return;\n// openTimesheetInfo(marker.getTitle());\n }",
"@Override\n\t\tpublic void onClick(View v) {\n\t \tif(v==begin2){\n\t \t\tbegin2.setVisibility(0x00000004);\n\t \t\tbeginedit.setFocusable(false); \n\t \t\tisbbegin = false;\n\t \t\tisbend = false;\n\t \t}\n\t \telse if(v==begin){\n\t\t\t\tisbbegin = true;\n\t\t\t\tisbend = false;\n\t\t\t\tbeginedit.setFocusable(true); \n\t\t\t\tbegin2.setOnClickListener(this);\n\t \tSystem.out.println(\"iiiiiiiiiiiiiionclick\");\n\t\t\t\t//begin.setVisibility(0x00000004);\n\t\t\t\tbegin2.setVisibility(0x00000000);\n\n\t \tSystem.out.println(\"iiiiiiiiiiiiiisetvisible\");\n\t\t\t\tMKMapTouchListener mapTouchListener = new MKMapTouchListener(){ \n\t\t\t @Override \n\t\t\t public void onMapClick(GeoPoint point) { \n\t\t\t \t\n\t\t\t \tif(isbbegin){//如果是选择起点的时候,则设置起点经纬度\n\t\t\t \t\tSlatitude = point.getLatitudeE6();\n\t\t\t \t\tSlongtitude = point.getLongitudeE6();\n\t\t\t \t}\n\t\t\t \tif(isbend){//如果是选择终点的时候,则设置终点的经纬度\n\t\t\t \t\tDlatitude = point.getLatitudeE6();\n\t\t\t \t\tDlongtitude = point.getLongitudeE6();\n\t\t\t \t}\n\t\t\t \tSystem.out.println(\"iiiiiiiiiiiiiimapclick\");\n\t\t\t //在此处理地图单击事件 \n\t\t\t \tString ads=getLocationAddress(point);\n\t\t\t \tif(ads==\"\"){\n\t\t\t \t\tads=\"无具体地址,坐标:(\"+point.getLatitudeE6()+\",\"+point.getLongitudeE6()+\")\";\n\t\t\t \t}\n\t\t\t \tbeginedit.setText(ads.toCharArray(), 0, ads.length()); \n\t\t\t \tSystem.out.println(\"iiiiiiiiiiiiiisettext\");\n\t\t\t \tbegin2.setVisibility(0x00000004);\n\t\t\t\t\t\t//begin.setVisibility(0x00000000);\n\t\t\t } \n\t\t\t \n\t\t\t @Override \n\t\t\t public void onMapDoubleClick(GeoPoint point) { \n\t\t\t //在此处理地图双击事件 \n\t\t\t } \n\t\t\t \n\t\t\t @Override \n\t\t\t public void onMapLongClick(GeoPoint point) { \n\t\t\t //在此处理地图长按事件 \n\t\t\t } \n\t\t\t }; \n\t\t\t mMapView.regMapTouchListner(mapTouchListener); \n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse\tif(v==end2){\n\t\t\t\tisbend = false;\n\t\t\t\tisbbegin =false;\n\t\t\t\tendedit.setFocusable(false); \n\t\t\t\tbeginedit.setFocusable(false); \n\t\t\t\tend2.setVisibility(0x00000004);\n\t\t\t}\n\t\t\telse\tif(v==end){\n\t\t\t\tisbend = true;\n\t\t\t\tisbbegin =false;\n\t\t\t\tendedit.setFocusable(true); \n\t\t\t\tbeginedit.setFocusable(false);\n\t\t\t\tbegin2.setOnClickListener(this);\n\t\t\t\tend2.setVisibility(0x00000000);\n\t\t\t\tMKMapTouchListener mapTouchListener = new MKMapTouchListener(){ \n\t\t\t @Override \n\t\t\t public void onMapClick(GeoPoint point) { \n\t\t\t //在此处理地图单击事件 \n\t\t\t \tString ads=getLocationAddress(point);\n\t\t\t \tif(ads==\"\"){\n\t\t\t \t\tads=\"无具体地址,坐标:(\"+point.getLatitudeE6()+\",\"+point.getLongitudeE6()+\")\";\n\t\t\t \t}\n\t\t\t \tendedit.setText(ads.toCharArray(), 0, ads.length()); \n\t\t\t \tSystem.out.println(\"iiiiiiiiii\"+ads);\n\t\t\t \tend2.setVisibility(0x00000004);\n\t\t\t } \n\t\t\t \n\t\t\t @Override \n\t\t\t public void onMapDoubleClick(GeoPoint point) { \n\t\t\t //在此处理地图双击事件 \n\t\t\t } \n\t\t\t \n\t\t\t @Override \n\t\t\t public void onMapLongClick(GeoPoint point) { \n\t\t\t //在此处理地图长按事件 \n\t\t\t } \n\t\t\t }; \n\t\t\t mMapView.regMapTouchListner(mapTouchListener); \n\t\t\t\n}\n\t\t\t\n\t\t\t\n\t\t\telse if(v==searchok){\n\t\t\t\tsearch =searchcontent.getText().toString();\n\t\t\t\tmMKSearch.poiSearchInCity(\"济南\", search); \n\t\t\t}\n\t\t\telse if(v==bok){//确定了起终点,回到SearchOne\n\t\t\t\tbeginloc = beginedit.getText().toString();\n\t\t\t\tendloc = endedit.getText().toString();\n\t\t\t\tIntent intent1 = new Intent();\n\t\t\t\tintent1.putExtra(\"iam\", \"digitalone\");\n\t\t \tintent1.setClass(DigitalOne.this, SearchOne.class);\n\t\t\t\tintent1.putExtra(\"beginloc\",beginloc);\n\t\t\t\tintent1.putExtra(\"endloc\",endloc);\n\t\t\t\tintent1.putExtra(\"Slatitude\", Slatitude);\n\t\t\t\tintent1.putExtra(\"Slongtitude\", Slongtitude);\n\t\t\t\tintent1.putExtra(\"Dlatitude\", Dlatitude);\n\t\t\t\tintent1.putExtra(\"Dlongtitude\", Dlongtitude);\n\t\t\t\t\n\t\t\t\tintent1.setClass(DigitalOne.this,SearchOne.class);\n\t\t \tDigitalOne.this.startActivity(intent1);\n\t\t\t}\n\t\t\telse if(v==back){\n\t\t\t\tIntent intentback = new Intent();\t\n\n\t\t\t\tintentback.putExtra(\"iam\", \"backfrommap\");\n\t\t\t\tintentback.setClass(DigitalOne.this, SearchOne.class);\n\t\t\t\tDigitalOne.this.startActivity(intentback);\n\t\t \tSystem.out.println(\"iiiiiiiiiintent\");\n\t\t\t}\n\t }",
"@Override\n public boolean onMarkerClick(Marker marker) {\n\n\n String title = marker.getTitle();\n if (title.equals(\"A\")) {\n marker.setSnippet(info_A);\n\n }else if (title.equals(\"B\")){\n marker.setSnippet(info_B);\n }\n\n\n return false;\n }",
"@Override\n public boolean onMarkerClick(Marker marker) {\n\n\n String title = marker.getTitle();\n if (title.equals(\"A\")) {\n marker.setSnippet(info_A);\n\n }else if (title.equals(\"B\")){\n marker.setSnippet(info_B);\n }\n\n\n return false;\n }",
"@Override\n public void onMapClick(LatLng latLng) {\n MarkerOptions markerOptions = new MarkerOptions();\n\n //Set position of market\n\n\n //markerOptions.position(latLng);\n markerOptions.position(defaultLocation);\n //set title marker\n markerOptions.title(defaultLocation.latitude + \": \" + defaultLocation.longitude);\n\n //removeall markers\n // googleMap.clear();\n //Animating to zoom the marker\n googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(\n defaultLocation, 10\n ));\n //Add marker on map\n googleMap.addMarker(markerOptions);\n\n\n\n }",
"@Override\n public void onMapViewSingleTapped(MapView mapView, MapPoint MapPoint) {\n settingZoomMarkMap(mapView);\n }",
"@Override\n public void onMapClick(LatLng latLng) {\n }",
"@Override\n public void onMapClick(LatLng latLng) {\n }",
"@Override\n public void onInfoWindowLongClick(Marker marker) {\n if (marker.getTitle().equals(\"New Maintenance Form\")){\n newOld = false; //don't have to do anything.....\n }else{\n //newOld = true;\n load_id=marker.getSnippet();\n }\n //pull up the maintenance form\n Intent intent = new Intent(MaintenanceMapActivity.this, MaintenanceActivity.class);\n intent.putExtra(\"latitude\", latitude );\n intent.putExtra(\"longitude\",longitude);\n startActivity(intent);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n currentPosition = new LatLng(currentLocation.getLatitude(), currentLocation.getLongitude());\n MarkerOptions currentPositionMarker = new MarkerOptions()\n .position(currentPosition)\n .title(\"You are Here\")\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_ROSE));\n // Add current location marker to map\n mMap.addMarker(currentPositionMarker);\n addArchitectureMarkers();\n mMap.getUiSettings().setZoomControlsEnabled(true);\n mMap.getUiSettings().setMapToolbarEnabled(false);\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n searchBar.setVisibility(View.GONE);\n searchBar.setText(\"\");\n inputManager.hideSoftInputFromWindow(searchBar.getWindowToken(), 0);\n }\n });\n mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n Log.i(\"testing\", String.valueOf(marker.getPosition()));\n if (!marker.getPosition().equals(currentPosition)) {\n //display pop-up when marker clicked\n Intent intent = new Intent(MapsActivity.this, PopUpInfoWindow.class);\n\n Bundle bundle = new Bundle();\n bundle.putSerializable(\"MARKER_TITLE\", marker.getTitle());\n bundle.putParcelable(\"MARKER_LATLNG\", marker.getPosition());\n bundle.putParcelable(\"CURRENT_LATLNG\", currentPosition);\n bundle.putString(\"MARKER_PLACEID\", marker.getTag().toString());\n destinationMarker = marker;\n //send data to new activity\n intent.putExtras(bundle);\n startActivity(intent);\n }\n return false;\n }\n }\n );\n //create loading screen on start up\n loadingDialog = new AlertDialog.Builder(this).create();\n loadingDialog.setCancelable(false);\n LayoutInflater inflater = getLayoutInflater();\n View dialogView = inflater.inflate(R.layout.progress_bar_dialog, null);\n loadingDialog.setView(dialogView);\n loadingDialog.show();\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n mMap.setMyLocationEnabled(true);\n }",
"@Override\n\t\t\tpublic void onInfoWindowClick(Marker marker) {\n\t\t\t\tint id = hashmap.get(marker)-1;\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tDataBase.Object object = new Object();\n\t\t\t\tobject = list.get(id);\n\n\t\t\t\tbundle.putSerializable(\"ob\", object);\n\n\t\t\t\tIntent intent = new Intent(getActivity(), Places.class);\n\t\t\t\tintent.putExtras(bundle);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\n public View getInfoContents(Marker arg0) {\n View v = getActivity().getLayoutInflater().inflate(R.layout.info_window, null);\n // Getting reference to the TextView to set latitude\n TextView tvLat = (TextView) v.findViewById(R.id.title);\n\n // Getting reference to the TextView to set longitude\n TextView tvLng = (TextView) v.findViewById(R.id.distance);\n System.out.println(\"Title : \" + arg0.getTitle());\n if (arg0.getTitle() != null && arg0.getTitle().length() > 0) {\n // Getting the position from the marker\n\n final String title = arg0.getTitle();\n\n db.open();\n Cursor c = db.getStateFromSelectedFarm(title);\n if (c.moveToFirst()) {\n do {\n AppConstant.stateID = c.getString(c.getColumnIndex(DBAdapter.STATE_ID));\n /* String contour = c.getString(c.getColumnIndex(DBAdapter.CONTOUR));\n getAtLeastOneLatLngPoint(contour);*/\n }\n while (c.moveToNext());\n }\n db.close();\n\n final String distance = arg0.getSnippet();\n tvLat.setText(title);\n tvLng.setText(distance);\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(title).\n setMessage(distance).\n setPositiveButton(\"Farm Data\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n dialogInterface.cancel();\n Intent intent = new Intent(getActivity(), NavigationDrawerActivity.class);\n intent.putExtra(\"calling-activity\", AppConstant.HomeActivity);\n intent.putExtra(\"FarmName\", title);\n\n startActivity(intent);\n getActivity().finish();\n\n\n }\n }).\n setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.cancel();\n }\n });\n builder.show();\n\n } else {\n // Setting the latitude\n tvLat.setText(String.valueOf(arg0.getPosition().latitude));\n // Setting the longitude\n tvLng.setText(String.valueOf(arg0.getPosition().longitude));\n }\n return v;\n }",
"@Override\n public boolean onMarkerClick(Marker marker) {\n return false;\n }",
"@Override\n public boolean onClusterItemClick(Person person) {\n mClickedMarker = person;\n mMarker = renderer.getMarker(mClickedMarker);\n mMarker.showInfoWindow();\n return true;\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n LatLng markerLatLng = mLikelyPlaceLatLngs[which];\n String markerSnippet = mLikelyPlaceAddresses[which];\n if (mLikelyPlaceAttributions[which] != null) {\n markerSnippet = markerSnippet + \"\\n\" + mLikelyPlaceAttributions[which];\n }\n int height = 200;\n int width = 100;\n BitmapDrawable bitmapdraw = (BitmapDrawable) getResources().getDrawable(R.drawable.ic_car_marker);\n Bitmap b = bitmapdraw.getBitmap();\n Bitmap smallMarker = Bitmap.createScaledBitmap(b, width, height, false);\n // Add a marker for the selected place, with an info window\n // showing information about that place.\n mMap.addMarker(new MarkerOptions()\n .title(mLikelyPlaceNames[which])\n .position(markerLatLng)\n .snippet(markerSnippet))\n .setIcon(BitmapDescriptorFactory.fromBitmap(smallMarker));\n\n // Position the customer_map's camera at the location of the marker.\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(markerLatLng,\n DEFAULT_ZOOM));\n }",
"@Override\n public void onMapClick(LatLng latLng) {\n map.addMarker(new MarkerOptions().position(latLng));\n }",
"@Override\n public void onMapReady(final GoogleMap map) {\n mMap = map;\n\n mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {\n\n @Override\n // Return null here, so that getInfoContents() is called next.\n public View getInfoWindow(Marker arg0) {\n return null;\n }\n\n @Override\n public View getInfoContents(Marker marker) {\n // Inflate the layouts for the info window, title and snippet.\n @SuppressLint(\"InflateParams\") View infoWindow = getLayoutInflater().inflate(R.layout.custom_info_contents, null);\n\n TextView title = infoWindow.findViewById(R.id.title);\n title.setText(marker.getTitle());\n\n TextView snippet = infoWindow.findViewById(R.id.snippet);\n snippet.setText(marker.getSnippet());\n\n return infoWindow;\n }\n });\n\n mMap.setOnMapLongClickListener(new GoogleMap.OnMapLongClickListener() {\n @Override\n public void onMapLongClick(LatLng point) {\n mMap.clear();\n buildMarker(\"User Tap\", \"This is snippet\", point, true);\n @SuppressLint(\"DefaultLocale\") String latLong = String.format(\"%f,%f\", point.latitude, point.longitude);\n String endPoint = String.format(placesURL,latLong, String.valueOf(distance), BuildConfig.API_KEY);\n Location locationSelected = new Location(mLastKnownLocation);\n locationSelected.setLatitude(point.latitude);\n locationSelected.setLongitude(point.longitude);\n showPlacesNearby(locationSelected, endPoint);\n }\n });\n\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n mMap.clear();\n }\n });\n\n mMap.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener() {\n @Override\n public boolean onMyLocationButtonClick() {\n mMap.clear();\n updateLocationUI();\n getDeviceLocation();\n return true;\n }\n });\n\n\n // Prompt the user for permission.\n getLocationPermission();\n\n // Turn on the My Location layer and the related control on the map.\n updateLocationUI();\n\n // Get the current location of the device and set the position of the map.\n getDeviceLocation();\n }",
"@Override\n public boolean onMarkerClick(Marker marker) {\n\n\n String title = marker.getTitle();\n if (title.equals(\"A\")){\n marker.setSnippet(info_A);\n\n }else if (title.equals(\"B\")){\n marker.setSnippet(info_B);\n }\n\n\n return false;\n }",
"public void addMapMarker() {\n if (iLat != null && !iLat.equals(\"\") && iLon != null && !iLon.equals(\"\") && iLatRef != null && !iLatRef.equals(\"\") && iLonRef != null && !iLonRef.equals(\"\")) {\n\n if (iLatRef.equals(\"N\")) {\n //North of equator, positive value\n iLatFloat = toDegrees(iLat);\n } else {\n //South of equator, negative value\n iLatFloat = 0 - toDegrees(iLat);\n }\n\n if (iLonRef.equals(\"E\")) {\n //East of prime meridian, positive value\n iLonFloat = toDegrees(iLon);\n } else {\n //West of prime meridian, negative value\n iLonFloat = 0 - toDegrees(iLon);\n }\n }\n\n final MapView gMap = (MapView) findViewById(R.id.map);\n\n if (addedMarker == false) {\n posMarker = gMap.getMap().addMarker(posMarkerOptions);\n posMarker.setTitle(getString(R.string.map_position));\n addedMarker = true;\n }\n\n posMarker.setVisible(true);\n posMarker.setPosition(new LatLng(iLatFloat, iLonFloat));\n\n GoogleMap gMapObj = gMap.getMap();\n\n gMapObj.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n posMarker.setPosition(latLng);\n displayCoordsInDegrees();\n\n //Use text view values instead of posMarker values\n iLat = toDMS(posMarker.getPosition().latitude);\n iLon = toDMS(posMarker.getPosition().longitude);\n\n if (posMarker.getPosition().latitude > 0) {\n //North of equator, positive value\n iLatFloat = toDegrees(iLat);\n iLatRef = \"N\";\n } else {\n //South of equator, negative value\n iLatFloat = 0 - toDegrees(iLat);\n iLatRef = \"S\";\n }\n\n if (posMarker.getPosition().longitude > 0) {\n //East of prime meridian, positive value\n iLonFloat = toDegrees(iLon);\n iLonRef = \"E\";\n } else {\n //West of prime meridian, negative value\n iLonFloat = 0 - toDegrees(iLon);\n iLonRef = \"W\";\n }\n }\n });\n }",
"@Override\n /***** Sets up the map if it is possible to do so *****/\n public boolean setUpMapIfNeeded() {\n super.setUpMapIfNeeded();\n if (mMap != null) {\n //Shows history popover on marker clicks\n mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n showPopup(getContentFromMarker(marker), marker.getTitle());\n return true;\n }\n });\n return true;\n } else {\n return false;\n }\n }",
"@Override\n \tpublic void onMapClick(final LatLng point) \n \t{\n \t\t\n \t\t AlertDialog.Builder builder = new AlertDialog.Builder(CrearIncidenteGPS.this);\n \t\t builder.setMessage(\"Desea agregar un incidente en este lugar?\")\n \t\t .setCancelable(false)\n \t\t .setPositiveButton(\"Si\", new DialogInterface.OnClickListener() \n \t\t {\n \t\t public void onClick(DialogInterface dialog, int id) \n \t\t {\n \t\t \t//Agregar el incidente\n// \t\t \tlstLatLngs.add(point);\n \t\t \tinsertarIncidente(point);\n// \t\t \tgMap.addMarker(new MarkerOptions().position(point));\n \t\t }\n \t\t })\n \t\t .setNegativeButton(\"No\", new DialogInterface.OnClickListener() \n \t\t {\n \t\t public void onClick(DialogInterface dialog, int id) \n \t\t {\n \t\t dialog.cancel();\n \t\t }\n \t\t });\n \t\t AlertDialog alert = builder.create();\n \t\t alert.show();\n \t\t\n \t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n LatLng markerLatLng = mLikelyPlaceLatLngs[which];\n String markerSnippet = mLikelyPlaceAddresses[which];\n if (mLikelyPlaceAttributions[which] != null) {\n markerSnippet = markerSnippet + \"\\n\" + mLikelyPlaceAttributions[which];\n }\n\n // Position the map's camera at the location of the marker.\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(markerLatLng,\n DEFAULT_ZOOM));\n }",
"@Override\n public boolean onMarkerClick(Marker marker) {\n\n marker.hideInfoWindow();\n Punto temp = esEste(marker.getTitle());\n agregarItems(temp, marker);\n\n return true;\n }",
"@Override\n public void onCameraIdle() {\n if(markerClickflag)\n showMarkerButtons(true);\n\n //Once camera adjusts to the marker, make the marker click flag false. Any newmovement of camera will cause\n //buttons to disappear.\n markerClickflag=false;\n }",
"@Override\n public void onInfoWindowClick(Marker marker) {\n openTimesheetInfo(marker.getTitle());\n }",
"private void showMarker() {\n\n if (myMarker == null) {\n MarkerOptions options = new MarkerOptions();//1 option co 2 thu k thieu vi tri ,hinh anh\n options.position(new LatLng(myLocation.getLatitude(), myLocation.getLongitude()));//vi tri kinh do vi do,no tra ve vi tri cuoi cung gps nhan dc ,neu\n options.title(\"dung123\");\n options.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\n //newu chua co thif sedc sinh ra bang cach add\n googleMap.addMarker(options);\n// myMarker.setTag(\"Hello\");//co the truyen doi tuig vao duoi window marker getTag\n } else {\n myMarker.setPosition(new LatLng(myLocation.getLatitude(), myLocation.getLongitude()));\n }\n }",
"@Override\n public void onMapClick( LatLng latLng ) {\n googleMap.clear();\n Log.d( \"LAT/LONG\", latLng.toString() );\n googleMap.addCircle( new CircleOptions()\n .center( latLng )\n .radius( 10000 )\n .strokeColor( ContextCompat.getColor( Objects.requireNonNull( getContext() ), R.color.colorLightPurple ) )\n .fillColor( ContextCompat.getColor( Objects.requireNonNull( getContext() ), R.color.transparentcolorLightPurple ) ) );\n\n googleMap.addMarker( new MarkerOptions().position( latLng )\n .icon( BitmapDescriptorFactory.defaultMarker( BitmapDescriptorFactory.HUE_VIOLET ) ) );\n googleMap.moveCamera( CameraUpdateFactory.newLatLngZoom( latLng, 10.0f ) );\n cLocate = latLng;\n }",
"@Override\n public void onMapClick(LatLng point) {\n mMap.clear();\n\n // Add marker on clicked point\n mMap.addMarker(new MarkerOptions().position(point)\n .icon(BitmapDescriptorFactory\n .defaultMarker(BitmapDescriptorFactory.HUE_RED)))\n .setTag(true);\n\n // Set global lat and lng\n lat = point.latitude;\n lng = point.longitude;\n\n // Hide detail view\n hideDetails();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n MarkerOptions m= new MarkerOptions().position(new LatLng(28.7041,77.1025)).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)).title(\"tap to get the alerts\");\n n= mMap.addMarker(m);\n\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n\n if (!lati.equals(\"false\") && !longi.equals(\"false\")) {\n Double la = Double.parseDouble(lati);\n Double lo = Double.parseDouble(longi);\n // Add a marker in Sydney and move the camera\n n.setPosition(new LatLng(la,lo));\n n.setTitle(level);\n if(level.equals(\"hard\")){\n n.setIcon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_MAGENTA));}\n else\n {\n n.setIcon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));}\n LatLng posi = new LatLng(la, lo);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(posi));\n }\n\n\n }\n });\n\n\n\n }",
"public void showMarkerInfo(OperaFirebase mapMarker){\n Intent i = new Intent(this, MarkerInfoActivity.class);\n i.putExtra(\"MapMarker\", mapMarker);\n startActivity(i);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap)\n {\n\n\n mMap = googleMap;\n Intent intent = getIntent();\n seisme = (Seisme) intent.getSerializableExtra(\"seisme\");\n String[] split = seisme.getPoint().split(\" \");\n LatLng point = new LatLng(Double.parseDouble(split[0]), Double.parseDouble(split[1]));\n mMap.addMarker(new MarkerOptions().position(point).title(seisme.getTitle()));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(point));\n\n mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener()\n {\n @Override\n public void onInfoWindowClick(Marker marker)\n {\n Context context = getApplicationContext();\n Intent intent = new Intent(MapsActivity.this, infoDetail.class);\n intent.putExtra(\"item\", seisme);\n startActivity(intent);\n }\n });\n }",
"@Override\r\n public boolean onMarkerClick(Marker marker) {\r\n if(!marker.getTitle().equals(\"Are you here!\")) {\r\n alertDialogBuldingData.showBuldingData(marker.getTitle(), marker.getSnippet(), _university_name, _buildings_type, \"\", \"\");\r\n return false;\r\n }\r\n return true;\r\n }",
"public void onFocusChanged(ItemizedOverlay<?> overlay, OverlayItem newFocus) {\n\t\t if (null != newFocus) { \r\n \r\n\t\t\t MapView.LayoutParams params = (MapView.LayoutParams) popView.getLayoutParams(); \r\n \r\n\t\t\t params.x = marker.getBounds().centerX();// \r\n \r\n\t\t\t params.y = - marker.getBounds().height();// \r\n \r\n\t\t\t params.point = newFocus.getPoint(); \r\n \r\n\t\t\t TextView title_TextView = (TextView) popView.findViewById(R.id.map_bubbleTitle); \r\n \r\n\t\t\t title_TextView.setText(newFocus.getTitle()); \r\n \r\n\t\t\t TextView desc_TextView = (TextView) popView.findViewById(R.id.map_bubbleText); \r\n \r\n\t\t\t desc_TextView.setText(newFocus.getSnippet()); \r\n \r\n\t\t\t mapView.updateViewLayout(popView, params); \r\n \r\n\t\t\t popView.setVisibility(View.VISIBLE); \r\n \r\n\t\t\t mapView.getController().animateTo(newFocus.getPoint()); \r\n\t \r\n\t\t\t focusItem = newFocus; \r\n \r\n\t\t } \t\r\n \r\n\t\r\n\t }",
"public boolean handleMarkerClick(Marker marker) {\n Complex complexById = getComplexById(this.markerComplexMap.get(marker.getId()));\n if (complexById == null) {\n return false;\n }\n if (complexById.getFinished().booleanValue()) {\n Toast.makeText(getContext(), complexById.getDateEnd(), 1).show();\n return false;\n }\n getBaseActivity().showComplex(this.markerComplexMap.get(marker.getId()));\n return false;\n }",
"@Override\n public void onLocationChanged(Location location) {\n if(location != null){\n originLocation = location;\n setCameraPosition(location);\n\n LatLng point = new LatLng();\n point.setLongitude(finalLon);\n point.setLatitude(finalLat);\n onMapClick(point);\n\n startButton.setVisibility(View.VISIBLE);\n\n\n }\n }",
"public interface OnMarkerClickListener{\n\t\tabstract boolean onMarkerClick(Marker marker, MapView mapView); \n\t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n mMap.getUiSettings().setZoomControlsEnabled(true);\n googleMap.setPadding(0, 0, 0, 300);\n\n\n //if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION))\n\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n\n\n buildGoogleApiClient();\n\n mMap.setMyLocationEnabled(true);\n //mMap.getUiSettings().setZoomControlsEnabled(true);\n }\n\n mMap.setOnMapLongClickListener(new GoogleMap.OnMapLongClickListener() {\n @Override\n public void onMapLongClick(LatLng latLng) {\n\n if (marker != null) {\n marker.remove();\n }\n marker = mMap.addMarker(new MarkerOptions()\n .position(latLng)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE))\n .title(\"My Current Click\"));\n\n\n }\n });\n\n mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n\n mHeart.setVisibility(View.VISIBLE);\n manualEnter.setVisibility(View.VISIBLE);\n\n latitude = marker.getPosition().latitude;\n longitude = marker.getPosition().longitude;\n name = marker.getTitle();\n placeID = marker.getId();\n address = marker.getSnippet();\n\n time = DateFormat.getDateTimeInstance().format(new Date());\n //long miliTime = time.getTime\n\n\n\n //getMarkerInfo();\n\n //Toast.makeText(NearbyLocations.this, name, Toast.LENGTH_SHORT).show();\n return false;\n\n\n }\n });\n\n\n\n mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {\n\n @Override\n public View getInfoWindow(Marker arg0) {\n return null;\n }\n\n @Override\n public View getInfoContents(Marker marker) {\n\n LinearLayout info = new LinearLayout(NearbyLocations.this);\n info.setOrientation(LinearLayout.VERTICAL);\n\n TextView title = new TextView(NearbyLocations.this);\n title.setTextColor(Color.BLACK);\n title.setGravity(Gravity.CENTER);\n title.setTypeface(null, Typeface.BOLD);\n title.setText(marker.getTitle());\n\n TextView snippet = new TextView(NearbyLocations.this);\n snippet.setTextColor(Color.GRAY);\n snippet.setText(marker.getSnippet());\n\n info.addView(title);\n info.addView(snippet);\n\n return info;\n }\n });\n\n\n\n\n\n }",
"public interface MapMarkerClickHandler {\r\n\r\n\t\t\r\n\t////////////////////////////////////////////////////////////\r\n\t// PUBLIC INTERFACE METHODS\r\n\t////////////////////////////////////////////////////////////\r\n\tpublic void markerClicked(Object markerId,\r\n\t\t\t\t\t\t\t\tString markerLabel,\r\n\t\t\t\t\t\t\t\tint clickXCoordinate,\r\n\t\t\t\t\t\t\t\tint clickYCoordinate);\r\n\r\n\r\n\t\r\n}",
"public boolean onMarkerClick(Marker arg0) {\n\t\t\n\t\tif(arg0.equals(startMarker) || arg0.equals(endMarker))\n\t\t\treturn false;\n\t\t\n\t\tSet<DBMarker> keyList = markerHashTable.keySet();\n\t\tDBMarker editedMarker = null;\n\t\t\n\t\tfor(DBMarker marker : keyList)\n\t\t{\n\t\t\tif(markerHashTable.get(marker).equals(arg0))\n\t\t\t{\n\t\t\t\t//editedMarker = someFunction(markerHashTable.get(marker));\n\t\t\t\tmarkerHashTable.put(editedMarker, arg0);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"@Override\n public View getInfoWindow(Marker arg0) {\n return null;\n }",
"@Override\n public boolean onMarkerClick(Marker marker) {\n if(!marker.getTitle().equalsIgnoreCase(\"Destination\")) {\n if(mPreviousMarker !=null) // destination is marked\n show_card(marker.getTitle(),true,mlocation,mPreviousMarker);\n else\n show_card(marker.getTitle(),false,mlocation,mPreviousMarker);\n }else\n mPreviousMarker.getSnippet();\n\n return false;\n }",
"@Override\r\n public void onMapClick(LatLng latLng) {\n geocoder1 = new Geocoder(getApplicationContext(), Locale.getDefault());\r\n String State = null;\r\n String City = null;\r\n String Country = null;\r\n try {\r\n\r\n List<Address> Addresses = geocoder1.getFromLocation(latLng.latitude, latLng.longitude, 1);\r\n if (Addresses != null && Addresses.size() > 0) {\r\n\r\n City = Addresses.get(0).getAddressLine(0);\r\n State = Addresses.get(0).getAddressLine(1);\r\n Country = Addresses.get(0).getAddressLine(2);\r\n\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n // Clears the previously touched position\r\n googleMap.clear();\r\n\r\n TextView tvLocation = (TextView) findViewById(R.id.tv_location);\r\n\r\n\r\n // Animating to the touched position\r\n googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 16.0f));\r\n\r\n // Placing a marker on the touched position\r\n googleMap.addMarker(new MarkerOptions().position(latLng).title(City + \",\" + State + \",\" + Country));\r\n\r\n tvLocation.setText(\"Latitude:\" + latitude + \", Longitude:\" + longitude + \"\\n\" + City + \",\" + State + \",\\n\" + Country);\r\n\r\n }",
"public void setInfoWindow(MarkerInfoWindow infoWindow){\n\t\tmInfoWindow = infoWindow;\n\t}",
"@Override\r\n public View getInfoWindow(Marker marker) {\n return null;\r\n }",
"@Override\r\n\t\tpublic boolean onTouchEvent(MotionEvent e, MapView m) {\n\t\t\tif(e.getAction()==MotionEvent.ACTION_DOWN){\r\n\t\t\t\tstart=e.getEventTime();\r\n\t\t\t\tx= (int)e.getX();\r\n\t\t\t\ty= (int)e.getY();\r\n\t\t\t\t touchedPoint = map.getProjection().fromPixels(x, y);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(e.getAction()==MotionEvent.ACTION_UP){\r\n\t\t\t\tstop=e.getEventTime();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(stop-start > 1500){\r\n\t\t\t\t//perform action\r\n\t\t\t\t\r\n\t\t\t\talert.setTitle(\"Pick an Option\");\r\n\t\t\t\talert.setMessage(\"Select An Option\");\r\n\t\t\t\t\r\n\t\t\r\n alert.setButton2(\"Toogle View \", new DialogInterface.OnClickListener() {\r\n\t\t\t\t\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\tif(map.isSatellite()){\r\n\t\t\t\t\t\tmap.setSatellite(false);\r\n\t\t\t\t\t\tmap.setStreetView(true);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tmap.setSatellite(true);\r\n\t\t\t\t\t\tmap.setStreetView(false);\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 alert.show();\r\n return true;\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}",
"public void setUpMapOnClick() {\n mMap.setOnMapClickListener(new OnMapClickListener() {\n @Override\n public void onMapClick(LatLng loc) {\n // Hiding the keyboard when tab on map.\n// new MapsUtil.GetAddressByLatLng(new IMaps() {\n// @Override\n// public void processFinished(Object obj) {\n// String address = (String) obj;\n// if (!address.isEmpty()) {\n// // Set marker's title\n// if (txtFromIsSelected) {\n// txtFrom.setText(address);\n// } else {\n// if (txtToIsSelected) {\n// txtTo.setText(address);\n// }\n// }\n// }\n// }\n// }).execute(loc);\n if (txtFromIsSelected) {\n txtFrom.setText(getCompleteAddressString(loc.latitude, loc.longitude));\n } else {\n if (txtToIsSelected) {\n txtTo.setText(getCompleteAddressString(loc.latitude, loc.longitude));\n }\n }\n closeKeyboard();\n selectFromMap = true;\n if (txtFromIsSelected) {\n if (circle != null) {\n circle.remove();\n// mMap.clear();\n }\n startLocation = loc;\n setStartMarker();\n circle = mMap.addCircle(new CircleOptions()\n .center(startLocation)\n .radius(3000)\n .strokeWidth(0.5f)\n .strokeColor(Color.rgb(0, 136, 255))\n .fillColor(Color.argb(20, 0, 136, 255)));\n txtFrom.setDropDownHeight(0);\n } else {\n if (txtToIsSelected) {\n endLocation = loc;\n setEndMarker();\n txtTo.setDropDownHeight(0);\n }\n }\n // Get address by latlng async\n\n }\n });\n }",
"@Override\n public void onInfoWindowClick(Marker marker) {\n if(marker.equals(markerPrueba)){\n UnsaFragment.newInstance(marker.getTitle(),\"Universidad nacional de san Agustin de Arequipa\" )\n .show(getSupportFragmentManager(), null);\n\n\n }\n\n }",
"@Override\n public void onMapLoaded() {\n mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 13.3f));\n\n // Placing a marker on the touched position\n mMap.addMarker(markerOptions);\n }",
"@Override\n\t\tpublic boolean onTap(GeoPoint p, MapView mapView) {\n\t\t\tdimissbubble();\n\t\t\tmapView.getController().setCenter(p);\n\n\t\t\treturn super.onTap(p, mapView);\n\t\t}",
"@Override\n\t\t\tpublic void onInfoWindowClick(Marker marker) {\n\t\t\t\tLog.e(\"map\", \"at InfoWindowClisck\");\n\t\t\t\t\n\t\t\t\tString id = marker.getId();\n int mIdx = Integer.parseInt( id.substring(1) ); // m 제외하고 스트링파싱 인트파\n\t\t\t\tArrayList<String> _pathOfPic = mAreaList.get(mIdx).pathOfPic;\n\t\t\t\t\n\t\t\t\tIntent intent = new Intent(\"android.intent.action.CUSTOM_ALBUM\");\n\t\t\t\tintent.putStringArrayListExtra(\"pathOfPic\", _pathOfPic);\n\t\t\t\t\n\t\t\t\tmCtx.startActivity(intent);\t\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n final LatLng latLng = new LatLng(latitude, longitude);\n mMap.addCircle(new CircleOptions()\n .center(latLng)\n .radius(75)\n .strokeWidth(2f));\n CameraUpdate center=\n CameraUpdateFactory.newLatLng(latLng);\n CameraUpdate zoom=CameraUpdateFactory.zoomTo(21);\n\n mMap.moveCamera(center);\n mMap.animateCamera(zoom);\n Marker mark= mMap.addMarker(new MarkerOptions()\n .position(latLng)\n .title(\"I'm here...\")\n .snippet(\"Its My Location\")\n .rotation((float) -15.0)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n\n Tmarker=mMap.addMarker(new MarkerOptions()\n .snippet(tuition_id)\n .rotation((float)12.0)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_ORANGE))\n .position(new LatLng(lat,lan)));\n\n\n\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n if(marker!=null) {\n marker.remove();\n }\n marker=mMap.addMarker(new MarkerOptions()\n .snippet(\"My Home\")\n .rotation((float)0.0)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE))\n .position(latLng));\n }\n });\n\n//.fillColor(0x55ffff99));\n // Add a marker in Sydney and move the camera\n /*LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));*/\n\n }",
"@Override\n public void onClick(View view) {\n Uri gmmIntentUri = Uri.parse(\"geo:0,0?q=\" + selected_location);\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n if (mapIntent.resolveActivity(getActivity().getPackageManager()) != null) {\n startActivity(mapIntent);\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n LatLng startingMarker;\n if (location == null) {\n\n /* Check if the fine and course locations are denied.*/\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n String[] permissions = new String[1];\n permissions[0] = Manifest.permission.ACCESS_FINE_LOCATION;\n ActivityCompat.requestPermissions(this, permissions, 1);\n return;\n }\n mMap.setMyLocationEnabled(true);\n startingMarker = getCurrentLocation();\n } else {\n startingMarker = new LatLng(location.latitude, location.longitude);\n\n }\n if (mapMode.equals(\"selection\") || mapMode.equals(\"view\")) {\n currentMarker = mMap.addMarker(new MarkerOptions().position(startingMarker).title(\"Selected record location\"));\n } else if (mapMode.equals(\"viewAll\")) {\n ArrayList<Condition> conditions = userAccountListController.getUserAccountList().getAccountOfInterest().getConditionList().getConditions();\n for (int j =0; j< conditions.size(); j++) {\n ArrayList<Record> records = recordListController.loadRecords(conditions.get(j));\n for (int i = 0; i < records.size(); i++) {\n Record record = records.get(i);\n if (record.getGeoLocation() != null) {\n Double latitude = record.getGeoLocation().getLatitude();\n Double longitude = record.getGeoLocation().getLongitude();\n startingMarker = new LatLng(latitude, longitude);\n mMap.addMarker(new MarkerOptions().position(startingMarker).title(record.getTitle()));\n\n }\n }\n }\n\n }\n mMap.moveCamera(CameraUpdateFactory.newLatLng(startingMarker));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(startingMarker, 11));\n if (mapMode.equals(\"selection\")) {\n mMap.setOnMapClickListener(this);\n mMap.setOnMarkerClickListener(this);\n }\n }",
"@Override\n public boolean onMarkerClick(Marker marker) {\n Listing listing = (Listing) marker.getTag();\n goToDetailedListingScreen(listing);\n return false;\n }",
"@Override\n public boolean onMapClick(@NonNull LatLng mapClickPoint) {\n // Update the map click point circle's location\n mapboxMap.getStyle(new Style.OnStyleLoaded() {\n @Override\n public void onStyleLoaded(@NonNull Style style) {\n lastMapClickPoint = Point.fromLngLat(mapClickPoint.getLongitude(), mapClickPoint.getLatitude());\n\n GeoJsonSource deviceLocationSource = style.getSourceAs(MAP_CLICK_CIRCLE_LAYER_SOURCE_ID);\n if (deviceLocationSource != null) {\n deviceLocationSource.setGeoJson(Point.fromLngLat(\n mapClickPoint.getLongitude(), mapClickPoint.getLatitude()));\n }\n queryWifiSpotsWithTilequeryApi(mapClickPoint);\n }\n });\n return true;\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n TypedValue tv = new TypedValue();\n // move my location button down under toolbar\n if (getActivity().getTheme().resolveAttribute(R.attr.actionBarSize, tv, true))\n {\n int actionBarHeight = TypedValue.complexToDimensionPixelSize(tv.data,getResources().getDisplayMetrics());\n mMap.setPadding(0, actionBarHeight, 0, 0);\n }\n\n if (mParkedMarker != null) {\n mMap.animateCamera(CameraUpdateFactory.newLatLng(mParkedMarker.getPosition()));\n } else if (ContextCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mMap.setMyLocationEnabled(true);\n mFusedLocationClient = LocationServices.getFusedLocationProviderClient(getActivity());\n mFusedLocationClient.getLastLocation()\n .addOnSuccessListener(getActivity(), new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n // Got last known location. In some rare situations this can be null.\n if (location != null) {\n LatLng myLocation = new LatLng(location.getLatitude(), location.getLongitude());\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 15));\n }\n }\n });\n } else {\n Toast.makeText(getActivity(), \"Don't have permission\", Toast.LENGTH_LONG).show();\n }\n\n\n mMap.setMaxZoomPreference(20);\n\n // Add a marker in Corvallis and move the camera\n LatLng corvallis = new LatLng(44.5646, -123.2620);\n\n mMap.setOnMapClickListener(this);\n mMap.setOnMapLongClickListener(this);\n\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(corvallis, 14));\n\n TileProvider tileProvider = new SpotsTileProvider(getActivity());\n mTileOverlay = mMap.addTileOverlay(new TileOverlayOptions().tileProvider(tileProvider));\n\n mMap.setOnMyLocationButtonClickListener(this);\n mMap.setOnMyLocationClickListener(this);\n\n }",
"@Override\n\t\t\tpublic View getInfoWindow(Marker marker) {\n\t\t\t\tView v = getLayoutInflater().inflate(R.layout.map_info_window, null);\n\n // Getting reference to the TextView to set title\n TextView memo = (TextView) v.findViewById(R.id.memo);\n ImageView imgV = (ImageView) v.findViewById(R.id.photo);\n\n memo.setText(marker.getTitle());\n\n \n /**\n * marker는 생성되는 순서대로 m0, m1, m2... m 뒤에 붙는 숫자들은 마커의 인덱스이고 이 인덱스는 \n * areaList의 인덱스와 같으므로 마커의 인덱스를 파싱해서 areaList에 그 인덱스로 접근하면 지역정보를 얻을 수 있다.\n */\n String id = marker.getId();\n int mIdx = Integer.parseInt( id.substring(1) ); // m 제외하고 스트링파싱 인트파.\n // LatLng l = marker.getPosition();\n \n String mPath = mAreaList.get(mIdx).pathOfPic.get(0); // 해당 위치에 저장된 많은 사진중 첫번째 사진주\n Bitmap bitm = decodeBitmapFromStringpath(mPath, 100, 100);\n imgV.setImageBitmap(bitm);\n// imgV.setImageURI(Uri.parse(mPath));\n // Returning the view containing InfoWindow contents\n return v;\n\t\t\t}",
"public boolean onTap(PointF pointF) {\n long execute = new MarkerHitResolver(this.mapboxMap).execute(getMarkerHitFromTouchArea(pointF));\n if (execute != -1 && isClickHandledForMarker(execute)) {\n return true;\n }\n Annotation execute2 = new ShapeAnnotationHitResolver(this.shapeAnnotations).execute(getShapeAnnotationHitFromTap(pointF));\n if (execute2 == null || !handleClickForShapeAnnotation(execute2)) {\n return false;\n }\n return true;\n }"
]
| [
"0.75099814",
"0.7370783",
"0.7282009",
"0.71623737",
"0.71312726",
"0.7097621",
"0.70233035",
"0.68100995",
"0.6808826",
"0.67910856",
"0.6790015",
"0.6783041",
"0.66958755",
"0.6684476",
"0.6670351",
"0.6655419",
"0.664684",
"0.660715",
"0.6604268",
"0.65970725",
"0.65855306",
"0.6580906",
"0.6579228",
"0.6564059",
"0.65560335",
"0.6552544",
"0.65473557",
"0.6497746",
"0.6495605",
"0.6438857",
"0.64370763",
"0.6436982",
"0.6428399",
"0.6386306",
"0.6385318",
"0.638357",
"0.6382946",
"0.63813686",
"0.6308263",
"0.63061774",
"0.62972504",
"0.6294688",
"0.6276857",
"0.6264738",
"0.6264738",
"0.62510824",
"0.6247649",
"0.6246443",
"0.6246443",
"0.6243851",
"0.623965",
"0.6229053",
"0.62171143",
"0.6205195",
"0.61787885",
"0.61778116",
"0.6176197",
"0.6163572",
"0.6160854",
"0.6160373",
"0.6152611",
"0.6125088",
"0.6122895",
"0.6122746",
"0.61197793",
"0.6101228",
"0.6100307",
"0.6097928",
"0.608488",
"0.60673255",
"0.60321337",
"0.60279495",
"0.6006176",
"0.6000784",
"0.5988467",
"0.5973967",
"0.5973783",
"0.5967855",
"0.596481",
"0.5960997",
"0.5958373",
"0.5948025",
"0.5944871",
"0.5940278",
"0.5940025",
"0.5935907",
"0.59219277",
"0.59121585",
"0.59102976",
"0.59029883",
"0.5900452",
"0.589975",
"0.5894066",
"0.58882505",
"0.5882363",
"0.5880624",
"0.5879961",
"0.58736694",
"0.5862402"
]
| 0.6426108 | 34 |
TODO Autogenerated method stub | @Override
public void print(String str) {
System.out.println(str);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void run() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
Used for testing really all variables required (final)? | public static PhotonDoc create(long placeId, String osmType, long osmId, Map<String, String> nameMap) {
return new PhotonDoc(placeId, osmType, osmId, "", "", nameMap,
"", null, null, 0, 0, null, null, 0, 0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void performSanityCheck()\n\t{\n\t\tif (variableNames != null && domainSizes != null\n\t\t\t\t&& propositionNames != null)\n\t\t{\n\t\t\tcheckStateSizes();\n\t\t\tcheckDomainSizes();\n\t\t}\n\t}",
"public void testSingleVar() { assertValid(\"int a;\"); }",
"private void assertAll() {\n\t\t\n\t}",
"@Test\n public void testInitialValues() {\n ocean.placeAllShipsRandomly();\n assertFalse(\"Is game over\", ocean.isGameOver());\n assertEquals(0, ocean.getHitCount());\n assertEquals(0, ocean.getShipsSunk());\n assertEquals(0, ocean.getShotsFired());\n ocean.print();\n }",
"public void checkParameters() {\n }",
"@Test\n void test00_checkInitialization() {\n if (graph.size() != 0 || graph.order() != 0) {\n fail(\"graph isn't initialized with correct variables\");\n }\n }",
"private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}",
"private void checkRep() {\n for (Ball ball : balls) {\n assert ball.getPosition().d1 >= 0\n && ball.getPosition().d1 <= WIDTH - 1;\n assert ball.getPosition().d2 >= 0\n && ball.getPosition().d2 <= HEIGHT - 1;\n }\n for (Gadget gadget : gadgets) {\n assert gadget.getPosition().d1 >= 0\n && gadget.getPosition().d1 <= WIDTH - 1;\n assert gadget.getPosition().d2 >= 0\n && gadget.getPosition().d2 <= HEIGHT - 1;\n }\n\n assert GRAVITY > 0 && MU2 > 0 && MU > 0;\n }",
"private void checkRep(){\n assert !this.username.equals(\"\");\n assert !this.password.equals(\"\");\n assert accessLevel != null;\n }",
"public void testPreConditions() {\r\n\t //fail(\"Precondition check not implemented!\");\r\n\t assertEquals(true,true);\r\n\t }",
"@Test\n public void testGetValues(){\n assertTrue(vector.x == 1 && vector.z == 1);\n }",
"@Test\r\n\tpublic void testSanity() {\n\t}",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkAbout() {\n\t\tboolean flag = oTest.checkAbout();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"public void testing() {\n\t\tprotectedInstanceVariable = \"\";\n\t}",
"public void checkFields(){\n }",
"private boolean CheckAllRequiredFields() {\n\t\tboolean res = true;\n\t\tres &= CheckParkSelection();\n\t\tres &= CheckDateSelection();\n\t\tres &= CheckVisitorHour();\n\t\tres &= CheckEmail();\n\t\tres &= CheckPhoneNumber();\n\t\treturn res;\n\t}",
"@Test\n void whatVarAllowed() {\n var subject = new Object() {\n int count = 0;\n };\n\n // when: maybe useful for testing?\n subject.count++;\n\n // then:\n assertThat(subject.count)\n .isEqualTo(1);\n }",
"@Test\n public void installLocals_always_returns_empty() {\n assertThat(underTest.installLocals()).isEmpty();\n }",
"private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}",
"private void checkSafety() {\n\t\tSet<VariableTerm> bindingVariables = new HashSet<>();\n\t\tSet<VariableTerm> nonbindingVariables = new HashSet<>();\n\n\t\t// Check that all negative variables occur in the positive body.\n\t\tfor (Atom posAtom : bodyAtomsPositive) {\n\t\t\tbindingVariables.addAll(posAtom.getBindingVariables());\n\t\t\tnonbindingVariables.addAll(posAtom.getNonBindingVariables());\n\t\t}\n\n\t\tfor (Atom negAtom : bodyAtomsNegative) {\n\t\t\t// No variables in a negated atom are binding.\n\t\t\tnonbindingVariables.addAll(negAtom.getBindingVariables());\n\t\t\tnonbindingVariables.addAll(negAtom.getNonBindingVariables());\n\t\t}\n\n\t\t// Rule heads must be safe, i.e., all their variables must be bound by the body.\n\t\tif (!isConstraint()) {\n\t\t\tnonbindingVariables.addAll(headAtom.getBindingVariables());\n\t\t\tnonbindingVariables.addAll(headAtom.getNonBindingVariables());\n\t\t}\n\n\t\t// Check that all non-binding variables are bound in this rule.\n\t\tnonbindingVariables.removeAll(bindingVariables);\n\n\t\tif (nonbindingVariables.isEmpty()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthrow new RuntimeException(\"Encountered unsafe variable \" + nonbindingVariables.iterator().next().toString() + \" in rule: \" + toString()\n\t\t\t\t+ System.lineSeparator() + \"Notice: A rule is considered safe if all variables occurring in negative literals, builtin atoms, and the head of the rule also occur in some positive literal.\");\n\t}",
"@Test\n public void test() {\n setHello(\"Hello\");\n assertThat(getHello() + addWorld()).isEqualTo(\"Hello World\");\n assertThat(likely(true)).isTrue();\n }",
"protected void checkComponents() throws Exception {\r\n if (InitialData == null) {\r\n throw new Exception(\"Initial data not set.\");\r\n }\r\n if (Oracle == null) {\r\n throw new Exception(\"Oracle not set.\");\r\n }\r\n if (SearchSpace == null) {\r\n throw new Exception(\"Search space not set.\");\r\n }\r\n if (ObjectiveFunction == null) {\r\n throw new Exception(\"Ranker not set.\");\r\n }\r\n }",
"protected void initVars() {}",
"@Test\n public void sanityTest() {\n Random random = new Random(0);\n long long1 = random.nextLong();\n long long2 = random.nextLong();\n long long3 = random.nextLong();\n assertEquals(RandomConstants.LONG_1_WITH_SEED_0, long1);\n assertEquals(RandomConstants.LONG_2_WITH_SEED_0, long2);\n assertEquals(RandomConstants.LONG_3_WITH_SEED_0, long3);\n }",
"abstract void checkWhetherVariable(SyntaxUnit use);",
"boolean known() {\n\t\t\treturn !varAddress && !varMask;\n\t\t}",
"@Test\n\tpublic void testFinalFields() throws Exception {\n\t\tString whatItShouldBe = new TestClassFinalField().str;\n\t\t\n\t\tTestClassFinalField obj = (TestClassFinalField)testWith(new TestClassFinalField());\n\t\tassertTrue(obj.str.equals(whatItShouldBe));\n\t\t\n\t\tobj = (TestClassFinalField)testWith(new TestClassFinalField(5, 87));\n\t\tassertTrue(obj.str.equals(whatItShouldBe));\n\t}",
"boolean isOnlyAssignedInInitializer();",
"@Test\n public void assertSanity() throws InterruptedException {\n int count = 1_000_000;\n\n AtomicInteger npes = new AtomicInteger(0);\n AtomicInteger insanities = new AtomicInteger(0);\n ExecutorService executorService = Executors.newFixedThreadPool(2);\n\n for (int i = 0; i < count; i++) {\n StuffIntoPublic stuffIntoPublic = new StuffIntoPublic();\n CountDownLatch startLatch = new CountDownLatch(1);\n\n executorService.submit(() -> {\n try {\n startLatch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n stuffIntoPublic.initialize();\n });\n executorService.submit(() -> {\n try {\n startLatch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n try{\n stuffIntoPublic.holder.assertSanity();\n } catch (NullPointerException npe) {\n npes.incrementAndGet();\n } catch (AssertionError e) {\n insanities.incrementAndGet();\n }\n });\n\n startLatch.countDown();\n }\n\n executorService.shutdown();\n executorService.awaitTermination(10, TimeUnit.SECONDS);\n\n System.out.printf(\"npes: %d, insanities: %d\", npes.get(), insanities.get());\n }",
"private void checkValid() {\n getSimType();\n getInitialConfig();\n getIsOutlined();\n getEdgePolicy();\n getNeighborPolicy();\n getCellShape();\n }",
"@Test\n\tpublic void testPublicInstanceVars() {\n\t\tip = new ImagePlus();\n\t\tassertFalse(ip.changes);\n\t\t/* OBSOLETE\n\t\tassertEquals(1.0,ip.pixelHeight,0.0);\n\t\tassertEquals(1.0,ip.pixelWidth,0.0);\n\t\tassertEquals(\"pixel\",ip.unit);\n\t\tassertEquals(\"pixel\",ip.units);\n\t\tassertFalse(ip.sCalibrated);\n\t\t*/\n\t}",
"void checkRep() {\n\t\tassert this.clauses != null : \"SATProblem, Rep invariant: clauses non-null\";\n\t}",
"@Test\n\tpublic void testInjectedComponentsAreNotNull() {\n\t\tassertThat(dataSource).isNotNull();\n\t\tassertThat(jdbcTemplate).isNotNull();\n\t\tassertThat(entityManager).isNotNull();\n\t\tassertThat(productRepository).isNotNull();\n\t\tassertThat(reviewRepository).isNotNull();\n\t}",
"private void checkStateSizes()\n\t{\n\t\tif (variableNames.size() != domainSizes.size())\n\t\t{\n\t\t\tif (DEBUG)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Variable names length = \"\n\t\t\t\t\t\t+ variableNames.size());\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"Domain size length = \" + domainSizes.size());\n\t\t\t}\n\t\t\tSystem.err.println(\"Numbers of state variables in inputs differ.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t}",
"private void assertValidity() {\n if (latitudes.size() != longitudes.size()) {\n throw new IllegalStateException(\"GIS location needs equal number of lat/lon points.\");\n }\n if (!(latitudes.size() == 1 || latitudes.size() >= 3)) {\n throw new IllegalStateException(\"GIS location needs either one point or more than two.\");\n }\n }",
"@Test\n\tpublic void correctParameters() {\n\t\tassertEquals(startTime, circle.startTime);\n\t\tassertEquals(duration, circle.duration);\n\t\tassertEquals(type, circle.type);\n\t\tassertEquals(height, circle.height, 0);\n\t}",
"boolean isFinal();",
"int realnVars();",
"public void testInicial(){\n\t\tString prueba = \"gg\";\n\t\tassertNotNull(prueba);\n\t}",
"@Test\r\n\tpublic void HealthyPersonConstTest() {\n\t\tAssert.assertEquals(\"HP getReason incorrect\", \"allergies\", hp1.getReason());\r\n\t\tAssert.assertEquals(\"HP getName incorrect\", \"Alex\", hp1.getName());\r\n\t\tAssert.assertEquals(\"HP getAge incorrect\", 20, hp1.getAge(),0.0001);\r\n\t}",
"@Test\n public void sanityCheck() {\n assertThat(true, is(true));\n }",
"@Test\n\tpublic void testInit() {\n\t\t/*\n\t\t * This test is just use to initialize everything and ensure a better\n\t\t * performance measure for all the other tests.\n\t\t */\n\t}",
"private void checkInitialization()\n {\n if (!initialized)\n throw new SecurityException(\"ArrayBag object is not initialized \" +\n \"properly.\");\n }",
"@Test\n void animalVariablesTest() {\n assertEquals(50, pens[0].getHealth());\n assertEquals(100, pens[1].getHealth());\n assertEquals(80, pens[2].getHealth());\n assertEquals(70, pens[3].getHealth());\n for (int i = 0; i < pens.length; i++) {\n assertEquals(100, pens[i].getHappiness());\n }\n assertEquals(50, pens[0].getValue());\n assertEquals(100, pens[1].getValue());\n assertEquals(80, pens[2].getValue());\n assertEquals(70, pens[3].getValue());\n }",
"@Test\n public final void testInitialSpinners() {\n int standardrows = 5;\n int standardcolumns = 5;\n assertEquals(standardrows, spysizedialog.getRows());\n assertEquals(standardcolumns, spysizedialog.getColumns());\n}",
"private void checkInitialization()\n {\n if (!initialized)\n throw new SecurityException(\"VectorStack object is not initialized \" +\n \"properly.\");\n }",
"public void testPreConditions() {\n\t\tassertNotNull(activity);\n\t\tassertNotNull(mFragment);\n\t\tassertNotNull(mAdapter);\n\t\tassertTrue(mAdapter instanceof MensaListAdapter);\n\t}",
"boolean isDummy() {\n return var == null;\n }",
"private void checkRep() {\n\t\tif (CHECK_CONSTANT) {\n\t\tassert (label != null && childNode != null);\n\t\t}\n\t}",
"private void checkNoGettersSetters() {\n if (getters != null || setters != null)\n throw new AnalysisException(\"Unexpected getter/setter value!\");\n }",
"@Test\n public void verifyParametersInput() {\n // act\n book.setISBN(isbn);\n book.setAuthors(array);\n book.setPublisher(publisher);\n // verify\n verify(book).setISBN(isbn);\n verify(book).setAuthors(array);\n verify(book).setPublisher(publisher);\n }",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"@Test\n\tpublic void Account_test() { Using HamCrest \t\t\n\t\t// Exercise code to run and test\n\t\t//\n\t\tmiCuenta.setHolder(this.arg1);\n\t\tString resHolder = miCuenta.getHolder(); \n\t\t//\n\t\tmiCuenta.setBalance(this.arg2);\n\t\tint resBalance = miCuenta.getBalance(); \n\t\t//\n\t\tmiCuenta.setZone(this.arg3);\n\t\tint resZone = miCuenta.getZone(); \n\t\t\t\t\t\t\n\t\t// Verify\n\t\tassertThat(this.arg1, is(resHolder));\n\t\tassertThat(this.arg2, is(resBalance)); \n\t\tassertThat(this.arg3, is(resZone)); \n\t}",
"@Test\n public final void testConstructorEmpty() {\n Set<String> s = this.constructorTest();\n Set<String> sExpected = this.constructorRef();\n /*\n * Assert that values of variables match expectations\n */\n assertEquals(sExpected, s);\n }",
"protected void checkInitialized() {\n \tcheckState(this.breeder!=null && this.threads!=null, \"Local state was not correctly set after being deserialized.\");\n }",
"@Test\n public void getDefensiveModifierTest() {\n \n assertEquals(0.2, hawthorn1.getDefenseModifier(), 0.1);\n }",
"public static void testbed() {\n int s[] = {5, 1, 0, 4, 2, 3};\n int y = length_easy(s, 3);\n\n System.out.println(\"length_easy y = \" + y);\n u.myassert(y == 4);\n int b[] = {5, 1, 0, 4, 2, 3};\n int x = length(s, 3);\n System.out.println(\"length x = \" + x);\n u.myassert(x == y);\n for (int i = 0; i < s.length; ++i) {\n u.myassert(s[i] == b[i]);\n }\n System.out.println(\"Assert passed\");\n }",
"@Test\n public void testIsNotUsed() {\n System.out.println(\"isNotUsed\");\n Setting s = Setting.factory();\n Setting s1 = Setting.factory();\n Setting s2 = Setting.factory();\n Setting s3 = Setting.getSetting(\"test1\");\n assertTrue(Setting.isNotUsed(\"junk\"));\n assertFalse(Setting.isNotUsed(s.getName()));\n\n }",
"private void setUp() {\r\n\tvariables = new Vector();\r\n\tstatements = new Vector();\r\n\tconstraints = new Vector();\r\n\tvariableGenerator = new SimpleVariableGenerator(\"v_\");\r\n }",
"private void usual() {\n try {\n //testing toString\n assertTrue(\"toString0\",\n f0.toString().equals(\"{...(0 elements)...}\"));\n assertTrue(\"toString1\",\n f1.toString().equals(\"{...(1 elements)...}\"));\n assertTrue(\"toString7\",\n f7.toString().equals(\"{...(2 elements)...}\"));\n\n //testing equals\n\n assertTrue(\"equals00\", f0.equals(f0));\n assertTrue(\"equals33\", f3.equals(f3));\n assertTrue(\"equals55\", f5.equals(f5));\n assertTrue(\"equals46\", f4.equals(f6));\n assertTrue(\"equals64\", f6.equals(f4));\n assertTrue(\"equals27\", f2.equals(f7));\n assertTrue(\"equals72\", f7.equals(f2));\n\n assertFalse(\"equals01\", f0.equals(f1));\n assertFalse(\"equals02\", f0.equals(f2));\n assertFalse(\"equals10\", f1.equals(f0));\n assertFalse(\"equals12\", f1.equals(f2));\n assertFalse(\"equals21\", f2.equals(f1));\n assertFalse(\"equals23\", f2.equals(f3));\n assertFalse(\"equals35\", f3.equals(f5));\n\n assertFalse(\"equals0string\", f0.equals(\"just a string\"));\n assertFalse(\"equals4string\", f4.equals(\"just a string\"));\n\n assertFalse(\"equals0null\", f0.equals(null));\n assertFalse(\"equals1null\", f1.equals(null));\n\n //testing hashCode\n assertTrue(\"hashCode00\", f0.hashCode() == f0.hashCode());\n assertTrue(\"hashCode44\", f4.hashCode() == f4.hashCode());\n assertTrue(\"hashCode46\", f4.hashCode() == f6.hashCode());\n assertTrue(\"hashCode27\", f2.hashCode() == f7.hashCode());\n }\n catch(Exception e) {\n System.out.println(\"Exception thrown during usual tests:\");\n System.out.println(e);\n assertTrue(\"usual\", false);\n }\n }",
"private void checkInitialization()\r\n\t{\r\n\t\tif ( !initialized )\r\n\t\t{\r\n\t\t\tthrow new SecurityException( \"Calculator is not properly initialized.\" );\r\n\t\t}//end if\r\n\t}",
"public void testCheckOxyEmpty() {\n }",
"@Test\n public void testIsValidFullName() {\n System.out.println(\"isValidFullName\");\n String fullName = \"Aliki Manou\";\n boolean expResult = true;\n boolean result = ValidVariables.isValidFullName(fullName);\n assertEquals(expResult, result);\n }",
"public void testManyVariablesAcrossCallsOk() throws Exception\n {\n resolveAndAssertSolutions(\"[[g(x), (f(X, Y, Z) :- g(X), g(Y), g(Z))], (?- f(X, X, X)), [[X <-- x]]]\");\n }",
"@Test\n public void testVirement3() {\n\n //Arrange\n CompteBancaire cpt1 = new CompteBancaire(0.0);\n CompteBancaire cpt2 = new CompteBancaire(43000.0);\n double montant_a_virer = 8000.0;\n double excepted_solde_cpt1 = 0.0;\n double excepted_solde_cpt2 = 43000.0;\n\n //Act\n assertEquals(false, cpt1.virerArgent(cpt2, montant_a_virer));\n\n //Assert\n assertEquals(excepted_solde_cpt1, cpt1.getSolde(), 0);\n assertEquals(excepted_solde_cpt2, cpt2.getSolde(), 0);\n\n }",
"@Test\n void testDefault() {\n final int SPEED = 5;\n final int X = 1;\n final int Y = 1;\n\n //positions to test against (correct conditions: X=x,Y=y)\n final int x = 1;\n final int y = 1;\n\n //Assigns Vehicle position x, y\n Vehicle vehicle = new Vehicle(X,Y,5);\n\n System.out.print(\"Vehicle speed is: \");\n System.out.println(vehicle.speed);\n\n //Testing vehicle positions and speed\n assertEquals(SPEED, vehicle.speed);\n assertEquals(x, vehicle.x);\n assertEquals(y, vehicle.y);\n\n\n\n }",
"@Test\r\n public void testVerificaPossibilidade4() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n usucapiao.setPosseIninterrupta(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }",
"public void testMisc()\n throws XMLStreamException\n {\n WstxInputProperties fooin = new WstxInputProperties();\n WstxOutputProperties fooout = new WstxOutputProperties();\n \n // These just to keep compilers/FindBugs etc happy\n assertNotNull(fooin);\n assertNotNull(fooout);\n }",
"@Test\n\tpublic void testMakeSureVarVariablesCanShadowLetVariables()\n\t{\n\t\tString[] code = {\n\t\t\t\"let a = 1;\",\n\t\t \"let b = 2;\",\n\t\t \"var c = 3;\",\n\n\t\t \"function sup(a) {\",\n\t\t \"var b = 4;\",\n\t\t \"let c = 5;\",\n\t\t \"let d = 6;\",\n\t\t \"if (false) {\",\n\t\t \"var d = 7;\",\n\t\t \"}\",\n\t\t \"return b + c + a + d;\",\n\t\t \"}\",\n\n\t\t \"sup();\"\n\t\t};\n\t\t\n\t\tth.addError(1, 5, \"'a' is defined but never used.\");\n\t th.addError(2, 5, \"'b' is defined but never used.\");\n\t th.addError(3, 5, \"'c' is defined but never used.\");\n\t th.addError(9, 5, \"'d' has already been declared.\");\n\t\tth.test(code, new LinterOptions().set(\"esnext\", true).set(\"unused\", true).set(\"undef\", true).set(\"funcscope\", true));\n\t}",
"@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 }",
"private void validateInputParameters(){\n\n }",
"@Override\n\t\tpublic void checkPreconditions() {\n\t\t}",
"@When(\"the game result is not yet final\")\n\tpublic void the_game_result_is_not_yet_final() {\n\t}",
"public void testFields()\n {\n TestUtils.testNoAddedFields(getTestedClass(), null);\n }",
"@Test\n public void testIsStringOnlyAlphabetAndNumbers() {\n System.out.println(\"isStringOnlyAlphabetAndNumbers\");\n String fullName = \"Ali8\";\n boolean expResult = true;\n boolean result = ValidVariables.isStringOnlyAlphabetAndNumbers(fullName);\n assertEquals(expResult, result);\n }",
"@Test\r\n void dependentAssertions() {\n \t\r\n assertAll(\"properties\",\r\n () -> {\r\n String firstName = person.getFirstName();\r\n assertNotNull(firstName);\r\n\r\n // Executed only if the previous assertion is valid.\r\n assertAll(\"first name\",\r\n () -> assertTrue(firstName.startsWith(\"J\")),\r\n () -> assertTrue(firstName.endsWith(\"n\"))\r\n );\r\n },\r\n () -> {\r\n // Grouped assertion, so processed independently\r\n // of results of first name assertions.\r\n String lastName = person.getLastName();\r\n assertNotNull(lastName);\r\n\r\n // Executed only if the previous assertion is valid.\r\n assertAll(\"last name\",\r\n () -> assertTrue(lastName.startsWith(\"D\")),\r\n () -> assertTrue(lastName.endsWith(\"e\"))\r\n );\r\n }\r\n );\r\n }",
"public final void testGetUserData() {\n assertEquals(hello.userData, n.getUserData());\n }",
"@Test\n public void didYouEnterAnObject(){\n //arrange\n Prompter prompter = Prompter.readOnly(expectedValue);\n String result = Localization.fromPrompter(prompter);\n //act\n //assess\n assertNotNull(result);\n }",
"@Test\n public void placeholder() {\n assertTrue(true);\n }",
"@Test\n public void validSetFlightInformation() {\n testUser.setUsername(\"username\");\n testUser.setLastName(\"lastname\");\n testUser.setPassword(\"password\");\n testUser.setFirstName(\"firstname\");\n\n Assertions.assertEquals(\"username\", testUser.getUsername());\n Assertions.assertEquals(\"lastname\", testUser.getLastName());\n Assertions.assertEquals(\"password\", testUser.getPassword());\n Assertions.assertEquals(\"firstname\", testUser.getFirstName());\n }",
"void check() throws IllegalStateException {\n if (\n title == null ||\n release == null ||\n duration == 0 ||\n synopsis == null ||\n genre == null ||\n cast == null\n )\n throw new IllegalStateException(\"incomplete type\");\n }",
"@Test\r\n public void testVerificaPossibilidade5() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n usucapiao.setPosseIninterrupta(true);\r\n usucapiao.setBemComumCasal(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }",
"@Test\n public void testValiderLaCouvertureDuSoin() {\n \n assertTrue(soin1.validerLaCouvertureDuSoin());\n soin3.setPourcentage(2.0);\n assertFalse(soin3.validerLaCouvertureDuSoin());\n soin3.setPourcentage(-1.1);\n assertFalse(soin3.validerLaCouvertureDuSoin());\n assertTrue(soin2.validerLaCouvertureDuSoin());\n }",
"private void checkInitialization()\n {\n if (!initialized)\n throw new SecurityException(\"ArrayQueue object is corrupt.\");\n }",
"@Test\r\n public void dummyCanGiveXP() {\n\r\n dummy.giveExperience();\r\n\r\n assertEquals(DUMMY_EXPERIENCE, dummy.giveExperience());\r\n }",
"@Test\n public void testHasAvailable1() {\n Pieces inv = new Pieces();\n boolean expResult = true;\n boolean result = inv.hasAvailable();\n assertEquals(expResult, result);\n }",
"public void test0() {\n\t\tempty(m1);\n\t\tempty(m2);\n\t\tempty(m3);\n\t\tempty(m4);\n\t}",
"@Test\n public void digestVariables() {\n IllegalStateException actualException = assertThrows(IllegalStateException.class, () -> expressionStack\n .addVariableName(\"A\")\n .addBinaryOperator(getMethodMapping(\"+\", 2, BINARY_OPERATION))\n .addVariableName(\"Z\")\n .addBinaryOperator(getMethodMapping(\"-\", 2, BINARY_OPERATION))\n .addVariableName(\"B\")\n .addBinaryOperator(getMethodMapping(\"*\", 2, BINARY_OPERATION))\n .addVariableName(\"B\")\n .closeWithState(DIGESTED_MATHEMATICAL_FUNCTIONS)\n .digestVariables(Collections.emptyMap()));\n assertEquals(\"Unknown variable(s) 'A', 'B', 'Z'.\", actualException.getMessage());\n }",
"public abstract int nVars();",
"@Override\n boolean isFinal() {\n return false;\n }",
"@Test\n public void pickUpSomeGoldTest() {\n\tassertNotEquals(0,score);\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkTest() {\n\t\tboolean flag = oTest.checkTest();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"@Test\n void _correctIfCaseTest() {\n\n actionApply();\n\n for (ReceiverPair receiverPair : dependedReceiverPairs) {\n for (AssingablePair assingablePair : incompatibleAssignablePairs) {\n verify(model).arithm(receiverPair.getVariableReceiver(), \"=\", assingablePair.getIndexAssignable());\n }\n }\n }",
"boolean hasVarValue();",
"void check()\n {\n checkUsedType(responseType);\n checkUsedType(requestType);\n }",
"void checkValid();",
"@Test\n void basicTest() {\n final OSEntropyCheck.Report report =\n assertDoesNotThrow(() -> OSEntropyCheck.execute(), \"Check should not throw\");\n assertTrue(report.success(), \"Check should succeed\");\n assertNotNull(report.elapsedNanos(), \"Elapsed nanos should not be null\");\n assertTrue(report.elapsedNanos() > 0, \"Elapsed nanos should have a positive value\");\n assertNotNull(report.randomLong(), \"A random long should have been generated\");\n }",
"public boolean getVariableRequired() {\r\n return relaxed;\r\n }",
"private void checkVanillaForInitializers(VariableDeclarationListTree variables) {\n for (VariableDeclarationTree declaration : variables.declarations) {\n if (declaration.initializer == null) {\n maybeReportNoInitializer(variables.declarationType, declaration.lvalue);\n }\n }\n }",
"@Test\n\tpublic void constructortest3() {\n\t\tMainDish dessertTest = new MainDish(\"quiche\");\n\t\tassertTrue(dessertTest.isGlutenFree()==false);\n\t}",
"@Test\n public void testGetDefaultValues()\n { \n assertThat(m_SUT.getDefaultValues(), is(m_DefaultValues));\n }"
]
| [
"0.6517706",
"0.6341022",
"0.6217356",
"0.5994397",
"0.5986369",
"0.5953848",
"0.5952945",
"0.5926704",
"0.59025294",
"0.5869956",
"0.5809358",
"0.58005196",
"0.5793785",
"0.5777092",
"0.57648855",
"0.57558167",
"0.57528394",
"0.57478863",
"0.5734916",
"0.5730059",
"0.5729787",
"0.57272464",
"0.5722668",
"0.5721378",
"0.5684567",
"0.5683366",
"0.5671138",
"0.5666048",
"0.5657351",
"0.5655344",
"0.5650786",
"0.5646803",
"0.5634088",
"0.5629885",
"0.5623625",
"0.5606599",
"0.55990064",
"0.55911225",
"0.5590823",
"0.55839545",
"0.55837667",
"0.5557563",
"0.55415255",
"0.553786",
"0.5525584",
"0.55190665",
"0.55065405",
"0.55009234",
"0.5493552",
"0.5485813",
"0.5481493",
"0.54777926",
"0.54735583",
"0.54725754",
"0.5466702",
"0.5464967",
"0.5462752",
"0.54562205",
"0.5455445",
"0.54550797",
"0.5449224",
"0.5448559",
"0.5447299",
"0.54467714",
"0.5437919",
"0.54358834",
"0.54310536",
"0.54294574",
"0.5422544",
"0.5419042",
"0.5415847",
"0.54102397",
"0.54074275",
"0.54032546",
"0.5396822",
"0.538474",
"0.53834635",
"0.5379651",
"0.5378928",
"0.5373357",
"0.53613836",
"0.53426784",
"0.53410155",
"0.5321589",
"0.5321424",
"0.531486",
"0.5312711",
"0.53101",
"0.53100467",
"0.5309627",
"0.5307661",
"0.5302848",
"0.53016657",
"0.52994287",
"0.52946",
"0.5289135",
"0.52890456",
"0.52885664",
"0.5287549",
"0.52863806",
"0.52822477"
]
| 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
view = inflater.inflate(R.layout.fragment_calendar, container, false);
mFirebaseAuth = FirebaseAuth.getInstance();
user = mFirebaseAuth.getCurrentUser();
userName = user.getDisplayName();
mCalendarView = (CalendarView) view.findViewById(R.id.calendarView);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
selectedDate = sdf.format(new Date(mCalendarView.getDate()));
mCalendarView.setOnDateChangeListener(new CalendarView.OnDateChangeListener() {
@Override
public void onSelectedDayChange(CalendarView calendarView, int year, int month,
int dayOfMonth) {
final Calendar cal = Calendar.getInstance();
cal.set(year, month, dayOfMonth);
// Get habits from FireBase and set depend of date.
FirebaseFirestore db = FirebaseFirestore.getInstance();
CollectionReference collectionReference = db.collection("habits");
collectionReference.get().addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {
@Override
public void onComplete(@NonNull Task<QuerySnapshot> task) {
mHabits = new ArrayList<>();
for (QueryDocumentSnapshot document : task.getResult()) {
Habit habit = document.toObject(Habit.class);
if (cal.getTime().compareTo(habit.getStartDate()) == 0
|| cal.getTime().compareTo(habit.getEndDate()) == 0
|| (cal.getTime().after(habit.getStartDate()) && cal.getTime().before(habit.getEndDate()))) {
mHabits.add(habit);
}
}
mRecyclerView = (RecyclerView) view.findViewById(R.id.recycler_view_calendar);
// mRecyclerView.setHasFixedSize(true);
mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
mCalendarAdapter = new CalendarAdapter(getContext(),mHabits, R.layout.fragment_habit_today);
mRecyclerView.setAdapter(mCalendarAdapter);
mCalendarAdapter.notifyDataSetChanged();
}
});
}
});
return view;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
]
| [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.6625158",
"0.66195583",
"0.66164845",
"0.6608733",
"0.6596594",
"0.65928894",
"0.6585293",
"0.65842897",
"0.65730995",
"0.6571248",
"0.6569152",
"0.65689117",
"0.656853",
"0.6566686",
"0.65652984",
"0.6553419",
"0.65525705",
"0.65432084",
"0.6542382",
"0.65411425",
"0.6538022",
"0.65366334",
"0.65355957",
"0.6535043",
"0.65329415",
"0.65311074",
"0.65310687",
"0.6528645",
"0.65277404",
"0.6525902",
"0.6524516",
"0.6524048",
"0.65232015",
"0.65224624",
"0.65185034",
"0.65130377",
"0.6512968",
"0.65122765",
"0.65116245",
"0.65106046",
"0.65103024",
"0.6509013",
"0.65088093",
"0.6508651",
"0.6508225",
"0.6504662",
"0.650149",
"0.65011525",
"0.6500686",
"0.64974767",
"0.64935696",
"0.6492234",
"0.6490034",
"0.6487609",
"0.6487216",
"0.64872116",
"0.6486594",
"0.64861935",
"0.6486018",
"0.6484269",
"0.648366",
"0.6481476",
"0.6481086",
"0.6480985",
"0.6480396",
"0.64797544",
"0.647696",
"0.64758915",
"0.6475649",
"0.6474114",
"0.6474004",
"0.6470706",
"0.6470275",
"0.64702207",
"0.6470039",
"0.6467449",
"0.646602",
"0.6462256",
"0.64617974",
"0.6461681",
"0.6461214"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int getOrder() {
return 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.