Write a java program that would represent an asset

Assignment Help JAVA Programming
Reference no: EM132105059

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: 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 write 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:

•Asset

•Driver

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.

Reference no: EM132105059

Questions Cloud

How many variables and observation : Creates anew variable called "average1and3YrReturn%" in which is the average of 1YrReturn% and 3YrReturn%.
Cost of goods manufactured and cost of goods sold : The company's cost of raw materials used, cost of goods manufactured and cost of goods sold is ?
Compute the break-even point in units and dollars : Compute the break-even point in units and dollars. (Round answers to 0 decimal places, e.g. 1,250.)
Required sales in dollars to break even : Presto Corp. had total variable costs of $165,935, total fixed costs of $166,100, and total revenues of $301,70
Write a java program that would represent an asset : Write a Java program that would represent an asset. Later on, you will be asked to extend this program and implement different types of assets.
Net cash flow from operating activities for the year : What was the net cash flow from operating activities for the year?
Select two basic statistical tools and compare : Select two basic statistical tools and compare. Explain why you will pick one of them for the problem:
What is profit margin-brighton company : Brighton Company has income from operations of $36,000, invested assets of $180,000, and sales of $720,000.
Write down what is the domain of your function : He has 67 feet fencing material. He wants to make the biggest area for his garden, so he will use one side of the fence of his yard to save some material.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd