blob: be36e91db73d55cfabf028f977f66f7626c00f21 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2007 Boeing.
* 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
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.ote.message.elements.nonmapping;
import org.eclipse.osee.ote.core.environment.interfaces.ITestEnvironmentAccessor;
import org.eclipse.osee.ote.core.testPoint.CheckGroup;
import org.eclipse.osee.ote.message.Message;
import org.eclipse.osee.ote.message.data.MemoryResource;
import org.eclipse.osee.ote.message.data.MessageData;
import org.eclipse.osee.ote.message.elements.IntegerElement;
import org.eclipse.osee.ote.message.elements.SignedInteger16Element;
import org.eclipse.osee.ote.message.interfaces.ITestAccessor;
/**
* @author Andy Jury
*/
public class NonMappingSignedInteger16Element extends IntegerElement {
/**
* Copy constructor.
*/
public NonMappingSignedInteger16Element(SignedInteger16Element element) {
super(element.getMessage(), element.getElementName(), element.getMsgData(), element.getByteOffset(),
element.getMsb(), element.getLsb());
for (Object obj : element.getElementPath()) {
this.getElementPath().add(obj);
}
}
public NonMappingSignedInteger16Element(Message message, String elementName, MessageData messageData, int byteOffset, int msb, int lsb) {
super(message, elementName, messageData, byteOffset, msb, lsb);
}
public NonMappingSignedInteger16Element(Message message, String elementName, MessageData messageData, int bitOffset, int bitLength) {
super(message, elementName, messageData, bitOffset, bitLength);
}
public NonMappingSignedInteger16Element(Message message, String elementName, MessageData messageData, int byteOffset, int msb, int lsb, int originalLsb, int originalMsb) {
super(message, elementName, messageData, byteOffset, msb, lsb, originalLsb, originalMsb);
}
/**
* Checks that this element correctly forwards a message sent from cause with the value passed.
*
* @param cause The originator of the signal
* @param value The value sent by cause and being forwarded by this element
*/
@Override
public void checkForwarding(ITestAccessor accessor, IntegerElement cause, int value) throws InterruptedException {
throwNoMappingElementException();
}
/**
* Verifies that the element is set to "value".
*
* @param value Expected value
* @return if the check passed
*/
public boolean check(ITestAccessor accessor, int value) {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is set to "value".
*
* @param checkGroup If this check is part of a larger set of checks which another method is going to log then the
* reference to the CheckGroup must be passed and this method will add the result of the check to the group with out
* logging a point.
* <p>
* If an outside method is not going to log the check then a <b>null </b> reference should be passed and this method
* will log the test point.
* @param value Expected value
* @return if the check passed
*/
public boolean check(ITestAccessor accessor, CheckGroup checkGroup, int value) {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is set to a value within the range specified. Assumes that both ends of the range are
* inclusive.
*
* @param minValue The minimum value of the range.
* @param maxValue The maximum value of the range.
* @return if the check passed
*/
public boolean checkRange(ITestAccessor accessor, int minValue, int maxValue) {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is set to a value within the range specified. Assumes that both ends of the range are
* inclusive.
*
* @param checkGroup If this check is part of a larger set of checks which another method is going to log then the
* reference to the CheckGroup must be passed and this method will add the result of the check to the group with out
* logging a point.
* <p>
* If an outside method is not going to log the check then a <b>null </b> reference should be passed and this method
* will log the test point.
* @param minValue The minimum value of the range.
* @param maxValue The maximum value of the range.
* @return if the check passed
*/
public boolean checkRange(ITestAccessor accessor, CheckGroup checkGroup, int minValue, int maxValue) {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is set to a value within the range specified. Either end of the range can be set to be
* inclusive or not.
*
* @param minValue The minimum value of the range.
* @param minInclusive If the minumum value of the range is inclusive.
* @param maxValue The maximum value of the range.
* @param maxInclusive If the maximum value of the range is inclusive.
* @return if the check passed
*/
public boolean checkRange(ITestAccessor accessor, int minValue, boolean minInclusive, int maxValue, boolean maxInclusive) {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is set to a value within the range specified. Either end of the range can be set to be
* inclusive or not.
*
* @param checkGroup If this check is part of a larger set of checks which another method is going to log then the
* reference to the CheckGroup must be passed and this method will add the result of the check to the group with out
* logging a point.
* <p>
* If an outside method is not going to log the check then a <b>null </b> reference should be passed and this method
* will log the test point.
* @param minValue The minimum value of the range.
* @param minInclusive If the minumum value of the range is inclusive.
* @param maxValue The maximum value of the range.
* @param maxInclusive If the maximum value of the range is inclusive.
* @return if the check passed
*/
public boolean checkRange(ITestAccessor accessor, CheckGroup checkGroup, int minValue, boolean minInclusive, int maxValue, boolean maxInclusive) {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is NOT set to "value".
*
* @param value value to test against
* @return if the check passed
*/
public boolean checkNot(ITestAccessor accessor, int value) {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is NOT set to "value".
*
* @param checkGroup If this check is part of a larger set of checks which another method is going to log then the
* reference to the CheckGroup must be passed and this method will add the result of the check to the group with out
* logging a point.
* <p>
* If an outside method is not going to log the check then a <b>null </b> reference should be passed and this method
* will log the test point.
* @param value value to test against
* @return if the check passed
*/
public boolean checkNot(ITestAccessor accessor, CheckGroup checkGroup, int value) {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is set to a value outside the range specified. Assumes that both ends of the range are
* inclusive. Therefore observed value may not equal either of the range values.
*
* @param minValue The minimum value of the range.
* @param maxValue The maximum value of the range.
* @return if the check passed
*/
public boolean checkNotRange(ITestAccessor accessor, int minValue, int maxValue) {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is set to a value outside the range specified. Assumes that both ends of the range are
* inclusive. Therefore observed value may not equal either of the range values.
*
* @param checkGroup If this check is part of a larger set of checks which another method is going to log then the
* reference to the CheckGroup must be passed and this method will add the result of the check to the group with out
* logging a point.
* <p>
* If an outside method is not going to log the check then a <b>null </b> reference should be passed and this method
* will log the test point.
* @param minValue The minimum value of the range.
* @param maxValue The maximum value of the range.
* @return if the check passed
*/
public boolean checkNotRange(ITestAccessor accessor, CheckGroup checkGroup, int minValue, int maxValue) {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is set to a value outside the range specified. Either end of the range can be set to be
* inclusive or not.
*
* @param minValue The minimum value of the range.
* @param minInclusive If the minumum value of the range is inclusive. If true the actual value must not < and not =
* to the range value.
* @param maxValue The maximum value of the range.
* @param maxInclusive If the maximum value of the range is inclusive. If true the actual value must not > and not =
* to the range value.
* @return if the check passed
*/
public boolean checkNotRange(ITestAccessor accessor, int minValue, boolean minInclusive, int maxValue, boolean maxInclusive) {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is set to a value outside the range specified. Either end of the range can be set to be
* inclusive or not.
*
* @param checkGroup If this check is part of a larger set of checks which another method is going to log then the
* reference to the CheckGroup must be passed and this method will add the result of the check to the group with out
* logging a point.
* <p>
* If an outside method is not going to log the check then a <b>null </b> reference should be passed and this method
* will log the test point.
* @param minValue The minimum value of the range.
* @param minInclusive If the minumum value of the range is inclusive. If true the actual value must not < and not =
* to the range value.
* @param maxValue The maximum value of the range.
* @param maxInclusive If the maximum value of the range is inclusive. If true the actual value must not > and not =
* to the range value.
* @return if the check passed
*/
public boolean checkNotRange(ITestAccessor accessor, CheckGroup checkGroup, int minValue, boolean minInclusive, int maxValue, boolean maxInclusive) {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is set to "value" within the number of "milliseconds" passed.
*
* @param value Expected value.
* @param milliseconds Number of milliseconds to wait for the element to equal the "value".
* @return If the check passed.
*/
public boolean check(ITestAccessor accessor, int value, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is set to "value" within the number of "milliseconds" passed.
*
* @param checkGroup If this check is part of a larger set of checks which another method is going to log then the
* reference to the CheckGroup must be passed and this method will add the result of the check to the group with out
* logging a point.
* <p>
* If an outside method is not going to log the check then a <b>null </b> reference should be passed and this method
* will log the test point.
* @param value Expected value.
* @param milliseconds Number of milliseconds to wait for the element to equal the "value".
* @return If the check passed.
*/
public boolean check(ITestAccessor accessor, CheckGroup checkGroup, int value, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return false;
}
/**
* This function will verify that this signal is pulsed for 2 cycles.
*
* @param value The value to be checked
*/
public void checkPulse(ITestAccessor accessor, int value) throws InterruptedException {
throwNoMappingElementException();
}
public void checkPulse(ITestAccessor accessor, int pulsedValue, int nonPulsedValue) throws InterruptedException {
throwNoMappingElementException();
}
public void checkPulse(ITestAccessor accessor, CheckGroup checkGroup, int pulsedValue, int nonPulsedValue) throws InterruptedException {
throwNoMappingElementException();
}
public void checkPulse(ITestAccessor accessor, int pulsedValue, int nonPulsedValue, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
}
public void checkPulse(ITestAccessor accessor, CheckGroup checkGroup, int pulsedValue, int nonPulsedValue, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
}
/**
* Verifies that the element is set to a value within the range specified. Assumes that both ends of the range are
* inclusive.
*
* @param minValue The minimum value of the range.
* @param maxValue The maximum value of the range.
* @param milliseconds Number of milliseconds to wait for the element to be within the range.
* @return if the check passed
*/
public boolean checkRange(ITestAccessor accessor, int minValue, int maxValue, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is set to a value within the range specified. Assumes that both ends of the range are
* inclusive.
*
* @param checkGroup If this check is part of a larger set of checks which another method is going to log then the
* reference to the CheckGroup must be passed and this method will add the result of the check to the group with out
* logging a point.
* <p>
* If an outside method is not going to log the check then a <b>null </b> reference should be passed and this method
* will log the test point.
* @param minValue The minimum value of the range.
* @param maxValue The maximum value of the range.
* @param milliseconds Number of milliseconds to wait for the element to be within the range.
* @return if the check passed
*/
public boolean checkRange(ITestAccessor accessor, CheckGroup checkGroup, int minValue, int maxValue, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is set to a value within the range specified. Either end of the range can be set to be
* inclusive or not.
*
* @param minValue The minimum value of the range.
* @param minInclusive If the minumum value of the range is inclusive.
* @param maxValue The maximum value of the range.
* @param maxInclusive If the maximum value of the range is inclusive.
* @param milliseconds Number of milliseconds to wait for the element to be within the range.
* @return if the check passed
*/
public boolean checkRange(ITestAccessor accessor, int minValue, boolean minInclusive, int maxValue, boolean maxInclusive, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is set to a value within the range specified. Either end of the range can be set to be
* inclusive or not.
*
* @param checkGroup If this check is part of a larger set of checks which another method is going to log then the
* reference to the CheckGroup must be passed and this method will add the result of the check to the group with out
* logging a point.
* <p>
* If an outside method is not going to log the check then a <b>null </b> reference should be passed and this method
* will log the test point.
* @param minValue The minimum value of the range.
* @param minInclusive If the minumum value of the range is inclusive.
* @param maxValue The maximum value of the range.
* @param maxInclusive If the maximum value of the range is inclusive.
* @param milliseconds Number of milliseconds to wait for the element to be within the range.
* @return if the check passed
*/
public boolean checkRange(ITestAccessor accessor, CheckGroup checkGroup, int minValue, boolean minInclusive, int maxValue, boolean maxInclusive, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is set to some value other than "value" within the number of "milliseconds" passed.
* Passes if at any point with in the time allowed, the elment is set to a value other than "value".
*
* @param value value to test against.
* @param milliseconds Number of milliseconds to wait for the element to equal the "value".
* @return If the check passed.
*/
public boolean checkNot(ITestAccessor accessor, int value, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is set to some value other than "value" within the number of "milliseconds" passed.
* Passes if at any point with in the time allowed, the elment is set to a value other than "value".
*
* @param checkGroup If this check is part of a larger set of checks which another method is going to log then the
* reference to the CheckGroup must be passed and this method will add the result of the check to the group with out
* logging a point.
* <p>
* If an outside method is not going to log the check then a <b>null </b> reference should be passed and this method
* will log the test point.
* @param value value to test against.
* @param milliseconds Number of milliseconds to wait for the element to equal the "value".
* @return If the check passed.
*/
public boolean checkNot(ITestAccessor accessor, CheckGroup checkGroup, int value, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is set to a value outside the range specified. Assumes that both ends of the range are
* inclusive.
*
* @param minValue The minimum value of the range.
* @param maxValue The maximum value of the range.
* @param milliseconds Number of milliseconds to wait for the element to be outside the range.
* @return if the check passed
*/
public boolean checkNotRange(ITestAccessor accessor, int minValue, int maxValue, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is set to a value outside the range specified. Assumes that both ends of the range are
* inclusive.
*
* @param checkGroup If this check is part of a larger set of checks which another method is going to log then the
* reference to the CheckGroup must be passed and this method will add the result of the check to the group with out
* logging a point.
* <p>
* If an outside method is not going to log the check then a <b>null </b> reference should be passed and this method
* will log the test point.
* @param minValue The minimum value of the range.
* @param maxValue The maximum value of the range.
* @param milliseconds Number of milliseconds to wait for the element to be outside the range.
* @return if the check passed
*/
public boolean checkNotRange(ITestAccessor accessor, CheckGroup checkGroup, int minValue, int maxValue, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is set to a value outside the range specified. Either end of the range can be set to be
* inclusive or not.
*
* @param minValue The minimum value of the range.
* @param minInclusive If the minumum value of the range is inclusive. If true the actual value must not < and not =
* to the range value.
* @param maxValue The maximum value of the range.
* @param maxInclusive If the maximum value of the range is inclusive. If true the actual value must not > and not =
* to the range value.
* @param milliseconds Number of milliseconds to wait for the element to be outside the range.
* @return if the check passed
*/
public boolean checkNotRange(ITestAccessor accessor, int minValue, boolean minInclusive, int maxValue, boolean maxInclusive, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is set to a value outside the range specified. Either end of the range can be set to be
* inclusive or not.
*
* @param checkGroup If this check is part of a larger set of checks which another method is going to log then the
* reference to the CheckGroup must be passed and this method will add the result of the check to the group with out
* logging a point.
* <p>
* If an outside method is not going to log the check then a <b>null </b> reference should be passed and this method
* will log the test point.
* @param minValue The minimum value of the range.
* @param minInclusive If the minumum value of the range is inclusive. If true the actual value must not < and not =
* to the range value.
* @param maxValue The maximum value of the range.
* @param maxInclusive If the maximum value of the range is inclusive. If true the actual value must not > and not =
* to the range value.
* @param milliseconds Number of milliseconds to wait for the element to be outside the range.
* @return if the check passed
*/
public boolean checkNotRange(ITestAccessor accessor, CheckGroup checkGroup, int minValue, boolean minInclusive, int maxValue, boolean maxInclusive, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return false;
}
/**
* Verifies that the element is set to the "value" passed for the entire time passed into "milliseconds". Returns
* value found that caused failure or last value observed if time expires.
*
* @return last value observed. Either value expected or value found at timeout.
*/
public int checkMaintain(ITestAccessor accessor, int value, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return 0;
}
/**
* Verifies that the element is set to the "value" passed for the entire time passed into "milliseconds". Returns
* value found that caused failure or last value observed if time expires.
*
* @param checkGroup If this check is part of a larger set of checks which another method is going to log then the
* reference to the CheckGroup must be passed and this method will add the result of the check to the group with out
* logging a point.
* <p>
* If an outside method is not going to log the check then a <b>null </b> reference should be passed and this method
* will log the test point.
* @return last value observed. Either value expected or value found at timeout.
*/
public int checkMaintain(ITestAccessor accessor, CheckGroup checkGroup, int value, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return 0;
}
/**
* Verifies that the element is set to the "value" passed for the entire time passed into "milliseconds". Returns
* value found that caused failure or last value observed if time expires.
*
* @return last value observed
*/
public int checkMaintainNot(ITestAccessor accessor, int value, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return 0;
}
/**
* Verifies that the element is set to the "value" passed for the entire time passed into "milliseconds". Returns
* value found that caused failure or last value observed if time expires.
*
* @param checkGroup If this check is part of a larger set of checks which another method is going to log then the
* reference to the CheckGroup must be passed and this method will add the result of the check to the group with out
* logging a point.
* <p>
* If an outside method is not going to log the check then a <b>null </b> reference should be passed and this method
* will log the test point.
* @return last value observed
*/
public int checkMaintainNot(ITestAccessor accessor, CheckGroup checkGroup, int value, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return 0;
}
/**
* Verifies that the element is set to a value within the range specified for the entire time specified. Assumes
* range is inclusive.
*
* @param checkGroup If this check is part of a larger set of checks which another method is going to log then the
* reference to the CheckGroup must be passed and this method will add the result of the check to the group with out
* logging a point.
* <p>
* If an outside method is not going to log the check then a <b>null </b> reference should be passed and this method
* will log the test point.
* @param minValue The minimum value of the range.
* @param maxValue The maximum value of the range.
* @param milliseconds Number of milliseconds to wait before failing.
* @return last value observed
*/
public int checkMaintainRange(ITestAccessor accessor, CheckGroup checkGroup, int minValue, int maxValue, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return 0;
}
/**
* Verifies that the element is set to a value within the range specified for the entire time specified.
*
* @param checkGroup If this check is part of a larger set of checks which another method is going to log then the
* reference to the CheckGroup must be passed and this method will add the result of the check to the group with out
* logging a point.
* <p>
* If an outside method is not going to log the check then a <b>null </b> reference should be passed and this method
* will log the test point.
* @param minValue The minimum value of the range.
* @param minInclusive If the minumum value of the range is inclusive.
* @param maxValue The maximum value of the range.
* @param maxInclusive If the maximum value of the range is inclusive.
* @param milliseconds Number of milliseconds to wait before failing.
* @return last value observed
*/
public int checkMaintainRange(ITestAccessor accessor, CheckGroup checkGroup, int minValue, boolean minInclusive, int maxValue, boolean maxInclusive, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return 0;
}
/**
* Verifies that the element is set to a value within the range specified for the entire time specified. Assumes
* range is inclusive.
*
* @param minValue The minimum value of the range.
* @param maxValue The maximum value of the range.
* @param milliseconds Number of milliseconds to wait before failing.
* @return last value observed
*/
public int checkMaintainRange(ITestAccessor accessor, int minValue, int maxValue, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return 0;
}
/**
* Verifies that the element is set to a value within the range specified for the entire time specified.
*
* @param minValue The minimum value of the range.
* @param minInclusive If the minumum value of the range is inclusive.
* @param maxValue The maximum value of the range.
* @param maxInclusive If the maximum value of the range is inclusive.
* @param milliseconds Number of milliseconds to wait before failing.
* @return last value observed
*/
public int checkMaintainRange(ITestAccessor accessor, int minValue, boolean minInclusive, int maxValue, boolean maxInclusive, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return 0;
}
// /**
// * Verifies that the element is set to a value within the range specified for the entire time
// specified. Assumes range is inclusive.
// *
// // * @param minValue The minimum value of the range.
// * @param maxValue The maximum value of the range.
// * @param milliseconds Number of milliseconds to wait before failing.
// * @return last value observed
// // */
// public int checkMaintainRange(ITestAccessor accessor, int minValue, int maxValue, int
// milliseconds) throws InterruptedException {
// return checkMaintainRange(accessor, (CheckGroup)null, minValue, true, maxValue, true,
// milliseconds);}
//
// /**
// * Verifies that the element is set to a value within the range specified for the entire time
// specified.
// *
// // * @param minValue The minimum value of the range.
// * @param minInclusive If the minumum value of the range is inclusive.
// * @param maxValue The maximum value of the range.
// * @param maxInclusive If the maximum value of the range is inclusive.
// * @param milliseconds Number of milliseconds to wait before failing.
// * @return last value observed
// // */
// public int checkMaintainRange(ITestAccessor accessor, int minValue, boolean minInclusive, int
// maxValue, boolean maxInclusive,
// int milliseconds) throws InterruptedException {
// return checkMaintainRangeBase(accessor, (CheckGroup)null, minValue, minInclusive, maxValue,
// maxInclusive, milliseconds);
// }
/**
* Verifies that the element is set to a value within the range specified for the entire time specified. Assumes
* range is inclusive.
*
* @param checkGroup If this check is part of a larger set of checks which another method is going to log then the
* reference to the CheckGroup must be passed and this method will add the result of the check to the group with out
* logging a point.
* <p>
* If an outside method is not going to log the check then a <b>null </b> reference should be passed and this method
* will log the test point.
* @param minValue The minimum value of the range.
* @param maxValue The maximum value of the range.
* @param milliseconds Number of milliseconds to wait before failing.
* @return last value observed
*/
public int checkMaintainNotRange(ITestAccessor accessor, CheckGroup checkGroup, int minValue, int maxValue, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return 0;
}
/**
* Verifies that the element is set to a value within the range specified for the entire time specified.
*
* @param checkGroup If this check is part of a larger set of checks which another method is going to log then the
* reference to the CheckGroup must be passed and this method will add the result of the check to the group with out
* logging a point.
* <p>
* If an outside method is not going to log the check then a <b>null </b> reference should be passed and this method
* will log the test point.
* @param minValue The minimum value of the range.
* @param minInclusive If the minumum value of the range is inclusive. If true the actual value must not < and not =
* to the range value.
* @param maxValue The maximum value of the range.
* @param maxInclusive If the maximum value of the range is inclusive. If true the actual value must not > and not =
* to the range value.
* @param milliseconds Number of milliseconds to wait before failing.
* @return last value observed
*/
public int checkMaintainNotRange(ITestAccessor accessor, CheckGroup checkGroup, int minValue, boolean minInclusive, int maxValue, boolean maxInclusive, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return 0;
}
/**
* Returns the current value of the element.
*
* @return The current value of the element.
*/
@Override
public Integer get(ITestEnvironmentAccessor accessor) {
throwNoMappingElementException();
return 0;
}
/**
* Sets the element to the "value" passed.
*
* @param value The value to set.
*/
public void set(ITestEnvironmentAccessor accessor, int value) {
throwNoMappingElementException();
}
@Override
public void setAndSend(ITestEnvironmentAccessor accessor, int value) {
throwNoMappingElementException();
}
/**
* Sets the element to the "value" passed.
*
* @param value The value to set.
*/
public void setNoLog(ITestEnvironmentAccessor accessor, int value) {
throwNoMappingElementException();
}
/**
* Waits until the element equals the "value" passed. Returns last value observed upon a timout.
*
* @param value The expected value to wait for.
* @param milliseconds Number of milliseconds to wait before failing.
* @return last value found. Either value expected or value found at timeout.
*/
public int waitForValue(ITestEnvironmentAccessor accessor, int value, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return 0;
}
/**
* Waits until the element has a value other than the "value" passed. Returns last value observed upon a timout.
*
* @param value The expected value to wait for.
* @param milliseconds Number of milliseconds to wait before failing.
* @return last value observed
*/
public int waitForNotValue(ITestEnvironmentAccessor accessor, int value, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return 0;
}
/**
* Waits until the element has a value within the range specified. Assumes the range is inclusive.
*
* @param minValue The minimum value of the range.
* @param maxValue The maximum value of the range.
* @param milliseconds Number of milliseconds to wait before failing.
* @return last value observed
*/
@Override
public int waitForRange(ITestEnvironmentAccessor accessor, int minValue, int maxValue, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return 0;
}
/**
* Waits until the element has a value within the range specified. Either end of the range can be inclusive or not.
*
* @param minValue The minimum value of the range.
* @param minInclusive If the minumum value of the range is inclusive. If true the actual value must not < and not =
* to the range value.
* @param maxValue The maximum value of the range.
* @param maxInclusive If the maximum value of the range is inclusive. If true the actual value must not > and not =
* to the range value.
* @param milliseconds Number of milliseconds to wait before failing.
* @return last value observed
*/
@Override
public int waitForRange(ITestEnvironmentAccessor accessor, int minValue, boolean minInclusive, int maxValue, boolean maxInclusive, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return 0;
}
/**
* Waits until the element has a value within the range specified. Range is assumes to be inclusive.
*
* @param minValue The minimum value of the range.
* @param maxValue The maximum value of the range.
* @param milliseconds Number of milliseconds to wait before failing.
* @return last value observed
*/
@Override
public int waitForNotRange(ITestEnvironmentAccessor accessor, int minValue, int maxValue, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return 0;
}
/**
* Waits until the element has a value within the range specified. Either end of the range can be inclusive or not.
*
* @param minValue The minimum value of the range.
* @param minInclusive If the minumum value of the range is inclusive. If true the actual value must not < and not =
* to the range value.
* @param maxValue The maximum value of the range.
* @param maxInclusive If the maximum value of the range is inclusive. If true the actual value must not > and not =
* to the range value.
* @param milliseconds Number of milliseconds to wait before failing.
* @return last value observed
*/
@Override
public int waitForNotRange(ITestEnvironmentAccessor accessor, int minValue, boolean minInclusive, int maxValue, boolean maxInclusive, int milliseconds) throws InterruptedException {
throwNoMappingElementException();
return 0;
}
@Override
public void parseAndSet(ITestEnvironmentAccessor accessor, String value) throws IllegalArgumentException {
throwNoMappingElementException();
}
@Override
public boolean isNonMappingElement() {
return true;
}
@Override
public Integer getValue() {
throwNoMappingElementException();
return 0;
}
@Override
public void setValue(Integer value) {
throwNoMappingElementException();
}
@Override
public Integer valueOf(MemoryResource mem) {
throwNoMappingElementException();
return 0;
}
}