Struct Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.DataContainer
Immutable container for automaton data - states and transitions.
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[Serializable]
public readonly struct DataContainer : ISerializable
Constructors
DataContainer(Int32, ReadOnlyArray<Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.StateData>, ReadOnlyArray<Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.Transition>, Boolean, Boolean, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>)
Declaration
[Construction(new string[]{"StartStateIndex", "States", "Transitions", "IsEpsilonFree", "UsesGroups", "IsDeterminized", "IsZero", "IsEnumerable"})]
public DataContainer(int startStateIndex, ReadOnlyArray<Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.StateData> states, ReadOnlyArray<Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.Transition> transitions, bool isEpsilonFree, bool usesGroups, bool? isDeterminized, bool? isZero, bool? isEnumerable)
Parameters
Fields
StartStateIndex
Index of start state of automaton.
Declaration
public readonly int StartStateIndex
Field Value
States
Declaration
public readonly ReadOnlyArray<Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.StateData> States
Field Value
Transitions
All automaton transitions. Transitions for the same state are stored as a contiguous block
inside this array.
Declaration
public readonly ReadOnlyArray<Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.Transition> Transitions
Field Value
Properties
IsDeterminized
Gets value indicating whether this automaton is determinized
Declaration
public readonly bool? IsDeterminized { get; }
Property Value
IsEnumerable
Declaration
public readonly bool? IsEnumerable { get; }
Property Value
IsEpsilonFree
Gets value indicating whether this automaton is epsilon-free.
Declaration
public readonly bool IsEpsilonFree { get; }
Property Value
IsZero
Gets value indicating whether this automaton is zero
Declaration
public readonly bool? IsZero { get; }
Property Value
UsesGroups
Get value indicating whether this automaton uses groups.
Declaration
public readonly bool UsesGroups { get; }
Property Value
Methods
IsConsistent()
Returns true if indices assigned to given states and their transitions are consistent with each other.
Declaration
public readonly bool IsConsistent()
Returns
With(Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>)
Declaration
public readonly Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.DataContainer With(bool? isDeterminized = null, bool? isZero = null, bool? isEnumerable = null)
Parameters
Returns
Explicit Interface Implementations
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Declaration
readonly void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Implements