static ClassicStateFactory() { double valueLO = 0.0; double valueHI = 5.0; IClassicState stateA = generateState((int)InformationArity.Binary, valueLO); IClassicState stateB = generateState((int)InformationArity.Binary, valueHI); _UsualStateCollection = generateStateCollection(stateA, stateB); }
public AbstractClassicDatatype(int numLevels, int size, bool initialize) : base() { IClassicState[] states = new IClassicState[size]; for (int index=0;index<size;index++) { states[index] = ClassicStateFactory.generateState(numLevels); } _internalCollection = ClassicStateFactory.generateStateCollection(states); if (initialize) { Initialize(); } }
public static IClassicBasis generateBasis(IClassicBasisElementCollection elementCollection, IClassicStateCollection stateCollection) { return new ClassicBasis(elementCollection, stateCollection); }