org.nasdanika.models.coverage.Counter Maven / Gradle / Ivy
/**
*/
package org.nasdanika.models.coverage;
import org.eclipse.emf.ecore.EObject;
import org.jacoco.core.analysis.ICounter;
/**
*
* A representation of the model object 'Counter'.
*
*
*
* The following features are supported:
*
*
* - {@link org.nasdanika.models.coverage.Counter#getCovered Covered}
* - {@link org.nasdanika.models.coverage.Counter#getMissed Missed}
*
*
* @see org.nasdanika.models.coverage.CoveragePackage#getCounter()
* @model
* @generated
*/
public interface Counter extends EObject {
/**
* Returns the value of the 'Covered' attribute.
*
*
* @return the value of the 'Covered' attribute.
* @see #setCovered(int)
* @see org.nasdanika.models.coverage.CoveragePackage#getCounter_Covered()
* @model
* @generated
*/
int getCovered();
/**
* Sets the value of the '{@link org.nasdanika.models.coverage.Counter#getCovered Covered}' attribute.
*
*
* @param value the new value of the 'Covered' attribute.
* @see #getCovered()
* @generated
*/
void setCovered(int value);
/**
* Returns the value of the 'Missed' attribute.
*
*
* @return the value of the 'Missed' attribute.
* @see #setMissed(int)
* @see org.nasdanika.models.coverage.CoveragePackage#getCounter_Missed()
* @model
* @generated
*/
int getMissed();
/**
* Sets the value of the '{@link org.nasdanika.models.coverage.Counter#getMissed Missed}' attribute.
*
*
* @param value the new value of the 'Missed' attribute.
* @see #getMissed()
* @generated
*/
void setMissed(int value);
static Counter load(ICounter data) {
if (data == null) {
return null;
}
Counter ret = CoverageFactory.eINSTANCE.createCounter();
ret.setCovered(data.getCoveredCount());
ret.setMissed(data.getMissedCount());
return ret;
}
} // Counter