예제 #1
0
파일: Smv.cs 프로젝트: vi34/fb2smv
 public static bool IsSimple(ISmvType type)
 {
     if (type is BoolSmvType || type is IntSmvType || type is RealSmvType)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #2
0
파일: Common.cs 프로젝트: vi34/fb2smv
 public Variable(string name, string comment, string fbType, Direction direction, string type, int arrSize,
                 string initialValue, ISmvType smvType, bool constant = false)
 {
     Name         = name;
     Comment      = comment;
     FBType       = fbType;
     Direction    = direction;
     Type         = type;
     ArraySize    = arrSize;
     InitialValue = initialValue;
     SmvType      = smvType;
     IsConstant   = constant;
 }