⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 roleassertion.java

📁 Semantic Web Ontology Editor
💻 JAVA
字号:
package org.mindswap.swoop.racer;

/** This class provides an easy way to represent a role assertion. */

public class RoleAssertion extends Assertion {

	/** The predecessor individual. */
	
	private String predecessor;

	
	/** The succcessor individual. */
	
	private String successor;


	/** The role. */

	private String role;

	
/** The constructor builds a role assertion for two individuals and a role. */

public RoleAssertion(String pred,String r,String succ) {
	super();
	predecessor=pred;
	role=r;
	successor=succ;
}
/** This method retrieves the predecessor of the assertion. */

public String getPredecessor() {
	return predecessor;
}
/** This method retrieves the role of the assertion. */

public String getRole() {
	return role;
}
/** This method retrieves the successor of the assertion. */

public String getSuccessor() {
	return successor;
}
/** This method returns a string representation of the assertion. */

public String toString() {
	return "(related "+predecessor+" "+successor+" "+role+")";
}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -