| 1 | /******************************************************************************* |
| 2 | * Copyright (c) 2011, 2013 Ericsson |
| 3 | * |
| 4 | * All rights reserved. This program and the accompanying materials are |
| 5 | * made available under the terms of the Eclipse Public License v1.0 which |
| 6 | * accompanies this distribution, and is available at |
| 7 | * http://www.eclipse.org/legal/epl-v10.html |
| 8 | * |
| 9 | * Contributors: |
| 10 | * Bernd Hufmann - Initial API and implementation |
| 11 | *******************************************************************************/ |
| 12 | package org.eclipse.linuxtools.tmf.ui.tests.views.uml2sd.loader; |
| 13 | |
| 14 | import org.eclipse.linuxtools.tmf.core.timestamp.TmfTimeRange; |
| 15 | import org.eclipse.linuxtools.tmf.core.timestamp.TmfTimestamp; |
| 16 | |
| 17 | /** |
| 18 | * Interface for testing signal handling within TmfUml2SD |
| 19 | * |
| 20 | * @author Bernd Hufmann |
| 21 | */ |
| 22 | public interface IUml2SdSignalValidator { |
| 23 | /** |
| 24 | * @return if signal is received or not |
| 25 | */ |
| 26 | public boolean isSignalReceived(); |
| 27 | /** |
| 28 | * Sets signal received value |
| 29 | * @param received boolean value to set |
| 30 | */ |
| 31 | public void setSignalReceived(boolean received); |
| 32 | |
| 33 | /** |
| 34 | * @return whether source of signal is correct or not |
| 35 | */ |
| 36 | public boolean isSourceError(); |
| 37 | /** |
| 38 | * Sets the source error flag. |
| 39 | * @param fIsSourceError boolean value to set |
| 40 | */ |
| 41 | public void setSourceError(boolean fIsSourceError); |
| 42 | |
| 43 | /** |
| 44 | * @return whether received current time is correct or not |
| 45 | */ |
| 46 | public boolean isCurrentTimeError(); |
| 47 | /** |
| 48 | * Sets the current time error flag. |
| 49 | * @param fIsCurrentTimeError boolean value to set |
| 50 | */ |
| 51 | public void setCurrentTimeError(boolean fIsCurrentTimeError); |
| 52 | |
| 53 | /** |
| 54 | * @return whether received range is correct or not |
| 55 | */ |
| 56 | public boolean isRangeError(); |
| 57 | /** |
| 58 | * Sets the range error flag. |
| 59 | * @param fIsRangeError boolean value to set |
| 60 | */ |
| 61 | public void setRangeError(boolean fIsRangeError); |
| 62 | |
| 63 | /** |
| 64 | * @return whether signal was received or not |
| 65 | */ |
| 66 | public boolean isSignalError(); |
| 67 | /** |
| 68 | * Sets signal error flag. |
| 69 | * @param fIsSignalError boolean value to set |
| 70 | */ |
| 71 | public void setSignalError(boolean fIsSignalError); |
| 72 | |
| 73 | /** |
| 74 | * @return source of expected signal. |
| 75 | */ |
| 76 | public Object getSource(); |
| 77 | /** |
| 78 | * Sets source of expected signal |
| 79 | * @param source expected source component |
| 80 | */ |
| 81 | public void setSource(Object source); |
| 82 | |
| 83 | /** |
| 84 | * @return the expected current time. |
| 85 | */ |
| 86 | public TmfTimestamp getCurrentTime(); |
| 87 | /** |
| 88 | * Sets the expected current time |
| 89 | * @param currentTime Time to set |
| 90 | */ |
| 91 | public void setCurrentTime(TmfTimestamp currentTime); |
| 92 | |
| 93 | /** |
| 94 | * @return the expected current time range. |
| 95 | */ |
| 96 | public TmfTimeRange getCurrentRange(); |
| 97 | /** |
| 98 | * Sets the expected current time range. |
| 99 | * @param currentRange the expected current time range to set |
| 100 | */ |
| 101 | public void setCurrentRange(TmfTimeRange currentRange); |
| 102 | |
| 103 | } |