blob: 022d50930ffb8e50ad7f7936344c226b3121492e [file] [log] [blame]
Ilayda Ozdemir4c5947c2020-05-05 13:14:32 +00001/*
2 * Copyright 2017-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.opencord.igmpproxy.statemachine;
17
18/**
19 * State of machine.
20 */
21public interface State {
22 /**
23 * Default state.
24 */
25 int STATE_NON = 0;
26 /**
27 * Delay state.
28 */
29 int STATE_DELAY = 1;
30 /**
31 * Idle state.
32 */
33 int STATE_IDLE = 2;
34
35 /**
36 * Transition to join.
37 */
38 int TRANSITION_JOIN = 0;
39 /**
40 * Transition to leave.
41 */
42 int TRANSITION_LEAVE = 1;
43 /**
44 * Transition to query.
45 */
46 int TRANSITION_QUERY = 2;
47 /**
48 * Transition to timeout.
49 */
50 int TRANSITION_TIMEOUT = 3;
51
52 /**
53 * Makes the requirements of join request.
54 */
55 void join();
56
57 /**
58 * Makes the requirements of leave request.
59 */
60 void leave();
61
62 /**
63 * Makes the requirements of query request.
64 *
65 * @param maxResp maximum resp
66 */
67 void query(int maxResp);
68
69 /**
70 * Makes the requirements of timeout .
71 */
72 void timeOut();
73}