1 /*******************************************************************************
2 * Copyright (c) 2011, 2012 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
.linuxtools
.tmf
.ui
.tests
.views
.uml2sd
.loader
;
14 import org
.eclipse
.linuxtools
.tmf
.core
.event
.TmfTimeRange
;
15 import org
.eclipse
.linuxtools
.tmf
.core
.event
.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 public boolean isSignalReceived();
28 * Sets signal received value
29 * @param received boolean value to set
31 public void setSignalReceived(boolean received
);
34 * @return whether source of signal is correct or not
36 public boolean isSourceError();
38 * Sets the source error flag.
39 * @param fIsSourceError boolean value to set
41 public void setSourceError(boolean fIsSourceError
);
44 * @return whether received current time is correct or not
46 public boolean isCurrentTimeError();
48 * Sets the current time error flag.
49 * @param fIsCurrentTimeError boolean value to set
51 public void setCurrentTimeError(boolean fIsCurrentTimeError
);
54 * @return whether received range is correct or not
56 public boolean isRangeError();
58 * Sets the range error flag.
59 * @param fIsRangeError boolean value to set
61 public void setRangeError(boolean fIsRangeError
);
64 * @return whether signal was received or not
66 public boolean isSignalError();
68 * Sets signal error flag.
69 * @param fIsSignalError boolean value to set
71 public void setSignalError(boolean fIsSignalError
);
74 * @return source of expected signal.
76 public Object
getSource();
78 * Sets source of expected signal
79 * @param source expected source component
81 public void setSource(Object source
);
84 * @return the expected current time.
86 public TmfTimestamp
getCurrentTime();
88 * Sets the expected current time
89 * @param currentTime Time to set
91 public void setCurrentTime(TmfTimestamp currentTime
);
94 * @return the expected current time range.
96 public TmfTimeRange
getCurrentRange();
98 * Sets the expected current time range.
99 * @param currentRange the expected current time range to set
101 public void setCurrentRange(TmfTimeRange currentRange
);