Package moise.os.ns
Class Norm
- java.lang.Object
-
- moise.common.MoiseElement
-
- moise.os.ns.Norm
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable
,Identifiable
,ToXML
public class Norm extends MoiseElement implements ToXML
Represents a norm (permission, obligation, ...) from a role to a mission.- Author:
- Jomi Fred Hubner
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
condition
protected Mission
mission
protected NS
ns
protected NS.OpTypes
op
protected Role
role
private static long
serialVersionUID
protected TimeConstraint
tc
-
Fields inherited from class moise.common.MoiseElement
debug
-
-
Method Summary
Modifier and Type Method Description org.w3c.dom.Element
getAsDOM(org.w3c.dom.Document document)
java.lang.String
getAsProlog()
returns a string representing the goal in Prolog syntax, format: norm(id, role, type, mission)java.lang.String
getCondition()
Mission
getMission()
Role
getRole()
TimeConstraint
getTimeConstraint()
NS.OpTypes
getType()
static java.lang.String
getXMLTag()
void
setCondition(java.lang.String r)
void
setFromDOM(org.w3c.dom.Element ele)
void
setMission(java.lang.String missionId)
void
setMission(Mission m)
void
setRole(java.lang.String roleId)
void
setRole(Role r)
void
setTimeConstraint(TimeConstraint t)
void
setType(NS.OpTypes op)
java.lang.String
toString()
-
Methods inherited from class moise.common.MoiseElement
compareTo, equals, getBoolProperty, getBoolProperty, getCreationDate, getFullId, getId, getId, getOwner, getPrefix, getPrefix, getProperties, getPropertiesAsDOM, getPropertiesAsProlog, getProperty, getStrProperty, hashCode, setId, setOwner, setPrefix, setPropertiesFromDOM, setProperty
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
condition
protected java.lang.String condition
-
role
protected Role role
-
mission
protected Mission mission
-
tc
protected TimeConstraint tc
-
ns
protected NS ns
-
op
protected NS.OpTypes op
-
-
Constructor Detail
-
Norm
public Norm(NS ns) throws MoiseConsistencyException
- Throws:
MoiseConsistencyException
-
Norm
public Norm(Role r, Mission m, NS ns, NS.OpTypes op) throws MoiseConsistencyException
- Throws:
MoiseConsistencyException
-
-
Method Detail
-
setType
public void setType(NS.OpTypes op)
-
getType
public NS.OpTypes getType()
-
setRole
public void setRole(Role r) throws MoiseConsistencyException
- Throws:
MoiseConsistencyException
-
setRole
public void setRole(java.lang.String roleId) throws MoiseConsistencyException
- Throws:
MoiseConsistencyException
-
getRole
public Role getRole()
-
setMission
public void setMission(Mission m) throws MoiseConsistencyException
- Throws:
MoiseConsistencyException
-
setMission
public void setMission(java.lang.String missionId) throws MoiseConsistencyException
- Throws:
MoiseConsistencyException
-
getMission
public Mission getMission()
-
setTimeConstraint
public void setTimeConstraint(TimeConstraint t)
-
getTimeConstraint
public TimeConstraint getTimeConstraint()
-
getCondition
public java.lang.String getCondition()
-
setCondition
public void setCondition(java.lang.String r)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classMoiseElement
-
getXMLTag
public static java.lang.String getXMLTag()
-
getAsProlog
public java.lang.String getAsProlog()
returns a string representing the goal in Prolog syntax, format: norm(id, role, type, mission)
-
getAsDOM
public org.w3c.dom.Element getAsDOM(org.w3c.dom.Document document)
-
setFromDOM
public void setFromDOM(org.w3c.dom.Element ele) throws MoiseException
- Throws:
MoiseException
-
-