clarion.options.transfer.subsys
Class DimsTransfer

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

public class DimsTransfer
extends Transfer


Field Summary
 
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
DimsTransfer(TransferManager manager, Global global)
          constructor.
 
Method Summary
 java.lang.String getFeatureName(int type, int idx)
          the parameter 'type' starts from Global.FT_INPUT =1, not Global.FT_SYS = 0.
 int getFeatureNum(int type)
          the parameter 'type' starts from Global.FT_INPUT =1, not Global.FT_SYS = 0.
 void load()
          implement the process of loading options from persistent storage.
 void save()
          implement the process of save the options to persistent storage or to the associated Global object.
 int searchFeatureName(int type, java.lang.String name)
          the parameter 'type' starts from Global.FT_INPUT =1, not Global.FT_SYS = 0.
 void update()
          update the values of Global variables or options.
 
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
 

Constructor Detail

DimsTransfer

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

Method Detail

getFeatureNum

public int getFeatureNum(int type)
the parameter 'type' starts from Global.FT_INPUT =1, not Global.FT_SYS = 0. uesrOptions stores info starting from INPUT feature(index = 0), 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)
the parameter 'type' starts from Global.FT_INPUT =1, not Global.FT_SYS = 0. uesrOptions stores info starting from INPUT feature(index = 0), 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)
the parameter 'type' starts from Global.FT_INPUT =1, not Global.FT_SYS = 0. uesrOptions stores info starting from INPUT feature(index = 0), 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.

load

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

Overrides:
load in class Transfer

save

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

Overrides:
save in class Transfer

update

public void update()
update the values of Global variables or options.

Overrides:
update in class Transfer