}
public static void main(String[] args) {
TableDataIntf td = new TableDataCommunity();
Hashtable<String, Object> opts = new Hashtable<String, Object>();
Locale.setDefault( Locale.GERMAN );
try {
Player p = new Player();
p.addCard( new Card(1,1) );
p.addCard( new Card(1,2) );
td.addPlayer( p );
td.addPlayer( new Player() );
} catch (TransportException e) {
e.printStackTrace(System.out);
CalcEngineException ex = new CalcEngineException( "My message" , e);
System.out.println(ex.getLocalizedMessage( Locale.GERMAN) );
return;
}
opts.put( CalcEngineFactory.ENGINE_PROPH_SIMS, -1 );
td.setOptions( opts );
CalculateResults results = new CalculateResults();
//Object o = TransportUtils.getDeserializedResult(new CalcHandResults().getResults( td ), res.getClass() );
results = (CalculateResults)TransportUtils.getDeserializedResult(new CalcHandResults().getResults( TransportUtils.getSerializedResult( td ), 1 ), results.getClass() );