Package ora4mas.nopl

Class OrgBoard

  • Direct Known Subclasses:
    LightOrgBoard

    public class OrgBoard
    extends cartago.Artifact
    Artifact that manages an organizational entity (its groups, schemes, ....) Operations (see details in method list below):
    • createGroup
    • destroyGroup
    • createScheme
    • destroyScheme
    Observable properties:
    • group(group_id, group_type, artid): group_id of type group_type exists in the organisational entity
    • scheme(scheme_id, scheme_type, artid): scheme_id of type scheme_type exists in the organisational entity
    • specification: the OS in a prolog like representation.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class cartago.Artifact

        cartago.Artifact.AbstractAsyncProcess
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map<java.lang.String,​cartago.ArtifactId> aids  
      protected java.util.logging.Logger logger  
      protected java.lang.String oeId  
      protected static java.util.Collection<OrgBoard> orgBoards  
      protected java.lang.String osFile  
      private javax.xml.parsers.DocumentBuilder parser  
      • Fields inherited from class cartago.Artifact

        observabilityRadius, position, thisOpId
    • Constructor Summary

      Constructors 
      Constructor Description
      OrgBoard()  
    • Method Summary

      Modifier and Type Method Description
      void createGroup​(java.lang.String id, java.lang.String type, cartago.OpFeedbackParam<cartago.ArtifactId> gaid)  
      void createNormativeBoard​(java.lang.String id, cartago.OpFeedbackParam<cartago.ArtifactId> said)  
      void createScheme​(java.lang.String id, java.lang.String type, cartago.OpFeedbackParam<cartago.ArtifactId> said)  
      void destroyGroup​(java.lang.String id)  
      void destroyScheme​(java.lang.String id)  
      protected java.lang.String getGroupBoardClass()  
      protected cartago.ArtifactConfig getGroupConfig​(java.lang.String type)  
      protected java.lang.String getNormativeBoardClass()  
      java.lang.String getOEId()  
      static java.util.Collection<OrgBoard> getOrbBoards()  
      java.lang.String getOSFile()  
      javax.xml.parsers.DocumentBuilder getParser()  
      protected java.lang.String getSchemeBoardClass()  
      protected cartago.ArtifactConfig getSchemeConfig​(java.lang.String type)  
      protected void grPostCreation​(java.lang.String id, cartago.ArtifactId gArtId)  
      void init​(java.lang.String osFile)
      Initialises the org board
      protected void normBoardPostCreation​(java.lang.String aName, cartago.ArtifactId aid)  
      protected void schPostCreation​(java.lang.String id, cartago.ArtifactId sArtid)  
      java.lang.String specToStr​(ToXML spec, javax.xml.transform.Transformer transformer)  
      • Methods inherited from class cartago.Artifact

        await, await, await_time, beginExtSession, commit, defineNewOp, defineObsProperty, defineOp, delay, dispose, dispose, endExtSession, endExtSessionWithFailure, execInternalOp, execLinkedOp, execLinkedOp, failed, failed, getCreatorId, getCurrentOpAgentBody, getCurrentOpAgentId, getId, getLinkedArtifacts, getManualSrcFile, getObservabilityRadius, getObsProperty, getObsPropertyByTemplate, getOpKey, getOpUserName, getPosition, hasObsProperty, hasObsPropertyByTemplate, isLinked, log, lookupArtifact, makeArtifact, removeObsProperty, removeObsPropertyByTemplate, removeOp, setupOperations, setupPosition, signal, signal, updateObservabilityRadius, updateObsProperty, updatePosition
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • orgBoards

        protected static java.util.Collection<OrgBoard> orgBoards
      • osFile

        protected java.lang.String osFile
      • oeId

        protected java.lang.String oeId
      • aids

        protected java.util.Map<java.lang.String,​cartago.ArtifactId> aids
      • logger

        protected java.util.logging.Logger logger
      • parser

        private javax.xml.parsers.DocumentBuilder parser
    • Constructor Detail

      • OrgBoard

        public OrgBoard()
    • Method Detail

      • getOrbBoards

        public static java.util.Collection<OrgBoard> getOrbBoards()
      • init

        public void init​(java.lang.String osFile)
                  throws npl.parser.ParseException,
                         MoiseException,
                         cartago.OperationException
        Initialises the org board
        Parameters:
        osFile - the organisation specification file (path and file name)
        Throws:
        npl.parser.ParseException - if the OS file is not correct
        MoiseException - if grType was not specified
        cartago.OperationException - if parentGroupId doesn't exit
      • getOEId

        public java.lang.String getOEId()
      • getOSFile

        public java.lang.String getOSFile()
      • specToStr

        public java.lang.String specToStr​(ToXML spec,
                                          javax.xml.transform.Transformer transformer)
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getParser

        public javax.xml.parsers.DocumentBuilder getParser()
                                                    throws javax.xml.parsers.ParserConfigurationException
        Throws:
        javax.xml.parsers.ParserConfigurationException
      • createGroup

        public void createGroup​(java.lang.String id,
                                java.lang.String type,
                                cartago.OpFeedbackParam<cartago.ArtifactId> gaid)
                         throws cartago.OperationException
        Throws:
        cartago.OperationException
      • getGroupBoardClass

        protected java.lang.String getGroupBoardClass()
      • getGroupConfig

        protected cartago.ArtifactConfig getGroupConfig​(java.lang.String type)
      • grPostCreation

        protected void grPostCreation​(java.lang.String id,
                                      cartago.ArtifactId gArtId)
      • destroyGroup

        public void destroyGroup​(java.lang.String id)
      • createScheme

        public void createScheme​(java.lang.String id,
                                 java.lang.String type,
                                 cartago.OpFeedbackParam<cartago.ArtifactId> said)
                          throws cartago.OperationException
        Throws:
        cartago.OperationException
      • getSchemeBoardClass

        protected java.lang.String getSchemeBoardClass()
      • getSchemeConfig

        protected cartago.ArtifactConfig getSchemeConfig​(java.lang.String type)
      • schPostCreation

        protected void schPostCreation​(java.lang.String id,
                                       cartago.ArtifactId sArtid)
      • destroyScheme

        public void destroyScheme​(java.lang.String id)
      • createNormativeBoard

        public void createNormativeBoard​(java.lang.String id,
                                         cartago.OpFeedbackParam<cartago.ArtifactId> said)
                                  throws cartago.OperationException
        Throws:
        cartago.OperationException
      • getNormativeBoardClass

        protected java.lang.String getNormativeBoardClass()
      • normBoardPostCreation

        protected void normBoardPostCreation​(java.lang.String aName,
                                             cartago.ArtifactId aid)