Package ora4mas.nopl.oe
Class Group
- java.lang.Object
-
- ora4mas.nopl.oe.CollectiveOE
-
- ora4mas.nopl.oe.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 Summary
Fields Modifier and Type Field Description static jason.asSyntax.Literal[]
dynamicFacts
static jason.asSyntax.PredicateIndicator
exPlayPI
static jason.asSyntax.PredicateIndicator
groupPI
private java.lang.String
parentGroup
static jason.asSyntax.PredicateIndicator
parentGrPI
static jason.asSyntax.PredicateIndicator
playPI
static jason.asSyntax.PredicateIndicator
responsiblePI
private java.util.HashSet<java.lang.String>
schemes
private java.util.Set<jason.asSyntax.Literal>
schemesAsLiteralList
private java.util.Map<java.lang.String,Group>
subgroups
private java.util.Map<java.lang.String,jason.asSyntax.Literal>
subgroupsAsLiteralList
static jason.asSyntax.PredicateIndicator
subGrPI
static jason.asSyntax.PredicateIndicator
subGrWFPI
private java.lang.String
type
private java.util.Set<jason.asSyntax.Literal>
wellFormedSubGroups
-
Fields inherited from class ora4mas.nopl.oe.CollectiveOE
exPlayers, exPlayersAsLiteralList, id, players, playersAsLiteralList, termId
-
-
Constructor Summary
Constructors Constructor Description Group(java.lang.String id)
-
Method Summary
Modifier and Type Method Description void
addResponsibleForScheme(java.lang.String s)
Group
addSubgroup(java.lang.String gId, java.lang.String gType, java.lang.String parentGr)
Group
clone()
java.util.Iterator<jason.asSemantics.Unifier>
consult(jason.asSyntax.Literal l, jason.asSemantics.Unifier u)
java.lang.String
getAsPrologStr()
jason.asSyntax.Literal[]
getDynamicFacts()
(package private) jason.asSyntax.PredicateIndicator
getExPlayerPI()
java.lang.String
getGrType()
java.lang.String
getParentGroup()
(package private) jason.asSyntax.PredicateIndicator
getPlayerPI()
jaca.ToProlog
getResponsibleForAsProlog()
java.util.Collection<java.lang.String>
getSchemesResponsibleFor()
Group
getSubgroup(java.lang.String gId)
java.util.Collection<Group>
getSubgroups()
jaca.ToProlog
getSubgroupsAsProlog()
private jason.asSyntax.Literal
getSubGrWFLiteral(java.lang.String sg)
boolean
hasSubgroup()
boolean
isSubgroupWellformed(java.lang.String gId)
boolean
removeResponsibleForScheme(java.lang.String s)
Group
removeSubgroup(java.lang.String gId)
void
setParentGroup(java.lang.String gId)
void
setSubgroupWellformed(java.lang.String gId, boolean wf)
void
setType(java.lang.String type)
java.lang.String
toString()
-
Methods inherited from class ora4mas.nopl.oe.CollectiveOE
addPlayer, clearExPlayers, clearPlayers, compareTo, equals, getCollectionAsProlog, getExPlayers, getId, getPlayers, hashCode, hasPlayer, isRelevant, removePlayer, transform
-
-
-
-
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
-
-
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()
-
getPlayerPI
jason.asSyntax.PredicateIndicator getPlayerPI()
- Specified by:
getPlayerPI
in classCollectiveOE
-
getExPlayerPI
jason.asSyntax.PredicateIndicator getExPlayerPI()
- Specified by:
getExPlayerPI
in classCollectiveOE
-
getDynamicFacts
public jason.asSyntax.Literal[] getDynamicFacts()
- Specified by:
getDynamicFacts
in classCollectiveOE
-
consult
public java.util.Iterator<jason.asSemantics.Unifier> consult(jason.asSyntax.Literal l, jason.asSemantics.Unifier u)
- Specified by:
consult
in interfacenpl.DynamicFactsProvider
- Overrides:
consult
in classCollectiveOE
-
clone
public Group clone()
- Specified by:
clone
in classCollectiveOE
-
getAsPrologStr
public java.lang.String getAsPrologStr()
- Specified by:
getAsPrologStr
in interfacejaca.ToProlog
-
toString
public java.lang.String toString()
- Overrides:
toString
in classCollectiveOE
-
-