org.dyncle
Class CLTable

java.lang.Object
  extended by org.dyncle.CLTable

public class CLTable
extends java.lang.Object

Control loop management table

Author:
h-nakagawa

Field Summary
 java.util.Map<java.lang.String,CLInfo> clTable
          String: control loop's name CLInfo: individual control loop's data
 
Constructor Summary
CLTable()
           
 
Method Summary
 void addCLInfo(java.lang.String name, java.lang.String fqn, ComponentBehaviour cb, int pri, java.util.List<java.lang.String> confList)
           
 boolean canActivate(java.lang.String name)
          Checks whether the specified CL can transit to the activate state or not.
 java.util.Collection<CLInfo> getAllCLInfo()
           
 CLInfo getCLInfo(java.lang.String name)
          Finds and returns the information of control loop whose name is "name".
 java.util.List<ComponentBehaviour> getLowerPriorityCLs(java.lang.String name)
          Returns AD type components whose control loop's priority is lower than the specified one.
 void printAllCLs()
          Prints out information of all control loops.
 void removeCLInfo(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clTable

public java.util.Map<java.lang.String,CLInfo> clTable
String: control loop's name CLInfo: individual control loop's data

Constructor Detail

CLTable

public CLTable()
Method Detail

addCLInfo

public void addCLInfo(java.lang.String name,
                      java.lang.String fqn,
                      ComponentBehaviour cb,
                      int pri,
                      java.util.List<java.lang.String> confList)

removeCLInfo

public void removeCLInfo(java.lang.String name)

getCLInfo

public CLInfo getCLInfo(java.lang.String name)
Finds and returns the information of control loop whose name is "name".

Parameters:
name - name of the control loop
Returns:
corresponding control loop's information (CLInfo object)

getLowerPriorityCLs

public java.util.List<ComponentBehaviour> getLowerPriorityCLs(java.lang.String name)
Returns AD type components whose control loop's priority is lower than the specified one.

Parameters:
name - name of the control loop that should be compared with
Returns:
List of components whose control loop's priority is lower than the specified one.

canActivate

public boolean canActivate(java.lang.String name)
Checks whether the specified CL can transit to the activate state or not. If the other control loop with higher priority is running, the control loop can't transit to the activate state.

Parameters:
name -
Returns:
true if the specified CL can transit to the activate state.

printAllCLs

public void printAllCLs()
Prints out information of all control loops.


getAllCLInfo

public java.util.Collection<CLInfo> getAllCLInfo()