* The duration of this event
* @param value
* The status assigned to the event
- * @since 2.1
+ * @since 3.0
*/
public TimeEvent(ITimeGraphEntry entry, long time, long duration,
int value) {
* Get this event's status
*
* @return The integer matching this status
- * @since 2.1
+ * @since 3.0
*/
public int getValue() {
return fValue;
* Return whether an event has a value
*
* @return true if the event has a value
- * @since 2.1
+ * @since 3.0
*/
public boolean hasValue() {
return (fValue != NOVALUE);
@Override
public String toString() {
- return "TimeEvent start=" + fTime + " end=" + (fTime + fDuration) + " duration=" + fDuration + " value=" + (hasValue() ? fValue : "N/A"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
+ return getClass().getSimpleName() + " start=" + fTime + " end=" + (fTime + fDuration) + " duration=" + fDuration + (hasValue() ? (" value=" + fValue) : ""); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
}
}