From: Mark S. <mar...@gm...> - 2008-11-09 20:50:38
|
I have been working this weekend to bring my collection of various classes into my copy of Rails under two sub-packages 'rails.ui.swing.revenucenters' and 'rails.ui.swing.tiles'. I have been updating to get them to compile, and use the 'Tag' class to load data from data files. I expect that I have about 3-4 more classes to go before I can actually draw the Tile Tray properly. I was looking at the current copies of 'Company', 'PublicCompany', 'PrivateCompany' and I would like to ask another question. I see a Company Class hierarchy as follows: public class Company; public class PrivateCompany extends Company; // A Company that has no train, no tokens, and no tile-laying capability public class TrainCompany extends Company; // A Company that can hold one or more trains and can lay track public class CoalCompany extends TrainCompany; // A TrainCompany that has no Tokens (1837) public class TokenCompany extends TrainCompany; // A TrainCompany that has one or more Tokens public class MinorCompany extends TokenCompany; // A TokenCompany that is a Minor company with Certificates, but has a fixed share price public class ShareCompany extends TokenCompany; // A TokenCompany that is a Major company with Certificates that has flexible price based on the Market This could be extended to a SystemCompany that contains two ShareCompanies. (1832) Does a structure like this make sense to you folks? Mark |