C# Class AddressMatch.Training.TrainMachine

Datei anzeigen Open project: pwq1989/AddressMatch Class Usage Examples

Public Properties

Property Type Description
LevelMask System.UInt16
PlaceMask System.UInt16

Public Methods

Method Description
Train ( List list, bool withException ) : int

Train the AddrSet, string must be wrapped in InsertElement

TrainMachine ( AddrSet addrset ) : System

Private Methods

Method Description
GetTopPostionIndex ( List ElementList, List StateList ) : int
PreliminaryCheck ( InsertElement el ) : State
TrainWithException ( List list ) : int
TrainWithNOException ( List list ) : int
_insert ( List ElementList, List StateList ) : bool
defualtRule ( State state, InsertElement el ) : bool

Method Details

Train() public method

Train the AddrSet, string must be wrapped in InsertElement
public Train ( List list, bool withException ) : int
list List InsertElements' List
withException bool Indicate whether throw exception, /// if param is false, function will return 0 if train failed, if param is true, /// function will throw TrainException with detail information
return int

TrainMachine() public method

public TrainMachine ( AddrSet addrset ) : System
addrset AddrSet
return System

Property Details

LevelMask public_oe static_oe property

public static UInt16,System LevelMask
return System.UInt16

PlaceMask public_oe static_oe property

public static UInt16,System PlaceMask
return System.UInt16