Skip to content

Commit

Permalink
moditect#27 Normalizing line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarmorling committed Jan 24, 2019
1 parent ec88a6d commit 9d60ec4
Show file tree
Hide file tree
Showing 14 changed files with 1,216 additions and 1,216 deletions.
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
/**
* Copyright 2019 The ModiTect authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.moditect.deptective.internal.graph;

import org.moditect.deptective.internal.graph.Dependency;

/**
* @author Gerd Wütherich (gw@code-kontor.io)
*/
public class Dependency {

private Node from;
private Node to;
private int aggregatdWeight;

public Dependency(Node from, Node to, int aggregatdWeight) {
this.from = from;
this.to = to;
this.aggregatdWeight = aggregatdWeight;

from.addOutgoingDependency(this);
}

public Node getFrom() {
return from;
}

public Node getTo() {
return to;
}

public int getAggregatedWeight() {
return aggregatdWeight;
}

@Override
public String toString() {
return "SimpleDependency [from=" + from + ", to=" + to + ", aggregatdWeight=" + aggregatdWeight + "]";
}
}
/**
* Copyright 2019 The ModiTect authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.moditect.deptective.internal.graph;

import org.moditect.deptective.internal.graph.Dependency;

/**
* @author Gerd Wütherich (gw@code-kontor.io)
*/
public class Dependency {

private Node from;
private Node to;
private int aggregatdWeight;

public Dependency(Node from, Node to, int aggregatdWeight) {
this.from = from;
this.to = to;
this.aggregatdWeight = aggregatdWeight;

from.addOutgoingDependency(this);
}

public Node getFrom() {
return from;
}

public Node getTo() {
return to;
}

public int getAggregatedWeight() {
return aggregatdWeight;
}

@Override
public String toString() {
return "SimpleDependency [from=" + from + ", to=" + to + ", aggregatdWeight=" + aggregatdWeight + "]";
}
}
Loading

0 comments on commit 9d60ec4

Please sign in to comment.