Package org.jcsp.lang

Examples of org.jcsp.lang.One2OneChannel


        this.clientId = clientId;
    }

    public void run() {
        // create internal event and configure channels required by the GUI
        final One2OneChannel meetingNameEvent = Channel.createOne2One(new OverWriteOldestBuffer(10));

        final One2OneChannel registeredConfigure = Channel.createOne2One(new OverWriteOldestBuffer(10));
        final One2OneChannel registeredLocationConfigure = Channel.createOne2One(new OverWriteOldestBuffer(10));
        final One2OneChannel attendeesConfigure = Channel.createOne2One(new OverWriteOldestBuffer(10));
        //
        final CSProcess[] network =
                {
                        new FindMeetingClientCapability(
                                clientServerLocation,
                                clientId,
                                meetingNameEvent.in(),
                                registeredConfigure.out(),
                                registeredLocationConfigure.out(),
                                attendeesConfigure.out()),
                        new FindMeetingClientUserInterface(
                                meetingNameEvent.out(),
                                registeredConfigure.in(),
                                registeredLocationConfigure.in(),
                                attendeesConfigure.in())
                };
        new Parallel(network).run();
    }
View Full Code Here


    public void run() {
        System.out.println("No service client process started ");
        final Any2OneChannel responseEvent = Channel.createAny2One(new OverWriteOldestBuffer(10));

        final One2OneChannel messageConfigure = Channel.createOne2One(new OverWriteOldestBuffer(10));

        final CSProcess[] network = {
                new NoServiceClientCapability(
                        responseEvent.in(),
                        messageConfigure.out()),
                new NoServiceClientUserInterface(
                        responseEvent.out(),
                        messageConfigure.in())
        };
        new Parallel(network).run();
    }
View Full Code Here

        this.clientId = clientId;
    }

    public void run() {
        // create internal event and configure channels required by the GUI
        final One2OneChannel meetingNameEvent = Channel.createOne2One(new OverWriteOldestBuffer(10));
        final One2OneChannel meetingLocationEvent = Channel.createOne2One(new OverWriteOldestBuffer(10));

        final One2OneChannel registeredConfigure = Channel.createOne2One(new OverWriteOldestBuffer(10));
        final One2OneChannel registeredLocationConfigure = Channel.createOne2One(new OverWriteOldestBuffer(10));
        final One2OneChannel attendeesConfigure = Channel.createOne2One(new OverWriteOldestBuffer(10));
        //
        System.out.println("New Meeting Client Process started");
        final CSProcess[] network = {
                new NewMeetingClientCapability(
                        clientId,
                        clientServerLocation,
                        meetingNameEvent.in(),
                        meetingLocationEvent.in(),
                        registeredConfigure.out(),
                        registeredLocationConfigure.out(),
                        attendeesConfigure.out()),
                new NewMeetingClientUserInterface(
                        meetingNameEvent.out(),
                        meetingLocationEvent.out(),
                        registeredConfigure.in(),
                        registeredLocationConfigure.in(),
                        attendeesConfigure.in())};
        new Parallel(network).run();
    }
View Full Code Here

TOP

Related Classes of org.jcsp.lang.One2OneChannel

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.