|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.cuni.jagrlib.reg.InfoPlug
public class InfoPlug
Information about a plug.
| Field Summary | |
|---|---|
java.lang.String |
description
Plug description. |
HashMapChannels |
channels
Connected channels. |
InfoPlugGUI |
infoGUI
Information about plug's GUI. |
boolean |
input
Plug type (input/output). |
InfoPlug |
linkToOrig
Link to original plug (for groups). |
boolean |
mandatory
Is the plug mandatory? |
boolean |
multi
Is the plug is "multi"? |
java.lang.String |
name
Name of plug (= interface!). |
java.util.Map<java.lang.String,java.lang.Object> |
nextInfo
This is space for all other information. |
InfoModule |
owner
Owner of plug. |
static java.lang.String |
TI_PLUG
|
java.lang.String |
type
Type of plug. |
| Constructor Summary | |
|---|---|
InfoPlug()
Default constructor. |
|
InfoPlug(InfoPlug ip)
Creates plug for groups with link to original plug. |
|
InfoPlug(java.lang.String _name,
java.lang.String _type,
boolean _input,
boolean _mandatory,
boolean _multi,
java.lang.String _description)
Creates a new InfoPlug. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
InfoModule |
getModuleOwner()
Get owner of the plug. |
int |
getState()
Plug state check. |
java.lang.String |
inputOutput()
|
boolean |
isAssigned()
Tests whether this plug is connected to another plug. |
boolean |
isFree()
Tests whether the plug is unconnected or multi-plug: i.e. - if it is posible to connect another channel. |
static boolean |
isOpposite(InfoPlug _plug1,
InfoPlug _plug2)
Tests whether the two plugs are opposite. |
void |
registryChannel(InfoChannel _channel)
Registry new connected channel. |
void |
setAssigned(boolean _assign)
Set assigning of plug. |
void |
unregistryChannel(InfoChannel _channel)
Unregistry connected channel. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String name
public java.lang.String type
public boolean input
public boolean mandatory
public boolean multi
public java.lang.String description
public InfoModule owner
InfoModule.
public HashMapChannels channels
public InfoPlugGUI infoGUI
public java.util.Map<java.lang.String,java.lang.Object> nextInfo
public InfoPlug linkToOrig
public static final java.lang.String TI_PLUG
| Constructor Detail |
|---|
public InfoPlug()
public InfoPlug(java.lang.String _name,
java.lang.String _type,
boolean _input,
boolean _mandatory,
boolean _multi,
java.lang.String _description)
_name - Name of plug._type - Type of plug._input - Plug type (input/output)._mandatory - Flag if the plug is mandatory._multi - Flag if the plug is multi._description - Description of plug.public InfoPlug(InfoPlug ip)
ip - original plug.| Method Detail |
|---|
public java.lang.String inputOutput()
public void registryChannel(InfoChannel _channel)
public void unregistryChannel(InfoChannel _channel)
public boolean isAssigned()
true if plug is connected.public void setAssigned(boolean _assign)
_assign - New value of assigned.public InfoModule getModuleOwner()
public static boolean isOpposite(InfoPlug _plug1,
InfoPlug _plug2)
_plug1 - First plug._plug2 - Second plug.
true if they are opposite.public int getState()
InfoState constants.InfoStatepublic boolean isFree()
true if it is posible to connect another channel.public java.lang.Object clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||