Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • L2SS-1914-fix_job_dispatch
  • TMSS-3170
  • TMSS-3167
  • TMSS-3161
  • TMSS-3158-Front-End-Only-Allow-Changing-Again
  • TMSS-3133
  • TMSS-3319-Fix-Templates
  • test-fix-deploy
  • TMSS-3134
  • TMSS-2872
  • defer-state
  • add-custom-monitoring-points
  • TMSS-3101-Front-End-Only
  • TMSS-984-choices
  • SDC-1400-Front-End-Only
  • TMSS-3079-PII
  • TMSS-2936
  • check-for-max-244-subbands
  • TMSS-2927---Front-End-Only-PXII
  • Before-Remove-TMSS
  • LOFAR-Release-4_4_318 protected
  • LOFAR-Release-4_4_317 protected
  • LOFAR-Release-4_4_316 protected
  • LOFAR-Release-4_4_315 protected
  • LOFAR-Release-4_4_314 protected
  • LOFAR-Release-4_4_313 protected
  • LOFAR-Release-4_4_312 protected
  • LOFAR-Release-4_4_311 protected
  • LOFAR-Release-4_4_310 protected
  • LOFAR-Release-4_4_309 protected
  • LOFAR-Release-4_4_308 protected
  • LOFAR-Release-4_4_307 protected
  • LOFAR-Release-4_4_306 protected
  • LOFAR-Release-4_4_304 protected
  • LOFAR-Release-4_4_303 protected
  • LOFAR-Release-4_4_302 protected
  • LOFAR-Release-4_4_301 protected
  • LOFAR-Release-4_4_300 protected
  • LOFAR-Release-4_4_299 protected
40 results

lofar

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Ruud Overeem authored
    e2b08a87
    History
    Changes made in this release of OTDB
    ------------------------------------
    
    The metadata of the trees is extended with 4 fields:
    	ADD COLUMN groupID			INTEGER,
    	ADD COLUMN processType		VARCHAR(20),
    	ADD COLUMN processSubtype	VARCHAR(120),
    	ADD COLUMN strategy			VARCHAR(30);
    
    This has inpact on the treeInfo structure used by several sql functions.
    The new treeInfo SQL structure is:
    CREATE TYPE treeInfo AS (
    	treeID				INT4,			-- OTDBtree.treeID%TYPE,
    	momID				INT4,
    >>	groupID				INT4,
    	classification		INT2,			-- classification.ID%TYPE,
    	creator				VARCHAR(20),	-- OTDBuser.username%TYPE,
    	creationDate		timestamp(0),
    	type				INT2,			-- treetype.ID%TYPE,
    	state				INT2,			-- treestate.ID%TYPE,
    	originalTree		INT4,			-- OTDBtree.treeID%TYPE,
    	campaign			VARCHAR(30),	-- campaign.name%TYPE,
    	starttime			timestamp(0),
    	stoptime			timestamp(0),
    >>	processType			VARCHAR(20),
    >>	processSubtype		VARCHAR(120),
    >>	strategy			VARCHAR(30),
    	description			TEXT
    );
    
    The new C++ class is: 
    class OTDBtree {
    public:
        OTDBtree() : itsTreeID(0), itsMomID(0) {};
        ~OTDBtree() {};
    
        treeIDType      treeID() const      { return (itsTreeID); }
        treeIDType      momID()  const      { return (itsMomID);  }
    >>  treeIDType      groupID;
        classifType     classification; // development / test / operational
        string          creator;
        ptime           creationDate;
        treeType        type;           // hardware / VItemplate / VHtree
        treeState       state;          // idle / configure / ... / active / ...
    >>  string          processType;    // Maintenance / Reservation / Observation / ..
    >>  string          processSubtype; // UVmeasurement / PulsarPipeline / ...
    >>  string          strategy;       // restricted free text
        string          description;    // free text
    
        // -- VIC only --
        treeIDType      originalTree;
        string          campaign;
        ptime           starttime;
        ptime           stoptime;
    	...
    }
    
    The affected functions are:
    getTreeGroup
    getTreesInPeriod
    getExecutableTrees
    getTreeInfo
    getTreeList
    setMomInfo
    
    The interface of the last 2 functions are changed:
    
    getTreeList is extended with the four new fields. Every field is optional.
    The new function is: 
    // getTreeList ([treeType], [classification], [groupID], [processType], [processSubtype], [strategy])
    vector<OTDBtree> getTreeList(treeType, classifType, uint32, const string&, const string&, const string&);
    
    
    setMomInfo is extenden with the groupID:
    The new function is: 
    bool setMomInfo(treeIDType, treeIDType, uint32, string)
    // setMomInfo (treeID, MomID, groupID, campaign)
    
    
    The GroupID's are managed by OTDB, so a new function is added to the database to get a new unique groupID:
    uint32  newGroupID();
    
    
    NOTES NOTES NOTES NOTES NOTES
    Since it is not clear yet what values are allowed in the processType, processSubtype and strategy fields
    there is no check on the values of the fields yet other than that the combination of them must be unique 
    for default templates.
    
    The processType fields can only be assigned to template and default-template trees. Trying to assign them
    to the other fieldtypes results in an error.