Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: xixax
  • Order by date
  1. xixax

    How do I capture a hierarchy of control in OOP?

    Here is my solution. It's cleaned up a bit and uses subtypes. I think that this is probably the most straightforward way to do this. trait RegionUpperBound trait CountyUpperBound extends RegionUpperBound trait DistrictUpperBound extends CountyUpperBound trait TownUpperBound extends...
  2. xixax

    How do I capture a hierarchy of control in OOP?

    Here's one somewhat verbose solution I've found. Basically, the relationships of "administers" and "administeredBy" are captured in traits and then each type of organization incorporates the applicable traits. (This is Scala.) It's wordy, but it does ensure that only the correct relationships...
  3. xixax

    How do I capture a hierarchy of control in OOP?

    I have a set of objects that represent different levels in a hierarchical organizational structure, in this instance a statewide school system. At the bottom of the hierarchy is the school. It is administered by a town, which is administered by a disctrict, and so forth, like this: State...

Part and Inventory Search

Back
Top