예제 #1
0
파일: Keyword.cs 프로젝트: kehh/biolink
 public AttributeKeyword(String keyword, CharacterAttributeType type, int defval, bool useDefault)
     : base(keyword, KeywordType.Attribute)
 {
     _default = defval;
     _useDefault = useDefault;
     _charAttrType = type;
 }
예제 #2
0
        public static AttributeKeyword findAttributeKeyword(CharacterAttributeType attrType)
        {
            foreach (Keyword kwd in KEYWORDS.Values)
            {
                if (kwd is AttributeKeyword)
                {
                    AttributeKeyword attrKwd = (AttributeKeyword)kwd;
                    if (attrKwd.getAttributeType() == attrType)
                    {
                        return(attrKwd);
                    }
                }
            }

            return(null);
        }
예제 #3
0
 public AttributeKeyword(String keyword, CharacterAttributeType type, int defval, bool useDefault) : base(keyword, KeywordType.Attribute)
 {
     _default      = defval;
     _useDefault   = useDefault;
     _charAttrType = type;
 }
예제 #4
0
파일: Keyword.cs 프로젝트: kehh/biolink
        public static AttributeKeyword findAttributeKeyword(CharacterAttributeType attrType)
        {
            foreach (Keyword kwd in KEYWORDS.Values) {
            if (kwd is AttributeKeyword) {
                AttributeKeyword attrKwd = (AttributeKeyword) kwd;
                if (attrKwd.getAttributeType() == attrType) {
                    return attrKwd;
                }
            }
            }

            return null;
        }
 public void set(CharacterAttributeType attrType, int value)
 {
     _attrMap[attrType] = value;
 }
 public int Get(CharacterAttributeType attrType)
 {
     return(_attrMap[attrType]);
 }
예제 #7
0
파일: ParserState.cs 프로젝트: kehh/biolink
 public void set(CharacterAttributeType attrType, int value)
 {
     _attrMap[attrType] = value;
 }
예제 #8
0
파일: ParserState.cs 프로젝트: kehh/biolink
 public int Get(CharacterAttributeType attrType)
 {
     return _attrMap[attrType];
 }