例一:
模型文件:
int N = 2;
range n = 1..N;
tuple time{
int hours;
int minutes;
}
tuple AirLine{
time a;
time b;
}
//格式1
AirLine Section[n]= ...;
//格式2
{AirLine} Section= ...;
//格式3
AirLine Section[n]= ...;
那么对于上述三种格式在数据文件中的写法格式为:
//格式1
Section = [<<1,2>,<3,4>>,<<11,22>,<33,44>>];
//格式2
Section = {<<1,2>,<3,4>>,<<11,22>,<33,44>>};
//格式3
Section = [{<<1,2>,<3,4>>,<<11,22>,<33,44>>},{<<1,2>,<3,4>>,<<11,22>,<33,44>>}];
注意区分什么时候用[] ,什么时候用{}。