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.Stringconditionprotected Missionmissionprotected NSnsprotected NS.OpTypesopprotected Roleroleprivate static longserialVersionUIDprotected TimeConstrainttcFields inherited from class moise.common.MoiseElement
debug -
Constructor Summary
-
Method Summary
Modifier and Type Method Description org.w3c.dom.ElementgetAsDOM(org.w3c.dom.Document document)java.lang.StringgetAsProlog()returns a string representing the goal in Prolog syntax, format: norm(id, role, type, mission)java.lang.StringgetCondition()MissiongetMission()RolegetRole()TimeConstraintgetTimeConstraint()NS.OpTypesgetType()static java.lang.StringgetXMLTag()voidsetCondition(java.lang.String r)voidsetFromDOM(org.w3c.dom.Element ele)voidsetMission(java.lang.String missionId)voidsetMission(Mission m)voidsetRole(java.lang.String roleId)voidsetRole(Role r)voidsetTimeConstraint(TimeConstraint t)voidsetType(NS.OpTypes op)java.lang.StringtoString()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, setPropertyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
condition
protected java.lang.String condition -
role
-
mission
-
tc
-
ns
-
op
-
-
Constructor Details
-
Norm
- Throws:
MoiseConsistencyException
-
Norm
- Throws:
MoiseConsistencyException
-
-
Method Details
-
setType
-
getType
-
setRole
- Throws:
MoiseConsistencyException
-
setRole
- Throws:
MoiseConsistencyException
-
getRole
-
setMission
- Throws:
MoiseConsistencyException
-
setMission
- Throws:
MoiseConsistencyException
-
getMission
-
setTimeConstraint
-
getTimeConstraint
-
getCondition
public java.lang.String getCondition() -
setCondition
public void setCondition(java.lang.String r) -
toString
public java.lang.String toString()- Overrides:
toStringin 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
- Throws:
MoiseException
-