import org.eclipse.linuxtools.tmf.core.event.TmfEventTypeManager;
/**
+ * The CTF extension of the TMF event type
+ *
+ * @version 1.0
+ * @author Matthew khouzam
*/
public class CtfTmfEventType extends TmfEventType {
private static final String CONTEXT_ID = "Ctf Event"; //$NON-NLS-1$
+
/**
* Constructor for CtfTmfEventType.
- * @param contextId String
- * @param eventName String
- * @param content ITmfEventField
+ *
+ * @param eventName
+ * String
+ * @param content
+ * ITmfEventField
*/
public CtfTmfEventType(String eventName, ITmfEventField content) {
super(CONTEXT_ID, eventName, content);
/**
* Method toString.
+ *
* @return String
*/
@Override
return this.getName();
}
+ /**
+ * gets the event type for an event name
+ *
+ * @param eventName
+ * the event name
+ * @return the event type
+ */
public static CtfTmfEventType get(String eventName){
return (CtfTmfEventType) TmfEventTypeManager.getInstance().getType(CONTEXT_ID, eventName);
}