diff options
Diffstat (limited to 'tmf/org.eclipse.tracecompass.tmf.ui.tests/src/org/eclipse/tracecompass/tmf/ui/tests/views/uml2sd/loader/IUml2SdSignalValidator.java')
-rw-r--r-- | tmf/org.eclipse.tracecompass.tmf.ui.tests/src/org/eclipse/tracecompass/tmf/ui/tests/views/uml2sd/loader/IUml2SdSignalValidator.java | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/tmf/org.eclipse.tracecompass.tmf.ui.tests/src/org/eclipse/tracecompass/tmf/ui/tests/views/uml2sd/loader/IUml2SdSignalValidator.java b/tmf/org.eclipse.tracecompass.tmf.ui.tests/src/org/eclipse/tracecompass/tmf/ui/tests/views/uml2sd/loader/IUml2SdSignalValidator.java new file mode 100644 index 0000000000..aa427bf3f3 --- /dev/null +++ b/tmf/org.eclipse.tracecompass.tmf.ui.tests/src/org/eclipse/tracecompass/tmf/ui/tests/views/uml2sd/loader/IUml2SdSignalValidator.java @@ -0,0 +1,103 @@ +/******************************************************************************* + * Copyright (c) 2011, 2014 Ericsson + * + * 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: + * Bernd Hufmann - Initial API and implementation + *******************************************************************************/ +package org.eclipse.tracecompass.tmf.ui.tests.views.uml2sd.loader; + +import org.eclipse.tracecompass.tmf.core.timestamp.TmfTimeRange; +import org.eclipse.tracecompass.tmf.core.timestamp.TmfTimestamp; + +/** + * Interface for testing signal handling within TmfUml2SD + * + * @author Bernd Hufmann + */ +public interface IUml2SdSignalValidator { + /** + * @return if signal is received or not + */ + boolean isSignalReceived(); + /** + * Sets signal received value + * @param received boolean value to set + */ + void setSignalReceived(boolean received); + + /** + * @return whether source of signal is correct or not + */ + boolean isSourceError(); + /** + * Sets the source error flag. + * @param fIsSourceError boolean value to set + */ + void setSourceError(boolean fIsSourceError); + + /** + * @return whether received current time is correct or not + */ + boolean isCurrentTimeError(); + /** + * Sets the current time error flag. + * @param fIsCurrentTimeError boolean value to set + */ + void setCurrentTimeError(boolean fIsCurrentTimeError); + + /** + * @return whether received range is correct or not + */ + boolean isRangeError(); + /** + * Sets the range error flag. + * @param fIsRangeError boolean value to set + */ + void setRangeError(boolean fIsRangeError); + + /** + * @return whether signal was received or not + */ + boolean isSignalError(); + /** + * Sets signal error flag. + * @param fIsSignalError boolean value to set + */ + void setSignalError(boolean fIsSignalError); + + /** + * @return source of expected signal. + */ + Object getSource(); + /** + * Sets source of expected signal + * @param source expected source component + */ + void setSource(Object source); + + /** + * @return the expected current time. + */ + TmfTimestamp getCurrentTime(); + /** + * Sets the expected current time + * @param currentTime Time to set + */ + void setCurrentTime(TmfTimestamp currentTime); + + /** + * @return the expected current time range. + */ + TmfTimeRange getCurrentRange(); + /** + * Sets the expected current time range. + * @param currentRange the expected current time range to set + */ + void setCurrentRange(TmfTimeRange currentRange); + +} |