Пример #1
0
 private com.relteq.sirius.jaxb.Phase restorePhase(Phases db_ph) throws TorqueException {
   com.relteq.sirius.jaxb.Phase phase = factory.createPhase();
   phase.setNema(BigInteger.valueOf(db_ph.getNema()));
   phase.setProtected(db_ph.getIsProtected());
   phase.setPermissive(db_ph.getPermissive());
   phase.setLag(db_ph.getLag());
   phase.setRecall(db_ph.getRecall());
   phase.setMinGreenTime(db_ph.getMinGreenTime());
   phase.setYellowTime(db_ph.getYellowTime());
   phase.setRedClearTime(db_ph.getRedClearTime());
   @SuppressWarnings("unchecked")
   List<PhaseLinks> db_phl_l = db_ph.getPhaseLinkss();
   com.relteq.sirius.jaxb.LinkReferences linkrefs = factory.createLinkReferences();
   for (PhaseLinks db_phl : db_phl_l) linkrefs.getLinkReference().add(restorePhaseLink(db_phl));
   phase.setLinkReferences(linkrefs);
   return phase;
 }
Пример #2
0
 @Test
 public void shouldDefinePhaseClasses() {
   assertThat(Phases.getPhaseClasses().size(), greaterThan(4));
 }