資源簡(jiǎn)介
E語(yǔ)言解析包
為滿足電力系統(tǒng)數(shù)據(jù)模型的高效描述和大量在線數(shù)據(jù)的高效交換,研發(fā)了數(shù)據(jù)模型描述語(yǔ)言E,它采用面向?qū)ο蠹夹g(shù),兼容面向關(guān)系技術(shù),吸收了XML的優(yōu)點(diǎn);在描述100節(jié)點(diǎn)CIM模型時(shí),E語(yǔ)言的效率比XML高13.6倍;E語(yǔ)言已在電力調(diào)度系統(tǒng)成功應(yīng)用。
代碼片段和文件信息
package?com;
import?java.util.List;
import?com.efile.ETable;
import?com.efile.impl.DefaultEfileParse;
import?com.util.Debug;
/**
?*?@author?王正權(quán)
?*?@email?973598066@qq.com
?*?@博客?http://tw-wangzhengquan.iteye.com/admin
?*/
public?class?MainTest?{
public?static?void?main(String[]?args)?{
try?{
DefaultEfileParse?parse?=?new?DefaultEfileParse();
//?String?file=“C:\\test\\E語(yǔ)言\\調(diào)度運(yùn)營(yíng)指標(biāo)日?qǐng)?bào)20121114.RB“;
//?String?file=“C:\\test\\E語(yǔ)言\\調(diào)度運(yùn)營(yíng)指標(biāo)月報(bào)201210.YB“;
//?String?file=“C:\\test\\testhtml.txt“;
//?String?file=“C:\\test\\橫表式.txt“;
String?file?=?“D:\\workspace\\eclipse\\founder\\elanguage\\data\\單列式.txt“;
List?list?=?parse.parseFile(file);
Debug.debug(list);
}?catch?(Exception?e)?{
e.printStackTrace();
}
}
}
評(píng)論
共有 條評(píng)論