00001
00002
00003
00004
00005
00006
00007 package edu.tum.cs.srl;
00008
00009 import java.util.Vector;
00010
00011 import edu.tum.cs.util.StringTool;
00012
00013 public class RelationKey {
00017 public String relation;
00021 public Vector<Integer> keyIndices;
00025 protected String[] arguments;
00026
00027 public RelationKey(String relation, String[] arguments) {
00028 this.relation = relation;
00029 this.arguments = arguments;
00030 keyIndices = new Vector<Integer>();
00031 for(int i = 0; i < arguments.length; i++) {
00032 if(!arguments[i].equals("_")) {
00033 keyIndices.add(i);
00034 }
00035 }
00036 }
00037
00038 public String toString() {
00039 return "relationKey " + relation + "(" + StringTool.join(",", arguments) + ");";
00040 }
00041 }