Package moise.os.ns

Class NS

    • Field Detail

      • norms

        protected java.util.Set<Norm> norms
      • os

        private OS os
      • nplProgram

        protected java.lang.String nplProgram
    • Constructor Detail

      • NS

        public NS​(OS os)
        Creates new NS
    • Method Detail

      • getOS

        public OS getOS()
      • addNorm

        public void addNorm​(Norm n)
      • addNorm

        public void addNorm​(java.util.Collection<Norm> ns)
      • getNorm

        public Norm getNorm​(java.lang.String nId)
      • getNorms

        public java.util.Collection<Norm> getNorms()
      • getNPLNorms

        public java.lang.String getNPLNorms()
      • hasNorm

        public boolean hasNorm​(java.lang.String roleId,
                               java.lang.String missionId,
                               NS.OpTypes type)
        returns true whether there is a type norm from roleId to missionId. if some of the parameters is null, it will not considered in the comparison
      • removeNorms

        public void removeNorms​(Role r)
        remove the norms for the role r
      • getXMLTag

        public static java.lang.String getXMLTag()
      • getAsDOM

        public org.w3c.dom.Element getAsDOM​(org.w3c.dom.Document document)
        Specified by:
        getAsDOM in interface ToXML