UMUC Asia - CMSC335 - Object-Oriented and Concurrent Programming
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
#contents
//** Biography
//
//My name is Yuji Shimojo. I am from Okinawa, Japan and l...
** Week1 Participation topic [#md2ee07f]
#ref(MobilePhoneTaxonomy.png,,50%)
** Homework1 [#oab44d0c]
#ref(CMSC335_Homework1.pdf)
** Week2 Participation topic [#m4940c3c]
- Question
For this week, please consider a pair of concrete classes...
- Answer
Polymorphism is a mechanism in object-oriented programmin...
For example, if there are three classes named Shape, Rect...
Method overloading is one of the most important functions...
** Project1 [#v1a213fe]
#ref(CMSC335_Project1(LibraryTest_java).pdf)
- Class Diagram
#ref(LibraryTestClassDiagram.png,,50%)
- GitHub Repository: https://github.com/yujishimojo/CMSC3...
-- Author.java
-- Book.java
-- Library.java
-- LibraryTest.java
** Week3 Participation topic [#p1c6f6b1]
- Question
For this week, please consider the taxonomy you defined i...
- Answer
I created two interfaces for my MobilePhoneTaxonomy as be...
// MobilePhone.java
public interface MobilePhone {
// make a call.
void actionCall(String name);
// send an email.
void sendMail(String email, String subject, String text);
}
// Smartphone.java
public interface Smartphone extends MobilePhone {
// get a touch event.
void onTouchEvent();
// get an accelerator sensor event.
void accelSensor();
// get a geolocation.
void getGeoLocation();
}
MobilePhone.java is a super interface, and Smartphone.jav...
// Android.java
public class Android implements Smartphone {
@Override
public void actionCall(String name) {
System.out.println("Calling " + name);
}
@Override
public void sendMail(String email, String subject, Stri...
System.out.println("Your message to " + email + " has ...
}
@Override
public void onTouchEvent() {
System.out.println("Got your x and y coordinates.");
}
@Override
public void accelSensor() {
System.out.println("Got your x, y and z accelerations....
}
@Override
public void getGeoLocation() {
System.out.println("Got your latitude and longitude.");
}
}
** Homework2 [#gaf3805e]
#ref(CMSC335_Homework2.pdf)
** Week4 Participation topic [#id989f64]
- Question
For this week, please pick one of the programming example...
- Answer
I choose exercise 17.6 which is a simple speed unit conve...
JFrame is a subclass of Frame class which creates a windo...
JPanel is a subclass of Container class. It allows the us...
JLabel allows the user to set character strings or images...
JTextField creates a single-row input box from the user.
GridLayout is a layout manager. Components are divided in...
BorderLayout is a layout manager. Components are divided ...
** Project2 [#s6973717]
#ref(CMSC335_Project2(LibraryTestOfMap_java).pdf)
- Class Diagram
#ref(LibraryTestOfMap.png,,50%)
- GitHub Repository: https://github.com/yujishimojo/CMSC3...
-- Author.java
-- Book.java
-- BookAuthorIndexComparator.java
-- BookGenreComparator.java
-- BookPriceComparator.java
-- BookTitleComparator.java
-- Library.java
-- LibraryTestOfMap.java
** Week5 Participation topic [#x8f90932]
- Question
For this week, please describe in your own words what mul...
- Answer
A thread is an independent execution unit through a progr...
** Homework3 [#d3022143]
#ref(CMSC335_Homework3.pdf)
** Week6 Participation topic [#e9511305]
- Question
For this week, please pick one of the statements on pg 11...
- Answer
4. Encapsulation makes it practical to manage the complex...
Encapsulation is the concept in Object-object programming...
** Project3 [#wa703ea8]
#ref(CMSC335_Project3(LibraryTestOfJTableAndJTree_java).p...
- Class Diagram
#ref(LibraryTestOfJTableAndJTree.png,,50%)
- GitHub Repository: https://github.com/yujishimojo/CMSC3...
-- Author.java
-- Book.java
-- Library.java
-- LibraryTestOfJTableAndJTree.java
** Week7 Participation topic [#v09a04ee]
- Question
For this week, please describe in your own words why some...
- Answer
Thread.stop, Thread.suspend, and Thread.resume are discou...
If you use Thread.stop, all the monitoring locks by the t...
Thread.suspend and Thread.resume have the potential to ca...
When you use Thread.suspend, and if the thread locks othe...
** Homework4 [#jf5baa64]
#ref(CMSC335_Homework4.pdf)
** Week8 Participation topic [#aa0a1806]
- Question
For this week, please respond to the following:
(a) Describe an application that can deadlock, or starve ...
(b) Describe a testing strategy that would detect such a ...
- Answer
A deadlock is multiple processes wait for releasing locks...
For avoiding deadlocks, it is important to conduct not on...
** Final Project [#m7b45fb3]
#ref(CMSC335_FinalProject(LibraryThreadManager_java).pdf)
- Class Diagram
#ref(LibraryThreadManager.png,,50%)
- GitHub Repository: https://github.com/yujishimojo/CMSC3...
-- Book.java
-- LibraryClient1.java
-- LibraryClient2.java
-- LibraryServer.java
-- LibraryThreadManager.java
終了行:
#contents
//** Biography
//
//My name is Yuji Shimojo. I am from Okinawa, Japan and l...
** Week1 Participation topic [#md2ee07f]
#ref(MobilePhoneTaxonomy.png,,50%)
** Homework1 [#oab44d0c]
#ref(CMSC335_Homework1.pdf)
** Week2 Participation topic [#m4940c3c]
- Question
For this week, please consider a pair of concrete classes...
- Answer
Polymorphism is a mechanism in object-oriented programmin...
For example, if there are three classes named Shape, Rect...
Method overloading is one of the most important functions...
** Project1 [#v1a213fe]
#ref(CMSC335_Project1(LibraryTest_java).pdf)
- Class Diagram
#ref(LibraryTestClassDiagram.png,,50%)
- GitHub Repository: https://github.com/yujishimojo/CMSC3...
-- Author.java
-- Book.java
-- Library.java
-- LibraryTest.java
** Week3 Participation topic [#p1c6f6b1]
- Question
For this week, please consider the taxonomy you defined i...
- Answer
I created two interfaces for my MobilePhoneTaxonomy as be...
// MobilePhone.java
public interface MobilePhone {
// make a call.
void actionCall(String name);
// send an email.
void sendMail(String email, String subject, String text);
}
// Smartphone.java
public interface Smartphone extends MobilePhone {
// get a touch event.
void onTouchEvent();
// get an accelerator sensor event.
void accelSensor();
// get a geolocation.
void getGeoLocation();
}
MobilePhone.java is a super interface, and Smartphone.jav...
// Android.java
public class Android implements Smartphone {
@Override
public void actionCall(String name) {
System.out.println("Calling " + name);
}
@Override
public void sendMail(String email, String subject, Stri...
System.out.println("Your message to " + email + " has ...
}
@Override
public void onTouchEvent() {
System.out.println("Got your x and y coordinates.");
}
@Override
public void accelSensor() {
System.out.println("Got your x, y and z accelerations....
}
@Override
public void getGeoLocation() {
System.out.println("Got your latitude and longitude.");
}
}
** Homework2 [#gaf3805e]
#ref(CMSC335_Homework2.pdf)
** Week4 Participation topic [#id989f64]
- Question
For this week, please pick one of the programming example...
- Answer
I choose exercise 17.6 which is a simple speed unit conve...
JFrame is a subclass of Frame class which creates a windo...
JPanel is a subclass of Container class. It allows the us...
JLabel allows the user to set character strings or images...
JTextField creates a single-row input box from the user.
GridLayout is a layout manager. Components are divided in...
BorderLayout is a layout manager. Components are divided ...
** Project2 [#s6973717]
#ref(CMSC335_Project2(LibraryTestOfMap_java).pdf)
- Class Diagram
#ref(LibraryTestOfMap.png,,50%)
- GitHub Repository: https://github.com/yujishimojo/CMSC3...
-- Author.java
-- Book.java
-- BookAuthorIndexComparator.java
-- BookGenreComparator.java
-- BookPriceComparator.java
-- BookTitleComparator.java
-- Library.java
-- LibraryTestOfMap.java
** Week5 Participation topic [#x8f90932]
- Question
For this week, please describe in your own words what mul...
- Answer
A thread is an independent execution unit through a progr...
** Homework3 [#d3022143]
#ref(CMSC335_Homework3.pdf)
** Week6 Participation topic [#e9511305]
- Question
For this week, please pick one of the statements on pg 11...
- Answer
4. Encapsulation makes it practical to manage the complex...
Encapsulation is the concept in Object-object programming...
** Project3 [#wa703ea8]
#ref(CMSC335_Project3(LibraryTestOfJTableAndJTree_java).p...
- Class Diagram
#ref(LibraryTestOfJTableAndJTree.png,,50%)
- GitHub Repository: https://github.com/yujishimojo/CMSC3...
-- Author.java
-- Book.java
-- Library.java
-- LibraryTestOfJTableAndJTree.java
** Week7 Participation topic [#v09a04ee]
- Question
For this week, please describe in your own words why some...
- Answer
Thread.stop, Thread.suspend, and Thread.resume are discou...
If you use Thread.stop, all the monitoring locks by the t...
Thread.suspend and Thread.resume have the potential to ca...
When you use Thread.suspend, and if the thread locks othe...
** Homework4 [#jf5baa64]
#ref(CMSC335_Homework4.pdf)
** Week8 Participation topic [#aa0a1806]
- Question
For this week, please respond to the following:
(a) Describe an application that can deadlock, or starve ...
(b) Describe a testing strategy that would detect such a ...
- Answer
A deadlock is multiple processes wait for releasing locks...
For avoiding deadlocks, it is important to conduct not on...
** Final Project [#m7b45fb3]
#ref(CMSC335_FinalProject(LibraryThreadManager_java).pdf)
- Class Diagram
#ref(LibraryThreadManager.png,,50%)
- GitHub Repository: https://github.com/yujishimojo/CMSC3...
-- Book.java
-- LibraryClient1.java
-- LibraryClient2.java
-- LibraryServer.java
-- LibraryThreadManager.java
ページ名: