Commit | Line | Data |
---|---|---|
a3fc8213 AM |
1 | package org.eclipse.linuxtools.tmf.core.ctfadaptor; |
2 | ||
3 | import org.eclipse.linuxtools.tmf.core.event.ITmfTimestamp; | |
4 | import org.eclipse.linuxtools.tmf.core.trace.ITmfLocation; | |
5 | ||
6 | public class CtfLocation implements ITmfLocation<Long> { | |
7 | ||
8 | public CtfLocation(Long location) { | |
9 | setLocation(location); | |
10 | } | |
ce2388e0 | 11 | |
a3fc8213 AM |
12 | public CtfLocation(ITmfTimestamp timestamp) { |
13 | setLocation(timestamp.getValue()); | |
14 | } | |
15 | ||
16 | private Long fTimestamp; | |
17 | ||
fcccd900 | 18 | // @Override |
a3fc8213 AM |
19 | public void setLocation(Long location) { |
20 | this.fTimestamp = location; | |
21 | } | |
22 | ||
23 | @Override | |
24 | public Long getLocation() { | |
25 | return this.fTimestamp; | |
26 | } | |
27 | ||
28 | @Override | |
29 | public CtfLocation clone() { | |
30 | return new CtfLocation(getLocation()); | |
31 | } | |
32 | ||
33 | } |