Пример #1
0
        static HCFeatureSystem()
        {
            Anchor = new FeatureSymbol(Guid.NewGuid().ToString()) { Description = "anchor" };
            Segment = new FeatureSymbol(Guid.NewGuid().ToString()) { Description = "segment" };
            Boundary = new FeatureSymbol(Guid.NewGuid().ToString()) { Description = "boundary" };
            Morph = new FeatureSymbol(Guid.NewGuid().ToString()) { Description = "morph" };

            Type = new SymbolicFeature(Guid.NewGuid().ToString(), Anchor, Segment, Boundary, Morph) { Description = "Type" };

            Dirty = new FeatureSymbol(Guid.NewGuid().ToString()) { Description = "Dirty" };
            Clean = new FeatureSymbol(Guid.NewGuid().ToString()) { Description = "Clean" };

            Modified = new SymbolicFeature(Guid.NewGuid().ToString(), Dirty, Clean)
                {
                    Description = "Modified",
                    DefaultValue = new SymbolicFeatureValue(Clean)
                };

            Deleted = new FeatureSymbol(Guid.NewGuid().ToString()) {Description = "Deleted"};
            NotDeleted = new FeatureSymbol(Guid.NewGuid().ToString()) {Description = "NotDeleted"};

            Deletion = new SymbolicFeature(Guid.NewGuid().ToString(), Deleted, NotDeleted)
                {
                    Description = "Deletion",
                    DefaultValue = new SymbolicFeatureValue(NotDeleted)
                };

            LeftSide = new FeatureSymbol(Guid.NewGuid().ToString()) { Description = "LeftSide" };
            RightSide = new FeatureSymbol(Guid.NewGuid().ToString()) { Description = "RightSide" };

            AnchorType = new SymbolicFeature(Guid.NewGuid().ToString(), LeftSide, RightSide) { Description = "AnchorType" };

            StrRep = new StringFeature(Guid.NewGuid().ToString()) {Description = "StrRep"};

            Allomorph = new StringFeature(Guid.NewGuid().ToString()) {Description = "Allomorph"};

            Instance = new HCFeatureSystem();

            LeftSideAnchor = FeatureStruct.New().Symbol(Anchor).Symbol(LeftSide).Value;
            RightSideAnchor = FeatureStruct.New().Symbol(Anchor).Symbol(RightSide).Value;
        }
Пример #2
0
        static HCFeatureSystem()
        {
            Anchor = new FeatureSymbol(Guid.NewGuid().ToString())
            {
                Description = "anchor"
            };
            Segment = new FeatureSymbol(Guid.NewGuid().ToString())
            {
                Description = "segment"
            };
            Boundary = new FeatureSymbol(Guid.NewGuid().ToString())
            {
                Description = "boundary"
            };
            Morph = new FeatureSymbol(Guid.NewGuid().ToString())
            {
                Description = "morph"
            };

            Type = new SymbolicFeature(Guid.NewGuid().ToString(), Anchor, Segment, Boundary, Morph)
            {
                Description = "Type"
            };

            Dirty = new FeatureSymbol(Guid.NewGuid().ToString())
            {
                Description = "Dirty"
            };
            Clean = new FeatureSymbol(Guid.NewGuid().ToString())
            {
                Description = "Clean"
            };

            Modified = new SymbolicFeature(Guid.NewGuid().ToString(), Dirty, Clean)
            {
                Description  = "Modified",
                DefaultValue = new SymbolicFeatureValue(Clean)
            };

            Deleted = new FeatureSymbol(Guid.NewGuid().ToString())
            {
                Description = "Deleted"
            };
            NotDeleted = new FeatureSymbol(Guid.NewGuid().ToString())
            {
                Description = "NotDeleted"
            };

            Deletion = new SymbolicFeature(Guid.NewGuid().ToString(), Deleted, NotDeleted)
            {
                Description  = "Deletion",
                DefaultValue = new SymbolicFeatureValue(NotDeleted)
            };

            LeftSide = new FeatureSymbol(Guid.NewGuid().ToString())
            {
                Description = "LeftSide"
            };
            RightSide = new FeatureSymbol(Guid.NewGuid().ToString())
            {
                Description = "RightSide"
            };

            AnchorType = new SymbolicFeature(Guid.NewGuid().ToString(), LeftSide, RightSide)
            {
                Description = "AnchorType"
            };

            StrRep = new StringFeature(Guid.NewGuid().ToString())
            {
                Description = "StrRep"
            };

            Allomorph = new StringFeature(Guid.NewGuid().ToString())
            {
                Description = "Allomorph"
            };

            Instance = new HCFeatureSystem();

            LeftSideAnchor  = FeatureStruct.New().Symbol(Anchor).Symbol(LeftSide).Value;
            RightSideAnchor = FeatureStruct.New().Symbol(Anchor).Symbol(RightSide).Value;
        }