-
Notifications
You must be signed in to change notification settings - Fork 13
/
Element.java
61 lines (51 loc) · 1.59 KB
/
Element.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**********************************************************************
* Copyright (c) 2021 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License 2.0 which
* accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
package org.eclipse.tracecompass.incubator.internal.trace.server.jersey.rest.core.model;
import org.eclipse.jdt.annotation.NonNull;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* Contributes to the model used for TSP swagger-core annotations.
*/
@Schema(description = "An element model to be identified")
public interface Element {
/**
* The element types.
*/
enum ElementType {
STATE, ANNOTATION, ARROW
}
/**
* @return The element type.
*/
@NonNull
@Schema(description = "The type of element", required = true)
ElementType getElementType();
/**
* @return The time.
*/
@Schema(description = "Element's start time", required = true)
long getTime();
/**
* @return The duration.
*/
@Schema(description = "Element's duration", required = true)
long getDuration();
/**
* @return The entry ID.
*/
@Schema(description = "Entry's unique ID (annotation, arrow)")
long getEntryId();
/**
* @return The destination ID.
*/
@Schema(description = "Destination entry's unique ID (arrow)")
long getDestinationId();
}