File tree Expand file tree Collapse file tree 6 files changed +184
-1
lines changed 
software design and architecture 
component based software engineering 
service oriented architecture Expand file tree Collapse file tree 6 files changed +184
-1
lines changed Original file line number Diff line number Diff line change 1313-  [ Algorithms and Complexity] ( /algorithms%20and%20complexity ) 
1414-  [ Statistical Processing] ( /statistical%20processing ) 
1515#### 400L  
16- -  [ Web Design and Data Security] ( web%20design%20and%20data%20security ) 
16+ -  [ Web Design and Data Security] ( /web%20design%20and%20data%20security ) 
17+ -  [ Software Design and Architecture] ( /software%20design%20and%20architecture ) 
Original file line number Diff line number Diff line change 1+ /** 
2+  *  
3+  */ 
4+ package  com .ot .cbse ;
5+ 
6+ import  java .io .File ;
7+ 
8+ /** 
9+  * ScanResulterface for antimalware providers 
10+  */ 
11+ public  interface  AntimalwareProvider  {
12+ /** 
13+  * Initialize antimalware engine 
14+  * @return true if engine has started; false otherwise 
15+  */ 
16+ boolean  initialize ();
17+ 
18+ /** 
19+  * Scan string for malware 
20+  * @param stream String to scan for malware 
21+  * @return scan result 
22+  */ 
23+ ScanResult  scanString (String  stream );
24+ 
25+ /** 
26+  * Scan file for malware 
27+  * @param file File to scan for malware 
28+  * @return scan result 
29+  */ 
30+ ScanResult  scanFile (File  file );
31+ 
32+ /** 
33+  * Scan directory for malware 
34+  * @param directory Folder to scan for malware 
35+  * @return scan result 
36+  */ 
37+ ScanResult  scanDirectory (File  directory );
38+ 
39+ /** 
40+  * Send a notification to desktop 
41+  * @param title Notification title 
42+  * @param body Notification body 
43+  * @param iconPath Notification icon 
44+  */ 
45+ void  sendNotification (String  title , String  body , File  iconPath );
46+ 
47+ /** 
48+  * Get antimalware engine vendor 
49+  * @return Antimalware engine name 
50+  */ 
51+ String  engineName ();
52+ 
53+ /** 
54+  * Get version of antimalware engine 
55+  * @return Antimalware engine version 
56+  */ 
57+ String  version ();
58+ 
59+ /** 
60+  * Uninitialize antimalware engine 
61+  * @return true if engine has stopped; false otherwise  
62+  */ 
63+ boolean  uninitialize ();
64+ }
Original file line number Diff line number Diff line change 1+ /** 
2+  *  
3+  */ 
4+ package  com .ot .cbse ;
5+ 
6+ import  java .io .File ;
7+ 
8+ /** 
9+  * Avast Antimalware 
10+  */ 
11+ public  class  Avast  implements  AntimalwareProvider  {
12+ 
13+ private  final  String  ENGINE_NAME  = "Avast engine" ;
14+ private  final  String  VERSION  = "v33.1.76" ;
15+ 
16+ private  AvastEngine  avastEngine  = new  AvastEngine ();
17+ 
18+ @ Override 
19+ public  boolean  initialize () {
20+ return  avastEngine .start ();
21+ }
22+ 
23+ @ Override 
24+ public  ScanResult  scanString (String  stream ) {
25+ return  avastEngine .scan (stream );
26+ }
27+ 
28+ @ Override 
29+ public  ScanResult  scanFile (File  file ) {
30+ return  avastEngine .scan (file );
31+ }
32+ 
33+ @ Override 
34+ public  ScanResult  scanDirectory (File  directory ) {
35+ return  avastEngine .scan (directory );
36+ }
37+ 
38+ @ Override 
39+ public  void  sendNotification (String  title , String  body , File  iconPath ) {
40+ // TODO Auto-generated method stub 
41+ }
42+ 
43+ @ Override 
44+ public  String  engineName () {
45+ return  ENGINE_NAME ;
46+ }
47+ 
48+ @ Override 
49+ public  String  version () {
50+ return  VERSION ;
51+ }
52+ 
53+ @ Override 
54+ public  boolean  uninitialize () {
55+ return  avastEngine .stop ();
56+ }
57+ 
58+ }
Original file line number Diff line number Diff line change 1+ /** 
2+  *  
3+  */ 
4+ package  com .ot .cbse ;
5+ 
6+ import  java .io .File ;
7+ 
8+ /** 
9+  * KasperSKY Antimalware 
10+  */ 
11+ public  class  KasperSKY  implements  AntimalwareProvider  {
12+ 
13+ private  final  String  ENGINE_NAME  = "KasperSKY P45-MKii" ;
14+ private  final  String  VERSION  = "v1.3.2" ;
15+ 
16+ private  KasperSKYEngine  kasperskyEngine  = new  KasperSKYEngine ();
17+ 
18+ @ Override 
19+ public  boolean  initialize () {
20+ return  kasperskyEngine .start ();
21+ }
22+ 
23+ @ Override 
24+ public  ScanResult  scanString (String  stream ) {
25+ return  kasperskyEngine .scan (stream );
26+ }
27+ 
28+ @ Override 
29+ public  ScanResult  scanFile (File  file ) {
30+ return  kasperskyEngine .scan (file );
31+ }
32+ 
33+ @ Override 
34+ public  ScanResult  scanDirectory (File  directory ) {
35+ return  kasperskyEngine .scan (directory );
36+ }
37+ 
38+ @ Override 
39+ public  void  sendNotification (String  title , String  body , File  iconPath ) {
40+ // TODO Auto-generated method stub 
41+ }
42+ 
43+ @ Override 
44+ public  String  engineName () {
45+ return  ENGINE_NAME ;
46+ }
47+ 
48+ @ Override 
49+ public  String  version () {
50+ return  VERSION ;
51+ }
52+ 
53+ @ Override 
54+ public  boolean  uninitialize () {
55+ return  kasperskyEngine .stop ();
56+ }
57+ 
58+ }
Original file line number Diff line number Diff line change 1+ Implement a component based software architecture project
Original file line number Diff line number Diff line change 1+ Implement a service oriented architecture project
                                 You can’t perform that action at this time. 
               
                  
0 commit comments