UML and patterns

I would like to see some UML diagrams and discussion of pattern use.
Steve Watson

Thanks Steve. We have decided to use UML for the diagrams in the book. We also plan to include a discussion on the use of J2EE BluePrints design patterns where appropriate.

Similar Messages

  • UML and  Java Creator

    Hi
    I'm working with Sun One Studio 5.1 and
    i'm interested about how the
    modelling products can be used in Java Creator as useful input and improve
    system Development.
    Would be great!!!
    Regards

    I am new to UML and Java Design
    Patterns
    Please suggest some good books for UML and Java
    Design Patterns.
    VenuThere are only a few of them:
    http://www.amazon.com/gp/product/0596007124/ref=pd_bxgy_text_b/102-9140088-0344105?%5Fencoding=UTF8
    http://www.amazon.com/gp/product/0130935387/ref=pd_sbs_b_3/102-9140088-0344105?%5Fencoding=UTF8&v=glance&n=283155
    http://www.amazon.com/gp/product/0471227293/ref=pd_sim_b_5/102-9140088-0344105?%5Fencoding=UTF8&v=glance&n=283155
    http://www.amazon.com/gp/product/0201485397/102-9140088-0344105?v=glance&n=283155

  • UML and Java Design Patters

    I am new to UML and Java Design Patterns
    Please suggest some good books for UML and Java Design Patterns.
    Venu

    I am new to UML and Java Design
    Patterns
    Please suggest some good books for UML and Java
    Design Patterns.
    VenuThere are only a few of them:
    http://www.amazon.com/gp/product/0596007124/ref=pd_bxgy_text_b/102-9140088-0344105?%5Fencoding=UTF8
    http://www.amazon.com/gp/product/0130935387/ref=pd_sbs_b_3/102-9140088-0344105?%5Fencoding=UTF8&v=glance&n=283155
    http://www.amazon.com/gp/product/0471227293/ref=pd_sim_b_5/102-9140088-0344105?%5Fencoding=UTF8&v=glance&n=283155
    http://www.amazon.com/gp/product/0201485397/102-9140088-0344105?v=glance&n=283155

  • Adding redirect path and  pattern in Lion server for configuring software update server

    Adding redirect path and  pattern in Lion server for configuring software update server.Any changes

    Ok, after days of browsing on the forum I found the following hint on another discussion related to AFP access:
    "This may be a service ACL issue.
    It turns out one of the latest Apple updates turned on Service ACL's which caused AFP connections to be  blocked. Once I fixed the Service ACL in Server Admin... all connections and Single Sign On worked."
    Well, after allowing access to all services to all users with Server Admin, we were finally able to log in the server with our admin account...
    So, there must have been an update that turned on ACL's which caused even our local access, probably for OD/Kerberos, on the server to be restricted.

  • ABAP/4 Open SQL statement with WHERE ... LIKE and pattern too long

    Dear All,
    I am getting an error "ABAP/4 Open SQL statement with WHERE ... LIKE and pattern too long" while executing the following statement:
    CLEAR LS_RANGE.
    LS_RANGE-SIGN     = 'I'
    +LS_RANGE-OPTION     = 'CP'     +
    LS_RANGE-LOW     = 'S_ADMI_FCD'
    LS_RANGE-HIGH     = 'S_ADMI_FCD'
    COLLECT LS_RANGE INTO LT_RANGE.
    SELECT *
               FROM UST12
               INTO CORRESPONDING FIELDS OF TABLE LT_OBJECT_VALUES
               WHERE FIELD IN LT_RANGE
               AND AKTPS   = 'A'.
    For options like BT(Between), EQ(Equal) in range table, this above query is executing without dump. But for option CP, it simply dumps & in dump what i found is, it is concatenating the value in low & high.
    Does anyone have any idea regarding open sql using range tables.
    Thanks,
    Bhupinder

    Hi,
    I commented as follows:
    If  LS_RANGE-HIGH is empty, you can use EQ, NE, GT, LE, LT,CP, and NP. These operators are the same as those that are used for logical expressions. Yet operators CP and NP do not have the full functional scope they have in normal logical expressions. They are only allowed if wildcards ( '*' or '+' ) are used in the input fields. If wildcards are entered on the selection screen, the system automatically uses the operator CP.
    If  LS_RANGE-HIGH  is filled, you can use BT (BeTween) and NB (Not Between). These operators correspond to BETWEEN and NOT BETWEEN that you use when you check if a field belongs to a range. You cannot use wildcard characters.
    You can try:
    CLEAR LS_RANGE.
    LS_RANGE-SIGN = 'I'.
    +LS_RANGE-OPTION = 'CP' +
    LS_RANGE-LOW = 'S_ADMI_FCD'.
    LS_RANGE-HIGH = 'S_ADMI_FCD'.
    FIND '*' IN LS_RANGE.
    IF sy-subrc = 0.
      LS_RANGE-OPTION = 'CP'.
    ELSE.
      LS_RANGE-OPTION = 'EQ'.
    ENDIF.
    COLLECT LS_RANGE INTO LT_RANGE.
    SELECT *
    FROM UST12
    INTO CORRESPONDING FIELDS OF TABLE LT_OBJECT_VALUES
    WHERE FIELD IN LT_RANGE
    AND AKTPS = 'A'.
    If you use wildcards the LS_RANGE  length should not exceed 10 characters.
    Hope this information is help to you.
    Regards,
    José

  • May have down loaded a trojan or virus while down loading torrents.  My menu and windows change color and pattern now.  Anyone have this happen before?  I repaired the permissions and everything was fixed except one.

    My dumb *** may have down loaded a trojan or virus while down loading torrents.  My menu and windows change color and pattern now.  Anyone have this happen before?  I repaired the permissions and everything was fixed except one.
    Warning: SUID file “System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent” has been modified and will not be repaired.

    You didn't do anything wrong.
    Not malware or a virus.
    But how do you explain this?
    My menu and windows change color and pattern now.

  • JavaFX and UML (and Netbeans)?

    Hi All,
    I know I am asking A LOT here, but are there any plans for Sun to get UML and JavaFX engineering working in NetBeans one day?
    Cheers.

    JavaFX is ObjectOriented why couldn't you (theoretically) model JavaFX in UML? Sure, you you could model JavaFX classes in a Class Diagram or even the hierarchy (a.k.a scene graph) via associations and realizations perhaps?
    Round trip engineering might be asking a little much, and I don't know enough on the NetBeans uml templating features to be able to comment on any possible future JavaFX integration.

  • Extract and Pattern Maker filters in Photoshop CS4?

    What happened to the Extract and Pattern Maker filters in Photoshop CS4? Are they gone or placed somewhere else?

    Hi guys,
    I might be an old fart! But I love extract... Are there any other way to make transparent pixels on the edges on the object you want cut out?
    Personally I cry at night for the semi-loss of Extract! This means that Adobe wont improve it any more and with time the filter might be all gone!?!
    cheers
    Peter

  • The paint bucket tool and patterns in Photoshop CC have stopped working, how to fix?

    Suddenly the paint bucket is not filling, and patterns are not filling either with bucket or fx on layer.
    I tried resetting patterns to default, but that did not help. I restarted my computer, no help, either. Any suggestions? thanks!

    What document? what layer? what tool settings? you need to provide more info. Most likely you have simply changed a setting somewhere.
    Mylenium

  • Clone and Pattern Stamps

    I have purchased Photoshop Elements 10 after my old computer crashed with Photoshop Business 1.0 that worked great for many years.     Now I can't get the Clone Stamp or Pattern Stamp tools to work or I don't understand how they work.  I can't make heads or tails out of any of the help areas.   Actually I can't figure out how to do about 90 percent of the things I used to do with the old program.   This is another case of Newer is NOT better!     I'm finding it's impossible to complete the photo jobs that were simple before.  The "layers" issue is killing me.  Can the layers be shut off?   Right now I'll be a little happier if someone can help me with the Clone Stamp and Pattern Stamp.  No matter how many times I try to click with the Alt, I just get a patch of light blue and I have no idea where it came from....   . 

    For the clone stamp tool you should be able to alt click on the area for the source and paint on another area to copy the source to that area.
    In reality if your old program is anything like older versions of photoshop then the options for the clone stamp might be a little different.
    You should have aligned checked and you might want to uncheck Show Overlay.
    This is a pretty good video (uses pse 9, but pse 10 is the same):
    http://www.alibony.com/video/video-lesson57.htm
    For the pattern stamp you don't have to define a pattern each time you use the tool if you can find a suitable pattern in the presets.
    If you do define a new pattern, then you can save it as a preset if you think you'll need it later.
    The directions for the clone stamp in the pse 10 help manual are not very good, but the ones for the pattern stamp tool are not bad:
    http://help.adobe.com/en_US/photoshopelements/using/WS287f927bd30d4b1f71abaa0b12e28aec742- 7fdc.html
    Some videos covering the pattern stamp tool:
    http://www.youtube.com/watch?v=95RkHw8ryLA
    Some layers videos:
    http://www.youtube.com/watch?v=6lWgnl4IcGg
    I'd highly recommend a book such as Photoshop Elements 10: The Missing Manual.
    Message was edited by: R_Kelly

  • Java Regular Expressions and Pattern

    I have a file that i first want to get all the lines that match a given pattern. Then from these lines that match i want to extract two values.
    Example line for the pattern to match
    INFO | jvm 1 | 2006/11/07 15:14:09 | INFO | Tue Nov 07 15:14:09 CET 2006 | XLDB PPS Data Dumper: MESSAGE:- 406 Processing .. '[ /opt/nexus/horizon/raw_data/network/pp_CE01S4H_sta_20050703T015717_SYDP3001_546.bdf ]'
    So all the lines that are like these i want to extract two variables
    2006/11/07 15:14:09
    and
    /opt/nexus/horizon/raw_data/network/pp_CE01S4H_sta_20050703T015717_SYDP3001_546.bdf
    so i can store these variables in a database.
    Can someone help me with writing the pattern to match and the regular express to extract? Also if anyone else has a better way of doing this i am all ears and i have a lot of log files to go through.

    import java.util.regex.*;
    class Main
      public static void main(String[] args)
        String txt="INFO | jvm 1 | 2006/11/07 15:14:09 | INFO | Tue Nov 07 15:14:09 CET 2006 | XLDB PPS Data Dumper: MESSAGE:- 406 Processing .. '[ /opt/nexus/horizon/raw_data/network/pp_CE01S4H_sta_20050703T015717_SYDP3001_546.bdf ]'";
        String re1=".*?";     // Non-greedy match on filler
        String re2="((?:2|1)\\d{3}(?:-|\\/)(?:(?:0[1-9])|(?:1[0-2]))(?:-|\\/)(?:(?:0[1-9])|(?:[1-2][0-9])|(?:3[0-1]))(?:T|\\s)(?:(?:[0-1][0-9])|(?:2[0-3])):(?:[0-5][0-9]):(?:[0-5][0-9]))";     // Time Stamp 1
        String re3=".*?";     // Non-greedy match on filler
        String re4="((?:\\/[\\w\\.]+)+)";     // Unix Path 1
        Pattern p = Pattern.compile(re1+re2+re3+re4,Pattern.CASE_INSENSITIVE | Pattern.DOTALL);
        Matcher m = p.matcher(txt);
        if (m.find())
            String timestamp1=m.group(1);
            String unixpath1=m.group(2);
            System.out.print("("+timestamp1.toString()+")"+"("+unixpath1.toString()+")"+"\n");
    }

  • Can PCI-6534 multitask unstrobed and pattern I/O functions in separate halves of the same signal group?

    If so, how does this work - byte level addressing on the PCI bus? If not, what would a user need to do to avoid losing the second half the signal group for subset individual direction control?

    Yes, the 653x boards allow you to use the leftover data lines for unstrobed IO. For instance, let's say you want to do pattern generation on the 8 lines of port 0 and burst mode handshaking on the 8 lines of port 2, since you have 2 groups of strobed operations available on the board. These use the two sets of control lines (REQ, ACK, etc.). You can still do unstrobed IO on the remaining lines, port 1 and port 3. Remember that unstrobed IO is software controlled, so you would call the functions to immediately read from or write to those lines.
    You can try this with the examples. In LabVIEW, open up the Write to 1 Dig Port example and set it to digital channel 1. Then, open up the Continuous Pattern Input example, and set the port list to 0. You'll be abl
    e to run both examples simultaneously. The examples are in the LabVIEW >> Examples >> Daq >> Digital >> 653x directory.
    With the NI-DAQ function calls in Measurement Studio, you can open up the DOdoubleBufPatternGen653x example, setting port to 0, group size to 1. Then, open up the DOOnePort with port set to 1. You can run them simultaneously. The examples are in the NI-DAQ >> Examples >> DI or DO directory.
    You can find further information in the 653x User Manual at the http://www.ni.com/manuals page.
    Regards,
    Geneva L.
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • Regular expression and pattern matching/replacing

    I have a list of key words. It has around 1000 key word now but can grow to 5000 keywords.
    My web application displays lot of texts which are stored in the database. My requirement is to scan each text for the occurance of any of the above keywords. If any keyword is present I have to replace that with some custom values, before showing it to the user.
    I was thinking of using using regular expression for replacing the keyword in the text using matcher.replaceAll method as follows:
    Pattern pattern = Pattern.compile(patternStr);
    Matcher matcher = pattern.matcher(inputStr);
    String output = matcher.replaceAll(replacementStr);
    But My pattern string will have around 5000 keywords with the 'OR' Logical Operator like- keyword1| keyword2 I keyword3 | ..........
    Will such a big pattern string adversly affect the performance? What can I do to speed up the performance? (Since my keyword list is not static i would prefer to do the replacement just before showing the text to the user)
    Any suggestions are most welcome.

    I don't think a pure regex approach would be that slow, but it would be a maintenance nightmare. I think a combined regex/table-lookup approach would be best: use a regex to identify potential keywords, then look them up in the table to confirm. For instance, to find all Java keywords you could use the regex "\\b[a-z]{2,12}+\\b" to filter out anything that can't possibility be a keyword.
    What are you going to replace the keywords with? Will it vary depending on which keyword is found? If so, you'll have to use a table--and you won't be able to use the replaceAll method, because it can't handle dynamically generated replacement values. You would have to use the lower-level appendReplacement and appendTail method instead.

  • Best practices for JavaFX architecture and patterns?

    Hi,
    I want to write reusable, easy to maintain JavaFX code for a larger UI project and wonder what are the best practices doing so.
    1) Are there preferred UI patterns? MVC, MVP, Presentation Model, ...?
    2) Does it make sense to use FXML to separate View from Logic? Or should I use 2-3 Java classes instead (one for View, one for Logic, one for Domain Model, depending on the pattern)
    3) How to organize all the views? Should I use Dependency Injection? Or Singletons for each view? Spring or Guice framework, if at all?
    Currently I use singletons for most views, so that I can use them from anywhere in my application. If a window is closed and opened again, I use the same instance for that, which still resists in memory.
    For patterns, I try to lean on Presentation Model, since this is what I know from Flex development: Having a View layer, which contains all the UI stuff and an abstract view layer, which holds properties, that describe the View, e.g. submitButtonDisabledProperty. The View knows the abstract layer (Presentation Model), but not vice versa and the UI elements are bound to its properties.
    I am unsure if this is appropriate for JavaFX, too (for Flex or Silverlight it is).
    What are your recommendations / experiences for large UI projects?

    You are correct that in 'pure' MVP the View should know as little about it's presenter implementation as possible. The view should just notify one or more 'listeners' that something has happened.
    You can use event listeners for this, but I would highly recommend not exposing your Control-specific GUI events and instead create your own. So for example, don't expose ActionEvent or MouseEvent as these expose too much detail about your View's implementation, instead create 'semantic' events, so you might have something like 'sayHelloRequested' or 'printOptionSelected' (whatever naming system you want). This hides how the option is implemented, so you might have a 'print' button, a 'print' menu option, a CTRL+P print shortcut, or a double tap anywhere on your screen to print. The listener knows only that the view thinks 'print was requested by the user' - decoupling achieved.
    Once you start doing this however you end up with an explosion of event listener interfaces. So say a view has 10 callbacks it wants to notify about, then you end up with 10 interfaces, and if you're being really pure you also end up with 10 'Event' beans (or DTOs) to encapsulate the details of that event. It starts to get ungainly even for a semi-purist like me. So the logical progression from there is usually just to define all 10 callbacks in one interface and call it something like MyViewListener.
    There are two common ways to implement listeners, the traditional way is to allow an arbitrary number of listeners to be added. Whereas another option is to allow only a single listener to be added. In JFX you will notice that Button for example has a setOnAction() method not a addOnAction() method - it allows a single event handler only and let's face it this is generally fine in 95% of cases. For the remaining 5% you can just write your own aggregate event handler that dispatches the event to multiple listeners.
    So if we go down the road of single event listeners, using an interface for all of the callbacks and not bothering with full 'Event' objects, you end up with something like this:
    public interface MyViewListener {
        void printRequested();
        void doSomething(int someParam);   
        void doSomethingElse(String someOtherParam);   
    }And if you look closely at the 'Purist' option in my MVP pattern where I define interfaces for everything, then you will see that this is pretty much the exact interface I've created for the 'Presenter'. You could just as easily rename this interface to MyViewListener in this pattern and have the same outcome.
    So to wrap all that up, yes, the Presenter should be decoupled and I highly favour the 'purist' option in my blog and would definitely use it if FXML didn't dictate a impure design pattern (there are some ongoing discussions about this on the OpenJFX discussion group). And, yes, my 'purist' option could be even more pure if you went for the full-blown event callback model and if you go down that road you will have an extremely clean architecture but also an extremely large code-base - totally your call whether it's worth it.
    It's also worth remembering in all this, that there are a lot of people from a lot of different backgrounds using JFX and some people hate (passionately) even my semi-pure option - especially those coming from other, less heavy-weight languages. They just don't get why you wouldn't build it all into one class and reduce the overheads. So what you have in my blog is my thoughts on it, other people will most definitely differ. I'm a big fan of developer's choice, and that's why I did the smorgasboard approach even though I personally would never use some of those implementations.
    Also this video on GWT is an awesome reference on GUI design patterns: http://www.youtube.com/watch?v=PDuhR18-EdM
    JFX Flow draws a lot from GWT as I think it is a very clean architecture (just such a shame that they put all that effort into hiding the horrid, sordid mess that is the web+html+css, instead of making something proper, like JFX).
    Hope that helps,
    zonski

  • "Quick Selection" and Patterns

    the "quick selection" in my Photoshop CC will only open with a - minus sign.  How can I get it to open with the + sign?  Also, there are virtually no patterns in the pattern presets file.  Can I get more and how?
    nhskier

    Have you tried googling »photoshop patterns«?

Maybe you are looking for

  • How do I get my contacts back after a restore?

    My iPhone froze and I had it restored at the Genius Bar. They fixed the phone however it went back to it's original factory settings erasing all my apps, contacts, everything. The last "backup" I did manually was in January of 2009. When I restored m

  • Catching an error on a single line

    Is there a way to catch an error on a single line in a VBS script? From what I understand the "On Error Resume Next" will apply to all lines in a procedure. George

  • SQ01 DIsplay Problem (Can v write abap code ) Sql Query

    Hi Need help in SQL Query I generated one sql query which has the following output in general . Customer   name   description   amount asrq1  sharekhan      Amount payed      10 asrq1  sharekhan     Amount Advance     20 asrq1  sharekhan    Amount du

  • EyeTV DTT crashes my Powerbook G4

    I have EyeTV DTT working great on a G5 and fairly new iBook. Both have USB2, which is a requirement for EyeTV (not surprising). Thought I would try out my older Powerbook G4 that only has USB1. It crashed whenever the EyeTV device was connected to th

  • Is 11g auto stats collection automatic on? where can I find this job?

    Is 11g auto stats collection automatic on? I manually created a 11g database, but I did not see auto stats collection job. where can I find this job? or how could I verify this is on? Thank you.