]> git.basschouten.com Git - openhab-addons.git/blob
9c3273dab706fc21fa0b8668ab4a7e8925dd971e
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.paradoxalarm.internal.communication;
14
15 import java.util.concurrent.ScheduledExecutorService;
16
17 /**
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.
20  *
21  * @author Konstantin Polihronov - Initial contribution
22  */
23 public interface ICommunicatorBuilder {
24     ICommunicatorBuilder withMaxZones(Integer zones);
25
26     ICommunicatorBuilder withMaxPartitions(Integer partitions);
27
28     ICommunicatorBuilder withIp150Password(String ip150Password);
29
30     ICommunicatorBuilder withPcPassword(String pcPassword);
31
32     ICommunicatorBuilder withIpAddress(String ipAddress);
33
34     ICommunicatorBuilder withTcpPort(Integer tcpPort);
35
36     ICommunicatorBuilder withScheduler(ScheduledExecutorService scheduler);
37
38     ICommunicatorBuilder withEncryption(boolean useEncryption);
39
40     IParadoxCommunicator build();
41 }