Class Group

  • All Implemented Interfaces:
    jaca.ToProlog, java.io.Serializable, java.lang.Comparable<CollectiveOE>, npl.DynamicFactsProvider

    public class Group
    extends CollectiveOE
    implements jaca.ToProlog
    Represents the instance group of one Group Specification
    Author:
    Jomi Fred Hubner
    See Also:
    Serialized Form
    • Field Detail

      • dynamicFacts

        public static final jason.asSyntax.Literal[] dynamicFacts
      • groupPI

        public static final jason.asSyntax.PredicateIndicator groupPI
      • playPI

        public static final jason.asSyntax.PredicateIndicator playPI
      • exPlayPI

        public static final jason.asSyntax.PredicateIndicator exPlayPI
      • responsiblePI

        public static final jason.asSyntax.PredicateIndicator responsiblePI
      • parentGrPI

        public static final jason.asSyntax.PredicateIndicator parentGrPI
      • subGrWFPI

        public static final jason.asSyntax.PredicateIndicator subGrWFPI
      • subGrPI

        public static final jason.asSyntax.PredicateIndicator subGrPI
      • schemes

        private java.util.HashSet<java.lang.String> schemes
      • schemesAsLiteralList

        private java.util.Set<jason.asSyntax.Literal> schemesAsLiteralList
      • subgroups

        private java.util.Map<java.lang.String,​Group> subgroups
      • subgroupsAsLiteralList

        private java.util.Map<java.lang.String,​jason.asSyntax.Literal> subgroupsAsLiteralList
      • wellFormedSubGroups

        private java.util.Set<jason.asSyntax.Literal> wellFormedSubGroups
      • parentGroup

        private java.lang.String parentGroup
      • type

        private java.lang.String type
    • Constructor Detail

      • Group

        public Group​(java.lang.String id)
    • Method Detail

      • addResponsibleForScheme

        public void addResponsibleForScheme​(java.lang.String s)
      • removeResponsibleForScheme

        public boolean removeResponsibleForScheme​(java.lang.String s)
      • addSubgroup

        public Group addSubgroup​(java.lang.String gId,
                                 java.lang.String gType,
                                 java.lang.String parentGr)
      • removeSubgroup

        public Group removeSubgroup​(java.lang.String gId)
      • hasSubgroup

        public boolean hasSubgroup()
      • getSubgroups

        public java.util.Collection<Group> getSubgroups()
      • getSubgroup

        public Group getSubgroup​(java.lang.String gId)
      • setSubgroupWellformed

        public void setSubgroupWellformed​(java.lang.String gId,
                                          boolean wf)
      • isSubgroupWellformed

        public boolean isSubgroupWellformed​(java.lang.String gId)
      • getSubGrWFLiteral

        private jason.asSyntax.Literal getSubGrWFLiteral​(java.lang.String sg)
      • setType

        public void setType​(java.lang.String type)
      • getGrType

        public java.lang.String getGrType()
      • setParentGroup

        public void setParentGroup​(java.lang.String gId)
      • getParentGroup

        public java.lang.String getParentGroup()
      • getSchemesResponsibleFor

        public java.util.Collection<java.lang.String> getSchemesResponsibleFor()
      • getResponsibleForAsProlog

        public jaca.ToProlog getResponsibleForAsProlog()
      • getSubgroupsAsProlog

        public jaca.ToProlog getSubgroupsAsProlog()
      • consult

        public java.util.Iterator<jason.asSemantics.Unifier> consult​(jason.asSyntax.Literal l,
                                                                     jason.asSemantics.Unifier u)
        Specified by:
        consult in interface npl.DynamicFactsProvider
        Overrides:
        consult in class CollectiveOE
      • getAsPrologStr

        public java.lang.String getAsPrologStr()
        Specified by:
        getAsPrologStr in interface jaca.ToProlog