/*******************************************************************************
- * Copyright (c) 2010 Ericsson
- *
+ * Copyright (c) 2010, 2013 Ericsson
+ *
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
* accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* Patrick Tasse - Initial API and implementation
*******************************************************************************/
import org.eclipse.linuxtools.tmf.core.trace.ITmfLocation;
import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
+/**
+ * Trace context for custom text traces.
+ *
+ * @author Patrick Tassé
+ */
public class CustomTxtTraceContext extends TmfContext {
+
+ /** Regex matcher for the first line of the trace */
public Matcher firstLineMatcher;
+
+ /** First line of the text file */
public String firstLine;
+
+ /** Position in the file where the 'current' next line is */
public long nextLineLocation;
+
+ /** InputLine object for the currently read line */
public InputLine inputLine;
- public CustomTxtTraceContext(ITmfLocation<?> location, long rank) {
+ /**
+ * Constructor.
+ *
+ * @param location
+ * Location in the trace
+ * @param rank
+ * Rank of the event at this location
+ */
+ public CustomTxtTraceContext(ITmfLocation location, long rank) {
super(location, rank);
}