日期:2014-05-20 浏览次数:20820 次
System.out.println("ChatServer.TeacherGrade.get(MyFriIntegerNum) "+ChatServer.TeacherGrade.get(MyFriIntegerNum));
System.out.println("ChatServer.TeacherGrade.get(MyFriIntegerNum).myclientds "+ChatServer.TeacherGrade.get(MyFriIntegerNum).myclientds);
System.out.println("ChatServer.TeacherGrade.get(MyFriIntegerNum).myclientds.get(MyIndexInteger) "+ChatServer.TeacherGrade.get(MyFriIntegerNum).myclientds.get(MyIndexInteger));
System.out.println("ChatServer.TeacherGrade.get(MyFriIntegerNum).myclientds.get(MyIndexInteger).MyState "+ChatServer.TeacherGrade.get(MyFriIntegerNum).myclientds.get(MyIndexInteger).MyState)
public class WorkingSysMemDS {
HashMap<Integer,MyUserDS> myuserds = new HashMap<Integer,MyUserDS>();
HashMap<Integer,MyUserDS> myclientds = new HashMap<Integer,MyUserDS>();
Integer MyUserKeyNum = -1;
byte MyUserGrade = 0;
boolean MyState = true;
public Integer getMyUserKeyNum() {
return MyUserKeyNum;
}
public void setMyCodestate(boolean state){
MyState = state;
}
public void setMyUserKeyNum(Integer OurUserKeyNum) {
MyUserKeyNum = OurUserKeyNum;
}
public byte getMyUserGrade() {
return MyUserGrade;
}
public void setMyUserGrade(byte UserGrade) {
MyUserGrade = UserGrade;
}
public WorkingSysMemDS(Integer MyUserKey,byte i,boolean state,String MyFriRole){
MyUserKeyNum = MyUserKey;
MyUserGrade = i;
MyState = state;
if(MyFriRole.equals("Cus")){
myuserds.put(MyUserKeyNum, new MyUserDS(MyUserKeyNum,MyUserGrade,MyState));
}else{
myclientds.put(MyUserKeyNum, new MyUserDS(MyUserKeyNum,MyUserGrade,MyState));
}
}
}
for(Integer i = 0;i<203;i++){
for(Integer j= 0;j<203;j++){
TeacherGrade.put(i, new WorkingSysMemDS(j,(byte)1,false,"Mem"));
}
}