Show / Hide Table of Contents

Interface ILiveViewable<TStatistics>

The ILiveViewable interface, that all live viewable SessionListeners have to implement. ILiveViewables can have a multitude of ILiveViewModel as observers, that will be informed when statistics are received or the session is closed.

Namespace:
Assembly: .dll
Syntax
public interface ILiveViewable<TStatistics>
Type Parameters
Name Description
TStatistics

Methods

addViewModel(ILiveViewModel<TStatistics> viewModel)

Adds a ViewModel to the list of ViewModels that will be informed of added statistics.

Declaration
public abstract void addViewModel(ILiveViewModel<TStatistics> viewModel)
Parameters
Type Name Description
ILiveViewModel<TStatistics> viewModel

The ViewModel to add

getCurrentFile()

Returns the current (unfinished) IVISABFile.

Declaration
public abstract IVISABFile getCurrentFile()
Returns
Type Description
IVISABFile

getStatistics()

Returns a list of all statistics that were added till now.

Declaration
public abstract List<TStatistics> getStatistics()
Returns
Type Description
java.util.List<TStatistics>

notifySessionClosed()

Notifies the observing ViewModels that the session was closed. Serves as a reminder that this functionality should be implemented, but should never be called outside the classes themselves.

Declaration
public abstract void notifySessionClosed()

notifyStatisticsAdded(TStatistics addedStatistics)

Notifies the observing ViewModels that statistics were added. Serves as a reminder that this functionality should be implemented, but should never be called outside the classes themselves.

Declaration
public abstract void notifyStatisticsAdded(TStatistics addedStatistics)
Parameters
Type Name Description
TStatistics addedStatistics

The added statistics

removeViewModel(ILiveViewModel<TStatistics> viewModel)

Removes a ViewModel from the list of ViewModels that will be informed of added statistics.

Declaration
public abstract void removeViewModel(ILiveViewModel<TStatistics> viewModel)
Parameters
Type Name Description
ILiveViewModel<TStatistics> viewModel

The ViewModel to remove

In This Article
Back to top Generated by DocFX