How to design a simple game?

my programming skills are pretty much limited and as most beginners i was coding simple things by build and fix method, but wanna try to do it properly so i'm looking for help. i've been trying to design simple Connect4 game and as i'm coding in java i taken oo aproach. i'll explain exactly steps i've taken and i'd really appreciate if someone familiar with oo design and software engineering in all would point out what i'm douing wrong and if theres is anything ok with my approach.
1. i've started with use-case modelling and created first scenario
scenario created:
1. user clicks start button
2. player1 is presented with empty board and asked to insert token in column of his choice
3. player1 clicks on column where he wants to insert token. token drops (appears) in chosen column
4. player2 is asked to insert token into column
5. player2 clicks on column where he wants to insert token
token drops (appears) in chosen column
6. steps 2-5 are repeated
7. player1 connects 4 in a row and information is displayed player1 has won
i know scenarios should include every possible way of utilizing the software but it gives countless possbilities and i was wonder if scenario for every single way of utilizing the product should be created or maybe not? i suppose that number of scenarios depends on how the product is complicated but in case of very simple game like connect4 aproximately how many scenarios would be expected?
2. having above scenario ready i've used noun extraction method to extract candidate classes and so i have:
players inserts tokens into the board consisting of 7 rows and 6 columns. players trying to connect their four tokens in a row (horizontally, vertically or diagonally) to win.
classes extracted:
player
token
board
row
column
assuming that state of token, row, column will not change, i skipped those and left only two classes board and player. after a while i also noticed that another class named connect4 would be needed to put it all together.
3. having one scenario ready and classes extracted i went directly to drawing sequence state diagram which i've put here
4. next i draw detailed class diagram (here) and more or less decided on methods for every class
5. then i started writing pseudocode but while writing i'm finding myself adding additional methods, variables etc and keep changing design while coding, what dosent seem to be a good practice. i was wonder how it works in real life and what is the chance to get application designed correctly for the first time, i mean extract the classes with methods etc.
to be honest i got lost a little cause according to shach's book i missed state diagram and few other things and dont know how important those bit are in real life and designing real software. as i said i'm real beginner in software engineering and any help would be much appreciated. than you very much in advance for any comments regarding my design and help

i know scenarios should include every possible way of
utilizing the software but it gives countless
possbilities and i was wonder if scenario for every
single way of utilizing the product should be created
or maybe not? i suppose that number of scenarios
depends on how the product is complicated but in case
of very simple game like connect4 aproximately how
many scenarios would be expected?Very few. This program is small and the interaction
with the user is minimal.
2. having above scenario ready i've used noun
extraction method to extract candidate classes and so
i have:
player
token
board
row
column
assuming that state of token, row, column will not
change, i skipped those and left only two classes
board and player. after a while i also noticed that
another class named connect4 would be needed to put it
all together.Things like "player" or "person" are rarely if ever real classes.
Imagine you were designing the control program for an
elevator. Just because a person clicks on the button for
a floor doesn't mean you make them a class in your design.
Likewise, just because a player clicks on a column doesn't
mean you make them a class.
In reality, this program is small enough for one major class,
the gameboard itself. You may have an enum for the token
color but that's about it.
What can you do with this gameboard? Not much:
1. Add a token to column X.
2. Check for a win.
3. Obtain a copy of the board.
Your gameboard only has to maintain the state of the
board and allow you to add a token or check for a win.
Your class to display the gameboard and accept user
input will probably be larger than anything else.
You can write this program with only two classes. The
gameboard and the display.
3. having one scenario ready and classes extracted i
went directly to drawing sequence state diagram which
i've put hereOverkill for a program of this size.
4. next i draw detailed class diagram (here) and more
or less decided on methods for every classAlso overkill for a program of this size. Unless this is
an assignment at work or school, all of these documents
are unnecessary and likely to be several times larger than
your entire program.
5. then i started writing pseudocode but while writing
i'm finding myself adding additional methods,
variables etc and keep changing design while coding,
what dosent seem to be a good practice. i was wonder
how it works in real life and what is the chance to
get application designed correctly for the first time,
i mean extract the classes with methods etc.If you find your design doesn't work while writing code
then yes, you should go back and change your design
document. This isn't too big of a sign of disaster unless
you need to step back another step and change the
requirements document. That's usually a sign you
really messed up.
By all means, go back and change the design document
if you need to before you finish coding.
In this case however, its probably overkill.
to be honest i got lost a little cause according to
shach's book i missed state diagram and few other
things and dont know how important those bit are in
real life and designing real software. as i said i'm
real beginner in software engineering and any help
would be much appreciated. than you very much in
advance for any comments regarding my design and helpIts next to impossible to go through a structured design
process on a project this small while working by yourself.
You really need a bigger project with multiple team members
to see how its all supposed to play out.
Projects of this size are written almost as soon as you start
thinking about them and any documentation you generate will
dwarf your source code printout.

Similar Messages

  • How to design a simple quiz...

    Hi everybody
    Can anybody help me out with constructing a simple quiz within Edge animate, I don't need it to randomize anything, I just want 10 questions that tally up the answers and send the results in a email to the user
    Any help would be appreciated
    Regards
    George

    You could for example do it like this:
    import java.io.*;
    class Quiz
    public static void main (String [] args)
    BufferedReader in = new BufferedReader (new InputStreamReader(System.in));
    System.out.println("SUPERQUIZ");
    System.out.println("How many legs does a horse have?");
    System.out.println();
    System.out.println("1");
    System.out.println("2");
    System.out.println("3");
    System.out.println("4");
    int answer = Integer.parseInt(in.readLine());
    if (answer == 4)
    System.out.println("The answer is correct");
    else
    System.out.println("The answer is incorrect");
    This is just a basic program, hope you understand it (hopefully it works).
    �sbj�rn

  • How to design a simple menu midlet in j2me?

    I'm new to j2me and trying to make a simple menu midlet without using polish (css). Please help... Thank you

    You need to use
    Class javax.microedition.lcdui.List
    Interface javax.microedition.lcdui.CommandListener
    Lots of MIDP Technical Articles and Tips at
    http://developers.sun.com/mobility/midp/reference/techart/index.html
    For future needs, please post on the CLDC and MIDP forum
    http://forum.java.sun.com/forum.jspa?forumID=76
    db

  • How to design a simple binary one-shot

    I need a simple binary one-shot that when a signal becomes true, a new value goes True for one evaluation and does not get re-triggered until the original signal becomes false and then true again. I have tried many ways and either the wait for the signal to go false again locks up the loop or the trigger remains true and causes the logic to keep on processing.
    Solved!
    Go to Solution.

    Can you post an image of what you have tried, preferably in .png format? Or attach your code attempts, ID'ing what version of LabVIEW. 
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Simple game design,

    so I have a basic understanding of java, I took a class on it this spring and did well. I am wanting to make a simple game, a single picture, a map, that is clicked.
    based on the location clicked, the player gets an item. this is an online game.
    I am going to use SQL for this game on the back end. it will have a db with two tables, users, and map.
    users will have user name, user ID, items owned, tools, and searched today.
    map Im not quite sure about yet.
    so basically, Im trying to figure out how I should go about this. Im not quite ready to hack code yet, I need to get a good plan together and make sure I go about this correctly.
    can I open this for discussion and get some help on designing this. Im trying to stay really very simple, so as not to undertake too much.
    this is my outline right now:
    login: a screen with name and pass fields, an ok button. when the button is clicked, the program checks the db for the name, and verifies the password, if everything is in order, goto the account screen, possibly a cookie or session of some sort is set.
    account screen: show the username, items owned and number of each, any tools or special items owned. button to logout, button to goto map. radio buttons on the tools to determine which one, if any, is equipped. there should also be a special area near the top that shows what item was found on the previous day.
    map screen: this is a small image of a map. the user clicks and shows a pin placed, as well as any other pins currently on the map for the day. a search button that when clicked, locks in the location untill the end of the day.
    the user can search one location per 24 hour period, server time.once a location is picked, its locked in till server is rolled to new day. based on the location, and the tool selected, the player gains an item, these will be used for creating items and such in a later game that is tied to the IP.
    pretty simple, login, pick a tool, pick a location, complain in the forum that you can't find good items, and that the main game isnt done, move on till tomorrow :)
    I need to go over each part in detail and do this right. I should mostly be SQL with a graphic frontend, which as of now Im choosing Java for, so this can run in a web browser. Im also considering PHP, but I fear it wont be dynamic enough. Flash is my other choice. I would like to get a good idea of what I need to do for each aspect before I make it. The screens I will make in netBeans, probably using Swing, and all of my actual logic will be in click events.
    Help me out guys, I need to talk about this step by step with someone.

    lord_midnight wrote:
    ]morgair: I have done some small projects here n there, mostly just demos, I am almost finished with a retro styled platformer, just placing tiles and entities, finishing up the art, code is done except for a few custom routines for a boss. this project is actually pretty small, other than being online, its a good choice for a first game type of project. Im confident it is within my skillset.Thank you for the reply, I was unsure what level of help you needed, many on here come in and have never done any programming before, let alone, an actual game on-line or otherwise. It's nice to hear where you're at.
    ]mrw: yeah, its not so much that I have a problem, I just want to make sure I think everything through before I start. Im trying to get a good grasp of what Im doing, so I don't have very many problems, Im sure I'll have a few though, somehow no matter how much I plan, something goes awry.
    ]soultech2012: Im actually in college, I took java this spring, and Im taking advanced java as soon as its offered online. still, its not so much instruction I want, as discussion.
    maybe I was not being so clear, Im not looking for anyone to write code, or tell me what to do, I want to talk with people, Im sure I will have direct questions at some point, but right now, I want to think it through. If anything, another set of eyes looking at the design, pointing out possible snags or logic problems. its pretty simple as far as games go, I did some prototyping in flash last night, I think this will be pretty easy. does anyone see any serious problems in the design ?
    I think it will make a nice little game, its not meant to take much time out of the players day, just a 2-5 minute jaunt into my website. login, pick a spot on the map, select a tool to use to help gather items, and slowly over several weeks, have accumulated a collection of goods for a game Im doing at a later date.
    getting the x,y will be easy, I have done a couple of very simple apps that interact with SQL,
    the only real logic parts of this are some ifs or a switch, and adding to a field in SQL.
    getting pixel color might be tricky, it was easy in flash, and Im pretty sure I saw a similar function last time I browsed the javadocs, so Im not too concerned.I like to use getRGB and setRGB from a BufferedImage.
    honestly, I looked around and I can all but make this in javascript and PHP/SQL, java might be overkill.
    anyone see any obvious ways to cheat the game ?If you store any logic on the client side they can easliy find and modify it, that way they can have a super character or all of the items. Runescape is perfect example of this, they run client server and there are groups that have made their own client to cheat with.
    am I underestimating the complexity of the task ? I have plenty of time to work on it, no hurry, but Im hoping to have something on the site within the next month or so.That is doable, If you are careful in your implementation, you can build a basic game engine and then work on map and support making for facilitate different levels.
    I need to make a list of terrains, the colors Im using for them, and items found, and I need to draw out a table that Im using to plot out the sql.
    Im taking PHP/SQL this fall, Im starting to get the hang of it, and I have a pretty good grasp of basic programming concepts. this should be well within reach, honestly, its glorified tic-tac-toe, or match-findingThe big things that seem to pop up for people are:
    Picking up items
    putting down an item
    weilding an item
    using an item
    combat
    breaking off combat
    automatic path plotting (least cost algo from map)
    frequency of random events
    regeneration of items
    regeneration of health
    real language interaction with characters (pattern matching for content)
    Just remember: choose what you want and don't let the scope of your game creap or you'll have a bunch of code that has no implementation end in sight. Keep your compiles short and changes departmentalize so you can have running code that works from one feature to another. I see a lot of people--experirenced too--that literally throw hundreds of lines of code out and then try to debug it after they make changes thorughout the stable code base to allow integration of the new feature; this can be very daunting, keep it as simple as possible to integrate new features--small steps are good.
    thanks for the input, and comments are welcome, best I can offer is thanks and bonus tools in the game once its done, so thank you.

  • Daughter mostly plays simple games on iPad mini. Now reached stage where it says can't download not enough storage although showing 14.9 gbs of storage available. How can I overcome this ICloud,dropbox or what ?

    Daughter mostly plays simple games on iPad mini. Now reached stage where says "can't download not enough storage2 although showing 14.9 gbs storage available.How do I overcome this icloud,dropbox or what?
    Thank you in anticipation.

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps from the tray before doing the reset.

  • How to design a GUI Python app properly?

    Hi guys. As motivation to actually learn Python, I want to carry out a fairly simple application that's been brewing in my head for months; a "game manager" that a gamer can use to keep track of the games he owns, the games he's beaten, and any specific challenges he's completed in said games.
    The problem is that I can't seem to wrap my head around Python. I look through its docs to solve problems but I almost always end up lost. I come from PHP, which is supposedly sloppy, but it's also very easy to get almost anything done quickly. In my frustration, I proved that I could get more progress in 15 minutes in PHP than I had gotten in 2 hours in Python. I was right, but I know that PHP isn't the right tool for the job. I want to make an actual desktop application that relies on an sqlite db.
    With my frivolous backstory out of the way, could anyone offer any enlightenment on Python? I've tried the tutorials, I've tried the docs... where can I go to learn not only how to code my app, but how to design it? Design is more important than syntax, imo, because it relies on concepts which form the foundation of whatever app you're building.
    I can post an overview of how I want the app to behave, if that would help others advise me on how to build it in Python. I'd really like to pick the language up, but it's being anything but "easy to learn".

    Are you sure you've read the helpful tutorial? If you can't grasp it, perhaps PHP has finally penetrated the shell of coding sense surrounding your brain and started eating. (I used to be close to that point. Now I believe Python is god.)
    Oh, and never start with something as big as a full-blown graphical application. Trust me, it is never as simple as it first seems when you conceive the idea. Start with small, one-file utilities and work your way up from there. Consider downloading the full documentation so you always have a local copy.
    And remember: If your code seems ugly, it probably is. There is almost always a better way in Python.
    Last edited by Peasantoid (2010-02-06 05:14:43)

  • Designing a board game

    Is there anychance anyone out there can help me with the design of a risk board game in java - obviously. I am a complete rookie so if you can keep it as simple as possible I will be very greatful.
    Cheers!

    I'm designing a board game called othello. The thing
    is,
    i'm using something minimax, where the computer thinks
    ahead
    in the number of moves. Now, i'm having problems doing
    this,
    as I am using an array of weighted board values
    indicating
    which part of the board are more advantageous than
    others.
    The problem i'm having is to decide how to use this
    function.
    I am designing the game, so that it looks like 3 moves
    ahead.
    Do i call the weighted board values, once it's at the
    3rd move,
    so it then calls the minimax function and decides what
    move is best?
    Basically, does anyone know how to use these weighed
    values, and
    exactly when to call them. If someone could explain
    this in simple
    terms, it would be great.
    thank you so muchone way of handling this is adding up the weights of the possible moves up to the third move ahead, but do this as "branches". Meaning, if you take this first move what moves will it give you, and what moves will those moves give you. Once you have the current moves to third moves branches mapped out, then total the weights of all the moves and that will give you a branch weight. The better the weight branch will then tell your program which current move to make.
    Another thing to consider in your program is not just which spots are best (like corners are advantageous) because I can play the game, give someone a corner and still beat win, it is a simple strategy. There are plenty of other things to consider, for instance, consider mobility in your wieghts. How many moves does this give and how many moves does it take away or give to my opponent.

  • From a Technical Architect point of view, how to design a web application?

    Hi to all,
    I am writing this issue here because I this question is not related on how to program, but on how to design a web application. That is, this question is not related to how to program with the technologies in J2EE, but how to use them correctly to achieve a desired outcome.
    Basically I know how to develop a simple web application. I like to use SpringFramework with AcegiSecurity and Hibernate Framework to persist my data. I usually use JBoss to deploy my web applications, however I could easily use Tomcat or Jetty (Since I am not using EJB�s).
    However I have no idea on how to develop (or a better word would be �design�) a website which is divided into different modules.
    Usually when you develop a website, you have certain areas that are public, and other areas that are not. For example, a company would want anyone on the Internet to download information about the products they are selling, however they would only want their employees to download certain restricted information.
    Personally I try to categorise this scenario in to common words; Extranet and Intranet.
    But � (and here starts the confusion in my mind) should I treat these two as two projects, or as one project? The content to be displayed on the Extranet is much different then the content to be displayed on the Intranet and definitely clients should not be allowed to the Intranet.
    First approach would be to treat them as the same project. This would be perfect, since if the company (one day) decides to change the layout of the website, then the design would change for both the Intranet and the Extranet version. Also the system has a common login screen, that is I would only need to have employees to have a certain Role so that they have access to the intranet, while clients would not have a certain Role and thus they would not be allowed in. But what about performance and scalability? What if the Intranet and Extranet have to be deployed on the different Hardware!?
    The second approach is to threat them as two separate projects. To keep the same layout you just copy & paste the layout from one project to another. However we would not want to have two different databases to store our users, one for the employees and the other one for the clients. Therefore we would build a CAS server for authentication purposes. Both the Intranet and the Extranet would use the same CAS server to login however they could be deployed on different hardware. However what if we want to change the design. Do we really want to have to just copy and paste elements from one project to another? We all know how these things finish! �We do not have time for that � just change the Extranet and leave the Intranet as it is!�
    The third approach (and this is the one I like most) is to have a single project built into different WAR files. The common elements would be placed in all WAR files. However in development you would only need to change once and the effects would show in the different war files. The problem with this approach is that the project will be very big. Also, you will still need to define configuration files for each one of them (2 Web.config, 2 Spring-Servlet.config, 2 acegi-security.config, etc).
    Basically I would like something in the middle of approach 2 and approach 3! However I can identify what this approach is. Also I can not understand if there is even a better approach then these three! I always keep in mind that there can always be more then two modules (that is not only Intranet and Extranet).
    Anyways, it is already too long this post. Any comments are more then welcome and appreciated.
    Thanks & Regards,
    Sim085

    Hi to all,
    First of all thanks for the interest shown and for the replies. I do know what MVC or Multi-layered design is and I develop all my websites in that way.
    Basically I have read a lot of books about Domain-Driven Design. I divide my web applications into 4 layers. The first layer is the presentation layer. Then I have the Facade layer and after that I have a Service layer (Sometimes I join these two together if the web application is small enough). Finally I have the Data Access layer where lately I use Hibernate to persist my object in the database.
    I do not have problems to understand how layering a web application works and why it is required. My problem is how to design and develop web applications with different concerns that use same resources. Let me give an example:
    Imagine a Supermarket. The owner of the Supermarket want to sell products from the website, however he wants to also be able to insert new products from the website itself. This means that we have two different websites that make use of the same resources.
    The first website is for the Supermarket clients. The clients can create an account. Then they can view products and order them. From the above description we can see that in our domain model we will have definitely an object Account and an object Product (I am not mentioning all of them). In the Data Access layer we will have repository objects that will be used to persist the Account and Products.
    The second website is for the Supermarket employees. The employees still need to have an account. Also there is still a product object. This means that Account and Product objects are common to the two websites.
    Also important to mention is the style (CSS). The Supermarket owner would like to have the same style for both websites.
    Now I would not like to just copy & paste the objects and elements that are common to both websites into the two different projects since this would mean that I have to always repeat the changes I make in one website, inside the other one.
    Having a single WAR file with both websites is not an option either because I would not like to have to deploy both websites on the same server because of performance and scalability issues.
    Basically so far I have tought of putting the common elements in a Jar File which would be found on the two different servers. However I am not sure if this is the best approach.
    As you can see my problem is not about layering. I know what layering is and agree with both of you on its importance.
    My question is: What is the best approach to have the same resources available for different websites? This includes Class Files, CSS Files, JavaScript Files, etc.
    Thanks & Regards,
    Sim085

  • How to make a simple Plugin system?

    hey guys, first let me say I see very much hostility here, and I'm not here to annoy anyone, so if you don't feel like answering then simply don't.
    I want to design a simple Plugin System for my application. I think what I need is a bit of reassurance and redirection if I'm making wrong assumptions.
    here is the stages I see:
    1. the system has a HashMap<String,PluginTypeData> that holds types of plugins, and the folder of the application that hold the libraries files for the plugins among other details.
    (this would be saved in the application configuration file)
    2. once the application starts/on request the system would load the libraries into the memory.
    3. in each library there should be a file that holds the textual fully qualified name of the classes that this plugin would require to operate properly.
    4. the objects in the library would have to be familiar to the application, therefore they must implement or extend a known base object from the application, and once loaded a reference to that known base object is assigned to the new object.
    5. and then if I want to load a GUI component from the plugin I just get it from the reference.
    lets start with how does that sound? I would like to get a feed back, just a serious one please, that may help me understand any mistakes I might be doing, and not just to understand that I'm wrong....
    Thanks in advance,
    Adam Zehavi.
    Edited by: Adam-Z. on Dec 19, 2009 12:34 AM

    well, English is not my native, so I find it hard to describe, sometimes I feel the lack of words to describe what I want, and I have to take a break, and use a dictionary to find the right word to use, and sometimes these are basic words that I miss so I'm sorry if I'm not clear.
    And this will be required for every single plugin in exactly the same way? If not then each plugin should include a factory.Yes, they are all saved the save way, every plugin has a method that create an instance of a basic class J2MeDataChunk.
    The types of the data chunks are defined on the J2Me platform and only there.
    The reason that they are defined on the J2Me platform is because of the first limitation of the J2Me platform.
    1. I cannot import into the build path of the project any external libraries.Therefore in the future when I would like to add more chunk types, I would have to add them into the J2Me project as classes, and not as a jar in the build path, but the plugin would have to refer to the J2Me project and to know which chunk type it is going to edit.
    Each plugin knows how to edit a different type of J2MeDataChunk, the data chunks saves them selfs into a data output stream using a serialize method in each of them, and the serialize method is invoked from the plugin itself when the user (me) press the save button.
    "produce"? You mean a factory?No, I meant that the object I posted earlier (J2MeDataChunkType) is an object that represent the type of the data chunk for each of the data chunk types, and that there can only be one instance of the object that represent the type of the data chunk, and that single instance of the object that represent the type of the data chunk is the one that can create new instances of that data chunk type, it can create an empty data chunk,or to deserialize the data chunk type using a DataInputStream, and it has an abstract method, that returns Swing component only on the J2Se platform (a class that extends the J2MeDataChunkType object on the J2Se platform that overrides the abstract method for the editing Frame/Panel).
    What do you mean "external" libraries? Your code doesn't count right?I mean that a J2Me project cannot import other jar files into its build path, only the classes files that are in the project are known to the complier.
    The other two limitations are not limitations at all as far as I can see.well the third one might not be a limitation but it is a pain in the .. S since I have to implement every object I want to serialize myself
    but the second one, well, if you don't use the full strength of the 1.5 then you might not miss it, but there are so many elements I miss when programming on J2Me platform... like this one, I don't know how it is called:
    class A {
    class B  extends A {
    class C {
          A getA() {
    //  return instance of A
    class D extends C{
          B getA() {    // this is not implementable on J2Me, and I miss this for better implementation of things since I try to integrate my J2Me platform I'm building with J2Se application.
    //  return instance of B
    }moreover I miss enumeration, god I love using the
    for(Object o: objectList)very useful very efficient to use...
    and how could I leave generics out... wow no generics... terrible oh, and enums, no enums... hell if there were enums on J2Me... life would have been less gray.
    so yes I see all this as limitations, it slows me down allot, and it makes my code less readable.
    well since I try to build a bridge between the J2Me and J2Se platforms, and since there are some limitation to the J2Me platform* I needed to
    define a few things in a few objects, it was possible to make all the data to fit into one object, but it would make that object too heavy for the
    J2Me platform (besides I rather having two objects it felt more OOD right way to do), where one is a type definer that can produce only one
    instance of this object although it is inheritable,
    Memory in terms of the class or the instance? If the instance then it doesn't have much to do with this discussion. If the class then that impacts >your design because with a limited memory size and large impact then unloading might come up - and that requires a class loader.well this design actually adds an extra class for each type I decide to add to my platform although at the end I intend to join all the objects that represent the type of the data chunk into one object only on the J2Me platform which would actually add only one class to the memory on the phone, it is just easier for me to see things clearer now as I design this bridge application between the platforms, besides it allows maximum flexibility to create new types of chunks, and that was my main aim, to make as many types to be saved on files that I can transfer via a wireless onto the phone and the platform on the phone would know exactly what to use them the data chunks for with out any user intervention.
    as for instances, this way I reduce the memory each of the chunks would use and in the total calculation it would improve memory usage while creating objects from these chunks.
    Presumably you are managing the data items because the base class is going to provide functionality relevant to them.Right, the base class is the most common ground I could find for all the chunks together.
    Presuming that each "type" really is a type (say you have 4 interfaces any of which might be implemented) then you would need the following in
    a configuration file for each entry.
    1. Type of the implemented class.
    2. Full name of the implemented class
    3. Full name of the GUI dialog object.
    4. Optional Name of this entry. I suggest this as it allows you to report errors using this name rather than plugin class names
    Per your requirements there is no path nor jar is needed nor can be specified.well I hope that by now you did get that I generalized all the data chunk types that I created into one basic object which I posted earlier, this object handles everything, and the plugin main object would be design on the J2Se platform and would extend that J2MeDataChunkType class and it would return the Swing frame/panel when the J2Se application calls the getPanel method and an empty chunk on the getDataChunk() method.
    well, in my case it would extend an abstract class from the J2Me platform, maybe two object I'm still thinking about a better implementation >> so the plugin would be more simple, consist of only one object, that needs to be loaded.It shouldn't matter to you how the class is implemented.But of course it does, I want to make my life as simple as possible when I implement new plugins, having one object with abstract method, that when I extend it Eclipse would automatically add the abstract method for me to implement, and just a short glimpse at another implementation of the plugin would let me design another plugin in seconds.(with out making the GUI for the data chunk editing obviously).
    I think I got my head around this, especially now that it feels like I could explain what I'm making better in words.
    Thank you for taking the time to respond to my posts, I see you currently have 37k post so I guess you are a very quick typer, yet you take the time to try and understand my design. Thank you.
    Adam Zehavi.

  • How can I transfer saved games data (smurf, bakery story, etc) from iPhone 3GS to iPad mini retina?

    How can I transfer saved games data (smurf, bakery story, etc) from iPhone 3GS to iPad mini retina? I have a reached in a very high levels at all these games I choose iPad for continuing  played all my saved games in the bigger screen of iPad. Please send step by step the way I can transfer them at the levels I have reached.

    I have installed all the games from my iPhone 3GS at my iPad mini retina throw iCloud. I did what iTunes suggest but when I open the game start from the beginning. For example all the games of team lava company like farm story 2 bakery home design etc I have register and I took storm ID and I have reached in a big level that some times cost money to change level or to buy gems to continue the games.
    I am very angry because before I bought this iPad they told me that I could played my games in a big screen of iPad and this as I can see is nit possible. Apple send me details that didn't help me and everything suggest me is not working.
    I fell stupid because I spend my money in an apple product that isn't what I want and the information I have throw apple are fake

  • How to design HTML Table in ADF

    I am new to ADF Tech,
    I would like to know, how to design the HTML Table Rows and Columns in ADF
    Ex:
    <TABLE width="100%" border="1">
    <TR>
         <TD>GUID</TD>
         <TD>123</TD>
         <TD>Name</TD>
         <TD>Mark Antony</TD>
         <TD>Version</TD>
         <TD>1.0</TD>
    </TR>
    <TR>
    <TD>Created</TD>
         <TD>Oracle</TD>
         <TD>Modified</TD>
         <TD>Oracle User</TD>
         <TD>Placements</TD>
         <TD>20</TD>
    </TR>
    </TABLE>
    Thanks in Advance

    Balaji,
    With JSF in general (and ADF Faces too), you should not think in terms of HTML output, but in terms of JSF components. ADF has an af:table component that renders things in rows-and-columns, but emits HTML that is much more complex than just a simple HTML table.
    John

  • How to design the URL?

    How to design the URL?i know that the Google  will take down the good URL.such as the staticize URL Google will like more..

    A site's URL structure should be as simple as possible. Consider organizing your content so that URLs are constructed logically and in a manner that is most intelligible to humans (when possible, readable words rather than long ID numbers). For example, if you're searching for information about aviation, a URL like http://en.wikipedia.org/wiki/Aviation will help you decide whether to click that link. A URL like http://www.example.com/index.php?id_sezione=360&sid=3a5ebc944f41daa6f849f730f1, is much less appealing to users.
    Consider using punctuation in your URLs. The URL http://www.example.com/green-dress.html is much more useful to us than http://www.example.com/greendress.html. Google recommends that you use hyphens (-) instead of underscores (_) in your URLs.
    Overly complex URLs, especially those containing multiple parameters, can cause a problems for crawlers by creating unnecessarily high numbers of URLs that point to identical or similar content on your site. As a result, Googlebot may consume much more bandwidth than necessary, or may be unable to completely index all the content on your site.

  • How do we make Facebook games (Cityville) show full screen on ipad?

    How do we make Facebook games (CItyville) show full screen on ipad? 

    > Is there a way that I can change something to make the
    window with the
    > three
    > business portraits open to full screen when you click on
    the Gallery
    > button?
    No. Modern browsers are designed to protect users from that
    kind of
    manipulation. Typically, web users don't want their browsers
    windows
    manipulated.
    Walt
    "Bill Artman" <[email protected]> wrote in
    message
    news:gihqrl$gnq$[email protected]..
    > I am using Dreamweaver MX 2004 with Windows XP.
    >
    > My question is a page from my homepage
    www.artmanphoto.com > Portfolio >
    > Business Portraits then click on the Gallery button.
    When my web designer
    > built my site there was only two business portraits and
    when you clicked
    > on the
    > Gallery button the window was smaller and did not expand
    to a full screen
    > display. Tonight I added a third portrait and the window
    is still smaller
    > than
    > the full screen display so you have to use the
    horizontal scroll bar to
    > view
    > all three images or you can click on the Expand button
    in the upper right
    > corner of the screen to make the window display full
    screen. I thought
    > that
    > when I added the third portrait the and it was displayed
    on my website
    > that the
    > window would expand to show all three portraits but it
    didn't.
    >
    > Is there a way that I can change something to make the
    window with the
    > three
    > business portraits open to full screen when you click on
    the Gallery
    > button?
    >
    > Thanks very much for your help!
    >
    >
    >

  • How to design LabVIEW programmin​g for temperatur​e monitoring using 4 thermocoup​les

    Hi all.
    Sorry if this seems a simple question but I really sorry for the troubles. I'm a new user with LabVIEW and currently using LabVIEW 8.6 for a final year project of mine. I’m trying to monitor the temperature reading in 4 different depth of pavement for every 1 hour interval continuously for 1 month duration. Basically I’ll be using 4 separate thermocouples type J and NI 9219 device. My problems are:
    I’m not sure how to design the LabVIEW programming for my application.
    How to get the temperature reading data in Excel spread sheet.
    How to set the min, max and average daily temperature for each thermocouple.
     Thank You.
    Regards,
    Amanus
    Thermocouples Layout:
    Solved!
    Go to Solution.

    Introduction to LabVIEW
    Follow that link to some getting started tutorials. There should be all you need in there to get you going with both the software and hardware
    - Cheers, Ed

Maybe you are looking for

  • Cost object for Revenue Item?

    Dear friends When I am posting sales entry in F-02, system is asking Cost Object. I have given Cost Center as a Cost Object. In the control tab I have removed lock for Actual Revenues also. Even after this also system is asking the Cost Object. And I

  • How can i track itunes

    How can I track the person making purchases from itunes on my stolen ipod touch using my bank account?

  • Itunes not allowing Shuffle visibility

    I have just purchased an Ipod shuffle, I have registered it on apple site, upgraded itunes,agreed licence agreement but when I connect to itunes it will not progress off the licence agreement page. I have tried to added a couple of tracks to shuffle

  • Transport request creation date

    Hi Experts,   How can I find creation date of a transport request. I am able to find the last changed date only. Is there any function module or table to find out the transport request creation date. Thanks in advance, Venkat

  • Debug a hung Java Process

    hi Folks, we have this script that connects to a server and retrieve bunch of data and parses and indexes it. One of the ways to improve the speed of this indexing, we used the ExecutorService class, for our thread needs. Seems like there is a hang e