How can you be in two places at once when you're not anywhere at all?

Hi all,
     I have an object oriented predicament I want to run by you just to see how best to solve it. My program is based around a library of objects called Midgets. I've structured it with MVC. The MidgetLibraryModel Object takes events from a controller, alters the MidgetModel, and sends out events to any view objects.
So far so good. Now, I'd like to create "groups of midgets." It seems that I have two options and I have serious problems with both of them from a computer science stand point.
Option A*
Store the name of every group that a midget belongs to inside the MidgetModel itself.
Problems with Option A
* There is nowhere to store attributes or variables for any group.
* Every time I display a group, I have to mine it's contents from the MidgetModel array.
Option B*
Create a completely separate array of MidgetGroupModel objects inside the MidgetLibraryModel, each group object would contain the ID numbers of the midgets it contained.
Problems with Option B
* if I ever delete a MidgetModel, I can't alert the group objects since I don't have a deconstructor.
* When sending out a MidgetModel to be displayed, it doesn't have the groups it belongs to.
* If I need send out a MidgetModel to be viewed, the view can't display the groups that the MidgetModel belongs to
what would a computer scientist do?

ask yourself whether a midget should know to what groups it belongs or whether a group should know what midgets belong to it.
Each scenario has its implications for how the midgets and groups can be used and can interact, in some situations one or the other solution may be the most obvious one.
In others you might have to implement both at the same time.

Similar Messages

  • HT2589 how can i skip the viewing on my account when i has not use my apple id in i tunes stores?

    How can i skip the viewing on my account when i has not use my apple id? The main problem is i do not have a credit card... so what should i do?

    You can't, you will need to enter a credit card number before you can use that account in the store.
    There are instructions on this page for how to create a new account without giving credit card details : http://support.apple.com/kb/HT2534

  • Can CC work in two places at once???

    Hey, question about Creative Cloud being installed in more than one location. I often have people I work with come over to use my machines at my home when we are working on big projects. Would CC still work if I am working on my laptop from my account and some one else is using my PC and also working from my account as well? Or would I have to have another version of Adobe like CS6 or something installed on the computer for them to use it separately? I am interested in getting Adobe CC but want to know if it would be worth it considering that I would have to be able to use it simultaneously in two different locations in cases where I have persons over to work with me.
    I am a student and would like to open the account for students .... Would I be able to create two separate accounts with my credentials if I can't use my account on my laptop and PC at the same time? Hoping to get some solid answers before I go paying for a service that leaves me handicapped. Thanks for the help in advance.

    Moving this discussion to the Adobe Creative Cloud forum.
    Camk you can activate your membership on up to two computers.  The login is specific to the individual you would be the individual using it on either computer.  If you wish to have multiple Users of the Creative Cloud then I would recommend investigating the Creative Cloud for Business option at Creative Cloud free trial & plans : Adobe Creative Cloud.
    You can find more details regarding the specifics in the EULA listed at http://wwwimages.adobe.com/content/dam/Adobe/en/legal/licenses-terms/pdf/CC_EULA_Gen_WWCom bined-MULTI-20121017_1230.pdf.

  • How can you left click anywhere on the screen automatically using applescript

    Im trying to create a script that automatically opens up an application and then click on the buttons inside of the application (Note that the buttons that the application uses are not considered buttons by applescript's standards). What I tried so far is this:
    tell application "System Events"
      click at {724, 490}
    end tell
    The faults that I can see so far is that I didn't specify whether I wanted to do a left or right click. Please help

    Adobe CSS 4, Windows. The file is a PDF file. Please see below ... Thanks for your help !

  • How can I reset my Apple ID security questions when it's not giving me the option to?

    Can someone please help me to figure out how to reset my questions!?!

    You need to contact Apple. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
    (91633)

  • How can I get Made In Chelsea from itunes when it is not available on my countries store?

    I want to buy and download the Made in Chelsea seasons. But on Itunes Australia, where I am, its not available. It is however available on the British Itunes but of course its in pounds. It there any way to get Made in Chelsea off Itunes? Or will I have to nuy dvds from overseas (something i really dont want to do because of the cost)? Any other solutions?

    Your only option is to have an iTS account for that country - you would need a local CC and local address to create an account for the country.
    MJ

  • How can i download photos from my iPhone 6 when iPhoto does not recognize or see my iPhone?

    I have a new iPhone 6 and cannot download photos into iPhoto on my macbook pro because it does not see my device. ???

    See if the troubleshooting steps in this article help:
    iOS: Unable to import photos to computer - Apple Support
    Cheers,
    GB

  • How can you edit a form that you've already created?

    I'm not referring to the form fields. I mean if you have a typo for example in the docuyment you created from InDesign and now you need to go back and correct it. How can you do that and maintain all the fields you've already created?
    If you're not able to do this, that would be a huge flaw in the workflow.

    metonda wrote:
    Oh my gosh. That is so simple. I'm embarrassed that I even asked the question.
    Thanks very much!!
    No need to be embarrassed. That gets a lot of people. Most assume (and I did too at one point) that replace pages does that, replaces the page and everything on it.

  • In the slide show view how can you pin the "next" Arrow to the ultimate edge so it is in the same place as the full screen image, it will pin to the left edge but not the right.

    In the slide show view how can you pin the "next" Arrow to the ultimate edge so it is in the same place as the full screen image, it will pin to the left edge but not the right.

    Hello,
    Please make sure that the next button is pinned to the right side as there in the attached image.
    If it is already pinned, you can try removing any embedded HTML code and checking it.
    Regards,
    Neha

  • How can you tell if all photos in an event have a Place assigned?

    How can you tell if all photos in an event have a Place assigned, without clicking every photo in the event individually with the Info bar open to see if there is a little map in the bottom left hand corner please?
    cheers

    Terence Devlin wrote:
    File -> New -> Smart Album
    Event -> Contains -> Name of Event
    Plus
    Place -> Does not contain -> leave the last field blank
    Thanks for that, just getting used to these brilliant smart albums, do I have to have one of these smart albums for every event though? can I not just use it for all photos?
    cheers

  • How can you get get two master pages to repeat in a document with one of them having numbering.

    How can you get two master pages in Indesign to repeat when one of them has a numbering section and the back side is a common back. For example, Master A has numbering 001-500 and Master B is the common back for all 500 pages.

    My guess is you either want to use a numbered list for the numbering, rather than a page number marker, or you want to make two files and print a single page file with the static text 500 times, then flip the stack and print the 500 page file.
    What are you trying to do?

  • How can you get your submit buttons to be a single click instead of the default double click?  (The

    How can you get your submit buttons on the quiz template to be a single click instead of the default double click?  (The option to choose double click or not is not showing in properties for this).

    Hmmm... Submit button doesn't need a double click at all. Maybe you are talking about the two-step process? When you click on Submit, the feedback appears with the message to click anywhere or press Y. Is that what you are talking about? If you are talking about a real double-click, something must be wrong in your file. And which version are you using?
    http://blog.lilybiri.com/question-question-slides-in-captivate
    Lilybiri

  • How can you get your i pod touch screen fixed

    How can you get your screen on an i pod fixed

    Apple will exchange your iPod for a refurbished one for $199 for the 64 GB one and $99 for the others. They do not fix yours.
    Apple - iPod Repair price      
    A third-party place like the following maybe less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the screen yourself if you are up to it
    iPod Touch Repair – iFixit

  • How  can you load local server urls on application start?

    Background:
    I've been searching for close to two days for an answer to this question, it's full of gotchas and I can't quite get it figured out.
    I have an application which contains several web services. These services load up listeners when the services are invoked which makes them available for input. The user has the option of disabling automatic load of these services and invoking them manually by typing in the local url and starting the app. The can allow the autoload which uses a the or allowing the auto load to start. Currently the local url is hardcoded in a property file and this is how the services knows the local endpoint to envoke when it autostarts.
    <servlet id="AutoStart_01">
    <servlet-name>autoStart</servlet-name>
    <servlet-class>com.loadmy.StartupClass.Here</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    This works all fine and well until it's deployed onto a machine that runs a local weblogic cluster that has more than one jvm (and multiple ports) loading the application up.
    Problem
    The question is, how can you get the applicaton to recoginize the local url for the jvm that is running which can be on different ports? Here's what I've tried
    A - Using Inet.Address - This doesn't let you know what port your application is on
    B - Using the load servlet on start up ( Only the init() function is called and the request object hasn't been created and the request object is what contains ther protocol, server and port information)
    C - Loading a jsp page (READ... purposefully loading a jsp page) on application start. The thought here is that this contains a request object, but unfortunately on this doesn't work in my servlet container (currently tomcat 6 but the application is for a web logic machine)
    D - I thought about possibly using System.properties() but no luck there
    I'm at witts end on this one and I know there is something that can recoginze the local servlet container and extract the url and port from it.
    Any suggestions would be great.
    Flabergasted [sic]

    Hi,
    I had a simmilar requirement once, i also had to display some meaningful message with the busy mode icon, but i guess that comes directly from the WD Framework and is not possible to be changed. Refer the following thread, i raised that time.
    Web Dynpro ABAP
    Dont have much idea if somethig exists in portal for this.
    Regards,
    Runal

  • How can I set up two iPhones with the same contact, photos, music etc... but a different sim card and phone number. They will both be my phones, but one will be for use in other countries.

    How can I set up two iPhones with the same contact, photos, music etc... but a different sim card and phone number. They will both be my phones, but one will be for use in other countries.

    Phone A = phone with information you want duplicated
    Phone B = phone that you want to copy from A
    Backup Phone A.
    Wipe Phone B using these instructions. What to do before selling or giving away your iPhone, iPad, or iPod touch - Apple Support
    Phone B should be on the 'Hello' screen. Do not swipe it. Launch iTunes. Plug in Phone B.
    When iTunes asks if you want to set up as new phone or restore from backup, choose restore from backup of Phone A.
    After this setup, any changes to one phone (i.e. adding a contact, downloading an app) will have to be manually duplicated on the second phone, if that is your desire). Making changes to one phone will not affect the other after setup.

Maybe you are looking for