Search in sources :

Example 31 with AttributeInformation

use of org.codice.alliance.nsili.common.GIAS.AttributeInformation in project alliance by codice.

the class NsiliAttributesGenerator method getNsilReportAttributes.

public static List<AttributeInformation> getNsilReportAttributes() {
    String prefix = NsiliConstants.NSIL_REPORT + ".";
    Domain domain;
    List<AttributeInformation> attributes = new ArrayList<>();
    domain = new Domain();
    domain.t(200);
    attributes.add(new AttributeInformation(prefix + NsiliConstants.INFORMATION_RATING, AttributeType.TEXT, domain, "", "", RequirementMode.OPTIONAL, "Information rating of the data source and the information of the data source upon which the report is generated by assessing the \"Reliability of the Source and Credibility of the Information\" according to STANAG 2511, 2190 and 2191. The rating is specified by the combination of reliability and credibility values, e.g. B2. If the report is generated upon multiple source, multiple ratings are separated by commas (e.g. B2,C3,C6).", false, true));
    domain = new Domain();
    domain.t(10);
    attributes.add(new AttributeInformation(prefix + NsiliConstants.ORIGINATORS_REQ_SERIAL_NUM, AttributeType.TEXT, domain, "", "", RequirementMode.OPTIONAL, "Based on the originators request serial number STANAG 3277", false, true));
    domain = new Domain();
    domain.l(getReportPriorityOptions());
    attributes.add(new AttributeInformation(prefix + NsiliConstants.PRIORITY, AttributeType.TEXT, domain, "", "", RequirementMode.MANDATORY, "A priority marking of the report", false, true));
    domain = new Domain();
    domain.l(getReportTypeOptions());
    attributes.add(new AttributeInformation(prefix + NsiliConstants.TYPE, AttributeType.TEXT, domain, "", "", RequirementMode.OPTIONAL, "The specific type of report.", false, true));
    return attributes;
}
Also used : AttributeInformation(org.codice.alliance.nsili.common.GIAS.AttributeInformation) ArrayList(java.util.ArrayList) Domain(org.codice.alliance.nsili.common.GIAS.Domain)

Example 32 with AttributeInformation

use of org.codice.alliance.nsili.common.GIAS.AttributeInformation in project alliance by codice.

the class NsiliAttributesGenerator method getNsilSdsAttributes.

public static List<AttributeInformation> getNsilSdsAttributes() {
    String prefix = NsiliConstants.NSIL_SDS + ".";
    Domain domain;
    List<AttributeInformation> attributes = new ArrayList<>();
    domain = new Domain();
    domain.l(getSdsOperationalStatusOptions());
    attributes.add(new AttributeInformation(prefix + NsiliConstants.OPERATIONAL_STATUS, AttributeType.TEXT, domain, "", "", RequirementMode.MANDATORY, "SDS operational status", false, true));
    return attributes;
}
Also used : AttributeInformation(org.codice.alliance.nsili.common.GIAS.AttributeInformation) ArrayList(java.util.ArrayList) Domain(org.codice.alliance.nsili.common.GIAS.Domain)

Example 33 with AttributeInformation

use of org.codice.alliance.nsili.common.GIAS.AttributeInformation in project alliance by codice.

the class NsiliAttributesGenerator method getNsilRfiAttributes.

public static List<AttributeInformation> getNsilRfiAttributes() {
    String prefix = NsiliConstants.NSIL_RFI + ".";
    Domain domain;
    List<AttributeInformation> attributes = new ArrayList<>();
    domain = new Domain();
    domain.t(50);
    attributes.add(new AttributeInformation(prefix + NsiliConstants.FOR_ACTION, AttributeType.TEXT, domain, "", "", RequirementMode.OPTIONAL, "A nation, command, agency, organization or unit requested to provide a response. Ref. STANAG 2149 (edition 6). Note that the forAction value is singular and only identifies one entity.", false, true));
    domain = new Domain();
    domain.t(200);
    attributes.add(new AttributeInformation(prefix + NsiliConstants.FOR_INFORMATION, AttributeType.TEXT, domain, "", "", RequirementMode.OPTIONAL, "A comma-separated list of nations, commands, agencies, organizations and units which may have an interest in the response. Ref. STANAG 2149 (edition 6)", false, true));
    domain = new Domain();
    domain.t(30);
    attributes.add(new AttributeInformation(prefix + NsiliConstants.SERIAL_NUMBER, AttributeType.TEXT, domain, "", "", RequirementMode.MANDATORY, "Unique human readable string identifying the RFI instance.", false, true));
    domain = new Domain();
    domain.l(getRfiStatusOptions());
    attributes.add(new AttributeInformation(prefix + NsiliConstants.STATUS, AttributeType.TEXT, domain, "", "", RequirementMode.MANDATORY, "Indicates the status of the RFIs", false, true));
    domain = new Domain();
    domain.l(getRfiWorkflowStatusOptions());
    attributes.add(new AttributeInformation(prefix + NsiliConstants.WORKFLOW_STATUS, AttributeType.TEXT, domain, "", "", RequirementMode.MANDATORY, "Indicates the workflow status of the RFI.", false, true));
    return attributes;
}
Also used : AttributeInformation(org.codice.alliance.nsili.common.GIAS.AttributeInformation) ArrayList(java.util.ArrayList) Domain(org.codice.alliance.nsili.common.GIAS.Domain)

Example 34 with AttributeInformation

use of org.codice.alliance.nsili.common.GIAS.AttributeInformation in project alliance by codice.

the class NsiliAttributesGenerator method getNsilImageryAttributes.

public static List<AttributeInformation> getNsilImageryAttributes() {
    String prefix = NsiliConstants.NSIL_IMAGERY + ".";
    Domain domain;
    List<AttributeInformation> attributes = new ArrayList<>();
    domain = new Domain();
    domain.l(getImageryCategoryOptions());
    attributes.add(new AttributeInformation(prefix + NsiliConstants.CATEGORY, AttributeType.TEXT, domain, "", "", RequirementMode.MANDATORY, "A valid indicator of the specific category of image, raster, or grid data. The specific category of an image reveals its intended use or the nature of its collector.", false, true));
    domain = new Domain();
    domain.ir(PERCENT_INT_RANGE);
    attributes.add(new AttributeInformation(prefix + NsiliConstants.CLOUD_COVER_PCT, AttributeType.INTEGER, domain, "", "", RequirementMode.OPTIONAL, "A code that indicates the percentage of the image obscured by cloud cover.", false, true));
    domain = new Domain();
    domain.t(800);
    attributes.add(new AttributeInformation(prefix + NsiliConstants.COMMENTS, AttributeType.TEXT, domain, "", "", RequirementMode.OPTIONAL, "Comments related to the image", false, true));
    domain = new Domain();
    domain.l(getImageryDecompressionTechOptions());
    attributes.add(new AttributeInformation(prefix + NsiliConstants.DECOMPRESSION_TECHNIQUE, AttributeType.TEXT, domain, "", "", RequirementMode.MANDATORY, "Specification of algorithm or process to apply to read or expand the image to which compression techniques have been applied.", false, true));
    domain = new Domain();
    domain.t(10);
    attributes.add(new AttributeInformation(prefix + NsiliConstants.IDENTIFIER, AttributeType.TEXT, domain, "", "", RequirementMode.MANDATORY, "This field shall contain a valid alphanumeric identification code associated with the image. The valid codes are determined by the application.", false, true));
    domain = new Domain();
    domain.ir(new IntegerRange(0, 9));
    attributes.add(new AttributeInformation(prefix + NsiliConstants.NIIRS, AttributeType.INTEGER, domain, "", "", RequirementMode.OPTIONAL, "NIIRS - National Image Interpretability Rating Scales (NIIRS) -defines and measures the quality of images and the performance of imaging systems.", false, true));
    domain = new Domain();
    domain.ir(new IntegerRange(0, 99999));
    attributes.add(new AttributeInformation(prefix + NsiliConstants.NUMBER_OF_BANDS, AttributeType.INTEGER, domain, "", "", RequirementMode.MANDATORY, "The number of data bands within the specified image.", false, true));
    domain = new Domain();
    domain.ir(new IntegerRange(1, Integer.MAX_VALUE));
    attributes.add(new AttributeInformation(prefix + NsiliConstants.NUMBER_OF_ROWS, AttributeType.INTEGER, domain, "", "", RequirementMode.OPTIONAL, "Number of significant rows in Image. This field shall contain the total number of rows of significant pixels in the image. It could be that an image has been padded with fill data (to fill out the last part of the block in a blocked image). The meaning of 'significant' is then only the rows conveying image data excluding all the rows with padded fill data.", false, true));
    domain = new Domain();
    domain.ir(new IntegerRange(1, Integer.MAX_VALUE));
    attributes.add(new AttributeInformation(prefix + NsiliConstants.NUMBER_OF_COLS, AttributeType.INTEGER, domain, "", "", RequirementMode.OPTIONAL, "Number of significant columns in Image. This field shall contain the total number of columns of significant pixels in the image. It could be that an image has been padded with fill data (to fill out the last part of the block in a blocked image). The meaning of 'significant' is then only the columns conveying image data excluding all the columns with padded fill data.", false, true));
    domain = new Domain();
    domain.t(80);
    attributes.add(new AttributeInformation(prefix + NsiliConstants.TITLE, AttributeType.TEXT, domain, "", "", RequirementMode.OPTIONAL, "This field shall contain the title of the image.", false, true));
    return attributes;
}
Also used : AttributeInformation(org.codice.alliance.nsili.common.GIAS.AttributeInformation) IntegerRange(org.codice.alliance.nsili.common.GIAS.IntegerRange) ArrayList(java.util.ArrayList) Domain(org.codice.alliance.nsili.common.GIAS.Domain)

Example 35 with AttributeInformation

use of org.codice.alliance.nsili.common.GIAS.AttributeInformation in project alliance by codice.

the class NsiliAttributesGenerator method getNsilIntsumAttributes.

public static List<AttributeInformation> getNsilIntsumAttributes() {
    Domain domain;
    List<AttributeInformation> attributes = new ArrayList<>();
    domain = new Domain();
    domain.t(2048);
    attributes.add(new AttributeInformation(NsiliConstants.AREA_ASSESSMENT, AttributeType.TEXT, domain, "", "", RequirementMode.MANDATORY, "Evaluation of the current situation and/or events within the defined area.", false, true));
    domain = new Domain();
    domain.t(2048);
    attributes.add(new AttributeInformation(NsiliConstants.GENERAL_ASSESSMENT, AttributeType.TEXT, domain, "", "", RequirementMode.MANDATORY, "Assessment of the current situation or events. This will include short and long term forecasts of the intentions and capabilities of the parties involved.", false, true));
    domain = new Domain();
    domain.t(200);
    attributes.add(new AttributeInformation(NsiliConstants.SITUATION_TYPE, AttributeType.TEXT, domain, "", "", RequirementMode.OPTIONAL, "Comma separated list of the situation type of the referred reports.", false, true));
    return attributes;
}
Also used : AttributeInformation(org.codice.alliance.nsili.common.GIAS.AttributeInformation) ArrayList(java.util.ArrayList) Domain(org.codice.alliance.nsili.common.GIAS.Domain)

Aggregations

AttributeInformation (org.codice.alliance.nsili.common.GIAS.AttributeInformation)40 ArrayList (java.util.ArrayList)36 Domain (org.codice.alliance.nsili.common.GIAS.Domain)29 IntegerRange (org.codice.alliance.nsili.common.GIAS.IntegerRange)7 HashMap (java.util.HashMap)5 List (java.util.List)5 Matchers.containsString (org.hamcrest.Matchers.containsString)3 Test (org.junit.Test)3 Objects (java.util.Objects)1 Association (org.codice.alliance.nsili.common.GIAS.Association)1 DateRange (org.codice.alliance.nsili.common.GIAS.DateRange)1 FloatingPointRange (org.codice.alliance.nsili.common.GIAS.FloatingPointRange)1 SortAttribute (org.codice.alliance.nsili.common.GIAS.SortAttribute)1 EntityGraph (org.codice.alliance.nsili.common.UCO.EntityGraph)1 EntityNode (org.codice.alliance.nsili.common.UCO.EntityNode)1 InvalidInputParameter (org.codice.alliance.nsili.common.UCO.InvalidInputParameter)1 ProcessingFault (org.codice.alliance.nsili.common.UCO.ProcessingFault)1 SystemFault (org.codice.alliance.nsili.common.UCO.SystemFault)1 Matchers.anyString (org.mockito.Matchers.anyString)1