package de.fabiankeller.performance.analysis.result;

import de.fabiankeller.performance.analysis.result.metric.PerformanceMetric;

/**
 * Represents a single performance analysis result, that is specific for a element in the PCM.
 *
 * @param <T> constrain the types that a result can be attached to
 */
public interface Result<T> {

    /**
     * Returns the element this result is attached to.
     */
    T attachedTo();

    /**
     * The actual value.
     */
    PerformanceMetric value();
}

package de.fabiankeller.performance.analysis.result;

import de.fabiankeller.performance.analysis.result.metric.PerformanceMetric;

/**
 * Represents a single performance analysis result, that is specific for a certain model element.
 *
 * @param <T> constrain the types that a result can be attached to
 */
public interface Result<T> {

    /**
     * Returns the element this result is attached to.
     */
    T attachedTo();

    /**
     * The actual value.
     */
    PerformanceMetric value();
}

remove palladio reference from docs