mil.dod.th.ose.sdk/src/mil/dod/th/ose/sdk/those/ProjectPhysicalLinkCapabilities.java
private static PhysicalLinkCapabilities makeCapabilities(final PhysicalLinkTypeEnum physType)
    {
        final DigitalMedia primaryImage = ProjectBaseCapabilities.makePrimaryImage();
        final List<DigitalMedia> secondaryImages = ProjectBaseCapabilities.makeSecondaryImages();

        final List<Integer> baudRatesSupported = makeBaudRatesSupported();
        final List<FlowControlEnum> flowControl = Arrays.asList(FlowControlEnum.values());
        final List<ParityEnum> parity = Arrays.asList(ParityEnum.values());
        final List<StopBitsEnum> stopBitsSupported = Arrays.asList(StopBitsEnum.values());
        final List<Integer> dataBitsSupported = makeDataBitsSupported();

        final SerialPort serialPort = new SerialPort(baudRatesSupported, flowControl, parity, stopBitsSupported,
                dataBitsSupported);

        final String productName = ProjectBaseCapabilities.getProductName();
        final String description = ProjectBaseCapabilities.getDescription();
        final String manufacturer = ProjectBaseCapabilities.getManufacturer();

        return new PhysicalLinkCapabilities(primaryImage, secondaryImages, productName, description, manufacturer,
                serialPort, physType);
    }
/**
     * Creates an object that is populated with placeholder values for a Capabilities object.
     * @param physType
     *  the type of the physical link
     * 
     * @return Capabilities object
     */
Creates an object that is populated with placeholder values for a Capabilities object.
@param physType
the type of the physical link

@return Capabilities object
Creates an object that is populated with placeholder values for a Capabilities object . @param physType the type of the physical link @return Capabilities object
private static PhysicalLinkCapabilities makeCapabilities(final PhysicalLinkTypeEnum physType)
    {
        final DigitalMedia primaryImage = ProjectBaseCapabilities.makePrimaryImage();
        final List<DigitalMedia> secondaryImages = ProjectBaseCapabilities.makeSecondaryImages();
        final List<Integer> baudRatesSupported = makeBaudRatesSupported();
        final List<FlowControlEnum> flowControl = Arrays.asList(FlowControlEnum.values());
        final List<ParityEnum> parity = Arrays.asList(ParityEnum.values());
        final List<StopBitsEnum> stopBitsSupported = Arrays.asList(StopBitsEnum.values());
        final List<Integer> dataBitsSupported = makeDataBitsSupported();
        final SerialPort serialPort = new SerialPort(baudRatesSupported, flowControl, parity, stopBitsSupported,
                dataBitsSupported);
        final String productName = ProjectBaseCapabilities.getProductName();
        final String description = ProjectBaseCapabilities.getDescription();
        final String manufacturer = ProjectBaseCapabilities.getManufacturer();
        return new PhysicalLinkCapabilities(primaryImage, secondaryImages, productName, description, manufacturer,
                serialPort, physType);
    }
private static PhysicalLinkCapabilities makeCapabilities ( final PhysicalLinkTypeEnum physType ) { final DigitalMedia primaryImage = ProjectBaseCapabilities . makePrimaryImage ( ) ; final List < DigitalMedia > secondaryImages = ProjectBaseCapabilities . makeSecondaryImages ( ) ; final List < Integer > baudRatesSupported = makeBaudRatesSupported ( ) ; final List < FlowControlEnum > flowControl = Arrays . asList ( FlowControlEnum . values ( ) ) ; final List < ParityEnum > parity = Arrays . asList ( ParityEnum . values ( ) ) ; final List < StopBitsEnum > stopBitsSupported = Arrays . asList ( StopBitsEnum . values ( ) ) ; final List < Integer > dataBitsSupported = makeDataBitsSupported ( ) ; final SerialPort serialPort = new SerialPort ( baudRatesSupported , flowControl , parity , stopBitsSupported , dataBitsSupported ) ; final String productName = ProjectBaseCapabilities . getProductName ( ) ; final String description = ProjectBaseCapabilities . getDescription ( ) ; final String manufacturer = ProjectBaseCapabilities . getManufacturer ( ) ; return new PhysicalLinkCapabilities ( primaryImage , secondaryImages , productName , description , manufacturer , serialPort , physType ) ; }
Creates an object that is populated with placeholder values for a Capabilities object.
Creates an object that is populated with placeholder values for a Capabilities object .