Real-Time Java AOCS Framework v1.0 API Specification

JbedSmmApplication.Factories
Class TestSmmUnitFactory

java.lang.Object
  |
  +--RtjAocsFramework.Factories.UnitFactory
        |
        +--JbedSmmApplication.Factories.TestSmmUnitFactory

public class TestSmmUnitFactory
extends UnitFactory

Factory for unit management components of the SMM prototype application deployed on a desktop. This factory provides a method to create the unit mode managers, analog sensor, and analog actuator.

Copyright: see the Copyright Notice.

Version:
1.0
Author:
V. Cechticky/A. Pasetti (ETH-Zurich)

Constructor Summary
TestSmmUnitFactory()
          Create an application specific unit factory, initialize the sizes of the unit trigger lists, and initialize the sizes of the command lists in the unit managers.
 
Method Summary
 TestSmmAnalogActuator getAnalogActuator()
          Return the analog actuator.
 TestSmmAnalogSensor getAnalogSensor()
          Return the analog sensor.
 ModeManager getModeManager(int n)
          Return the n-th unit mode manager as an instance of type ModeManager.
 UnitModeManager getUnitModeManager(int n)
          Return the n-th unit mode manager as an instance of type UnitModeManager.
 void makeAnalogActuator(DataSource actuatorData, RecoveryAction recoveryAction)
          Make and configure the test actuator.
 void makeAnalogSensor(DataSink sensorData, RecoveryAction recoveryAction)
          Make and configure the test sensor.
 void makeModeManager(ModeManager master, ModeChangeAction mca)
          The method creates and configures the unit mode managers.
 
Methods inherited from class RtjAocsFramework.Factories.UnitFactory
getUnitManager, getUnitTriggerStrategy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestSmmUnitFactory

public TestSmmUnitFactory()
Create an application specific unit factory, initialize the sizes of the unit trigger lists, and initialize the sizes of the command lists in the unit managers.

Method Detail

makeModeManager

public void makeModeManager(ModeManager master,
                            ModeChangeAction mca)
The method creates and configures the unit mode managers. After being created and configured, the mode managers are plugged into the unit manager. The mode managers are created as follower mode managers.

Parameters:
master - the master mode manager that is tracked by the unit mode managers (the same for all unit mode managers)
mca - the mode change action that is associated to the unit mode managers (the same for all unit mode managers)

getModeManager

public ModeManager getModeManager(int n)
Return the n-th unit mode manager as an instance of type ModeManager.


getUnitModeManager

public UnitModeManager getUnitModeManager(int n)
Return the n-th unit mode manager as an instance of type UnitModeManager.


makeAnalogSensor

public void makeAnalogSensor(DataSink sensorData,
                             RecoveryAction recoveryAction)
Make and configure the test sensor.

Parameters:
sensorData - the data item where acquired data will be stored

makeAnalogActuator

public void makeAnalogActuator(DataSource actuatorData,
                               RecoveryAction recoveryAction)
Make and configure the test actuator.

Parameters:
actuatorData - the data item whose values will be used by actuator

getAnalogActuator

public TestSmmAnalogActuator getAnalogActuator()
Return the analog actuator.


getAnalogSensor

public TestSmmAnalogSensor getAnalogSensor()
Return the analog sensor.


Real-Time Java AOCS Framework v1.0 API Specification

Real-Time Java AOCS Framework project home page

Automatic Control Laboratory, ETH Zuerich
Physikstrasse 3
CH-8092 Zuerich, Switzerland