@Test public void getValue() throws AcmeConversionException, ValueConversionException { DataValue value = provider.getValue("Znn.Server0.load"); assertEquals(new Float(0.0), DataValueSupport.converter.to_java(value, Float.class)); value = provider.getValue("Znn.Server0.fidelity"); assertEquals(new Integer(5), DataValueSupport.converter.to_java(value, Integer.class)); }
public DataValue getValue(String mapping) throws AcmeConversionException { IAcmeProperty property = (IAcmeProperty) ModelHelper .getElementFromQualifiedName(internalModel.getModelInstance(), mapping); return AcmeConverterSupport.convertToDataValue(property); }
AcmeSystemViewProvider implements ISystemViewProvider { public DataValue getValue(String mapping) throws AcmeConversionException { IAcmeProperty property = (IAcmeProperty) ModelHelper .getElementFromQualifiedName(internalModel.getModelInstance(), mapping); return AcmeConverterSupport.convertToDataValue(property); } }
AcmeSystemViewProvider implements ISystemViewProvider { public DataValue getValue(String mapping) throws AcmeConversionException { IAcmeProperty property = (IAcmeProperty) ModelHelper .getElementFromQualifiedName(internalModel.getModelInstance(), mapping); return AcmeConverterSupport.convertToDataValue(property); } protected  AcmeSystemViewProvider(
            IRuntimeAggregator<IAcmeSystem> runtimeAggregator,
            AbstractRainbowVaadinUI ui, ISystemConfiguration systemConfig,
            IHistoryProvider provider);  AcmeSystemViewProvider(
            IRuntimeAggregator<IAcmeSystem> runtimeAggregator,
            AbstractRainbowVaadinUI ui, ISystemConfiguration systemConfig); }
AcmeSystemViewProvider implements ISystemViewProvider { public DataValue getValue(String mapping) throws AcmeConversionException { IAcmeProperty property = (IAcmeProperty) ModelHelper .getElementFromQualifiedName(internalModel.getModelInstance(), mapping); return AcmeConverterSupport.convertToDataValue(property); } protected  AcmeSystemViewProvider(
            IRuntimeAggregator<IAcmeSystem> runtimeAggregator,
            AbstractRainbowVaadinUI ui, ISystemConfiguration systemConfig,
            IHistoryProvider provider);  AcmeSystemViewProvider(
            IRuntimeAggregator<IAcmeSystem> runtimeAggregator,
            AbstractRainbowVaadinUI ui, ISystemConfiguration systemConfig); @Override void setUseCurrent(); @Override void setUseHistorical(Date time); @Override Date getHistoricalTime(); @Override void update(); DataValue getValue(String mapping); @Override boolean isCurrent(); @Override IModelInstance<?> getView(); @Override void getHistoricalEventRange(Date start, Date end); @Override void getHistoricalEventRangeByType(String channel, Date start,
            Date end); @Override void getHistoricalModelEventRange(Date start, Date end); @Override void provideHistoricalView(IModelInstance<?> view); @Override void provideHistoricalEvent(IRainbowMessage message); @Override void provideHistoricalEventRange(List<IRainbowMessage> messages); @Override List<IRainbowMessage> getNewEvents(); @Override int getNewEventsCount(); @Override ArrayList<String> getSessionList(); @Override void setSession(String session); String getReadSession(); @Override Date getStartDate(); @Override Date getMaxDate(); @Override boolean currentSessionIsWriteSession(); @Override String getSession(); @Override List<IRainbowMessage> getHistoricalEvents(); @Override List<IRainbowMessage> getNumberOfEventsBefore(Date endTime,
            int numEvents); @Override void stop(); }
AcmeSystemViewProvider implements ISystemViewProvider { public DataValue getValue(String mapping) throws AcmeConversionException { IAcmeProperty property = (IAcmeProperty) ModelHelper .getElementFromQualifiedName(internalModel.getModelInstance(), mapping); return AcmeConverterSupport.convertToDataValue(property); } protected  AcmeSystemViewProvider(
            IRuntimeAggregator<IAcmeSystem> runtimeAggregator,
            AbstractRainbowVaadinUI ui, ISystemConfiguration systemConfig,
            IHistoryProvider provider);  AcmeSystemViewProvider(
            IRuntimeAggregator<IAcmeSystem> runtimeAggregator,
            AbstractRainbowVaadinUI ui, ISystemConfiguration systemConfig); @Override void setUseCurrent(); @Override void setUseHistorical(Date time); @Override Date getHistoricalTime(); @Override void update(); DataValue getValue(String mapping); @Override boolean isCurrent(); @Override IModelInstance<?> getView(); @Override void getHistoricalEventRange(Date start, Date end); @Override void getHistoricalEventRangeByType(String channel, Date start,
            Date end); @Override void getHistoricalModelEventRange(Date start, Date end); @Override void provideHistoricalView(IModelInstance<?> view); @Override void provideHistoricalEvent(IRainbowMessage message); @Override void provideHistoricalEventRange(List<IRainbowMessage> messages); @Override List<IRainbowMessage> getNewEvents(); @Override int getNewEventsCount(); @Override ArrayList<String> getSessionList(); @Override void setSession(String session); String getReadSession(); @Override Date getStartDate(); @Override Date getMaxDate(); @Override boolean currentSessionIsWriteSession(); @Override String getSession(); @Override List<IRainbowMessage> getHistoricalEvents(); @Override List<IRainbowMessage> getNumberOfEventsBefore(Date endTime,
            int numEvents); @Override void stop();  }