001: /*
002: * Jacareto Copyright (c) 2002-2005
003: * Applied Computer Science Research Group, Darmstadt University of
004: * Technology, Institute of Mathematics & Computer Science,
005: * Ludwigsburg University of Education, and Computer Based
006: * Learning Research Group, Aachen University. All rights reserved.
007: *
008: * Jacareto is free software; you can redistribute it and/or
009: * modify it under the terms of the GNU General Public
010: * License as published by the Free Software Foundation; either
011: * version 2 of the License, or (at your option) any later version.
012: *
013: * Jacareto is distributed in the hope that it will be useful,
014: * but WITHOUT ANY WARRANTY; without even the implied warranty of
015: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
016: * General Public License for more details.
017: *
018: * You should have received a copy of the GNU General Public
019: * License along with Jacareto; if not, write to the Free
020: * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
021: *
022: */
023:
024: package jacareto.system;
025:
026: /**
027: * A Jacareto Module.
028: *
029: * @author <a href="mailto:cspannagel@web.de">Christian Spannagel</a>
030: * @version 1.0
031: */
032: public class Module extends EnvironmentMember {
033: /** The name of the module. */
034: private String name;
035:
036: /** The name of the module's author. */
037: private String author;
038:
039: /** The version. */
040: private String version;
041:
042: /** The customization. */
043: private Customization custom;
044:
045: /** The language instance. */
046: private Language language;
047:
048: /** The absolute pathname of the module jar file. */
049: private String path;
050:
051: /**
052: * Creates a new modules instance.
053: *
054: * @param env the environment
055: * @param name the name of the module
056: * @param author the module's author
057: * @param version the version of the module
058: * @param custom the customization of the module
059: * @param language DOCUMENT ME!
060: * @param path the absolute pathname of the module jar file
061: */
062: public Module(Environment env, String name, String author,
063: String version, Customization custom, Language language,
064: String path) {
065: super (env);
066: this .name = name;
067: this .author = author;
068: this .version = version;
069: this .custom = custom;
070: this .language = language;
071: this .path = path;
072: }
073:
074: /**
075: * Returns the name of the module
076: *
077: * @return DOCUMENT ME!
078: */
079: public String getName() {
080: return name;
081: }
082:
083: /**
084: * Returns the author's name.
085: *
086: * @return DOCUMENT ME!
087: */
088: public String getAuthor() {
089: return author;
090: }
091:
092: /**
093: * Returns the version as String.
094: *
095: * @return DOCUMENT ME!
096: */
097: public String getVersion() {
098: return version;
099: }
100:
101: /**
102: * Returns the module's customization.
103: *
104: * @return DOCUMENT ME!
105: */
106: public Customization getCustomization() {
107: return custom;
108: }
109:
110: /**
111: * Returns the module's language instance.
112: *
113: * @return DOCUMENT ME!
114: */
115: public Language getLanguage() {
116: return language;
117: }
118:
119: /**
120: * Returns the pathname of the module jar file.
121: *
122: * @return DOCUMENT ME!
123: */
124: public String getAbsolutePath() {
125: return path;
126: }
127: }
|