View the step-by-step solution to:

Submission requirements: Submit 1 java file containing solution of the following problem. The package name should be...

Submission requirements:

Submit 1 java file containing solution of the following problem.

The package name should be assignment7 as the following:

package assignment7;

Problem formulation:

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: confidentialityintegrity, 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)
  • Asset

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

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.


Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question