2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.paradoxalarm.internal.communication;
15 import java.util.concurrent.ScheduledExecutorService;
18 * The {@link ICommunicatorBuilder} is representing the functionality of communicator builders.
19 * The idea is to ease initialization of communicators which can have lots of parameters.
21 * @author Konstantin Polihronov - Initial contribution
23 public interface ICommunicatorBuilder {
24 ICommunicatorBuilder withMaxZones(Integer zones);
26 ICommunicatorBuilder withMaxPartitions(Integer partitions);
28 ICommunicatorBuilder withIp150Password(String ip150Password);
30 ICommunicatorBuilder withPcPassword(String pcPassword);
32 ICommunicatorBuilder withIpAddress(String ipAddress);
34 ICommunicatorBuilder withTcpPort(Integer tcpPort);
36 ICommunicatorBuilder withScheduler(ScheduledExecutorService scheduler);
38 ICommunicatorBuilder withEncryption(boolean useEncryption);
40 IParadoxCommunicator build();