X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=system%2Fgeneral%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fsystem%2Fgraph%2Fcomponent%2FExternalRequiredInterfaceNode.java;h=5cb156ae3ef7b7f79712c3f790750cc6beae3525;hb=8de36ff0206c996baf3ee4adc3e2293b12ff5f39;hp=3b195a65742089d837680640ddcc89e2383dba10;hpb=9bc96feb1a8b20fdb87edbfca54297e206229112;p=utils diff --git a/system/general/src/main/java/org/wamblee/system/graph/component/ExternalRequiredInterfaceNode.java b/system/general/src/main/java/org/wamblee/system/graph/component/ExternalRequiredInterfaceNode.java index 3b195a65..5cb156ae 100644 --- a/system/general/src/main/java/org/wamblee/system/graph/component/ExternalRequiredInterfaceNode.java +++ b/system/general/src/main/java/org/wamblee/system/graph/component/ExternalRequiredInterfaceNode.java @@ -1,47 +1,59 @@ /* * Copyright 2008 the original author or 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.wamblee.system.graph.component; +import org.wamblee.system.core.Component; import org.wamblee.system.core.RequiredInterface; import org.wamblee.system.graph.Node; /** - * Represents an externally required interface of a container. + * Represents an externally required interface of a container. + * * @author Erik Brakkee - * */ public class ExternalRequiredInterfaceNode implements Node { - - private RequiredInterface _required; + private Component component; + + private RequiredInterface required; - public ExternalRequiredInterfaceNode(RequiredInterface aRequired) { - _required = aRequired; + /** + * Creates a new ExternalRequiredInterfaceNode object. + * + */ + public ExternalRequiredInterfaceNode(Component aComponent, + RequiredInterface aRequired) { + component = aComponent; + required = aRequired; } - + @Override public String getName() { - return _required.getName(); + return required.getName(); } - + + public Component getComponent() { + return component; + } + public RequiredInterface getRequired() { - return _required; + return required; } - + @Override public String toString() { - return "EXTERNAL" + ":" + _required; + return component.getQualifiedName() + ":" + required; } }