com.netgrif.application.engine.petrinet.domain.Node Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of application-engine Show documentation
Show all versions of application-engine Show documentation
System provides workflow management functions including user, role and data management.
package com.netgrif.application.engine.petrinet.domain;
import lombok.Getter;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;
@Document
public abstract class Node extends PetriNetObject {
@Getter
private Position position;
@Getter
private I18nString title;
public Node() {
this.setObjectId(new ObjectId());
position = new Position();
}
public void setPositionX(int x) {
position.setX(x);
}
public void setPositionY(int y) {
position.setY(y);
}
public void setPosition(int x, int y) {
position.setX(x);
position.setY(y);
}
public void setPosition(Position positionData) {
if (positionData != null) {
position.setY(positionData.getY());
position.setX(positionData.getX());
}
}
public void setTitle(I18nString title) {
this.title = title;
}
public void setTitle(String title) {
setTitle(new I18nString(title));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy