Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #36833

Re: no easy way to do a reverse pointer?

From Eric Sosman <esosman@comcast-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: no easy way to do a reverse pointer?
Date 2017-07-07 18:06 -0400
Organization A noiseless patient Spider
Message-ID <ojp0ea$7l6$1@dont-email.me> (permalink)
References <6c91c2b4-7d8f-42ba-8a51-eaef43635f49@googlegroups.com> <ojooib$v3s$1@dont-email.me> <1d4174af-ff17-433c-bb32-23e17388e9ff@googlegroups.com>

Show all headers | View raw


On 7/7/2017 4:28 PM, Eric Douglas wrote:
> [...]
> 
> public class KitchenDuty {
> }
> 
> public class NightWatchDuty {
> }
> 
> public class Soldier {
> }
> 
> Now, the easiest way to set and get a soldier's duties?
> Any one soldier may be assigned multiple duties.
> Any duty may have multiple soldiers.
> We need to be able to list which soldiers are on any given duty.
> We need to be able to list which duties are assigned to any given soldier.

     Maybe a single central Set<Assignment> would suffice, where
each Assignment associates one Soldier with one Duty.  (It might
also record the Officer who made the Assignment, so you can check
whether some other Officer has sufficient rank to overrule it ...)

-- 
esosman@comcast-dot-net.invalid
Twelve hundred ninety-three days to go.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

no easy way to do a reverse pointer? Eric Douglas <e.d.programmer@gmail.com> - 2017-07-07 11:56 -0700
  Re: no easy way to do a reverse pointer? Martin Gregorie <martin@address-in-sig.invalid> - 2017-07-07 19:48 +0000
    Re: no easy way to do a reverse pointer? Eric Douglas <e.d.programmer@gmail.com> - 2017-07-07 13:28 -0700
      Re: no easy way to do a reverse pointer? Martin Gregorie <martin@address-in-sig.invalid> - 2017-07-07 21:47 +0000
      Re: no easy way to do a reverse pointer? Eric Sosman <esosman@comcast-dot-net.invalid> - 2017-07-07 18:06 -0400
        Re: no easy way to do a reverse pointer? lewbloch@gmail.com - 2017-07-14 14:32 -0700

csiph-web