F-logic: Introduction to F-logic Elements of F-logic 2.1. Objects and their ID terms 2.2. feature structure (data expression
|
|
- がんま ちゃわんや
- 5 years ago
- Views:
Transcription
1 F-logic: Introduction to F-logic Elements of F-logic 2.1. Objects and their ID terms 2.2. feature structure (data expressions) 2.3. F-clauses (as non-logical axioms) 2.4. F-structure and entailment 2.5. H-structure (Herbrand structure) 3. entailment 3.1. Inference System 3.2. Inference Rules F-logic by Examples 4.1. Parameteric Polymorphism 4.2. Join in F-logic 4.3. Join in JAVA
2
3 1.1 MultiSet is defined as a Vector of elements with counters Vector, MultiSet, ElementWithCounter, Element (is defined as) subclass subclasses Write programs just in the way you understand objects and their relationships 3
4 import java.util.vector; // final class MultiSet extends Vector { MultiSet() {capacityincrement=100; // Vector protected void addelement(element element) {// super int index = findindex(element); if (index < 0) super.addelement(new ElementWithCounter(element)); else getelementwithcounter(index).count(); private Element getelement(int i) {// return ((ElementWithCounter)elementAt(i)).getElement(); private ElementWithCounter getelementwithcounter(int i) { return (ElementWithCounter)elementAt(i); private int findindex(element element) {// // // public boolean lessthan(object anotherele) // MultiSet // addelement // Vector Hashtable // ElementWithCounter value key-value for (int i=0; i<size(); i++) if (getelement(i).equals(element)) return i; return -1; void show() { for (int i=0; i<size(); i++) getelementwithcounter(i).show(); System.out.println(); final class ElementWithCounter { private Element element; Element getelement() {return element; private int counter=1; void count() {counter++; ElementWithCounter(Element element) {this.element=element; void show() {System.out.print(counter+" "); element.show(); // String getkey() {return element.getkey(); interface Element { // boolean equals(object x); // void show(); // String getkey(); 4
5 final class MyElement implements Element { private String str; // public String getkey() {return str; MyStr(String str) {this.str = str; public String getkey() {return str; public boolean equals(object x) {return ((MyStr)x).str.equals(str); public void show() {System.out.print(str+", "); // 5
6 1.2 Introduction to F-logic nonlogical axiom Herbarand universe: object ID = Herbrand universe memberof, subclassof, relation, feature/method object ID object = object identity relation mary = mother(john) : ID object paramodulation terminological logic 1. F-logic 2. Write facts, rules and knowledge just in the way you understand objects and their relationships 6
7 1.3 a f b a b join Herbrand universe vr, va VirtualRecord, VirtualAttr 7
8 :- mv(car1) DB JDBC Java 8
9 // Java ResultSet rs = stmt.executequery("select * FROM CUSTOMER"); // rs // while (rs.next()) { String str1 = rs.getstring("name"); int str2 = rs.getint("cust_id"); 1. narrowing or 2. Ψ-, or 3. e.g. a = father(b) fatherof(a,b)... 9
10 2 Elements of F-logic subclass ofmembership(instance of)
11 2.1 Objects and their ID terms 1. x U y U z x U z 2. U binary relation 3. nonlogical axiom 1. x : y x is a member of y x :: y x is a subclass of y 2. child(mary) object X : child(y) :- Y [ child X ] 3. = X : Z : X : Y, Y :: Z 11
12 2.2 feature structure (data expressions) a[m b] a[m {b 1, b 2 ] a[m@p 1, p 2 b] a[m@p 1, p 2 {b 1, b 2 ] a p 1,... m. I ( m )( a, p 1,..., p k ) U I : U F unc(u k+1, U) k=0 I ( m )( a, p 1,..., p k ) P (U) I : U F unc(u k+1, P (U)) k=0 1. a[m b] I ( m )( a ) b 2. a[m {b 1,..., b k ] I ( m )( a ) V and 1. Therefore, semantically { b 1,..., b k V where, F unc : set of partial functions where, P (U) : power set of U a[m {b 1,..., b k ] (a[m {b j ] for j = 1,..., k) 2. abbreviation: a[m b j ] a[m {b j ] 3. ( ) k = X[M B j ] X[M {B 1,..., B k ] j=1 12
13 2.3 F-clauses (as non-logical axioms) F-molecule (molecular formula) ISA assertion o1 : o2, o1 :: o2, object molecule o[data expression;...] F-clause: F-molecule A 1,..., A n : B 1,..., B m ( universally quantified) 1. ISA hierarchy: 45 : integer. "CS":string. "Bob":string. string::datatype.... bob: mnger. bob: facultymember. (no primary class) mnger::employee. facultymember::employee. cs: dept. 2. database facts: (molecule) bob [ name Bob ; age 40; worksfor cs [ dsname CS ; mngr bob; assistants {john,sally ] ] 3. Deductive Rules: E [ boss M ] :- E:employee, D:dept, M:employee, E [ worksfor D [mnger M ] ] 4. entailment : S = mh[boss bob] : mh : faclutymember, mh[worksf or cs]] mh: facultymember CS S = mh[boss bob] 13
14 2.4 F-structure and entailment F-structure;: F = (U, U, U, I, I ) 1. object ID term U 2. instanceof, subclassof, where x U y, y U z x U z 3. U () entailment: For a F-clause A, and a set of F-clauses S, S = A for all F-structure F, F = S F = A def = A for all F-structure F, F = S def A Inference H-structure: Type Inference: 14
15 2.5 H-structure (Herbrand structure) object ID fuctor object universe U identity relation oid 1 = oid 2 oid j object. F = t 1 = t 2 t 1 F = t 2 F def where t F : evaluation under F = X = X. = X = Y Y = X. = X = Z : X = Y, Y = Z. = f(x 1,..., X n ) = f(y 1,..., Y n ) : X 1 = Y 1,..., X n = Y n. john = fatherof(mary) F = john = fatherof(mary) F john fatherof(mary) U 15
16 Herbrand base HB(F ) def set of all ground F-molecules H-structure H def H HB(F ) such that H = α α H for all α HB(F ) (closed under entailment) E [boss M] :- E:employee,D:dept,M:employee, E [worksfor D [ mnger M ]]. (1) Y = Z :- X [M Y], X [M Z]. (2) (1) ground instance (2) ground instance ()\\ 16
17 2.6 H-structure as Working Memory H-structure: 1. H-universe: object ID 2. H-therefore, H-universe a[m b], a:b, a::c name Production System 1. If A then B 2. A 3. H- structure name space working memory 17
18 3 entailment Given S: set of F-molecules, α: ground F-molecule, Qestion: S = α or not Herbrand Theorem (F-logic version): S = α S { α : unsat finite unsat. S [S] { α where [S] set of g-inst. of F-molecules in S β or β [S] F- 3. F-molecules entailment 18
19 3.1 Inference System Qestion: Given unsat S (false in every F-structure) S (1) β, β F-molecules (2)entailment nonlogical axiom S: unsat. set of ground F-clauses S 19
20 3.2 Inference Rules resolution: Hs : As, A A, Bs : Es (Hs, Bs : As, Es)σ where σ : mgu from A to A paramodulation L(t) Bs t 1 = t 2 Cs (L(t 2 ) B C)σ ISA inference: t 1 :: t 2 B t 2 :: t 1 C axiom schema: x :: x (t 1 = t 2 B Cσ t 1 :: t 2 B t 2 :: t3 C t 1 : t 2 B t 2 :: t3 C (t 1 :: t3 B C)σ (t 1 : t3 B C)σ 20
21 3.3 C 1 σ 1,..., C k σ k D there exist D and ζ s.t. Dζ = D C 1,..., C k D C 1,..., C k D mgu 21
22 4 F-logic by Examples 4.1 Parameteric Polymorphism Car:dieselCars(Year) :- Car:car [ enginetype "diesel"; makeyear Year ] nil:list(t). cons(x,y):list(t) :- X:T, Y:list(T). (base) (step) :- cons(mh,cons(bob,nil)):list(empl). (step) :- mh:empl, cons(bob,nil):list(empl). (ISA) mh:empl. :- cons(bob,nil):list(empl). (step) :- bob:empl, nil:list(empl). (ISA) bob:empl :- nil:list(empl). (base) : Prolog import java.util.vector; final class List extends Vector {// Vector final static List nil = new List(); // nil List cons(element element) {insertelementat(element, 0); return this; Element getelement(int index) {return (Element)elementAt(index); abstract class Element { /*. Element list(t) T */ final class Employee extends Element { private String name; private int age; Employee(String str, int age) {name=str; this.age=age; private void show() {System.out.print("["+name+","+age+"], "); public static void main(string args[]) { Employee mh = new Employee("mh",30); Employee bob = new Employee("bob",50); List list = List.nil.cons(mh).cons(bob); for (int i=0;i<list.size();i++) ((Employee)list.getElement(i)).show(); 22
23 4.2 Join in F-logic 1. ( a[attr b]) s1 : student[indv hg, dept physics]. s2 : student[indv bob, dept cs, ta class3]. hg, bob hg : indv[name HG, weight 50, hoby music]. bob : indv[name bob, hoby music]. 2. objectid 3. thus, 4. object objectid p(x,y,z) p(x,y,z) [ name X, weight Y, height Z]. 23
24 1. P, Q, join(p,q,c) join(p,q,c): P Q (denoted by join(p,q,nil)) C nil c( 1, 2, ) 1 = 2 2. P Q new(t1,t2) where (1) rename(attr): Attr (2) new(p tuple, Qtuple)[P Attr V P, rename(qattr) V Q] : P tuple[p Attr V P ], Qtuple[QAttr V Q]. 3. join(p,q,c) C rename join(p,q,cs) new(p tuple, Qtuple) : join(p, Q, nil) : P tuple : P, Qtuple : Q. new(p tuple, Qtuple) : join(p, Q, c(p Attr, QAttr, cs)) : P tuple : P [P Attr V ], Qtuple : Q[QAttr V ], new(p tuple, Qtuple) : join(p, Q, cs). 24
25 Fig. Herbrand universe Fig. 25
26 4.3 Join in JAVA object ID feature-relation Herbrand universe object object(id) (cartecian product) object VirtualAttr VirtualRecord view view import java.util.vector; import common.myio.*; import common.fileprocess.normalcsv; import java.io.*; import common.printobj.*; /* PrintObj : Std (StdOut) (FileOutput) NormalCSV : */ // class Attr (abstract) of real or virtual attrs abstract class Attr { abstract String getname(); abstract int getindex(); abstract void show(printobj po); void show() {show(printobj.stdout); boolean equals(attr attr) { return getname().equals(attr.getname()); // subclass RealAttr of real attrs final class RealAttr extends Attr{ private String attrname; String getname() {return attrname; private int indextoschema;// int getindex() {return indextoschema; RealAttr(String s, int i) {attrname=s; indextoschema=i; void show(printobj po) { 26
27 po.print(attrname+"("+indextoschema+")"); // subclass VirtualAttr of virtual attrs final class VirtualAttr extends Attr{//cartecian product // rename(attr) private Attr originalattr;//pointers to real or virtual attrs Attr getoriginalattr() {return originalattr; private int relationindex; int getrelationindex() {return relationindex; VirtualAttr(Attr ra, int rrindex) { originalattr = ra; relationindex = rrindex; String getname() {// recursion RealAttr.getName return originalattr.getname(); int getindex() {// recursion RealAttr.getIndex return originalattr.getindex(); void show(printobj po) {// recursion RealAttr.show po.print(relationindex+".");originalattr.show(po); // class Record (abstract) of real or virtual records abstract class Record { abstract String getvalue(attr attr);// record_id [ attr value ] void show(attr[] attrs, PrintObj po) { if (attrs.length==0) return; for (int i=0;i<attrs.length-1;i++) po.print(getvalue(attrs[i])+","); po.println(getvalue(attrs[attrs.length-1])); boolean equals(record record2, Condition[] conds) { for (int c=0;c<conds.length;c++) if (!getvalue(conds[c].leftattrofeq()). equals(record2.getvalue(conds[c].rightattrofeq()))) return false; return true; 27
28 // subclass RealRecord of real records final class RealRecord extends Record { private String[] values; RealRecord (String[] ss) {values=ss; String getvalue(attr attr) {// attr must be realattr String s=null; try{ s = values[((realattr)attr).getindex()]; catch (Exception e) { myio.seriouserror("attr for real record not defined: "+e+" : ");attr.show(); ; return s; // subclass VirtualRecord (of product type) final class VirtualRecord extends Record { private Record[] records;// pointers to real or virtual records VirtualRecord(Record[] rs) {records=rs; String getvalue(attr attr) {// attr must be virtual String s=null; try{// VirtualAttr vattr = (VirtualAttr)attr; s = records[vattr.getrelationindex()].getvalue(vattr.getoriginalattr()); catch (Exception e) { myio.seriouserror("attr for virtual record not defined: "+e+" : "); attr.show(); ;// return s; // class Condition {// of LHSAttr = RHSAttr final class Condition { private Attr leftattrofeq, rightattrofeq; Attr leftattrofeq() {return leftattrofeq; Attr rightattrofeq() {return rightattrofeq; Condition(Attr attr1, Attr attr2) {leftattrofeq=attr1; rightattrofeq=attr2; 28
29 // class Relation of relations final class Relation { private String relname; private Attr[] schema; Attr getattr(int index) {return schema[index]; private Vector records = new Vector(); //of record Record getrecord(int index) {return (Record)records.elementAt(index); void addrecord(record record) {records.addelement(record); Relation(String relname, String[] schemainstr) {//create this.relname=relname; schema = new Attr[schemaInStr.length]; for (int i=0;i<schemainstr.length;i++) schema[i] = new RealAttr(schemaInStr[i],i); Relation(String relname, Relation[] relations) {//create product relation this.relname=relname; int nofattrs =0; for (int i=0;i<relations.length;i++) nofattrs=nofattrs+relations[i].schema.length; schema = new Attr[nofAttrs]; int index=0; for (int i=0;i<relations.length;i++) for (int j=0; j<relations[i].schema.length;j++) schema[index++] = new VirtualAttr(relations[i].schema[j], i); Relation join(relation relation, Condition[] conditions) { Relation[] relations = {this, relation; Relation join = new Relation("("+relName+" x "+relation.relname+")", relations); for (int i=0;i<records.size();i++) { Record record1 = getrecord(i); for (int j=0;j<relation.records.size();j++) { Record record2 = relation.getrecord(j); if (!record1.equals(record2, conditions)) continue; Record[] recordpair = {record1, record2; join.addrecord(new VirtualRecord(recordpair)); ; ; return join; void show(attr[] attrs, PrintObj po) { po.println("//--- "+relname+" ---"); for (int i=0;i<attrs.length-1;i++) {attrs[i].show(po); po.print(", ");; attrs[attrs.length-1].show(po);po.println(); for (int i=0;i<records.size();i++) getrecord(i).show(attrs,po); 29
30 void show(printobj po) {show(schema,po); // Relation naturaljoin(relation relation2) { boolean[] properrel2attrs = new boolean[relation2.schema.length]; for (int j=0;j<relation2.schema.length;j++) properrel2attrs[j]=true; Condition[] conds = // properrel2attrs equationsforcommonattrs(relation2.schema, properrel2attrs); Relation join = join(relation2,conds); join.schema = naturaljoinschema(join.schema, properrel2attrs, conds.length); return join; private Condition[] equationsforcommonattrs(attr[] schema2, boolean[] properrel2attrs) { int[] eqcorrespondence = new int[schema.length]; int nofcommonattrs = 0; for (int i=0;i<schema.length;i++) { boolean flag=false; for (int j=0; j<schema2.length;j++) if (schema[i].equals(schema2[j])) { eqcorrespondence[i]=j; properrel2attrs[j]=false; nofcommonattrs++; flag=true; break; ; if (!flag) eqcorrespondence[i]=-1; ; Condition[] equations = new Condition[nofCommonAttrs]; nofcommonattrs = 0; for (int i=0;i<schema.length;i++) { if (eqcorrespondence[i] < 0) continue; equations[nofcommonattrs++] = new Condition(schema[i], schema2[eqcorrespondence[i]]); ; return equations; private Attr[] naturaljoinschema(attr[] productschema, boolean[] properrel2attrs, int nofcommonattrs) { Attr[] newschema = new Attr[productSchema.length - nofcommonattrs]; for (int i=0;i<schema.length;i++) newschema[i] = productschema[i]; int index=schema.length; for (int j=0;j<properrel2attrs.length;j++) if (properrel2attrs[j]) newschema[index++]=productschema[schema.length+j]; return newschema; 30
31 // class LoadRelation of task objects for loading CSV final class LoadRelation extends NormalCSV { private Relation relation; Relation loadrelation(string[] args) { csvfileprocessing(args); return relation; protected String inputformmessage() {return "LoadRelation CsvFileName"; protected String defineinputfilename(string[] args) {return args[0]; protected void processcommandline(string[] args) { protected void setparameters() { relation = new Relation(getInputFileName(), getcsvattrs()); protected void processtuple(string[] tuple, int datalinenumber) { relation.addrecord(new RealRecord(tuple)); protected void postprocessing(){ // class TestJoin { final class TestJoin { public static void main(string args[]) { StdOut stdout = PrintObj.stdout; if (args.length!=3) myio.seriouserror(" CsvFile1 CsvFile2 outputcsv"); Relation[] rels = new Relation[2]; for (short j=0;j<2;j++) { String[] newargs = {args[j]; rels[j] = new LoadRelation().loadRelation(newArgs); // rels[j].show(stdout); ; // rels[0].naturaljoin(rels[1]).show(stdout); FileOutput output = new FileOutput(args[2]); rels[0].naturaljoin(rels[1]).show(output); output.close(); System.out.println("+++ "+args[2]+" "); 31
ALG ppt
2012 6 21 (sakai.keiichi@kochi-tech.ac.jp) http://www.info.kochi-tech.ac.jp/k1sakai/lecture/alg/2012/index.html 1 l l O(1) l l l 2 (123 ) l l l l () l H(k) = k mod n (k:, n: ) l l 3 4 public class MyHashtable
More informationuntitled
2011 6 20 (sakai.keiichi@kochi-tech.ac.jp) http://www.info.kochi-tech.ac.jp/k1sakai/lecture/alg/2011/index.html tech.ac.jp/k1sakai/lecture/alg/2011/index.html html 1 O(1) O(1) 2 (123) () H(k) = k mod n
More information新・明解Java入門
537,... 224,... 224,... 32, 35,... 188, 216, 312 -... 38 -... 38 --... 102 --... 103 -=... 111 -classpath... 379 '... 106, 474!... 57, 97!=... 56 "... 14, 476 %... 38 %=... 111 &... 240, 247 &&... 66,
More informationJava演習(4) -- 変数と型 --
50 20 20 5 (20, 20) O 50 100 150 200 250 300 350 x (reserved 50 100 y 50 20 20 5 (20, 20) (1)(Blocks1.java) import javax.swing.japplet; import java.awt.graphics; (reserved public class Blocks1 extends
More informationclass IntCell { private int value ; int getvalue() {return value; private IntCell next; IntCell next() {return next; IntCell(int value) {this.value =
Part2-1-3 Java (*) (*).class Java public static final 1 class IntCell { private int value ; int getvalue() {return value; private IntCell next; IntCell next() {return next; IntCell(int value) {this.value
More information解きながら学ぶJava入門編
44 // class Negative { System.out.print(""); int n = stdin.nextint(); if (n < 0) System.out.println(""); -10 Ÿ 35 Ÿ 0 n if statement if ( ) if i f ( ) if n < 0 < true false true false boolean literalboolean
More informationclass IntCell { private int value ; int getvalue() {return value; private IntCell next; IntCell next() {return next; IntCell(int value) {this.value =
Part2-1-3 Java (*) (*).class Java public static final 1 class IntCell { private int value ; int getvalue() {return value; private IntCell next; IntCell next() {return next; IntCell(int value) {this.value
More informationやさしいJavaプログラミング -Great Ideas for Java Programming サンプルPDF
pref : 2004/6/5 (11:8) pref : 2004/6/5 (11:8) pref : 2004/6/5 (11:8) 3 5 14 18 21 23 23 24 28 29 29 31 32 34 35 35 36 38 40 44 44 45 46 49 49 50 pref : 2004/6/5 (11:8) 50 51 52 54 55 56 57 58 59 60 61
More informationK227 Java 2
1 K227 Java 2 3 4 5 6 Java 7 class Sample1 { public static void main (String args[]) { System.out.println( Java! ); } } 8 > javac Sample1.java 9 10 > java Sample1 Java 11 12 13 http://java.sun.com/j2se/1.5.0/ja/download.html
More information{:from => Java, :to => Ruby } Java Ruby KAKUTANI Shintaro; Eiwa System Management, Inc.; a strong Ruby proponent http://kakutani.com http://www.amazon.co.jp/o/asin/4873113202/kakutani-22 http://www.amazon.co.jp/o/asin/477413256x/kakutani-22
More informationExam : 1z1-809-JPN Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO Get Latest & Valid 1z1-809-JPN Exam's Question and Answers 1 from Ac
Actual4Test http://www.actual4test.com Actual4test - actual test exam dumps-pass for IT exams Exam : 1z1-809-JPN Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO Get Latest & Valid 1z1-809-JPN
More informationtkk0408nari
SQLStatement Class Sql Database SQL Structured Query Language( ) ISO JIS http://www.techscore.com/tech/sql/02_02.html Database sql Perl Java SQL ( ) create table tu_data ( id integer not null, -- id aid
More information10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV
tutimura@mist.i.u-tokyo.ac.jp kaneko@ipl.t.u-tokyo.ac.jp http://www.misojiro.t.u-tokyo.ac.jp/ tutimura/sem3/ 2002 12 11 p.1/33 10/16 1. 10/23 2. 10/30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20
More informationJava (9) 1 Lesson Java System.out.println() 1 Java API 1 Java Java 1
Java (9) 1 Lesson 7 2008-05-20 Java System.out.println() 1 Java API 1 Java Java 1 GUI 2 Java 3 1.1 5 3 1.0 10.0, 1.0, 0.5 5.0, 3.0, 0.3 4.0, 1.0, 0.6 1 2 4 3, ( 2 3 2 1.2 Java (stream) 4 1 a 5 (End of
More informationJava学習教材
Java 2016/4/17 Java 1 Java1 : 280 : (2010/1/29) ISBN-10: 4798120987 ISBN-13: 978-4798120980 2010/1/29 1 Java 1 Java Java Java class FirstExample { public static void main(string[] args) { System.out.println("
More informationDVIOUT-flogic-kb-new
F 論理 -2 1 はじめに 前回 : RDB 主キーと外部キーを区別 OODB OIDのみ F 論理 OIDを1 階の項で表記. OID 間の有向グラフ構造 : F 分子式エッジは ( パラメータ付き ) メソッドでラベリング継承規則などのシステム公理一般のF 論理は, A 1,,A n : B 1,..., B m の形式のルール, OID 間の等号 (mary = mother(tom)),
More informationextends (*) (*) extend extends 2
2007-2-1-4 1 1.1 1 extends (*) (*) extend extends 2 class Person { private String name; String name() {return name; Person(String name) { this.name=name; class Worker extends Person { private int salary;
More informationJava プログラミング Ⅰ 3 回目変 数 今日の講義講義で学ぶ内容 変数とは 変数の使い方 キーボード入力の仕方 変 数 変 数 一時的に値を記憶させておく機能 変数は 型 ( データ型 ) と識別子をもちます 2 型 ( データ型 ) 変数に記憶する値の種類変数の型は 記憶できる値の種類と範囲
Java プログラミング Ⅰ 3 回目変 数 今日の講義講義で学ぶ内容 変数とは 変数の使い方 キーボード入力の仕方 変 数 変 数 一時的に値を記憶させておく機能 変数は 型 ( データ型 ) と識別子をもちます 2 型 ( データ型 ) 変数に記憶する値の種類変数の型は 記憶できる値の種類と範囲を決定します 次の型が利用でき これらの型は特に基本型とよばれます 基本型 値の種類 値の範囲 boolean
More informationMicrosoft PowerPoint ppt
独習 Java ( 第 3 版 ) 6.7 変数の修飾子 6.8 コンストラクタの修飾子 6.9 メソッドの修飾子 6.10 Object クラスと Class クラス 6.7 変数の修飾子 (1/3) 変数宣言の直前に指定できる修飾子 全部で 7 種類ある キーワード final private protected public static transient volatile 意味定数として使える変数同じクラスのコードからしかアクセスできない変数サブクラスまたは同じパッケージ内のコードからしかアクセスできない変数他のクラスからアクセスできる変数インスタンス変数ではない変数クラスの永続的な状態の一部ではない変数不意に値が変更されることがある変数
More informationアルゴリズムとデータ構造1
1 200972 (sakai.keiichi@kochi sakai.keiichi@kochi-tech.ac.jp) http://www.info.kochi ://www.info.kochi-tech.ac.jp/k1sakai/lecture/alg/2009/index.html 29 20 32 14 24 30 48 7 19 21 31 Object public class
More informationPowerPoint Presentation
UML 2004 7 9 10 ... OOP UML 10 Copyright 2004 Akira HIRASAWA all rights reserved. 2 1. 2. 3. 4. UML 5. Copyright 2004 Akira HIRASAWA all rights reserved. 3 1..... Copyright 2004 Akira HIRASAWA all rights
More information,,,,., C Java,,.,,.,., ,,.,, i
24 Development of the programming s learning tool for children be derived from maze 1130353 2013 3 1 ,,,,., C Java,,.,,.,., 1 6 1 2.,,.,, i Abstract Development of the programming s learning tool for children
More information. IDE JIVE[1][] Eclipse Java ( 1) Java Platform Debugger Architecture [5] 3. Eclipse GUI JIVE 3.1 Eclipse ( ) 1 JIVE Java [3] IDE c 016 Information Pr
Eclipse 1,a) 1,b) 1,c) ( IDE) IDE Graphical User Interface( GUI) GUI GUI IDE View Eclipse Development of Eclipse Plug-in to present an Object Diagram to Debug Environment Kubota Yoshihiko 1,a) Yamazaki
More informationI java A
I java 065762A 19.6.22 19.6.22 19.6.22 1 1 Level 1 3 1.1 Kouza....................................... 3 1.2 Kouza....................................... 4 1.3..........................................
More information6 p.1 6 Java GUI GUI paintcomponent GUI mouseclicked, keypressed, actionperformed mouseclicked paintcomponent thread, 1 GUI 6.0.2, mutlithread C
6 p.1 6 Java GUI GUI paintcomponent GUI mouseclicked, keypressed, actionperformed mouseclicked paintcomponent 6.0.1 thread, 1 GUI 6.0.2, mutlithread CPU 1 CPU CPU +----+ +----+ +----+ Java 1 CPU 6 p.2
More information(Java/FX ) Java CD Java version Java VC++ Python Ruby Java Java Eclipse Java Java 3 Java for Everyone 2 10 Java Midi Java JavaFX Shape Canvas C
(Java/FX ) Java CD Java version 10.0.1 Java VC++ Python Ruby Java Java Eclipse Java Java 3 Java for Everyone 2 10 Java Midi Java JavaFX Shape Canvas Canvas Eclipse Eclipse M... 1 javafx e(fx)clipse 3.0.0
More informationExam : 1z0-809 日本語 (JPN) Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO 1 / 8 Get Latest & Valid 1z0-809-JPN Exam's Question and Answe
Actual4Test http://www.actual4test.com Actual4test - actual test exam dumps-pass for IT exams Exam : 1z0-809 日本語 (JPN) Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO 1 / 8 Get Latest &
More informationJava (5) 1 Lesson 3: x 2 +4x +5 f(x) =x 2 +4x +5 x f(10) x Java , 3.0,..., 10.0, 1.0, 2.0,... flow rate (m**3/s) "flow
Java (5) 1 Lesson 3: 2008-05-20 2 x 2 +4x +5 f(x) =x 2 +4x +5 x f(10) x Java 1.1 10 10 0 1.0 2.0, 3.0,..., 10.0, 1.0, 2.0,... flow rate (m**3/s) "flowrate.dat" 10 8 6 4 2 0 0 5 10 15 20 25 time (s) 1 1
More informationJavaプログラミングⅠ
Java プログラミング Ⅰ 3 回目変数 今日の講義で学ぶ内容 変数とは 変数の使い方 キーボード入力の仕方 変 数 変 数 一時的に値を記憶させておく機能です 変数は 型 ( データ型ともいいます ) と識別子をもちます 2 型 変数に記憶できる値の種類です型は 値の種類に応じて次の 8 種類があり これを基本型といいます 基本型値の種類値の範囲または例 boolean 真偽値 true または
More informationJava プログラミング Ⅰ 7 回目 switch 文と論理演算子 今日の講義講義で学ぶ内容 switch 文 論理演算子 条件演算子 条件判断文 3 switch 文 switch 文 式が case のラベルと一致する場所から直後の break; まで処理しますどれにも一致致しない場合 def
Java プログラミング Ⅰ 7 回目 switch 文と論理演算子 今日の講義講義で学ぶ内容 switch 文 論理演算子 条件演算子 条件判断文 3 switch 文 switch 文 式が case のラベルと一致する場所から直後の まで処理しますどれにも一致致しない場合 default: から直後の まで処理します 式の結果 ラベル 定数 整数または文字 (byte, short, int,
More informationオブジェクト脳のつくり方
2003 12 16 ( ) ML Java,.NET, UML J2EE, Web Java, J2EE.NET SI ex. ) OO OO OO OO OO (Controller) (Promoter) (Analyzer) (Supporter) http://nba.nikkeibp.co.jp/coachsp.html It takes time. OO OK OO 1.
More informationQ&A集
& ver.2 EWEB-3C-N080 PreSerV for Web MapDataManager & i 1... 1 1.1... 1 1.2... 2 1.3... 6 1.4 MDM. 7 1.5 ( )... 9 1.6 ( )...12 1.7...14 1.8...15 1.9...16 1.10...17 1.11...18 1.12 19 1.13...20 1.14...21
More informationJavaセキュアコーディングセミナー東京 第3回 入出力(File, Stream)と例外時の動作 演習解説
Java セキュアコーディングセミナー東京第 3 回入出力と例外時の動作 演習解説 2012 年 11 月 11 日 ( 日 ) JPCERT コーディネーションセンター脆弱性解析チーム戸田洋三 1 Hands-on Exercises コンパイルエラーに対処しよう ファイルからのデータ入力を実装しよう 2 Hands-on Exercise(1) サンプルコードの コンパイルエラーに対処しよう 3
More information226
226 227 Main ClientThread Request Channel WorkerThread Channel startworkers takerequest requestqueue threadpool WorkerThread channel run Request tostring execute name number ClientThread channel random
More informationコーディング基準.PDF
Java Java Java Java.java.class 1 private public package import / //////////////////////////////////////////////////////////////////////////////// // // // // ////////////////////////////////////////////////////////////////////////////////
More informationTopLink å SampleClient.java... 5 Ò readallsample() querysample() cachesample() Ç..
lê~åäé= qçéiáåâ= NMÖENMKNKPF Volume2 Creation Date: Mar 04, 2005 Last Update: Aug 22, 2005 Version 1.0 ...3... 3 TopLink å...4 1... 4... 4 SampleClient.java... 5 Ò... 8... 9... 10 readallsample()... 11
More information8 if switch for while do while 2
(Basic Theory of Information Processing) ( ) if for while break continue 1 8 if switch for while do while 2 8.1 if (p.52) 8.1.1 if 1 if ( ) 2; 3 1 true 2 3 false 2 3 3 8.1.2 if-else (p.54) if ( ) 1; else
More informationJavaプログラミングⅠ
Java プログラミング Ⅰ 3 回目変数 今日の講義で学ぶ内容 変数とは 変数の使い方 キーボード入力の仕方 変 数 変 数 一時的に値を記憶させておく機能です 変数は 型 ( データ型ともいいます ) と識別子をもちます 2 型 変数に記憶できる値の種類です型は 値の種類に応じて次の 8 種類があり これを基本型といいます 基本型値の種類値の範囲または例 boolean 真偽値 true または
More informationThread
14 2013 7 16 14.1....................................... 14 1 14.2 Thread................................... 14 1 14.3............................. 14 5 14.4....................................... 14 10
More information$ java StoreString abc abc ed abced twice abcedabced clear xyz xyz xyz bingo! abc bingo!abc ^Z mport java.io.*; ublic class StoreString { public static void main(string[] args) throws IOException{ BufferedReader
More information問題1 以下に示すプログラムは、次の処理をするプログラムである
問題 1 次のプログラムの出力結果を a~d の中から選べ public class Problem1 { int i=2; int j=3; System.out.println("i"+j); a) 23,b) 5,c) i3,d) ij 問題 2 次のプログラムの出力結果を a~d の中から選べ public class Problem2 { int a=6; if((a>=2)&&(a
More informationVB.NETコーディング標準
(C) Copyright 2002 Java ( ) VB.NET C# AS-IS extremeprogramming-jp@objectclub.esm.co.jp bata@gold.ocn.ne.jp Copyright (c) 2000,2001 Eiwa System Management, Inc. Object Club Kenji Hiranabe02/09/26 Copyright
More informationユニット・テストの概要
2004 12 ... 3... 3... 4... 5... 6... 6 JUnit... 6... 7 Apache Cactus... 7 HttpUnit/ServletUnit... 8 utplsql... 8 Clover... 8 Anthill Pro... 9... 10... 10... 10 SQL... 10 Java... 11... 11... 12... 12 setter
More information5 p Point int Java p Point Point p; p = new Point(); Point instance, p Point int 2 Point Point p = new Point(); p.x = 1; p.y = 2;
5 p.1 5 JPanel (toy example) 5.1 2 extends : Object java.lang.object extends... extends Object Point.java 1 public class Point { // public int x; public int y; Point x y 5.1.1, 5 p.2 5 5.2 Point int Java
More informationr1.dvi
2006 1 2006.10.6 ( 2 ( ) 1 2 1.5 3 ( ) Ruby Java Java Java ( Web Web http://lecture.ecc.u-tokyo.ac.jp/~kuno/is06/ / ( / @@@ ( 3 ) @@@ : ( ) @@@ (Q&A) ( ) 1 http://www.sodan.ecc.u-tokyo.ac.jp/cgi-bin/qbbs/view.cgi
More informationJava プログラミング Ⅰ 7 回目 switch 文と論理演算子 条件判断文 3 switch 文 switch 文式が case の値と一致した場合 そこから直後の break; までを処理し どれにも一致しない場合 default; から直後の break; までを処理する 但し 式や値 1
Java プログラミング Ⅰ 7 回目 switch 文と論理演算子 条件判断文 3 switch 文 switch 文式が case の値と一致した場合 そこから直後の までを処理し どれにも一致しない場合 default; から直後の までを処理する 但し 式や値 1 値 2は整数または文字である switch( 式 ) case 値 1: // コロン : です セミコロン ; と間違えないように!!
More informationr02.dvi
172 2017.7.16 1 1.1? X A B A X B ( )? IBMPL/I FACOM PL1 ( ) X ( ) 1.2 1 2-0 ( ) ( ) ( ) (12) ( ) (112) (131) 281 26 1 (syntax) (semantics) ( ) 2 2.1 BNF BNF(Backus Normal Form) Joun Backus (grammer) English
More informationohp02.dvi
172 2017.7.16 1 ? X A B A X B ( )? IBMPL/I FACOM PL1 ( ) X 2 ( ) 3 2-0 ( ) ( ) ( ) (12) ( ) (112) 31) 281 26 1 4 (syntax) (semantics) ( ) 5 BNF BNF(Backus Normal Form) Joun Backus (grammer) English grammer
More information明解Javaによるアルゴリズムとデータ構造
21 algorithm List 1-1 a, b, c max Scanner Column 1-1 List 1-1 // import java.util.scanner; class Max3 { public static void main(string[] args) { Scanner stdin = new Scanner(System.in); Chap01/Max3.java
More informationtext_08.dvi
C 8 12 6 6 8 Java (3) 1 8.1 8 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 1 8.2 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : :
More informationALG2012-C.ppt
2012717 (sakai.keiichi@kochi-tech.ac.jp) http://www.info.kochi-tech.ac.jp/k1sakai/lecture/alg/2012/index.html 1 1. 2. 2 .. 3 public class WeightedNode { private E value; // private Map
More information1 Java Java GUI , 2 2 jlabel1 jlabel2 jlabel3 jtextfield1 jtextfield2 jtextfield3 jbutton1 jtextfield1 jtextfield2 jtextfield3
1 2 2 1 2 2.1.................................................... 2 2.2.................................................... 2 2.3........................................ 2 2.4....................................................
More informationストラドプロシージャの呼び出し方
Release10.5 Oracle DataServer Informix MS SQL NXJ SQL JDBC Java JDBC NXJ : NXJ JDBC / NXJ EXEC SQL [USING CONNECTION ] CALL [.][.] ([])
More informationSpring Framework Web Web Web DB AOP DI Java EE 3 Web WebMVC Web Java 4 DB H2 Database Java H2 Database http://www.h2database.com/ Version 1.0 Zip 5 H2 > cd $H2_HOME/bin > java cp h2.jar org.h2.tools.server
More information10K pdf
#1 #2 Java class Circle { double x; // x double y; // y double radius; // void set(double tx, double ty){ x = tx; y = ty; void set(double tx, double ty, double r) { x = tx; y = ty; radius = r; // Circle
More informationALG ppt
2012614 (sakai.keiichi@kochi-tech.ac.jp) http://www.info.kochi-tech.ac.jp/k1sakai/lecture/alg/2012/index.html 1 2 2 3 29 20 32 14 24 30 48 7 19 21 31 4 N O(log N) 29 O(N) 20 32 14 24 30 48 7 19 21 31 5
More informationデータ構造とアルゴリズム論
15 11 11 Java 21 231-0811 32 152-0033 1 Java 3-5,55,63,39,87,48,70,35,77,59,44 3-5 3-7 score2.txt 75 15 11 11 5-1 3-7 jbuttonread jbuttondisplay jlabelmessage jtextfieldname jtextfieldtokuten
More informationデジタル表現論・第4回
デジタル表現論 第 4 回 劉雪峰 ( リュウシュウフォン ) 2016 年 5 月 2 日 劉 雪峰 ( リュウシュウフォン ) デジタル表現論 第 4 回 2016 年 5 月 2 日 1 / 14 本日の目標 Java プログラミングの基礎 出力の復習 メソッドの定義と使用 劉 雪峰 ( リュウシュウフォン ) デジタル表現論 第 4 回 2016 年 5 月 2 日 2 / 14 出力 Systemoutprint()
More information目的 泡立ち法を例に Comparableインターフェイスの実装 抽象クラスの利用 型パラメタの利用 比較 入替 の回数を計測
泡立ち法とその実装 計算機アルゴリズム特論 :2017 年度只木進一 目的 泡立ち法を例に Comparableインターフェイスの実装 抽象クラスの利用 型パラメタの利用 比較 入替 の回数を計測 Comparable インターフェイ ス クラスインスタンスが比較可能であることを示す Int compareto() メソッドを実装 Integer Double String などには実装済み public
More informationCondition DAQ condition condition 2 3 XML key value
Condition DAQ condition 2009 6 10 2009 7 2 2009 7 3 2010 8 3 1 2 2 condition 2 3 XML key value 3 4 4 4.1............................. 5 4.2...................... 5 5 6 6 Makefile 7 7 9 7.1 Condition.h.............................
More information** 平成 16 年度 FE 午後問題 Java** 示現塾プロジェクトマネージャ テクニカルエンジニア ( ネットワーク ) など各種セミナーを開催中!! 開催日 受講料 カリキュラム等 詳しくは 今すぐアクセス!! 平成 16
平成 16 年度春期 FE 午後問題 Java 問 8 次の Java プログラムの説明及びプログラムを読んで, 設問に答えよ プログラムの説明 このプログラムは, 数量の単位変換を行う共通機能を提供するクラス群と, それらのテストプログラムからなる テストプログラムでは, セルシウス温度 ( セ氏温度, ) 及びカ氏温度 ( F ) の変換を行うクラスを利用する (1) インタフェース Converter
More informationCAC
VOL.24NO.1 61 IMS Transaction 3270 DataBase Transaction OS/370 IMS Traditional Transaction Web Browser Transaction Internet WWW AP IIS APache WebLogic Websphere DataBase Oracle DB2 SQL Server Web Browser
More informationlistings-ext
(6) Python (2) ( ) ohsaki@kwansei.ac.jp 5 Python (2) 1 5.1 (statement)........................... 1 5.2 (scope)......................... 11 5.3 (subroutine).................... 14 5 Python (2) Python 5.1
More information明解Javaによるアルゴリズムとデータ構造
74 searching 3 key Fig.3-1 75 2を探索 53を探索 3-1 5 2 1 4 3 7 4 を探索 Fig.3-1 76 3 linear searchsequential search 2 Fig.3-2 0 ❶ ❷ ❸ 配列の要素を先頭から順に走査していく 探索すべき値と等しい要素を発見 Fig.3-2 6 4 3 2 3-2Fig.3-3 77 5 Fig.3-3 0
More information新・明解Javaで学ぶアルゴリズムとデータ構造
第 3 章 探索 Arrays.binarySearch 743 3-1 探索 探索 searching key 配列 探索 Fig.3-1 b c 75 a 6 4 3 2 1 9 8 2 b 64 23 53 65 75 21 3-1 53 c 5 2 1 4 3 7 4 Fig.3-1 a 763 3-2 線形探索 線形探索 linear search sequential search 2
More informationohp07.dvi
17 7 (2) 2017.9.13 1 BNF BNF ( ) ( ) 0 ( ) + 1 ( ) ( ) [ ] BNF BNF BNF prog ::= ( stat ) stat ::= ident = expr ; read ident ; print expr ; if ( expr ) stat while ( expr ) stat { prog expr ::= term ( +
More informationただし 無作為にスレッドを複数実行すると 結果不正やデッドロックが起きる可能性がある 複数のスレッド ( マルチスレッド ) を安全に実行する ( スレッドセーフにする ) ためには 同期処理を用いるこ とが必要になる 同期処理は 予約語 synchronized で行うことができる ここでは sy
オブジェクト指向プログラミング演習 2010/10/27 演習課題 スレッド ( その 2) 同期処理 結果不正 デッドロック 前回のスレッドの演習では 複数のスレッドを実行し 一つのプログラムの中の違う処理を同時に実行し た ただし 無作為にスレッドを複数実行すると 結果不正やデッドロックが起きる可能性がある 複数のスレッド ( マルチスレッド ) を安全に実行する ( スレッドセーフにする )
More information6-1
6-1 (data type) 6-2 6-3 ML, Haskell, Scala Lisp, Prolog (setq x 123) (+ x 456) (setq x "abc") (+ x 456) ; 6-4 ( ) subtype INDEX is INTEGER range -10..10; type DAY is (MON, TUE, WED, THU, FRI, SAT, SUN);
More informationIE6 2 BMI chapter1 Java 6 chapter2 Java 7 chapter3 for if 8 chapter4 : BMI 9 chapter5 Java GUI 10 chapter6 11 chapter7 BMI 12 chap
1-1 1-2 IE6 2 BMI 3-1 3-2 4 5 chapter1 Java 6 chapter2 Java 7 chapter3 for if 8 chapter4 : BMI 9 chapter5 Java GUI 10 chapter6 11 chapter7 BMI 12 chapter8 : 13-1 13-2 14 15 PersonTest.java KazuateGame.java
More informationALG2012-A.ppt
21279 (sakai.keiichi@kochi-tech.ac.jp) http://www.info.kochi-tech.ac.jp/k1sakai/lecture/alg/212/index.html (, )ε m = n C2 = n ( n 1) / 2 m = n ( n 1) 1 11 11 111 11 111 111 1111 1 1 11 1 11 11 111 4-dimentional
More information2: 3: A, f, φ f(t = A sin(2πft + φ = A sin(ωt + φ ω 2πf 440Hz A ( ( 4 ( 5 f(t = sin(2πf 1t + sin(2πf 2 t = 2 sin(2πt(f 1 + f 2 /2 cos(2πt(f 1 f
12 ( TV TV, CATV, CS CD, DAT, DV, DVD ( 12.1 12.1.1 1 1: T (sec f (Hz T= 1 f P a = N/m 2 1.013 10 5 P a 1 10 5 1.00001 0.99999 2,3 1 2: 3: 12.1.2 A, f, φ f(t = A sin(2πft + φ = A sin(ωt + φ ω 2πf 440Hz
More informationJAVA とテンプレート
JAVA とテンプレート 序論 : コンテナ 他のクラスのオブジェクトを保存するものをコンテナ (Container) と呼ぶ 集合 リスト 表 コンテナに求められる機能 追加 削除 参照 要素の比較 並べ替え 要素のクラスが不明では 比較できない 要素が想定しているクラスのものかの判定 テンプレート以前の対応方法 コンテナ設計時に 保存されるクラスを特定してコンテナをコードする 保存されるクラスごとに作成しなければならない
More information問題1 以下に示すプログラムは、次の処理をするプログラムである
問題 1 次に示すプログラムは 配列 a の値を乱数で設定し 配列 a の値が 333 より大きく 667 以下の値 の合計値を求めるプログラムである 1 と 2 に適切なコードを記述してプログラムを完 成させよ class TotalNumber { public static void main(string[] args) { int[] a = new int[1000]; // 1 解答条件
More informationValueHolder... 9 Customer.java Oracle TopLink 10g(10.1.3) È Volume3 2
lê~åäé= qçéiáåâ= NMÖENMKNKPF Volume3 Creation Date: Mar 04, 2005 Last Update: Aug 23, 2005 Version 1.0 ...3... 3...4... 4... 6 ValueHolder... 9 Customer.java... 10...14 Oracle TopLink 10g(10.1.3) È Volume3
More informationALG ppt
2012 7 5 (sakai.keiichi@kochi-tech.ac.jp) http://www.info.kochi-tech.ac.jp/k1sakai/lecture/alg/2012/index.html (198 ) f(p) p 2 1 2 f 2 53 12 41 69 11 2 84 28 31 63 97 58 76 19 91 88 53 69 69 11 84 84 63
More informationBASIC / / BA- SIC Web 1/10 1/10 / / JavaScript
BASIC / / BA- SIC Web 1/10 1/10 // JavaScript MIT Processing line(10,10,100,100); 1 BASIC / Phidgets 1 GAINER 2 USB / Phidgets USB 1: 1 http://www.phidgets.com/ 2 http://gainer.cc/ / / BGM Phidgets University
More informationI. (i) Java? (A). 2Apples (B). Vitamin-C (C). Peach21 (D). Pine_Apple (ii) Java? (A). Java (B). Java (C). Java (D). JavaScript Java JavaScript Java (i
12 7 27 10:30 12:00 I. I VI II. III. IV. ( a d) V. VI. 80 100 60 : this==null, T == N A ActionListener A addactionlistener C class D actionperformed E ActionEvent G getsource I implements J JApplet K KeyListener
More informationQuick Sort 計算機アルゴリズム特論 :2017 年度 只木進一
Quick Sort 計算機アルゴリズム特論 :2017 年度 只木進一 2 基本的考え方 リスト ( あるいは配列 )SS の中の ある要素 xx(pivot) を選択 xx より小さい要素からなる部分リスト SS 1 xx より大きい要素からなる部分リスト SS 2 xx は SS 1 または SS 2 に含まれる 長さが 1 になるまで繰り返す pivot xx の選び方として 中央の要素を選択すると効率が良い
More informationI HTML HashMap (i) (ii) :.java import java.net.*; import java.io.*; import java.util.hashmap; public class SimpleStopWatch { public static voi
II Java 10 2 12 10:30 12:00 I. I III II. III. IV. ( a d) V. : this==null, T == N A ActionListener C class D actionperformed G getsource I implements K KeyListener J JApplet L addmouselistener M MouseListener
More informationJavaScript の使い方
JavaScript Release10.5 JavaScript NXJ JavaScript JavaScript JavaScript 2 JavaScript JavaScript JavaScript NXJ JavaScript 1: JavaScript 2: JavaScript 3: JavaScript 4: 1 1: JavaScript JavaScript NXJ Static
More information(Eclipse\202\305\212w\202\324Java2\215\374.pdf)
C H A P T E R 11 11-1 1 Sample9_4 package sample.sample11; public class Sample9_4 { 2 public static void main(string[] args) { int[] points = new int[30]; initializearray(points); double averagepoint =
More informationBlueJ 2.0.1 BlueJ 2.0.x Michael Kölling Mærsk Institute University of Southern Denmark Toin University of Yokohama Alberto Palacios Pawlovsky 17 4 4 3 1 5 1.1 BlueJ.....................................
More informationuntitled
-1- 1. JFace Data Binding JFace Data Binding JFace SWT JFace Data Binding JavaBean JFace Data Binding JavaBean JFace Data Binding 1JFace Data Binding JavaBean JavaBean JavaBean name num JavaBean 2JFace
More information文字列操作と正規表現
文字列操作と正規表現 オブジェクト指向プログラミング特論 2018 年度只木進一 : 工学系研究科 2 文字列と文字列クラス 0 個以上の長さの文字の列 Java では String クラス 操作 文字列を作る 連結する 文字列中に文字列を探す 文字列中の文字列を置き換える 部分文字列を得る 3 String クラス 文字列を保持するクラス 文字列は定数であることに注意 比較に注意 == : オブジェクトとしての同等性
More informationuntitled
JCSP CSP HPC H.Nakahara 1 2 CSP A B HPC H.Nakahara 3 CSP HPC H.Nakahara 4 CSP Process A chan Process B ( DFD) HPC H.Nakahara 5 DFD HPC H.Nakahara 6 DFD FAX OK? HPC H.Nakahara 7 HPC H.Nakahara 8 HPC H.Nakahara
More information1.1 (1) (2) (3) (4) 2
1 Part2-1-1 1 1.1 (1) (2) (3) (4) 2 2 JAVA (*) Java : 1. Java 2. 3. 4. Java Java 3 3 int[] a; a = new int[3]; new int[3] a i a[i] 32bit a[i] 4 4 class Point { // double x, y, weight; // Point(double x,
More informationProgramming-C-9.key
プログラミングC 第9回 例外 スレッド 白石路雄 2 finally try{ ( 例外が発生するかもしれない処理 ) catch(exception のクラス名 e){ ( 例外が発生した時の処理 ) finally{ ( 例外の発生の有無に関わらず 必ず行う処理 ) 3 Integer.parseInt() NumberFormatException
More informationParametric Polymorphism
ML 2 2011/04/19 Parametric Polymorphism Type Polymorphism ? : val hd_int : int list - > int val hd_bool : bool list - > bool val hd_i_x_b : (int * bool) list - > int * bool etc. let hd_int = function (x
More informationVDM-SL VDM VDM-SL Toolbox VDM++ Toolbox 1 VDM-SL VDM++ Web bool
VDM-SL VDM++ 23 6 28 VDM-SL Toolbox VDM++ Toolbox 1 VDM-SL VDM++ Web 2 1 3 1.1............................................... 3 1.1.1 bool......................................... 3 1.1.2 real rat int
More informationアルゴリズムとデータ構造1
1 2007 6 26 26 (sakai.keiichi@kochi sakai.keiichi@kochi-tech.ac.jp) http://www.info.kochi-tech.ac.jp/k1sakai/lecture/alg/2007/index.html tech.ac.jp/k1sakai/lecture/alg/2007/index.html FIFO (46 ) head,
More informationJava プログラミング Ⅰ 3 回目変数 変数 変 数 一時的に値を記憶させておく機能型 ( データ型 ) と識別子をもつ 2 型 ( データ型 ) 変数の種類型に応じて記憶できる値の種類や範囲が決まる 型 値の種類 値の範囲 boolean 真偽値 true / false char 2バイト文
Java プログラミング Ⅰ 3 回目変数 変数 変 数 一時的に値を記憶させておく機能型 ( データ型 ) と識別子をもつ 2 型 ( データ型 ) 変数の種類型に応じて記憶できる値の種類や範囲が決まる 型 値の種類 値の範囲 boolean 真偽値 true / false char 2バイト文字 0x0000 ~ 0xffff byte 1バイト整数 - 2 8 ~ 2 8-1 short 2バイト整数
More information1: JX-model XML File Package Import Class Intf Ctor Method SInit Field Param Local ExtdOpt ImplOpt ThrwOpt Members QName Type Stmt Label Expr ident li
Sapid JX-model ver. 1.3.13 2003 2 27 1 JX-model Java XML JX-model JX-model Java (Java 2 ver. 1.4) 20 7 JX-model 1 ^ $ Child nodes JX-model / ( ) JX-model @ @id @sort 1.1 File File JX-model XML /Package,
More information1/8 ページ Java 基礎文法最速マスター Java Javaの文法一覧です 他の言語をある程度知っている人はこれを読めばJavaの基礎をマスターしてJavaを書くことができるようになっています 簡易リファレンスとしても利用できると思いますので これは足りないと思うものがあれば教えてください 1. 基礎 class の作成プログラムはclassに記述します たとえばSampleという名前のclassを作る場合
More informationMicrosoft PowerPoint - ●SWIM_ _INET掲載用.pptx
シーケンスに基づく検索モデルの検索精度について 東京工芸大学工学部コンピュータ応用学科宇田川佳久 (1/3) (2/3) 要員数 情報システム開発のイメージソースコード検索機能 他人が作ったプログラムを保守する必要がある 実務面での応用 1 バグあるいは脆弱なコードを探す ( 品質の高いシステムを開発する ) 2 プログラム理解を支援する ( 第 3 者が書いたコードを保守する ) 要件定義外部設計内部設計
More informationuntitled
21174 (sakai.keiichi@kochi-tech.ac.jp) http://www.info.kochi-tech.ac.jp/k1sakai/lecture/alg/211/index.html tech.ac.jp/k1sakai/lecture/alg/211/index.html html (, )ε m = n C2 = n ( n 1) / 2 m = n ( ( n
More informationuntitled
2011 7 21 (sakai.keiichi@kochi-tech.ac.jp) http://www.info.kochi-tech.ac.jp/k1sakai/lecture/alg/2011/index.html tech.ac.jp/k1sakai/lecture/alg/2011/index.html html 1 5 2 3 4 - 5 .. 6 - 7 public class KnapsackBB
More information新・明解Javaで学ぶアルゴリズムとデータ構造
第 1 章 基本的 1 n 21 1-1 三値 最大値 algorithm List 1-1 a, b, c max // import java.util.scanner; class Max3 { public static void main(string[] args) { Scanner stdin = new Scanner(System.in); List 1-1 System.out.println("");
More information1: Preference Display 1 package sample. pref ; 2 3 import android. app. Activity ; 4 import android. content. Intent ; 5 import android. content. Shar
Android 2 1 (Activity) (layout strings.xml) XML Activity (Intent manifest) Android Eclipse XML Preference, DataBase, File 3 2 Preference Preference Preference URL:[http://www.aichi-pu.ac.jp/ist/lab/yamamoto/android/android-tutorial/tutorial02/tutorial02.pdf]
More informationA B 1: Ex. MPICH-G2 C.f. NXProxy [Tanaka] 2:
Java Jojo ( ) ( ) A B 1: Ex. MPICH-G2 C.f. NXProxy [Tanaka] 2: Java Jojo Jojo (1) :Globus GRAM ssh rsh GRAM ssh GRAM A rsh B Jojo (2) ( ) Jojo Java VM JavaRMI (Sun) Horb(ETL) ( ) JPVM,mpiJava etc. Send,
More informationJacques Garrigue
Jacques Garrigue Garrigue 1 Garrigue 2 $ print_lines () > for i in $1; do > echo $i > done $ print_lines "a b c" a b c Garrigue 3 Emacs Lisp (defun print-lines (lines) (dolist (str lines) (insert str)
More information