Examples of AddressEvent


Examples of com.jpeterson.x10.event.AddressEvent

    public void turnOn() throws CruiseControlException {
        final char houseCodeChar = houseCode.charAt(0);
        final int deviceCodeInt = Integer.valueOf(deviceCode).intValue();

        X10Event[] events = new X10Event[ 2 ];
        events[ 0 ] = new AddressEvent(this, houseCodeChar, deviceCodeInt);
        events[ 1 ] = new OnEvent(this, houseCodeChar);

        send(events);
    }
View Full Code Here

Examples of com.jpeterson.x10.event.AddressEvent

    public void turnOff() throws CruiseControlException {
        final char houseCodeChar = houseCode.charAt(0);
        final int deviceCodeInt = Integer.valueOf(deviceCode).intValue();

        X10Event[] events = new X10Event[ 2 ];
        events[ 0 ] = new AddressEvent(this, houseCodeChar, deviceCodeInt);
        events[ 1 ] = new OffEvent(this, houseCodeChar);

        send(events);

    }
View Full Code Here

Examples of org.apache.portals.gems.address.AddressEvent

    public void processEvent(EventRequest request, EventResponse response)
    {
        Event event = request.getEvent();
        if(event.getName().equals("AddressEvent"))
        {
            AddressEvent payload = (AddressEvent)event.getValue();
            response.setRenderParameter("address", payload.getAddress());
        }
    }
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.