Package moise.os.ss
Class Compatibility
java.lang.Object
moise.common.MoiseElement
moise.os.ss.RoleRel
moise.os.ss.Compatibility
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable,Identifiable,ToXML
public class Compatibility extends RoleRel
Represents a Compatibility between two roles.
- Author:
- Jomi Fred Hubner
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class moise.os.ss.RoleRel
RoleRel.RoleRelScope -
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUIDFields inherited from class moise.os.ss.RoleRel
biDirectional, extendsToSubGroups, grSpec, scope, source, targetFields inherited from class moise.common.MoiseElement
debug -
Constructor Summary
Constructors Constructor Description Compatibility(Group grSpec)Creates new CompatibilityCompatibility(Role a, Role b, Group grSpec)Creates new Compatibility -
Method Summary
Modifier and Type Method Description booleanareCompatible(Role r1, Role r2)checks if the the role r1 is compatible with r2 (considering the role inheritance), i.e., the agent playing r1 can also play r2protected java.lang.StringgetTypeStr()java.lang.StringgetXMLTag()Methods inherited from class moise.os.ss.RoleRel
contains, equals, getAsDOM, getBiDirStr, getExtendsToSubGroups, getExtendsToSubGroupsStr, getGrSpec, getScope, getSource, getTarget, isBiDir, setBiDir, setExtendsToSubGroups, setFromDOM, setScope, setScope, sourceContains, targetContains, toStringMethods inherited from class moise.common.MoiseElement
compareTo, getBoolProperty, getBoolProperty, getCreationDate, getFullId, getId, getId, getOwner, getPrefix, getPrefix, getProperties, getPropertiesAsDOM, getPropertiesAsProlog, getProperty, getStrProperty, hashCode, setId, setOwner, setPrefix, setPropertiesFromDOM, setPropertyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
-
Constructor Details
-
Compatibility
Creates new Compatibility -
Compatibility
Creates new Compatibility
-
-
Method Details
-
getTypeStr
protected java.lang.String getTypeStr()- Overrides:
getTypeStrin classRoleRel
-
getXMLTag
public java.lang.String getXMLTag() -
areCompatible
checks if the the role r1 is compatible with r2 (considering the role inheritance), i.e., the agent playing r1 can also play r2
-