All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cim1.model.ConsistencyCheck Maven / Gradle / Ivy

There is a newer version: 2.4.1
Show newest version
/**
 * Copyright (c) 2016, All partners of the iTesla project (http://www.itesla-project.eu/consortium)
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package cim1.model;

/**
 *
 * This file has been automatically generated by CIMGateway
 *
 */

public class ConsistencyCheck {
    
    private boolean consistent;
    private String message;

    /**
     * Constructor of a Consistency Check
     * The default value of the boolean is false
     * The default value of the message is ""
     */
    public ConsistencyCheck() {
        this.consistent = false;
        this.message = "";
    }
    
    public ConsistencyCheck(final boolean consistent, final String message) {
        this.consistent = consistent;
        this.message = message;
    }

    public final boolean isConsistent() { 
        return consistent; 
    }
      
    public final String getMessage() { 
        return message; 
    }
    
    public void setConsistent(final boolean consistent) {
        this.consistent = consistent;
    }
    
    public void setMessage(final String message) {
        this.message = message;
    }
    
    public void set(final boolean consistent, final String message) {
        this.consistent = consistent;
        this.message = message;
    }

    public boolean equals(final ConsistencyCheck cc) {  
        
        if (cc == null || !(cc instanceof ConsistencyCheck)) {
            return false;
        }
        
        return ( (this.consistent == (cc.isConsistent())) 
                && (this.message.equals(cc.getMessage())) );
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy