cim1.model.ConsistencyCheck Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powsybl-cim1-model Show documentation
Show all versions of powsybl-cim1-model Show documentation
CIM ENTSO-E V1 model generated by CIM Gateway tool
/**
* 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())) );
}
}