moise.os.ss
Class Compatibility

Package class diagram package Compatibility
java.lang.Object
  extended by moise.common.MoiseElement
      extended by moise.os.ss.RoleRel
          extended by 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.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class moise.os.ss.RoleRel
RoleRel.RoleRelScope
 
Field Summary
 
Fields inherited from class moise.os.ss.RoleRel
biDirectional, extendsToSubGroups, grSpec, scope, source, target
 
Fields inherited from class moise.common.MoiseElement
debug
 
Constructor Summary
Compatibility(Group grSpec)
          Creates new Compatibility
Compatibility(Role a, Role b, Group grSpec)
          Creates new Compatibility
 
Method Summary
 boolean areCompatible(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 r2
protected  java.lang.String getTypeStr()
           
 java.lang.String getXMLTag()
           
 
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, toString
 
Methods 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, setProperty
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Compatibility

public Compatibility(Role a,
                     Role b,
                     Group grSpec)
Creates new Compatibility


Compatibility

public Compatibility(Group grSpec)
Creates new Compatibility

Method Detail

getTypeStr

protected java.lang.String getTypeStr()
Overrides:
getTypeStr in class RoleRel

getXMLTag

public java.lang.String getXMLTag()
Overrides:
getXMLTag in class RoleRel

areCompatible

public boolean areCompatible(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 r2