Examples of TelemetryDataTaxonomyComponent


Examples of gov.nasa.arc.mct.core.components.TelemetryDataTaxonomyComponent

    @DataProvider(name="policies")
    Object[][] generateData() {
        AbstractComponent[] components = new AbstractComponent[] {
                new AbstractComponent() {
                },
                new TelemetryDataTaxonomyComponent()
        };
       
        ViewInfo[] infos = new ViewInfo[] {
                new ViewInfo(FeedViewDerived.class,"view",ViewType.OBJECT),
                new ViewInfo(FeedViewDerived.class, "view", ViewType.EMBEDDED),
View Full Code Here

Examples of gov.nasa.arc.mct.core.components.TelemetryDataTaxonomyComponent

    @Override
    public ExecutionResult execute(PolicyContext context) {
      AbstractComponent rootComponent = PlatformAccess.getPlatform().getRootComponent();
        ExecutionResult trueResult = new ExecutionResult(context, true, EM_STR);
        TelemetryDataTaxonomyComponent component = context.getProperty(PolicyContext.PropertyName.TARGET_COMPONENT.getName(), TelemetryDataTaxonomyComponent.class);
        if (component == null || component != rootComponent)
            return trueResult;
       
        ViewType viewType = context.getProperty(PolicyContext.PropertyName.VIEW_TYPE.getName(), ViewType.class);
        return viewType != ViewType.OBJECT ? trueResult : new ExecutionResult(context, false, EM_STR);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.