public class Scope
extends java.lang.Object
Constructor and Description |
---|
Scope(jason.asSyntax.Literal id,
NormativeProgram np) |
Modifier and Type | Method and Description |
---|---|
void |
addNorm(Norm n) |
void |
addRule(jason.asSyntax.Rule r) |
void |
addScope(Scope s) |
Scope |
findScope(java.lang.String sid) |
Scope |
getFather() |
jason.asSyntax.Literal |
getId() |
int |
getNbFathers() |
Norm |
getNorm(java.lang.String id) |
java.util.Collection<Norm> |
getNorms() |
NormativeProgram |
getNP() |
java.util.List<jason.asSyntax.Rule> |
getRules() |
Scope |
getScope(jason.asSyntax.Literal key) |
java.util.Collection<Scope> |
getScopes() |
Norm |
removeNorm(java.lang.String id) |
void |
setFather(Scope s) |
java.lang.String |
toString() |
public Scope(jason.asSyntax.Literal id, NormativeProgram np)
public jason.asSyntax.Literal getId()
public NormativeProgram getNP()
public void addRule(jason.asSyntax.Rule r)
public java.util.List<jason.asSyntax.Rule> getRules()
public void addNorm(Norm n)
public Norm removeNorm(java.lang.String id)
public java.util.Collection<Norm> getNorms()
public Norm getNorm(java.lang.String id)
public void addScope(Scope s)
public java.util.Collection<Scope> getScopes()
public Scope getScope(jason.asSyntax.Literal key)
public Scope findScope(java.lang.String sid)
public Scope getFather()
public void setFather(Scope s)
public int getNbFathers()
public java.lang.String toString()
toString
in class java.lang.Object