clarion.options.transfer
Class TransferManager

java.lang.Object
  extended byclarion.options.transfer.TransferManager

public class TransferManager
extends java.lang.Object


Field Summary
protected  int ACS
          constants indicate the subsystems in configuration of CLARION and task-specific
protected  int ACS_COMP
           
protected  int ACS_COMP_NUM
          constants for configuration of ACS subsystem.
protected  int ACS_COR
           
protected  int ACS_GS
           
protected  int ACS_NET
           
protected  int ACS_NET_COMP_NUM
           
protected  int ACS_NET_OPT_NUM
           
protected  int ACS_WM
           
protected  int CLARION_COMP_NUM
          numbers of components in CLARION and Task-Specific configuration.
protected  int COMP
           
protected  int DIMS
          constants indicate the subsystems in configuration of CLARION and task-specific
protected  int DISPLAY
          constants indicate the subsystems in configuration of CLARION and task-specific
protected  int DISPLAY_COMP_NUM
          constants for configuration of task specific.
protected  int EX_NET
           
protected  int FR
           
protected  Global global
           
protected  int GS_NET
           
protected  int IDN
           
protected  int IRL
           
protected  int NACS
          constants indicate the subsystems in configuration of CLARION and task-specific
protected  int NACS_AEM
           
protected  int NACS_AMN
           
protected  int NACS_COMP
           
protected  int NACS_COMP_NUM
          constants for configuration of NACS subsystem.
protected  int NACS_COR
           
protected  int NACS_EM
           
protected  int NACS_GKS
           
protected  int OFF
          constants indicates one component or choice is selected or not.
protected  int ON
          constants indicates one component or choice is selected or not.
protected  int RER
           
protected  int RT
          constants indicate the subsystems in configuration of CLARION and task-specific
protected  int RT_COMP_NUM
          constants for configuration of Response Time Calculation.
protected  int SAVE_TO_FILE
          constants indicates save options to associated Global object or persistent storage
protected  int SAVE_TO_GLOBAL
          constants indicates save options to associated Global object or persistent storage
protected  int[] saveCodes
           
protected  int SUBSYS
          constants indicate the subsystems in configuration of CLARION and task-specific
protected  java.lang.String subsysPath
           
protected  int SUPER
          constants indicate the subsystems in configuration of CLARION and task-specific
protected  int SUPER_COMP
           
protected  int SUPER_COMP_NUM
          constants for configuration of Supervisory subsystem.
protected  int SUPER_MCS
           
protected  int SUPER_MS
           
protected static java.io.File sysDir
           
protected static java.lang.String sysPath
          variables for locating files.
protected  java.io.File sysSettingDir
           
protected  java.lang.String sysSettingPath
           
protected  int TASK_COMP_NUM
          numbers of components in CLARION and Task-Specific configuration.
protected  int TOTAL_COMP_NUM
          numbers of components in CLARION and Task-Specific configuration.
protected  Transfer[] transfers
          the transfers for transfer data of subsystem.
protected  int TS
          constants indicate the subsystems in configuration of CLARION and task-specific
protected  int WM_NET
           
 
Constructor Summary
TransferManager(Global global)
          constructor.
 
Method Summary
 int getAcsCompFileNum(int netType, int netIdx, int type)
          Get the number of a specified component allowed in one ACS network.
 int getAcsExNetNum()
          Get the number of ACS external networks.
 int getAmnNum()
          Get the number of AMN networks in the NACS subystem.
 int getAmnType(int netIdx)
          Deprecated.  
 java.lang.String getFeatureName(int type, int idx)
          Get the name of a feature in the specified type and order in that type.
 int getFeatureNum(int type)
          Get the number of features in the specified dimension type.
 int getGksReasoningType()
          Get the GKS reasoning method.
 int getGsOption()
          Get the Goal Structure type.
 Option[] getOptions(int dim1, int dim2, int dim3, int dim4, int dim5, int dim6)
          Get an array of particular options.
 Option getOptions(int dim1, int dim2, int dim3, int dim4, int dim5, int dim6, int dim7)
          Get a particular option.
 boolean getWmOption()
          Get the Working Memory option to check if it is selected or not.
 boolean isAcsCompOn(int netType, int netIdx, int type)
          Get ACS component option in one ACS network to check if the component is selected or not.
 boolean isAemOn()
          Get the AEM option to check if the AEM component is selected or not.
 boolean isEmOn()
          Get the EM option to check if the EM component is selected or not.
 boolean isGksOn()
          Get the GKS option to check if the GKS component is selected or not.
 boolean isGsIdnOn()
          Get the Goal Structure IDN option to check if the IDN is selected or not.
 boolean isMcsOn()
          Get the MCS option to check if the MCS component is selected or not in supervisory subsystem.
 boolean isMsOn()
          Get the MS option to check if the MS component is selected or not in supervisory subsystem.
 boolean isNacsOn()
          Check if NACS subsystem is selected or not.
 boolean isRtOn()
          Check if Response Time is selected or not.
 boolean isSupervisoryOn()
          Check if Supervisory subsystem is selected or not.
 boolean isWmIdnOn()
          Get the Working Memory IDN option to check if the IDN is selected or not.
 void load(int index)
          Load configurations from persistent storage.
 void save(int index)
          save configurations.
 java.lang.String[] searchCurrentSettings()
          Get the names of existing setting group in a simulated task.
 java.lang.String[] searchCurrentTasks()
          Get the names of existing simulated tasks.
 int searchFeatureName(int type, java.lang.String name)
          Get the order of a feature in a type with the particular name.
 void setGlobal(Global global)
          Set the associated Global object with this manager.
 void setSaveCode(int index, int code)
          Set the mode of saving options: 0: save to Global object; 1: save to persistent storage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SAVE_TO_GLOBAL

protected final int SAVE_TO_GLOBAL
constants indicates save options to associated Global object or persistent storage

See Also:
Constant Field Values

SAVE_TO_FILE

protected final int SAVE_TO_FILE
constants indicates save options to associated Global object or persistent storage

See Also:
Constant Field Values

TOTAL_COMP_NUM

protected final int TOTAL_COMP_NUM
numbers of components in CLARION and Task-Specific configuration.

See Also:
Constant Field Values

CLARION_COMP_NUM

protected final int CLARION_COMP_NUM
numbers of components in CLARION and Task-Specific configuration.

See Also:
Constant Field Values

TASK_COMP_NUM

protected final int TASK_COMP_NUM
numbers of components in CLARION and Task-Specific configuration.

See Also:
Constant Field Values

ACS

protected final int ACS
constants indicate the subsystems in configuration of CLARION and task-specific

See Also:
Constant Field Values

NACS

protected final int NACS
constants indicate the subsystems in configuration of CLARION and task-specific

See Also:
Constant Field Values

SUPER

protected final int SUPER
constants indicate the subsystems in configuration of CLARION and task-specific

See Also:
Constant Field Values

RT

protected final int RT
constants indicate the subsystems in configuration of CLARION and task-specific

See Also:
Constant Field Values

DISPLAY

protected final int DISPLAY
constants indicate the subsystems in configuration of CLARION and task-specific

See Also:
Constant Field Values

DIMS

protected final int DIMS
constants indicate the subsystems in configuration of CLARION and task-specific

See Also:
Constant Field Values

TS

protected final int TS
constants indicate the subsystems in configuration of CLARION and task-specific

See Also:
Constant Field Values

SUBSYS

protected final int SUBSYS
constants indicate the subsystems in configuration of CLARION and task-specific

See Also:
Constant Field Values

ACS_COMP_NUM

protected final int ACS_COMP_NUM
constants for configuration of ACS subsystem.

See Also:
Constant Field Values

ACS_COMP

protected final int ACS_COMP
See Also:
Constant Field Values

ACS_NET

protected final int ACS_NET
See Also:
Constant Field Values

ACS_WM

protected final int ACS_WM
See Also:
Constant Field Values

ACS_GS

protected final int ACS_GS
See Also:
Constant Field Values

ACS_NET_OPT_NUM

protected final int ACS_NET_OPT_NUM
See Also:
Constant Field Values

EX_NET

protected final int EX_NET
See Also:
Constant Field Values

WM_NET

protected final int WM_NET
See Also:
Constant Field Values

GS_NET

protected final int GS_NET
See Also:
Constant Field Values

ACS_COR

protected final int ACS_COR
See Also:
Constant Field Values

ACS_NET_COMP_NUM

protected final int ACS_NET_COMP_NUM
See Also:
Constant Field Values

IDN

protected final int IDN
See Also:
Constant Field Values

RER

protected final int RER
See Also:
Constant Field Values

IRL

protected final int IRL
See Also:
Constant Field Values

FR

protected final int FR
See Also:
Constant Field Values

COMP

protected final int COMP
See Also:
Constant Field Values

NACS_COMP_NUM

protected final int NACS_COMP_NUM
constants for configuration of NACS subsystem.

See Also:
Constant Field Values

NACS_COMP

protected final int NACS_COMP
See Also:
Constant Field Values

NACS_GKS

protected final int NACS_GKS
See Also:
Constant Field Values

NACS_AMN

protected final int NACS_AMN
See Also:
Constant Field Values

NACS_EM

protected final int NACS_EM
See Also:
Constant Field Values

NACS_AEM

protected final int NACS_AEM
See Also:
Constant Field Values

NACS_COR

protected final int NACS_COR
See Also:
Constant Field Values

SUPER_COMP_NUM

protected final int SUPER_COMP_NUM
constants for configuration of Supervisory subsystem.

See Also:
Constant Field Values

SUPER_COMP

protected final int SUPER_COMP
See Also:
Constant Field Values

SUPER_MS

protected final int SUPER_MS
See Also:
Constant Field Values

SUPER_MCS

protected final int SUPER_MCS
See Also:
Constant Field Values

RT_COMP_NUM

protected final int RT_COMP_NUM
constants for configuration of Response Time Calculation.

See Also:
Constant Field Values

DISPLAY_COMP_NUM

protected final int DISPLAY_COMP_NUM
constants for configuration of task specific.

See Also:
Constant Field Values

ON

protected final int ON
constants indicates one component or choice is selected or not.

See Also:
Constant Field Values

OFF

protected final int OFF
constants indicates one component or choice is selected or not.

See Also:
Constant Field Values

global

protected Global global

saveCodes

protected int[] saveCodes

transfers

protected Transfer[] transfers
the transfers for transfer data of subsystem.


sysPath

protected static java.lang.String sysPath
variables for locating files.


sysDir

protected static java.io.File sysDir

sysSettingPath

protected java.lang.String sysSettingPath

sysSettingDir

protected java.io.File sysSettingDir

subsysPath

protected java.lang.String subsysPath
Constructor Detail

TransferManager

public TransferManager(Global global)
constructor. instantiated with an associated Global object.

Method Detail

searchCurrentTasks

public java.lang.String[] searchCurrentTasks()
Get the names of existing simulated tasks.

Returns:
the names of tasks.

searchCurrentSettings

public java.lang.String[] searchCurrentSettings()
Get the names of existing setting group in a simulated task.

Returns:
the names of setting groups.

getOptions

public Option[] getOptions(int dim1,
                           int dim2,
                           int dim3,
                           int dim4,
                           int dim5,
                           int dim6)
Get an array of particular options.

Parameters:
dim1 - index on a subsystem. arguments dim2 through dim6 are all indices on a 6-dimension array which stores all options of a particular subsystem.

getOptions

public Option getOptions(int dim1,
                         int dim2,
                         int dim3,
                         int dim4,
                         int dim5,
                         int dim6,
                         int dim7)
Get a particular option.

Parameters:
dim1 - index on a subsystem. arguments dim2 through dim7 are all indices on a 6-dimension array which stores all options of a particular subsystem.

isNacsOn

public boolean isNacsOn()
Check if NACS subsystem is selected or not.


isSupervisoryOn

public boolean isSupervisoryOn()
Check if Supervisory subsystem is selected or not.


isRtOn

public boolean isRtOn()
Check if Response Time is selected or not.


getFeatureNum

public int getFeatureNum(int type)
Get the number of features in the specified dimension type.

Parameters:
type - the dimension type.
Returns:
the number of features in the specified dimension type.

getFeatureName

public java.lang.String getFeatureName(int type,
                                       int idx)
Get the name of a feature in the specified type and order in that type.

Parameters:
type - the dimension type.
idx - the order in that type.
Returns:
the name of a feature.

searchFeatureName

public int searchFeatureName(int type,
                             java.lang.String name)
Get the order of a feature in a type with the particular name. return -1 if the feature is not in the type.

Parameters:
type - the dimension type.
name - the feature name.
Returns:
the order of a feature in a type.

getGsOption

public int getGsOption()
Get the Goal Structure type. 0: goal stack, 1: goal list, 2: not selected.

Returns:
the Goal Structure type.

getWmOption

public boolean getWmOption()
Get the Working Memory option to check if it is selected or not.

Returns:
the Working Memory option.

getAcsExNetNum

public int getAcsExNetNum()
Get the number of ACS external networks.

Returns:
the number of ACS external networks.

isGsIdnOn

public boolean isGsIdnOn()
Get the Goal Structure IDN option to check if the IDN is selected or not.

Returns:
the Goal Structure IDN option.

isWmIdnOn

public boolean isWmIdnOn()
Get the Working Memory IDN option to check if the IDN is selected or not.

Returns:
the Goal Structure IDN option.

isAcsCompOn

public boolean isAcsCompOn(int netType,
                           int netIdx,
                           int type)
Get ACS component option in one ACS network to check if the component is selected or not.

Parameters:
netType - : external, GS or WM network.
Returns:
ACS component option.

getAcsCompFileNum

public int getAcsCompFileNum(int netType,
                             int netIdx,
                             int type)
Get the number of a specified component allowed in one ACS network.

Parameters:
netType - : external, GS or WM network.
Returns:
the number of a specified component allowed in one ACS network.

isGksOn

public boolean isGksOn()
Get the GKS option to check if the GKS component is selected or not.

Returns:
the GKS option.

getAmnNum

public int getAmnNum()
Get the number of AMN networks in the NACS subystem.

Returns:
the number of AMN networks in the NACS subystem.

isEmOn

public boolean isEmOn()
Get the EM option to check if the EM component is selected or not.

Returns:
the EM option.

isAemOn

public boolean isAemOn()
Get the AEM option to check if the AEM component is selected or not.

Returns:
the AEM option.

getAmnType

public int getAmnType(int netIdx)
Deprecated.  

Get the type of an AMN network in the NACS subystem.

Returns:
the type of an AMN network in the NACS subystem.

getGksReasoningType

public int getGksReasoningType()
Get the GKS reasoning method.

Returns:
the GKS reasoning method.

isMsOn

public boolean isMsOn()
Get the MS option to check if the MS component is selected or not in supervisory subsystem.

Returns:
the MS option.

isMcsOn

public boolean isMcsOn()
Get the MCS option to check if the MCS component is selected or not in supervisory subsystem.

Returns:
the MCS option.

setGlobal

public void setGlobal(Global global)
Set the associated Global object with this manager.

Parameters:
global - the Global object to set.

setSaveCode

public void setSaveCode(int index,
                        int code)
Set the mode of saving options: 0: save to Global object; 1: save to persistent storage.

Parameters:
index - indicates CLARION or Task-Specific configuration.
code - the mode of saving options.

load

public void load(int index)
Load configurations from persistent storage.

Parameters:
index - indicates CLARION or Task-Specific configuration.

save

public void save(int index)
save configurations.

Parameters:
index - indicates CLARION or Task-Specific configuration.