1 /*******************************************************************************
2 * Copyright (c) 2011, 2013 Ericsson
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
10 * Bernd Hufmann - Initial API and implementation
11 *******************************************************************************/
12 package org
.eclipse
.tracecompass
.tmf
.ui
.tests
.views
.uml2sd
.loader
;
14 import org
.eclipse
.tracecompass
.tmf
.core
.timestamp
.TmfTimeRange
;
15 import org
.eclipse
.tracecompass
.tmf
.core
.timestamp
.TmfTimestamp
;
18 * Interface for testing signal handling within TmfUml2SD
20 * @author Bernd Hufmann
22 public interface IUml2SdSignalValidator
{
24 * @return if signal is received or not
26 boolean isSignalReceived();
28 * Sets signal received value
29 * @param received boolean value to set
31 void setSignalReceived(boolean received
);
34 * @return whether source of signal is correct or not
36 boolean isSourceError();
38 * Sets the source error flag.
39 * @param fIsSourceError boolean value to set
41 void setSourceError(boolean fIsSourceError
);
44 * @return whether received current time is correct or not
46 boolean isCurrentTimeError();
48 * Sets the current time error flag.
49 * @param fIsCurrentTimeError boolean value to set
51 void setCurrentTimeError(boolean fIsCurrentTimeError
);
54 * @return whether received range is correct or not
56 boolean isRangeError();
58 * Sets the range error flag.
59 * @param fIsRangeError boolean value to set
61 void setRangeError(boolean fIsRangeError
);
64 * @return whether signal was received or not
66 boolean isSignalError();
68 * Sets signal error flag.
69 * @param fIsSignalError boolean value to set
71 void setSignalError(boolean fIsSignalError
);
74 * @return source of expected signal.
78 * Sets source of expected signal
79 * @param source expected source component
81 void setSource(Object source
);
84 * @return the expected current time.
86 TmfTimestamp
getCurrentTime();
88 * Sets the expected current time
89 * @param currentTime Time to set
91 void setCurrentTime(TmfTimestamp currentTime
);
94 * @return the expected current time range.
96 TmfTimeRange
getCurrentRange();
98 * Sets the expected current time range.
99 * @param currentRange the expected current time range to set
101 void setCurrentRange(TmfTimeRange currentRange
);