Commit 56fe94bb authored by Julian Treiber's avatar Julian Treiber

added getter for crop parameters

parent 0ecb2eee
Pipeline #221476 failed with stages
in 17 seconds
......@@ -178,7 +178,7 @@ public class ArchitectureElementData {
@Nullable
public List<Integer> getPadding(){
String pad = ((LayerSymbol) getElement()).getStringValue(AllPredefinedLayers.PADDING_NAME).get();
if(pad.equals("same")){
......@@ -213,4 +213,12 @@ public class ArchitectureElementData {
return Arrays.asList(0,0,0,0,topPad,bottomPad,leftPad,rightPad);
}
public boolean getStart() {
return getLayerSymbol().getBooleanValue(AllPredefinedLayers.START_NAME).get();
}
public boolean getEnd() {
return getLayerSymbol().getBooleanValue(AllPredefinedLayers.END_NAME).get();
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment