Example #1
0
File: Smv.cs Project: vi34/fb2smv
 public static bool IsSimple(ISmvType type)
 {
     if (type is BoolSmvType || type is IntSmvType || type is RealSmvType)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #2
0
 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;
 }