Examples of SequenceGenerator


Examples of org.jasig.portal.services.SequenceGenerator

     * @see org.danann.cernunnos.Phrase#evaluate(org.danann.cernunnos.TaskRequest, org.danann.cernunnos.TaskResponse)
     */
    public Object evaluate(TaskRequest req, TaskResponse res) {
        final String seqName = (String)this.seqNamePhrase.evaluate(req, res);
       
        final SequenceGenerator sequenceGenerator = SequenceGenerator.instance();
        try {
            return sequenceGenerator.getNextInt(seqName);
        }
        catch (Exception e) {
            throw new RuntimeException("Failed to retrieve next sequence in for sequance '" + seqName + "'", e);
        }
    }
View Full Code Here

Examples of sw_digitalworks.Model.SequenceGenerator

     * SequenceGenerator létrehozása a seq parancs hatására ezzel a függvénnyel történik
     */
    private void createSequenceGenerator() throws FileNotFoundException, IOException {

        if (param2.equals("")) {
            SequenceGenerator seq = new SequenceGenerator();
            System.out.println(seq.getName() + " CREATED.");
            Main.controller.getDisplayView().addComponentView(new SequenceGeneratorView(getPosX(param1), getPosY(param1), seq));
            this.ExecuteCommand("connect "+SystemClock.getInstance().getName()+",0 "+seq.getName()+",0");
            output += seq.getName() + " CREATED.\n";


        } else {
            if (!(param1.equals("")) && !(param2.equals(""))) {
                String regularExp = "[01]{1,100}";
                CharSequence charSeq = param1;


                if (Pattern.matches(regularExp, charSeq)) {
                    SequenceGenerator seq = new SequenceGenerator(param1);
                    System.out.println(seq.getName() + " CREATED with the following sequence: " + seq.getSequenceString() + ".");
                    Main.controller.getDisplayView().addComponentView(new SequenceGeneratorView(getPosX(param2), getPosY(param2), seq));
                    this.ExecuteCommand("connect "+SystemClock.getInstance().getName()+",0 "+seq.getName()+",0");
                    output += seq.getName() + " CREATED with the following sequence: " + seq.getSequenceString() + ".\n";
                    //Prototype.PrintStateAfterUpdate(seq);



                } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.