void HOMARD_Hypothesis_i::SetUnifRefinUnRef( CORBA::Long TypeRaffDera )
{
ASSERT( myHomardHypothesis );
+ VERIFICATION( (TypeRaffDera==1) || (TypeRaffDera==-1) );
int TypeRaff, TypeDera ;
if ( TypeRaffDera == 1 )
{
TypeRaff = 1 ;
TypeDera = 0 ;
}
- else
+ else if ( TypeRaffDera == -1 )
{
TypeRaff = 0 ;
TypeDera = 1 ;
void HOMARD_Hypothesis_i::SetRefinThr( CORBA::Long TypeThR, CORBA::Double ThreshR )
{
myHomardHypothesis->SetAdapType( 1 );
- int TypeDera = myHomardHypothesis->GetUnRefType() ;
- myHomardHypothesis->SetRefinTypeDera( 1, TypeDera );
+ if ( TypeThR > 0 )
+ {
+ int TypeDera = myHomardHypothesis->GetUnRefType() ;
+ myHomardHypothesis->SetRefinTypeDera( 1, TypeDera );
+ }
myHomardHypothesis->SetRefinThr( TypeThR, ThreshR );
}
//=============================================================================
void HOMARD_Hypothesis_i::SetUnRefThr( CORBA::Long TypeThC, CORBA::Double ThreshC )
{
myHomardHypothesis->SetAdapType( 1 );
- int TypeRaff = myHomardHypothesis->GetRefinType() ;
- myHomardHypothesis->SetRefinTypeDera( TypeRaff, 1 );
+ if ( TypeThC > 0 )
+ {
+ int TypeRaff = myHomardHypothesis->GetRefinType() ;
+ myHomardHypothesis->SetRefinTypeDera( TypeRaff, 1 );
+ }
myHomardHypothesis->SetUnRefThr( TypeThC, ThreshC );
}
//=============================================================================
return myHomardHypothesis->GetAdapInit();
}
//=============================================================================
-void HOMARD_Hypothesis_i::SetLevelOutput( CORBA::Long LevelOutput )
+void HOMARD_Hypothesis_i::SetExtraOutput( CORBA::Long ExtraOutput )
{
ASSERT( myHomardHypothesis );
- myHomardHypothesis->SetLevelOutput( LevelOutput );
+ myHomardHypothesis->SetExtraOutput( ExtraOutput );
}
//=============================================================================
-CORBA::Long HOMARD_Hypothesis_i::GetLevelOutput()
+CORBA::Long HOMARD_Hypothesis_i::GetExtraOutput()
{
ASSERT( myHomardHypothesis );
- return myHomardHypothesis->GetLevelOutput();
+ return myHomardHypothesis->GetExtraOutput();
}
//=============================================================================
void HOMARD_Hypothesis_i::AddGroup( const char* Group)
myHomardHypothesis->AddGroup( Group );
}
//=============================================================================
+void HOMARD_Hypothesis_i::SupprGroup( const char* Group )
+{
+ ASSERT( myHomardHypothesis );
+ myHomardHypothesis->SupprGroup(Group);
+}
+//=============================================================================
+void HOMARD_Hypothesis_i::SupprGroups()
+{
+ ASSERT( myHomardHypothesis );
+ myHomardHypothesis->SupprGroups();
+}
+//=============================================================================
void HOMARD_Hypothesis_i::SetGroups(const HOMARD::ListGroupType& ListGroup)
{
ASSERT( myHomardHypothesis );
{
MESSAGE ("Dans AddZone pour " << NomZone << " et TypeUse = " << TypeUse ) ;
ASSERT( myHomardHypothesis );
+ VERIFICATION( (TypeUse==1) || (TypeUse==-1) );
myHomardHypothesis->SetAdapType( 0 );
int TypeRaff, TypeDera ;
if ( TypeUse == 1 )
TypeRaff = myHomardHypothesis->GetRefinType() ;
TypeDera = 1 ;
}
- else
- {
- ASSERT( "TypeUse should be 1 or -1" == 0 );
- }
myHomardHypothesis->SetRefinTypeDera( TypeRaff, TypeDera );
char* NomHypo = GetName() ;
return _gen_i->AssociateHypoZone(NomHypo, NomZone, TypeUse) ;