Submit 1 java file Assignment7_main.java containing solution of the following problem.
The package name should be assignment7 as the following:
Consider a process of Information Security Audit that almost every organization has to pass from time to time. Part of the process is the assessment of assets from the perspective of security risk analysis. There are 3 security services: confidentiality, integrity, and availability and each of these services can be considered in the context of some application (software). For example, availability: every institution maintains academic records of all students. Such records are stored in a database, and this database is managed and accessed by means of DBMS (database management system) software, that in turn runs on some hardware server (asset). That server has many components, i.e. power supplies, NICs, HDD/SSDs, etc which may fail and their failure may cause failure of the server and therefore inability (failure of availability service) of users to access the application.
Your task is to create a Java program that would represent an asset. Later on, you will be asked to extend this program and implement different types of assets as well as different types of applications and their relationship. As of now your program contain two classes:
- Assignment7_main (the drive class)
The former class, i.e. Asset, has to have the following attributes and methods:
- String Type.
- Can be one of the following: Server, Switch, Router, PSU (power supply unit), HDD, SSD, NIC (network interface card)
- int ID
- A unique number that identify any given asset.
- String Name
- General description of the asset including (if needed) vendor, hardware, model, etc.
- String serial
- Serial number of the asset which is a combination of characters usually found on a sticker affixed on some surface of the asset
- int PID
- Parent ID -- ID of the asset that appears to be "parent" to this one. For example Server asset is the "parent" of NIC asset because NIC is plugged into the server. In case when asset has no parent, this value has to be set to -1.
- "Getters" and "setters" for all attributes
- Default constructor (one that takes no parameters and uses default values of attributes)
- Method String toString() that returns textual presentation of an asset object. Values of all attributes must be used in compilation of that string.
The latter class, i.e. Driver is used to host main() method that would instantiate a few objects of class Asset (use some illustrative cases like 1 server, 1 switch, 2 PSUs, 3 NICs, etc) and store references to those objects in an array. Then it would iterate through the array and for every asset it would print result returned by toString() method.
Recently Asked Questions
- Which stock has the larger slope value between these two slopes... Slope A: y= 3.6493x- 156222 Slope B: y= 2.1017x- 89814
- Prices are used to provide __________ between buyers and sellers. information hassles conflict negotiations
- What specific Federal entity determines the direction and funding for health care research, initiative's and innovation in the United States?