Unit state = ship.get("State");
Unit stateTime = ship.get("StateTime");
Unit stateTimeCount = ship.get("StateTimeCount");
Double rand = Math.random();
Action ac = ru.inProbability(rand);
for( String str : ac.getActionMap().keySet() ){
Object[] ob = ac.getActionMap().get(str);
if( str.equalsIgnoreCase("SetState") ){
// System.out.println(ru.getOwnerName() + ": " + str + ": " + ob[0]);
state.setData(ob[0]);
if( ob.length >= 2 ){