clarion.options.transfer.subsys
Class AcsTransfer

java.lang.Object
  extended byclarion.options.transfer.Transfer
      extended byclarion.options.transfer.subsys.AcsTransfer

public class AcsTransfer
extends Transfer


Field Summary
protected  int ACS_COMP
           
protected  int ACS_COMP_NUM
          constants indicate different components in 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 COMP
           
protected  int EX_NET
           
protected  int FR
           
protected  int GS_NET
           
protected  int IDN
           
protected  int IRL
           
protected  int RER
           
protected  int WM_NET
           
 
Fields inherited from class clarion.options.transfer.Transfer
AMN, BL, GKS, global, INPUT, loadedFile, loadedFileName, manager, OFF, ON, OUTPUT, SAVE_TO_FILE, SAVE_TO_GLOBAL, saveCode, savedFile, savedFileName, subsysPath, sysDir, sysOptions, sysPath, sysSettingDir, sysSettingPath, TL, userOptions, WM
 
Constructor Summary
AcsTransfer(TransferManager manager, 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 getGsOption()
          Get the Goal Structure type.
 boolean getWmOption()
          Get the Working Memory option to check if it is selected or not.
 void initAcsRules(int netType, int netIdx, int ruleType, int setIdx, Option[] opts)
           
 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 isGsIdnOn()
          Get the Goal Structure IDN option to check if the IDN is selected or not.
 boolean isWmIdnOn()
          Get the Working Memory IDN option to check if the IDN is selected or not.
 void load()
          the process of loading configurations from persistent storage.
 void save()
          the process of saving the options to persistent storage or to the associated Global object.
 void update()
          the process of update.
 
Methods inherited from class clarion.options.transfer.Transfer
getOptions, getOptions, loadOptions, saveOptions, searchFile, searchFile, setGlobal, setSaveCode, setupGenericFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACS_COMP_NUM

protected final int ACS_COMP_NUM
constants indicate different components in 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
Constructor Detail

AcsTransfer

public AcsTransfer(TransferManager manager,
                   Global global)
constructor. instantiated with the associated TransferManager object and Global object.

Method Detail

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.

load

public void load()
the process of loading configurations from persistent storage.

Overrides:
load in class Transfer

save

public void save()
the process of saving the options to persistent storage or to the associated Global object.

Overrides:
save in class Transfer

update

public void update()
Description copied from class: Transfer
the process of update. This process is necessary because some options or Global variables cannot be configured correctly at first time due to lack of information which can be known lately.

Overrides:
update in class Transfer

initAcsRules

public void initAcsRules(int netType,
                         int netIdx,
                         int ruleType,
                         int setIdx,
                         Option[] opts)