public TLink newTLink(String id, TLinkReferable from, TLinkReferable to, String relType) { idManager.tlinks.update(id); TLink newTLink = new TLink(id, from, to, relType); annotationContainer.add(newTLink); return newTLink; }
public TLink newTLink(TLinkReferable from, TLinkReferable to, String relType) { String newId = idManager.getNextId(AnnotationType.TLINK); TLink newTLink = new TLink(newId, from, to, relType); annotationContainer.add(newTLink, Layer.TEMPORAL_RELATIONS, AnnotationType.TLINK); return newTLink; }
public TLink newTLink(String id, TLinkReferable from, TLinkReferable to, String relType) { idManager.updateCounter(AnnotationType.TLINK, id); TLink newTLink = new TLink(id, from, to, relType); annotationContainer.add(newTLink, Layer.TEMPORAL_RELATIONS, AnnotationType.TLINK); return newTLink; }
public TLink newTLink(TLinkReferable from, TLinkReferable to, String relType) { String newId = idManager.tlinks.getNext(); TLink newTLink = new TLink(newId, from, to, relType); annotationContainer.add(newTLink); return newTLink; }