3 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 * and is available at http://www.eclipse.org/legal/epl-v10.html
10 package org.opendaylight.controller.clustering.test.internal;
12 import java.io.Serializable;
14 public class ComplexContainer implements Serializable {
15 private static final long serialVersionUID = 1L;
16 private final IComplex f;
17 private final IComplex f1;
18 private final Integer state;
20 public ComplexContainer(String i, Integer s) {
22 this.f = new ComplexClass(i);
23 this.f1 = new ComplexClass1(i);
26 public String getIdentity() {
27 if (this.f != null && this.f1 != null) {
28 return ("[" + f.whoAmI() + "]-[" + f1.whoAmI() + "]");
33 public void setIdentity(String i) {
37 if (this.f1 != null) {
42 public Integer getState() {
47 public String toString() {
48 return ("{ID:" + this.getIdentity() + ",STATE:" + this.state + "}");