All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.sdnwiselab.sdnwise.configuration.ConfigAdaptation Maven / Gradle / Ivy

/* 
 * Copyright (C) 2015 SDN-WISE
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see .
 */
package com.github.sdnwiselab.sdnwise.configuration;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

/**
 * This class holds the two Map containing the configuration
 * parameters for the lower and upper adapter of an adaptation object.
 *
 * @author Sebastiano Milardo
 * @version 0.1
 */
public class ConfigAdaptation {

    private final Map lower = new HashMap<>();
    private final Map upper = new HashMap<>();

    /**
     * Returns an unmodifiableMap containing the configurations for the lower
     * Adapter.
     *
     * @return a Map containing the configurations for the lower
     * Adapter
     * @see com.sdn.wise.adapter.Adapter
     */
    public Map getLower() {
        return Collections.unmodifiableMap(lower);
    }

    /**
     * Returns an unmodifiableMap containing the configurations for the upper
     * Adapter.
     *
     * @return a Map containing the configurations for the upper
     * Adapter
     * @see com.sdn.wise.adapter.Adapter
     */
    public Map getUpper() {
        return Collections.unmodifiableMap(upper);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy