|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ontotext.wsmo4j.common.EntityImpl org.deri.wsmo4j.choreography.signature.StateSignatureRI
public class StateSignatureRI
Reference implementation for the State Signature.
Created on Jul 26, 2005 Committed by $Author: vassil_momtchev $ $Source$
Field Summary | |
---|---|
protected Set<Controlled> |
controlledModeDefinition
|
protected Set<In> |
inModeDefinition
|
protected Set<Out> |
outModeDefinition
|
protected Set<Shared> |
sharedModeDefinition
|
protected Set<Static> |
staticModeDefinition
|
Constructor Summary | |
---|---|
StateSignatureRI(org.wsmo.common.Identifier id)
Constructor initializing a state signature with an IRI and empty sets of modes |
|
StateSignatureRI(org.wsmo.common.Identifier id,
Set<In> inModeDefinition,
Set<Out> outModeDefinition,
Set<Shared> sharedModeDefinition,
Set<Static> staticModeDefinition,
Set<Controlled> controlledModeDefinition)
Constructor initializing a state signature with an IRI and 5 sets of the specific types of modes |
|
StateSignatureRI(org.wsmo.common.Identifier id,
Set<Mode> modes)
Constructor initializing a state signature with an IRI and a set of modes |
Method Summary | |
---|---|
void |
add(Controlled mode)
Adds a mode of type Controlled |
void |
add(In mode)
Adds a mode of type In |
void |
add(Out mode)
Adds a mode of type Out |
void |
add(Set<Mode> modes)
Adds a set of modes to the respective containers |
void |
add(Shared mode)
Adds a mode of type Shared |
void |
add(Static mode)
Adds a mode of type Static |
void |
addMediator(org.wsmo.mediator.OOMediator mediator)
Adds a reference to a new oo-mediator to this element's used mediators list. |
void |
addMode(Mode mode)
Adds a particular mode to the signature |
void |
addOntology(org.omwg.ontology.Ontology ontology)
Adds an ontology to this element's imported ontologies list |
Iterator<Mode> |
iterator()
|
Set<Controlled> |
listControlledModes()
Lists the Controlled Mode |
Set<In> |
listInModes()
Lists the In Modes |
Set |
listMediators()
Returns the list of used mediators. |
Set<org.omwg.ontology.Ontology> |
listOntologies()
Returns a list of ontologies which this element imports. |
Set<Out> |
listOutModes()
Lists the Out Modes |
Set<Shared> |
listSharedModes()
Lists the Shared Modes |
Set<Static> |
listStaticModes()
Lists the Static Mode |
void |
remove(Controlled mode)
Removes an Out mode from the state signature |
void |
remove(In mode)
Removes an In mode from the state signature |
void |
remove(Out mode)
Removes an Out mode from the state signature |
void |
remove(Shared mode)
Removes an Out mode from the state signature |
void |
remove(Static mode)
Removes an Out mode from the state signature |
void |
removeMediator(org.wsmo.common.IRI iri)
Removes a reference to a oo-mediator from this element's used mediator list. |
void |
removeMediator(org.wsmo.mediator.OOMediator mediator)
Removes a reference to a mediator from this element's used mediator list. |
void |
removeMode(Mode mode)
Removes a particular mode from the state signature |
void |
removeOntology(org.wsmo.common.IRI iri)
Removes an ontology from the list of ontolgies which this element imports. |
void |
removeOntology(org.omwg.ontology.Ontology ontology)
Removes an ontology from the list of ontolgies which this element imports. |
Methods inherited from class com.ontotext.wsmo4j.common.EntityImpl |
---|
addNFPValue, addNFPValue, equals, getIdentifier, hashCode, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.wsmo.common.Entity |
---|
addNFPValue, addNFPValue, getIdentifier, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue |
Field Detail |
---|
protected Set<In> inModeDefinition
protected Set<Out> outModeDefinition
protected Set<Shared> sharedModeDefinition
protected Set<Static> staticModeDefinition
protected Set<Controlled> controlledModeDefinition
Constructor Detail |
---|
public StateSignatureRI(org.wsmo.common.Identifier id)
id
- An IRI object defining the identifier of the state signaturepublic StateSignatureRI(org.wsmo.common.Identifier id, Set<Mode> modes)
id
- An IRI object defining the identifier of the state signaturemodes
- A Set of Mode objects which define the modes in the state
signature.public StateSignatureRI(org.wsmo.common.Identifier id, Set<In> inModeDefinition, Set<Out> outModeDefinition, Set<Shared> sharedModeDefinition, Set<Static> staticModeDefinition, Set<Controlled> controlledModeDefinition)
id
- An IRI object defining the identifier of the state signatureinModeDefinition
- A Set of In mode definitionsoutModeDefinition
- A Set of Out mode definitionssharedModeDefinition
- A Set of Shared mode definitionsstaticModeDefinition
- A Set of Static mode definitionscontrolledModeDefinition
- A Set of Controlled mode definitionsMethod Detail |
---|
public Set<In> listInModes()
StateSignature
listInModes
in interface StateSignature
public Set<Out> listOutModes()
StateSignature
listOutModes
in interface StateSignature
public Set<Shared> listSharedModes()
StateSignature
listSharedModes
in interface StateSignature
public Set<Static> listStaticModes()
StateSignature
listStaticModes
in interface StateSignature
public Set<Controlled> listControlledModes()
StateSignature
listControlledModes
in interface StateSignature
public void add(In mode)
mode
- An In mode objectpublic void remove(In mode)
mode
- An In mode object to be removedpublic void add(Out mode)
mode
- An Out mode objectpublic void remove(Out mode)
mode
- An Out mode object to be removedpublic void add(Shared mode)
mode
- An Shared mode objectpublic void remove(Shared mode)
mode
- An Out mode object to be removedpublic void add(Static mode)
mode
- An Static mode objectpublic void remove(Static mode)
mode
- An Out mode object to be removedpublic void add(Controlled mode)
mode
- An Controlled mode objectpublic void remove(Controlled mode)
mode
- An Out mode object to be removedpublic void addMode(Mode mode)
StateSignature
addMode
in interface StateSignature
public void removeMode(Mode mode)
StateSignature
removeMode
in interface StateSignature
mode
- The Mode object to be removedpublic void add(Set<Mode> modes)
modes
- A set of Mode objects to be added to the state signaturepublic void addOntology(org.omwg.ontology.Ontology ontology)
StateSignature
addOntology
in interface StateSignature
ontology
- The ontology to be imported.StateSignature.removeOntology(Ontology ontology)
,
StateSignature.removeOntology(IRI iri)
public void removeOntology(org.wsmo.common.IRI iri)
StateSignature
removeOntology
in interface StateSignature
iri
- The ID of the ontology to be removed from this element's
imported ontologies list.public void removeOntology(org.omwg.ontology.Ontology ontology)
StateSignature
removeOntology
in interface StateSignature
ontology
- The ontology to be removed from this element's imported
ontologies list.public Set<org.omwg.ontology.Ontology> listOntologies()
StateSignature
listOntologies
in interface StateSignature
Ontology
public void addMediator(org.wsmo.mediator.OOMediator mediator)
StateSignature
addMediator
in interface StateSignature
mediator
- the used mediator reference#removeMediator(Mediator mediator)
public void removeMediator(org.wsmo.mediator.OOMediator mediator)
StateSignature
removeMediator
in interface StateSignature
mediator
- The mediator to be removed from this element's list of used mediators.public void removeMediator(org.wsmo.common.IRI iri)
StateSignature
removeMediator
in interface StateSignature
iri
- The ID of the mediator to be removed from this element's list of used mediators.public Set listMediators()
StateSignature
listMediators
in interface StateSignature
Mediator
public Iterator<Mode> iterator()
iterator
in interface Iterable<Mode>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |