blob: fb5cdba87172825581810dc2188cc64c1b246a02 [file] [log] [blame]
/********************************************************************************
* Copyright (c) 2015-2018 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
********************************************************************************/
package org.eclipse.mdm.api.base.model;
/**
* Context type enumeration.
*
* @since 1.0.0
* @author Viktor Stoehr, Gigatronik Ingolstadt GmbH
* @author Sebastian Dirsch, Gigatronik Ingolstadt GmbH
* @see ContextRoot
*/
public enum ContextType {
// ======================================================================
// Enumerations
// ======================================================================
/**
* A {@link ContextRoot} of this type unites meta data of the unit under test.
*/
UNITUNDERTEST,
/**
* A {@link ContextRoot} of this type unites meta data of the test conditions.
*/
TESTSEQUENCE,
/**
* A {@link ContextRoot} of this type unites meta data of the used equipment
* (hardware and sensors).
*/
TESTEQUIPMENT;
// ======================================================================
// Public methods
// ======================================================================
/**
* Returns true if this context type is {@link #UNITUNDERTEST}.
*
* @return Returns {@code true} if this constant is the constant described
* above.
*/
public boolean isUnitUnderTest() {
return UNITUNDERTEST == this;
}
/**
* Returns true if this context type is {@link #TESTSEQUENCE}.
*
* @return Returns {@code true} if this constant is the constant described
* above.
*/
public boolean isTestSequence() {
return TESTSEQUENCE == this;
}
/**
* Returns true if this context type is {@link #TESTEQUIPMENT}.
*
* @return Returns {@code true} if this constant is the constant described
* above.
*/
public boolean isTestEquipment() {
return TESTEQUIPMENT == this;
}
}