Package org.agilewiki.jactor.simpleMachine

Examples of org.agilewiki.jactor.simpleMachine.ObjectFunc


        calculator.initialize(getMailbox());
        final SMBuilder smb = new SMBuilder();
        smb._send(calculator, new Set(1));
        smb._send(calculator, new Add(2));
        smb._send(calculator, new Multiply(3), "result");
        smb._return(new ObjectFunc() {
            @Override
            public Object get(SimpleMachine sm) {
                return sm.get("result");
            }
        });
View Full Code Here


                    }
                });
            }
        });
        smb._send(counterActor, new GetAndReset(), "count");
        smb._return(new ObjectFunc() {
            @Override
            public Object get(SimpleMachine sm) {
                return sm.get("count");
            }
        });
View Full Code Here

TOP

Related Classes of org.agilewiki.jactor.simpleMachine.ObjectFunc

Copyright © 2018 www.massapicom. 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.