From: Erik V. <eri...@xs...> - 2012-09-02 20:52:52
|
I would say: the natural ordering is the order in which shares are initially sold. I would strongly advise against meddling with that order. For that reason, I'm not at all convinced that a Set is better than an Array to hold the company certificates. Having to create a special Comparator to restore the initial order (how to configure that?) sounds like doing it backwards to me (we Dutch call that "putting the horses behind the carriage"). In special cases like the Prussian, or the SJ in 18Scan, where non-president shares can be bought before the company floats, there is no reaI need to have the President certificate on top, although I would still consider that 'natural'. These cases need special code anyway. Also keep in mind conversions from 5-share into 10-share companies, and other variations on that theme. Erik. > -----Original Message----- > From: Stefan Frey [mailto:ste...@we...] > Sent: Sunday, September 02, 2012 4:04 PM > To: Development list for Rails: an 18xx game > Subject: Re: [Rails-devel] Rails2.0: Portfolios, Ownable and Owner > > Erik: > the underlying TreeSet allows to optionally specify a Comparator which > deviates from the natural ordering. > > Thus it is easy to add a different ordering to the IPO portfolio. > > But thanks for reminding me of that, do you know other cases where the > ordering of a "portfolio" in Rails 1.x is important for game mechanics? > > Stefan > > On 09/02/2012 12:41 PM, Erik Vos wrote: > > Stefan, > > > >> * PublicCertificates are sorted by > >> i) President or not > >> ii) CertificateType (and those are sorted by number of shares inside) > >> iii) CertificateId > >> > >> This keeps the PresidentShare at position zero of each portfolio > >> without requiring any code to keep it there. And it keeps the > >> multi-shares at the > > top > >> of a list of certificates. > > > > How will you then handle the 1835 double shares that must appear at > > the > > *bottom* of the IPO stack (BA, WT and HE)? > > Currently, specification order determines IPO order. > > > > Erik. > > > > > > ---------------------------------------------------------------------- > > -------- > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. > > Discussions will include endpoint security, mobile security and the > > latest in malware threats. > > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Rails-devel mailing list > > Rai...@li... > > https://lists.sourceforge.net/lists/listinfo/rails-devel > > > > > ---------------------------------------------------------------------------- -- > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and threat > landscape has changed and how IT managers can respond. Discussions will > include endpoint security, mobile security and the latest in malware threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel |