ContextUtils与LabelValueBean

本文详细介绍了Struts框架中ContextUtils类的配置方法与使用,包括多种状态与属性的设置,如支付方式、职业、国籍等,并展示了如何通过静态初始化块来填充这些配置选项。
import java.util.*;
import org.apache.struts.util.LabelValueBean;

public class ContextUtils {
public static final String USER = "user";
public static final String USER_SERVICES = "userServices";
public static final String PRICING = "pricing";
public static final String LOGIN_NAME = "loginName";
public static Vector PAYMENTSTYLE = new Vector();
public static Vector CAREER = new Vector();
public static Vector NATIONALITY = new Vector();
public static Vector USER_STATUS = new Vector();
public static Vector LAB_IP = new Vector();
public static Vector SEX = new Vector();
public static Vector ADM_RIGHTS = new Vector();
public static Vector YEAR = new Vector();
public static Vector MONTH = new Vector();
public static Vector DAY = new Vector();
public static String[] USER_STATUSS = {"","开通","锁定","暂停"};

static {
PAYMENTSTYLE.add(new LabelValueBean("1","现金支付"));
PAYMENTSTYLE.add(new LabelValueBean("2","银行转帐"));
PAYMENTSTYLE.add(new LabelValueBean("3","IP卡充值"));

CAREER.add(new LabelValueBean("1","软件工程师"));
CAREER.add(new LabelValueBean("2","业务经理"));
CAREER.add(new LabelValueBean("3","部门经理"));
CAREER.add(new LabelValueBean("4","销售经理"));

NATIONALITY.add(new LabelValueBean("1","北京"));
NATIONALITY.add(new LabelValueBean("2","天津"));
NATIONALITY.add(new LabelValueBean("3","河北"));
NATIONALITY.add(new LabelValueBean("4","辽宁"));
NATIONALITY.add(new LabelValueBean("5","河南"));
NATIONALITY.add(new LabelValueBean("6","吉林"));
NATIONALITY.add(new LabelValueBean("7","黑龙江"));
NATIONALITY.add(new LabelValueBean("8","内蒙古"));
NATIONALITY.add(new LabelValueBean("9","山东"));
NATIONALITY.add(new LabelValueBean("10","山西"));
NATIONALITY.add(new LabelValueBean("11","陕西"));
NATIONALITY.add(new LabelValueBean("12","甘肃"));
NATIONALITY.add(new LabelValueBean("13","宁夏"));
NATIONALITY.add(new LabelValueBean("14","青海"));
NATIONALITY.add(new LabelValueBean("15","新疆"));
NATIONALITY.add(new LabelValueBean("16","上海"));
NATIONALITY.add(new LabelValueBean("17","江苏"));
NATIONALITY.add(new LabelValueBean("18","浙江"));
NATIONALITY.add(new LabelValueBean("19","安徽"));
NATIONALITY.add(new LabelValueBean("20","广东"));
NATIONALITY.add(new LabelValueBean("21","海南"));
NATIONALITY.add(new LabelValueBean("22","广西"));
NATIONALITY.add(new LabelValueBean("23","云南"));
NATIONALITY.add(new LabelValueBean("24","贵州"));
NATIONALITY.add(new LabelValueBean("25","四川"));
NATIONALITY.add(new LabelValueBean("26","重庆"));
NATIONALITY.add(new LabelValueBean("27","西藏"));
NATIONALITY.add(new LabelValueBean("28","香港"));
NATIONALITY.add(new LabelValueBean("29","澳门"));
NATIONALITY.add(new LabelValueBean("30","福建"));
NATIONALITY.add(new LabelValueBean("31","江西"));
NATIONALITY.add(new LabelValueBean("32","湖南"));
NATIONALITY.add(new LabelValueBean("33","湖北"));
NATIONALITY.add(new LabelValueBean("34","台湾"));
NATIONALITY.add(new LabelValueBean("35","其他"));

USER_STATUS.add(new LabelValueBean("1","开通"));
USER_STATUS.add(new LabelValueBean("2","锁定"));
USER_STATUS.add(new LabelValueBean("3","暂停"));

SEX.add(new LabelValueBean("1","男"));
SEX.add(new LabelValueBean("2","女"));

LAB_IP.add(new LabelValueBean("192.168.0.200","192.168.0.200"));
LAB_IP.add(new LabelValueBean("192.168.0.201","192.168.0.201"));
LAB_IP.add(new LabelValueBean("192.168.0.202","192.168.0.202"));
LAB_IP.add(new LabelValueBean("192.168.0.203","192.168.0.203"));
LAB_IP.add(new LabelValueBean("192.168.0.204","192.168.0.204"));
LAB_IP.add(new LabelValueBean("192.168.0.205","192.168.0.205"));
LAB_IP.add(new LabelValueBean("192.168.0.206","192.168.0.206"));
LAB_IP.add(new LabelValueBean("192.168.0.207","192.168.0.207"));
LAB_IP.add(new LabelValueBean("192.168.0.208","192.168.0.208"));

ADM_RIGHTS.add(new LabelValueBean("只读","1"));
ADM_RIGHTS.add(new LabelValueBean("只写","2"));
ADM_RIGHTS.add(new LabelValueBean("读写","3"));

YEAR.add(new LabelValueBean("2005","2005"));
YEAR.add(new LabelValueBean("2006","2006"));
YEAR.add(new LabelValueBean("2007","2007"));
YEAR.add(new LabelValueBean("2008","2008"));
YEAR.add(new LabelValueBean("2009","2009"));
YEAR.add(new LabelValueBean("2010","2010"));
YEAR.add(new LabelValueBean("2011","2011"));
YEAR.add(new LabelValueBean("2012","2012"));
YEAR.add(new LabelValueBean("2013","2013"));
YEAR.add(new LabelValueBean("2014","2014"));

MONTH.add(new LabelValueBean("1","1"));
MONTH.add(new LabelValueBean("2","2"));
MONTH.add(new LabelValueBean("3","3"));
MONTH.add(new LabelValueBean("4","4"));
MONTH.add(new LabelValueBean("5","5"));
MONTH.add(new LabelValueBean("6","6"));
MONTH.add(new LabelValueBean("7","7"));
MONTH.add(new LabelValueBean("8","8"));
MONTH.add(new LabelValueBean("9","9"));
MONTH.add(new LabelValueBean("10","10"));
MONTH.add(new LabelValueBean("11","11"));
MONTH.add(new LabelValueBean("12","12"));

DAY.add(new LabelValueBean("1","1"));
DAY.add(new LabelValueBean("2","2"));
DAY.add(new LabelValueBean("3","3"));
DAY.add(new LabelValueBean("4","4"));
DAY.add(new LabelValueBean("5","5"));
DAY.add(new LabelValueBean("6","6"));
DAY.add(new LabelValueBean("7","7"));
DAY.add(new LabelValueBean("8","8"));
DAY.add(new LabelValueBean("9","9"));
DAY.add(new LabelValueBean("10","10"));
DAY.add(new LabelValueBean("11","11"));
DAY.add(new LabelValueBean("12","12"));
DAY.add(new LabelValueBean("13","13"));
DAY.add(new LabelValueBean("14","14"));
DAY.add(new LabelValueBean("15","15"));
DAY.add(new LabelValueBean("16","16"));
DAY.add(new LabelValueBean("17","17"));
DAY.add(new LabelValueBean("18","18"));
DAY.add(new LabelValueBean("19","19"));
DAY.add(new LabelValueBean("20","20"));
DAY.add(new LabelValueBean("21","21"));
DAY.add(new LabelValueBean("22","22"));
DAY.add(new LabelValueBean("23","23"));
DAY.add(new LabelValueBean("24","24"));
DAY.add(new LabelValueBean("25","25"));
DAY.add(new LabelValueBean("26","26"));
DAY.add(new LabelValueBean("27","27"));
DAY.add(new LabelValueBean("28","28"));
DAY.add(new LabelValueBean("29","29"));
DAY.add(new LabelValueBean("30","30"));
DAY.add(new LabelValueBean("31","31"));
}
}
(Mathcad+Simulink仿真)基于扩展描述函数法的LLC谐振变换器小信号分析设计内容概要:本文围绕“基于扩展描述函数法的LLC谐振变换器小信号分析设计”展开,结合MathcadSimulink仿真工具,系统研究LLC谐振变换器的小信号建模方法。重点利用扩展描述函数法(Extended Describing Function Method, EDF)对LLC变换器在非线性工作条件下的动态特性进行线性化近似,建立适用于频域分析的小信号模型,并通过Simulink仿真验证模型准确性。文中详细阐述了建模理论推导过程,包括谐振腔参数计算、开关网络等效处理、工作模态分析及频响特性提取,最后通过仿真对比验证了该方法在稳定性分析控制器设计中的有效性。; 适合人群:具备电力电子、自动控制理论基础,熟悉Matlab/Simulink和Mathcad工具,从事开关电源、DC-DC变换器或新能源变换系统研究的研究生、科研人员及工程技术人员。; 使用场景及目标:①掌握LLC谐振变换器的小信号建模难点解决方案;②学习扩展描述函数法在非线性系统线性化中的应用;③实现高频LLC变换器的环路补偿稳定性设计;④结合Mathcad进行公式推导参数计算,利用Simulink完成动态仿真验证。; 阅读建议:建议读者结合Mathcad中的数学推导Simulink仿真模型同步学习,重点关注EDF法的假设条件适用范围,动手复现建模步骤和频域分析过程,以深入理解LLC变换器的小信号行为及其在实际控制系统设计中的应用。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值