Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

| * |

  Show Posts
Pages: [1]
1  Announcements and General Discussion / General Discussion / How to handle a large amount of data that has dependencies on: April 01, 2008, 10:07:45
Hi,

I try to create a Application based on PureMVC.
The Application is a Simulation of the Football European Championship 2008.
The Application was developt a year ago and now i try to port it to as3.
It don't want to create a 1:1 copy of the as2 version, so i decided to
create it from scratch with a better architecture.

I have problems to create a good structure of the data that is involved. I have
data from an XML that describes the tournament with teams, rounds and the dependencies between these
rounds ( for example: the opponents of the first quarter final are the winner of group A and the second of group B).

My Data Chunks are matches, groups (that contains specific matches), KO-Rounds.

I decided to create VOs for all the chunks.

Now i have much Domain Logic that works with these chunks of data, for example calculating the group-table. The Matches in the KO-Rounds must be updated if the group tables change etc.

Should i create Proxies for every Match, every Group etc? One Problem is, that the Group Proxies must have access to the GroupMatch Proxies to calculate the group table. Should i give references of the MatchProxies to the Group Proxies?

Or would you prefer to keep the relations between these chunks of data outside of the puremvc world and generate the structure in an proxy. And this specific Proxy updates the data structure triggered by commands. 

I have also a link to the current version, so you can get an overview http://em2008spielplan.bungartbessler.com/
Pages: [1]