Like Dean, I'm having real problems trying to get my head around OOP....I think I understand the concepts, but I'm finding it very difficult to implement them in the real world! It doesn't help that there's no one in house that has really used OOP and can assist.
So, on to my issue....I have been assigned a project to convert an existing process that uses a combination of RPG and Delphi to a purely Java/web based replacement. Here's what I need to do:
When a person is pulled over and issued a ticket, the law enforcement agency uses the radio in the car (or the dispatcher uses a Delphi desktop application) and sends to a socket on the iSeries the Agency and Man Number of the officer making the request. Then I need to send back through the socket connection a date and time that has been calculated as the next available date for the person to come to court. If that date doesn't work for the person, then a cancellation request is sent for the original and another date is sent.
A few other details...there is a lead time for calculating the court date that is stored in a hearing type table. There is a table that records audit information about which officer used/cancelled what dates. There is a prefilled table that contains the dates and times of the availalbe hearings and a max number of assignments and the current assignments:
[tt]
HERNGDAT HERTIM HERTYP JUDCOD HERSEQ HERMAX
20071203 815 TA 11 27 30
20071203 945 TA 11 27 30
20071203 1030 TA 11 25 30
20071203 1115 TA 11 26 30
20071203 1315 TA 11 25 30
20071203 1400 TA 11 24 30
20071203 1445 TA 11 24 30
20071203 1530 TA 11 25 30
[/tt]
HERSEQ is an updated field; every time a date time is used it is incremented.
So, it's not a very big project, but I can't get my head around what's my class? What are my methods and properties?
Any suggestions welcome!
Thanks,
Leslie
In an open world there's no need for windows and gates
So, on to my issue....I have been assigned a project to convert an existing process that uses a combination of RPG and Delphi to a purely Java/web based replacement. Here's what I need to do:
When a person is pulled over and issued a ticket, the law enforcement agency uses the radio in the car (or the dispatcher uses a Delphi desktop application) and sends to a socket on the iSeries the Agency and Man Number of the officer making the request. Then I need to send back through the socket connection a date and time that has been calculated as the next available date for the person to come to court. If that date doesn't work for the person, then a cancellation request is sent for the original and another date is sent.
A few other details...there is a lead time for calculating the court date that is stored in a hearing type table. There is a table that records audit information about which officer used/cancelled what dates. There is a prefilled table that contains the dates and times of the availalbe hearings and a max number of assignments and the current assignments:
[tt]
HERNGDAT HERTIM HERTYP JUDCOD HERSEQ HERMAX
20071203 815 TA 11 27 30
20071203 945 TA 11 27 30
20071203 1030 TA 11 25 30
20071203 1115 TA 11 26 30
20071203 1315 TA 11 25 30
20071203 1400 TA 11 24 30
20071203 1445 TA 11 24 30
20071203 1530 TA 11 25 30
[/tt]
HERSEQ is an updated field; every time a date time is used it is incremented.
So, it's not a very big project, but I can't get my head around what's my class? What are my methods and properties?
Any suggestions welcome!
Thanks,
Leslie
In an open world there's no need for windows and gates