All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.tsl2.nano.structure.INode Maven / Gradle / Ivy

The newest version!
/*
 * File: $HeadURL$
 * Id  : $Id$
 * 
 * created by: Tom
 * created on: 21.01.2015
 * 
 * Copyright: (c) Thomas Schneider 2015, all rights reserved
 */
package de.tsl2.nano.structure;

import java.util.List;

/**
 * simplified generic tree or net interface
 * 
 * @param  nodes core or content
 * @param  nodes connection type
 * @author Tom
 * @version $Revision$
 */
public interface INode {
    /** return a list of all children */
    List> getConnections();

    /** current nodes core or content */
    CORE getCore();

    /** goes through the given path filter */
    INode path(String... nodeFilters);

	/**
	 * creates a new connection
	 * 
	 * @param destination node to connect to
	 * @param descriptor connection description
	 * @return new created connection
	 */
	IConnection connect(ANode destination, CONNECTOR descriptor);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy