Trace.java

55 lines | 1.057 kB Blame History Raw Download
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufrgs.inf.prosoft.trace;

import java.util.List;

/**
 *
 * @author romulo
 */
public abstract class Trace {

    private final String i;
    private final List<String> m;
    private final String n;
    private final long s;
    private final long e;

    public Trace(String instance, List<String> modifiers, String name, long startTime, long endTime) {
        this.i = instance;
        this.m = modifiers;
        this.n = name;
        this.s = startTime;
        this.e = endTime;
    }

    public String getInstance() {
        return i;
    }

    public List<String> getModifiers() {
        return m;
    }

    public String getName() {
        return n;
    }

    public abstract Return getReturn();

    public abstract List<Parameter> getParameters();

    public long getStartTime() {
        return s;
    }

    public long getEndTime() {
        return e;
    }

}