View Javadoc

1   /*
2    * @author Giorgos Anestis, TUC/MUSIC
3    *  
4    * @version 2.0
5    */
6   package org.dbe.studio.tools.ontologyviewer.metamodels.odm;
7   
8   /***
9    * 
10   * 
11   */
12  public class OdmObjectPropertyInst {
13  
14  	OdmOntology theOntology;	
15  	OdmOntologyClassInst srcInstance, trgInstance;
16  	
17  	/***
18  	 * 
19  	 */
20  	public OdmObjectPropertyInst() {
21  		super();		
22  	}
23  
24  	public OdmObjectPropertyInst( OdmOntology ont, OdmOntologyClassInst srcInst, 
25  								  OdmOntologyClassInst trgInst) {
26  		super();
27  		
28  		theOntology = ont;
29  		theOntology.addObjPropertyInst(this);
30  		
31  		srcInstance = srcInst;
32  		trgInstance = trgInst;
33  	}
34  		
35  	public void setOntology(OdmOntology ont) {
36  		theOntology = ont;
37  	}
38  	
39  	public void setSrc(OdmOntologyClassInst srcInst) {
40  		srcInstance = srcInst;
41  	}
42  	
43  	public void setTrg(OdmOntologyClassInst trgInst) {
44  		trgInstance = trgInst;
45  	}
46  	
47  	public OdmOntology getOntology() {
48  		return theOntology;
49  	}
50  	
51  	public OdmOntologyClassInst getSrc() {
52  		return srcInstance;
53  	}
54  	
55  	public OdmOntologyClassInst getTrg() {
56  		return trgInstance;
57  	}
58  }