C# Класс AddressMatch.Training.TrainMachine

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
LevelMask System.UInt16
PlaceMask System.UInt16

Открытые методы

Метод Описание
Train ( List list, bool withException ) : int

Train the AddrSet, string must be wrapped in InsertElement

TrainMachine ( AddrSet addrset ) : System

Приватные методы

Метод Описание
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

Описание методов

Train() публичный Метод

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
Результат int

TrainMachine() публичный Метод

public TrainMachine ( AddrSet addrset ) : System
addrset AddrSet
Результат System

Описание свойств

LevelMask публичное статическое свойство

public static UInt16,System LevelMask
Результат System.UInt16

PlaceMask публичное статическое свойство

public static UInt16,System PlaceMask
Результат System.UInt16