Package it.unito.di.logic.exception

Examples of it.unito.di.logic.exception.CommitmentAlreadyAddedException


  private void createGroupCommitmentInternal(Commitment c) throws CommitmentAlreadyAddedException {
    // CHECK IF COMMITMENT IS ALREADY IN INTERACTION STATE
    for (Commitment actualC : allCommitments) {
      // errore se commitment uguali E se creditori sono ENTRAMBI GROUP_ROLE
      if (actualC.equals(c) && actualC.getCreditor().getType() == c.getCreditor().getType()) {
        throw new CommitmentAlreadyAddedException(c);
      }
    }
   
    allCommitments.add(c);
    logger.trace("Commitment added, actual allCommitment status:\n"+printHashSet(allCommitments));
View Full Code Here


 
  private void createConcreteCommitmentInternal(Commitment c) throws CommitmentAlreadyAddedException {
    // CHECK IF COMMITMENT IS ALREADY IN INTERACTION STATE
    for (Commitment actualC : allCommitments) {
      if (actualC.equals(c)) {
        throw new CommitmentAlreadyAddedException(c);
      }
    }
   
    allCommitments.add(c);
    logger.trace("Commitment added, actual allCommitment status:\n"+printHashSet(allCommitments));
View Full Code Here

 
  private void createConcreteCommitmentInternal(Commitment c) throws CommitmentAlreadyAddedException {
    // CHECK IF COMMITMENT IS ALREADY IN INTERACTION STATE
    for (Commitment actualC : allCommitments) {
      if (actualC.equals(c)) {
        throw new CommitmentAlreadyAddedException(c);
      }
    }
   
    allCommitments.add(c);
    logger.trace("Commitment added, actual allCommitment status:\n"+printHashSet(allCommitments));
View Full Code Here

  private void createGroupCommitmentInternal(Commitment c) throws CommitmentAlreadyAddedException {
    // CHECK IF COMMITMENT IS ALREADY IN INTERACTION STATE
    for (Commitment actualC : allCommitments) {
      // errore se commitment uguali E se creditori sono ENTRAMBI GROUP_ROLE
      if (actualC.equals(c) && actualC.getCreditor().getType() == c.getCreditor().getType()) {
        throw new CommitmentAlreadyAddedException(c);
      }
    }
   
    allCommitments.add(c);
    logger.trace("Commitment added, actual allCommitment status:\n"+printHashSet(allCommitments));
View Full Code Here

TOP

Related Classes of it.unito.di.logic.exception.CommitmentAlreadyAddedException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.