X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.structural2%2Fsrc%2Forg%2Fsimantics%2Fstructural2%2FmodelingRules%2FConnectionJudgement.java;fp=bundles%2Forg.simantics.structural2%2Fsrc%2Forg%2Fsimantics%2Fstructural2%2FmodelingRules%2FConnectionJudgement.java;h=95b87fbb8948f1910d282ab45f38a18938b5ea0f;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.structural2/src/org/simantics/structural2/modelingRules/ConnectionJudgement.java b/bundles/org.simantics.structural2/src/org/simantics/structural2/modelingRules/ConnectionJudgement.java new file mode 100644 index 000000000..95b87fbb8 --- /dev/null +++ b/bundles/org.simantics.structural2/src/org/simantics/structural2/modelingRules/ConnectionJudgement.java @@ -0,0 +1,28 @@ +package org.simantics.structural2.modelingRules; + +import org.simantics.db.Resource; + +public class ConnectionJudgement { + public static final ConnectionJudgement ILLEGAL = + new ConnectionJudgement(ConnectionJudgementType.ILLEGAL); + public static final ConnectionJudgement CANBEMADELEGAL = + new ConnectionJudgement(ConnectionJudgementType.CANBEMADELEGAL); + + public ConnectionJudgementType type; + public Resource connectionType; + public IAttachmentRelationMap attachmentRelations; + + public ConnectionJudgement(Resource connectionType) { + this.type = ConnectionJudgementType.LEGAL; + this.connectionType = connectionType; + } + + public ConnectionJudgement(ConnectionJudgementType type, Resource connectionType) { + this.type = type; + this.connectionType = connectionType; + } + + public ConnectionJudgement(ConnectionJudgementType type) { + this.type = type; + } +}