/** * Get a specific identifier for the given component. * * @param component the object for which we want an id. * * @return a long corresponding to the given object. */ public long getParticipantIdentifier( Component component ) { if ( component == null ) { throw new IllegalArgumentException( "You must give a non null component." ); } return getNextObjectIdentifier(); }
/** * Get a specific identifier for the given component. * * @param component the object for which we want an id. * * @return a long corresponding to the given object. */ public long getParticipantIdentifier( Component component ) { if ( component == null ) { throw new IllegalArgumentException( "You must give a non null component." ); } return getNextObjectIdentifier(); }
/** * Get a specific identifier for the given component. * * @param component the object for which we want an id. * * @return a long corresponding to the given object. */ public long getParticipantIdentifier( Component component ) { if ( component == null ) { throw new IllegalArgumentException( "You must give a non null component." ); } return getNextObjectIdentifier(); }
/** * Get a specific identifier for the given interaction. If an identifier had already been affected for that * interaction, the same is given again, * * @param interaction the object for which we want an id or a ref. * * @return a long corresponding to the given object. */ public long getInteractionIdentifier( Interaction interaction ) { if ( interaction == null ) { throw new IllegalArgumentException( "You must give a non null interaction." ); } if ( interactionIdMap.containsKey( interaction ) ) { Long id = (Long) interactionIdMap.get( interaction ); return id.longValue(); } else { long id = getNextObjectIdentifier(); interactionIdMap.put( interaction, new Long( id ) ); return id; } }
/** * Get a specific identifier for the given experiemnt. If an identifier had already been affected for that * experiment, the same is given again, * * @param experiment the object for which we want an id or a ref. * * @return a long corresponding to the given object. */ public long getExperimentIdentifier( Experiment experiment ) { if ( experiment == null ) { throw new IllegalArgumentException( "You must give a non null experiment." ); } if ( experimentIdMap.containsKey( experiment ) ) { Long id = (Long) experimentIdMap.get( experiment ); return id.longValue(); } else { long id = getNextObjectIdentifier(); experimentIdMap.put( experiment, new Long( id ) ); return id; } }
/** * Get a specific identifier for the given experiemnt. If an identifier had already been affected for that * experiment, the same is given again, * * @param experiment the object for which we want an id or a ref. * * @return a long corresponding to the given object. */ public long getExperimentIdentifier( Experiment experiment ) { if ( experiment == null ) { throw new IllegalArgumentException( "You must give a non null experiment." ); } if ( experimentIdMap.containsKey( experiment ) ) { Long id = (Long) experimentIdMap.get( experiment ); return id.longValue(); } else { long id = getNextObjectIdentifier(); experimentIdMap.put( experiment, new Long( id ) ); return id; } }
/** * Get a specific identifier for the given feature. If an identifier had already been affected for that feature, the * same is given again, * * @param feature the object for which we want an id or a ref. * * @return a long corresponding to the given object. */ public long getFeatureIdentifier( Feature feature ) { if ( feature == null ) { throw new IllegalArgumentException( "You must give a non null feature." ); } if ( featureIdMap.containsKey( feature ) ) { Long id = (Long) featureIdMap.get( feature ); return id.longValue(); } else { long id = getNextObjectIdentifier(); featureIdMap.put( feature, new Long( id ) ); return id; } }
/** * Get a specific identifier for the given interactor. If an identifier had already been affected for that * interactor, the same is given again, * * @param interactor the object for which we want an id or a ref. * * @return a long corresponding to the given object. */ public long getInteractorIdentifier( Interactor interactor ) { if ( interactor == null ) { throw new IllegalArgumentException( "You must give a non null interactor." ); } if ( interactorIdMap.containsKey( interactor ) ) { Long id = (Long) interactorIdMap.get( interactor ); return id.longValue(); } else { long id = getNextObjectIdentifier(); interactorIdMap.put( interactor, new Long( id ) ); return id; } }
/** * Get a specific identifier for the given interactor. If an identifier had already been affected for that * interactor, the same is given again, * * @param interactor the object for which we want an id or a ref. * * @return a long corresponding to the given object. */ public long getInteractorIdentifier( Interactor interactor ) { if ( interactor == null ) { throw new IllegalArgumentException( "You must give a non null interactor." ); } if ( interactorIdMap.containsKey( interactor ) ) { Long id = (Long) interactorIdMap.get( interactor ); return id.longValue(); } else { long id = getNextObjectIdentifier(); interactorIdMap.put( interactor, new Long( id ) ); return id; } }
/** * Get a specific identifier for the given experiemnt. If an identifier had already been affected for that * experiment, the same is given again, * * @param experiment the object for which we want an id or a ref. * * @return a long corresponding to the given object. */ public long getExperimentIdentifier( Experiment experiment ) { if ( experiment == null ) { throw new IllegalArgumentException( "You must give a non null experiment." ); } if ( experimentIdMap.containsKey( experiment ) ) { Long id = (Long) experimentIdMap.get( experiment ); return id.longValue(); } else { long id = getNextObjectIdentifier(); experimentIdMap.put( experiment, new Long( id ) ); return id; } }
/** * Get a specific identifier for the given interactor. If an identifier had already been affected for that * interactor, the same is given again, * * @param interactor the object for which we want an id or a ref. * * @return a long corresponding to the given object. */ public long getInteractorIdentifier( Interactor interactor ) { if ( interactor == null ) { throw new IllegalArgumentException( "You must give a non null interactor." ); } if ( interactorIdMap.containsKey( interactor ) ) { Long id = (Long) interactorIdMap.get( interactor ); return id.longValue(); } else { long id = getNextObjectIdentifier(); interactorIdMap.put( interactor, new Long( id ) ); return id; } }
/** * Get a specific identifier for the given interaction. If an identifier had already been affected for that * interaction, the same is given again, * * @param interaction the object for which we want an id or a ref. * * @return a long corresponding to the given object. */ public long getInteractionIdentifier( Interaction interaction ) { if ( interaction == null ) { throw new IllegalArgumentException( "You must give a non null interaction." ); } if ( interactionIdMap.containsKey( interaction ) ) { Long id = (Long) interactionIdMap.get( interaction ); return id.longValue(); } else { long id = getNextObjectIdentifier(); interactionIdMap.put( interaction, new Long( id ) ); return id; } }
/** * Get a specific identifier for the given interaction. If an identifier had already been affected for that * interaction, the same is given again, * * @param interaction the object for which we want an id or a ref. * * @return a long corresponding to the given object. */ public long getInteractionIdentifier( Interaction interaction ) { if ( interaction == null ) { throw new IllegalArgumentException( "You must give a non null interaction." ); } if ( interactionIdMap.containsKey( interaction ) ) { Long id = (Long) interactionIdMap.get( interaction ); return id.longValue(); } else { long id = getNextObjectIdentifier(); interactionIdMap.put( interaction, new Long( id ) ); return id; } }
/** * Get a specific identifier for the given feature. If an identifier had already been affected for that feature, the * same is given again, * * @param feature the object for which we want an id or a ref. * * @return a long corresponding to the given object. */ public long getFeatureIdentifier( Feature feature ) { if ( feature == null ) { throw new IllegalArgumentException( "You must give a non null feature." ); } if ( featureIdMap.containsKey( feature ) ) { Long id = (Long) featureIdMap.get( feature ); return id.longValue(); } else { long id = getNextObjectIdentifier(); featureIdMap.put( feature, new Long( id ) ); return id; } }
/** * Get a specific identifier for the given feature. If an identifier had already been affected for that feature, the * same is given again, * * @param feature the object for which we want an id or a ref. * * @return a long corresponding to the given object. */ public long getFeatureIdentifier( Feature feature ) { if ( feature == null ) { throw new IllegalArgumentException( "You must give a non null feature." ); } if ( featureIdMap.containsKey( feature ) ) { Long id = (Long) featureIdMap.get( feature ); return id.longValue(); } else { long id = getNextObjectIdentifier(); featureIdMap.put( feature, new Long( id ) ); return id; } }