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

com.ecfeed.core.model.IConstraint Maven / Gradle / Ivy

Go to download

An open library used to connect to the ecFeed service. It can be also used as a standalone testing tool. It is integrated with Junit5 and generates a stream of test cases using a selected algorithm (e.g. Cartesian, N-Wise). There are no limitations associated with the off-line version but the user cannot access the on-line computation servers and the model database.

The newest version!
/*******************************************************************************
 *
 * Copyright (c) 2016 ecFeed AS.                                                
 * All rights reserved. This program and the accompanying materials              
 * are made available under the terms of the Eclipse Public License v1.0         
 * which accompanies this distribution, and is available at                      
 * http://www.eclipse.org/legal/epl-v10.html 
 *  
 *******************************************************************************/

package com.ecfeed.core.model;

import java.util.List;

import com.ecfeed.core.utils.EvaluationResult;


/*
 * Constraints can be adapting or evaluating. The adapting constraints
 * should change the content of 'values' vector, so the constraint is 
 * fulfilled after adaption. The evaluate function should always return 
 * true in this case.
 * 
 * The evaluating constraints should not modify the values (adapt function 
 * should do nothing). The evaluate function shall return information
 * if the vector fulfills the constraint condition.
 */
public interface IConstraint {
	public EvaluationResult evaluate(List values);
	public boolean adapt(List values);
	public boolean mentions(int dimension);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy