My Client class has fields for a name, a phone number, a system type and a level of service. For constructors I have a constructor with four arguments, one with three arguments, and a copy constructor. For methods I have an equals method, a toString method, and getters/setters for all the fields.
My Agent class has fields for a name, an employee ID, a specialty, and a time. For constructors I have one with four arguments and a copy constructor. For methods I have a toString method and all the getters and setters.
In my Ticket class I have fields for a ticket ID, the problem, the time, the Client, the Agent, and a static field that helps assign ticket numbers. I initialized that one to 0 and incremented at the beginning of the constructor before I used it to make the ticket ID. I currently have only one constructor for the Ticket class and it receives values for all the fields. I was careful to make a copy of both the Client and Agent parameters before assigned them to the corresponding fields. That's why Client and Agent need copy constructors. I'm not finished with the Ticket class, I suspect, but so far I have a toString method, an equals method, a predictTime method, and an isOverdue method.
So far in my TechSupportSystem class I have these methods:
- the constructor : This one is the guiding force. It calls the others in the right order.
- getDate
- getFileNames
- readAgents
- readOneAgent
- readTickets
- main : All this does is make a new TechSupportSystem object (and this activates the constructor).
I am not finished with the class and may need other methods.
No comments:
Post a Comment