tmf: Internalize all the core state system implementation
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / ctfadaptor / CtfLocation.java
CommitLineData
a3fc8213
AM
1package org.eclipse.linuxtools.tmf.core.ctfadaptor;
2
3import org.eclipse.linuxtools.tmf.core.event.ITmfTimestamp;
4import org.eclipse.linuxtools.tmf.core.trace.ITmfLocation;
5
6public 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}
This page took 0.028201 seconds and 5 git commands to generate.