Package moise.os.ss

Class Compatibility

java.lang.Object
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
  • Field Details

  • Constructor Details

    • Compatibility

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

      public Compatibility​(Group grSpec)
      Creates new Compatibility
  • Method Details

    • 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