cloud-service-matcher-master/simple-cp-matcher/src/main/java/de/tub/ilke/matcher/core/model/constraints/impl/DiscreteNumericConstraint.java
package de.tub.ilke.matcher.core.model.constraints.impl;

import java.util.ArrayList;
import java.util.List;

import de.tub.ilke.matcher.core.model.specs.DiscreteNumericSpec;
import de.tub.ilke.matcher.core.model.specs.QoSSpec;

public class DiscreteNumericConstraint extends TresorQoSConstraint {

	/**
	 * the list of values that the service specifications has for this particular qos demand
	 */
	List<Integer> specifications = new ArrayList<Integer>();

	public List<Integer> getSpecifications() {
		return specifications;
	}

	public void setSpecifications(List<Integer> specifications) {
		this.specifications = specifications;
	}

	private int value;

	public void setValue(int value) {
		this.value = value;
	}

	public int getValue() {
		return value;
	}

	@Override
	public void addToList(QoSSpec qoSSpec) {
		DiscreteNumericSpec numspec = (DiscreteNumericSpec) qoSSpec;
		specifications.add(numspec.getValue());
	}
}
