<commit_before>package model.map.tile.nodeRepresentation.nodes.child;

import model.map.tile.nodeRepresentation.nodes.Node;
import model.map.tile.nodeRepresentation.nodes.direction.ChildDirection;
import model.map.tile.nodeRepresentation.nodes.parent.ParentNode;

/**
 * Represents the edge of a tile
 */
public abstract class ChildNode extends Node {
    private ParentNode parentNode;
    private ChildNode neighboringTileChild;
    private boolean isComplete;
    private boolean defaultCompletionState;
    private ChildDirection direction;

    public ChildNode(ParentNode parentNode){
        this.parentNode = parentNode;
    }

    public void setDirection(ChildDirection direction) {
        this.direction = direction;
    }

    //used to determine if a linking and placement is valid
    public abstract boolean canConnectWithNeighbor(ChildNode neighbor);
    public abstract boolean canConnectWithNeighbor(ChildLandNode neighborLand);
    public abstract boolean canConnectWithNeighbor(ChildRiverNode neighborRiver);
    public abstract boolean canConnectWithNeighbor(ChildSeaNode neighborSea);


    public boolean isComplete() {
        return isComplete;
    }

    public void setComplete(boolean complete) {
        isComplete = complete;
    }

    public boolean getDefaultCompletionState(){return defaultCompletionState;}

    public void setDefaultCompletionState(boolean defaultCompletionState){
        this.defaultCompletionState = defaultCompletionState;
    }

    public ParentNode getParentNode() {
        return parentNode;
    }

    public ChildNode getNeighboringTileChild() {
        return neighboringTileChild;
    }

    public void setNeighboringTileChild(ChildNode neighboringTileChild) {
        this.neighboringTileChild = neighboringTileChild;
        setComplete(true);

    }

    public void removePointerToNeighbor(){
        this.neighboringTileChild = null;
        isComplete = defaultCompletionState;
    }
}<commit_msg>getter for direction<commit_after>package model.map.tile.nodeRepresentation.nodes.child;

import model.map.tile.nodeRepresentation.nodes.Node;
import model.map.tile.nodeRepresentation.nodes.direction.ChildDirection;
import model.map.tile.nodeRepresentation.nodes.parent.ParentNode;

/**
 * Represents the edge of a tile
 */
public abstract class ChildNode extends Node {
    private ParentNode parentNode;
    private ChildNode neighboringTileChild;
    private boolean isComplete;
    private boolean defaultCompletionState;
    private ChildDirection direction;

    public ChildNode(ParentNode parentNode){
        this.parentNode = parentNode;
    }

    public void setDirection(ChildDirection direction) {
        this.direction = direction;
    }

    //used to determine if a linking and placement is valid
    public abstract boolean canConnectWithNeighbor(ChildNode neighbor);
    public abstract boolean canConnectWithNeighbor(ChildLandNode neighborLand);
    public abstract boolean canConnectWithNeighbor(ChildRiverNode neighborRiver);
    public abstract boolean canConnectWithNeighbor(ChildSeaNode neighborSea);


    public boolean isComplete() {
        return isComplete;
    }

    public void setComplete(boolean complete) {
        isComplete = complete;
    }

    public boolean getDefaultCompletionState(){return defaultCompletionState;}

    public void setDefaultCompletionState(boolean defaultCompletionState){
        this.defaultCompletionState = defaultCompletionState;
    }

    public ParentNode getParentNode() {
        return parentNode;
    }

    public ChildNode getNeighboringTileChild() {
        return neighboringTileChild;
    }

    public void setNeighboringTileChild(ChildNode neighboringTileChild) {
        this.neighboringTileChild = neighboringTileChild;
        setComplete(true);

    }

    public void removePointerToNeighbor(){
        this.neighboringTileChild = null;
        isComplete = defaultCompletionState;
    }

    public ChildDirection getDirection() {
        return direction;
    }
}
{'fraction_non_alphanumeric': 0.06186335403726708, 'fraction_numerical': 0.0, 'mean_word_length': 3.88, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3021370', 'n_tokens_mistral': 998, 'n_tokens_neox': 957, 'n_words': 249}