id
int64
46
165
content
stringlengths
38
3.18k
layer
stringclasses
3 values
summary
float64
100
Requirements shall be managed in a 3rd party requirements management tool such as DOORS.
Requirement
null
101
Non-requirement artifacts shall be managed in 3rd party tools such as Rational Rose or Clear case
Requirement
null
102
Only registered subscribers shall be allowed to establish traces.
Requirement
null
103
A user shall register as a subscriber.
Requirement
null
104
On registration a subscriber shall register itself under the control of a subscribermanager
Requirement
null
105
The user shall establish traces between requirements and other types of artifacts by establishing a subscription from an artifact to the relevant requirement
Requirement
null
106
Each artifact shall be placed under the control of a subscribermanager
Requirement
null
107
The user shall be able to delete subscriptions.
Requirement
null
108
A subscribermanager shall register itself with the eventserver so that it may receive relevant event messages.
Requirement
null
109
If the subscribermanager is online; the push model shall be used to send it event notifications in real time.
Requirement
null
110
Whenever the subscribermanager first comes on line; it shall implement the pull model to retrieve outstanding event messages from the eventserver.
Requirement
null
111
A subscribermanager shall receive event notifications on behalf of the artifacts that it manages.
Requirement
null
112
A subscribermanager shall manage traces for one or more artifacts.
Requirement
null
113
On receipt of an event message; the subscribermanager shall differentiate between speculative and evolutionary events.
Requirement
null
114
The subscribermanager shall store information for evolutionary events in an eventlog.
Requirement
null
115
The user shall be able to construct speculative queries using a GUI.
Requirement
null
116
The subscribermanager shall immediately process speculative events.
Requirement
null
117
The subscribermanager shall re execute the model using the speculative values.
Requirement
null
118
The subscribermanager shall report results indicating whether the speculative change negatively impacts other requirements and constraints.
Requirement
null
119
The subscribermanager shall restore the executable model to its prior state.
Requirement
null
120
The prototype system shall utilize a driver to trigger events.
Requirement
null
121
Event types shall include adding new requirements.
Requirement
null
122
Event types shall include decomposing one requirement into two or more requirements.
Requirement
null
123
Event types shall include refining one requirement by adding an additional requirement to the existing one.
Requirement
null
124
Event types shall include modifying a requirement.
Requirement
null
125
Event types shall include deleting a requirement.
Requirement
null
126
Event types shall include merging requirements.
Requirement
null
127
The eventserver shall receive event messages when a requirement changes.
Requirement
null
128
On receipt of an event message the eventserver shall record the event in an eventlog.
Requirement
null
129
On receipt of an event; the eventserver shall identify all relevant subscribers for the event.
Requirement
null
130
The eventserver shall differentiate between evolutionary and speculative events.
Requirement
null
131
When an evolutionary event occurs; the eventserver shall notify subscribers of the event.
Requirement
null
132
For speculative events; the eventserver shall construct a composite event message.
Requirement
null
133
The eventserver shall identify all related requirements and constraints for each impacted executable model.
Requirement
null
134
The eventserver shall retrieve quantitative values related to these additional requirements and constraints through querying the requirements management tool.
Requirement
null
135
The eventserver shall create a composite speculative message which includes the speculative event plus all related requirements and constraint values for each impacted model.
Requirement
null
136
The eventserver shall send the customized message to each impacted executable model.
Requirement
null
137
The user shall view all evolutionary events received for a specific artifact in the order in which they were received.
Requirement
null
138
The user shall update related artifacts according to the information contained in the event messages.
Requirement
null
139
The user shall eliminate unnecessary traces that were temporarily constructed by the eventserver during initial event processing.
Requirement
null
140
The notification processing system shall automatically eliminate any events that are not longer valid as a result of the user eliminating temporary traces.
Requirement
null
141
Test case: Establish Trace (2.1.1)(2.2.1) Preconditions Subscriber is registered Steps Subscriber establishes a trace between a UML artifact and a requirement. Postconditions A trace is established between the UML artifact and the requirement.
Test
null
142
Test case: Non-registered subscriber attempts to establish a trace (2.1.1) Preconditions The proposed Subscriber is not registered Steps Subscriber attempts to establish a trace between a UML artifact and a requirement. Postconditions No trace is established between the UML artifact and the requirement.
Test
null
143
Test case: Subscriber registers with subscriber manager (2.1.3)(2.2.2)(3.2.2?)(2.1.2?) Preconditions The subscriber is a valid subscriber At least one valid subscriber manager is in the system Steps The subscriber registers itself with the subscriber manager. Postconditions The subscriber is registered under the subscriber manager.
Test
null
144
Test case: Subscriber fails to register with subscriber manager (2.1.3)(2.2.2)(3.2.2?) Preconditions The subscriber is a valid subscriber Steps The subscriber attempts to exit from the registration process without registering itself under a subscriber manager. Postconditions The subscriber is removed from the system.
Test
null
145
Test case: Delete subscriptions (2.2.3) Preconditions At least one subscription has been established in the system Steps The user deletes the subscription Postconditions The subscription has been deleted.
Test
null
146
Test case: Subscriber Manager registers with event server (3.1.1) Preconditions A subscriber manager has been created. Steps The subscriber manager registers its IP address, port, and name with the event server Post conditions The subscriber manager is registered with the event server.
Test
null
147
Test case: An event is published in real time (3.1.2) Preconditions: At least one subscriber manager is online at its designated IP address and port. The subscriber manager has subscribed to at least one requirement. Steps The requirement changes. An event notification is sent to the relevant subscriber manager. Postconditions:
Test
null
148
Test case: Subscriber Manager comes online and checks for missed events (3.1.3) Preconditions: The subscriber manager is off line. The event server has stored an event notification that was not previously delivered to the subscriber manager. Steps: The subscriber manager comes online. Post conditions: The subscriber manager has successfully downloaded the relevant event notifications from the event server.
Test
null
149
Test case: Subscriber manager receives non-speculative event notification (3.2.1)(3.2.3)(3.3.1) Preconditions: The subscriber manager has registered subscribers Steps An event notification is sent to the subscriber manager for a registered subscriber. The relevant subscriber manager receives the event notification. Postconditions: The event notification message is stored in the local event log.
Test
null
150
Test case: Subscriber manager receives speculative event notification (3.2.1)(3.2.3) Preconditions: The subscriber manager has registered subscribers Steps An event notification is sent to the subscriber manager for a registered subscriber. The relevant subscriber manager receives the event notification. Postconditions: The event notification message is processed according to predefined protocols.
Test
null
151
Test case: User constructs a speculative query (3.4.1) Preconditions: At least one performance model has been built. Requirements and constraints have been defined for this performance model. Steps: The user constructs a speculative query using a GUI tool. Postconditions: A speculative event message is received by the event server.
Test
null
152
Test case: Speculative event message is processed by subscriber manager (3.4.2)(3.4.3)(3.4.4)(3.4.5) Preconditions: A speculative query has been issued and sent to the relevant subscriber manager. Steps: The subscriber manager receives the speculative event message. The subscriber manager parses the event message to determine that it is a speculative event. The subscriber manager injects values into the relevant performance model, re-executes the model, collates the results, restores the model to its prior state, and returns the results. Postconditions A response is sent to the speculative event. The performance model is restored to its original state
Test
null
153
Test case: Add New Requirement (4.1.)(4.1.1) Preconditions: The trigger driver is running. Steps The user specifies a new event. The user adds a new requirement Post conditions: A new event message is sent.
Test
null
154
Test case: Decompose a Requirement (4.1)(4.1.2) Preconditions: The trigger driver is running. At least one requirement is defined. Steps The user specifies a decompose event. The user selects an existing requirement and decomposes it into two or more requirements. Post conditions: The requirement is decomposed into two or more events. A decompose event message is sent. Temporary links are established between the original requirement and its decomposed parts.
Test
null
155
Test case: Refine a requirement (4.1)(4.1.3) Preconditions: The trigger driver is running. At least one requirement is defined. Steps The user specifies a refine event. The user selects an existing requirement and adds an additional requirement related to it. Post conditions: The requirement is refined by adding at least one related requirement. A refine event message is sent. Temporary links are established between the original requirement and its refinements.
Test
null
156
Test case: Modify a requirement (4.1)(4.1.4) Preconditions: The trigger driver is running. At least one requirement is defined Steps The user specifies a modify event. The user selects an existing requirement and changes it. Post conditions: The requirement is changed. A modify event message is sent. Existing links from the original requirement are changed to tentative status.
Test
null
157
Test case: Delete a requirement (4.1)(4.1.5) Preconditions: The trigger driver is running. At least one requirement is defined Steps The user specifies a delete event. The user selects an existing requirement and deletes it. Post conditions: The status of the requirement is set to obsolete. A delete event message is sent. Existing links from the obsolete requirement are set to tentative status.
Test
null
158
Test case: Merge two or more requirements (4.1)(4.1.6) Preconditions: The trigger driver is running. At least two requirements are defined Steps The user specifies a merge event. The user specifies two or more requirements to merge. Post conditions: The requirements are merged. A merge event message is sent. Existing links from the original requirements are assigned to the newly merged requirement.
Test
null
159
Test case: Event server receives message (5.1)(5.2)(5.4) Preconditions: The event server is running and waiting for incoming events at a well known port and IP address. The event trigger issues an event message. Steps The event server receives an event message. The event server parses the event message into its constituent parts. The event server categorizes each event according to whether it is speculative or evolutionary. The event server stores event details in its event log. Post conditions: The event is stored in the log. The event is categorized according to whether it is evolutionary or speculative.
Test
null
160
Test case: Event server identifies subscribers (5.3) Preconditions: The event server has received an event message. Steps: The event server identifies the impacted requirements from the received event message. The event server searches for subscribers to those impacted requirements. Post conditions All relevant subscribers are identified.
Test
null
161
Test case: Notify subscribers when an evolutionary event occurs (5.5) Preconditions: The event server has received an evolutionary event message. The event server has identified a list of subscribers. Steps: The event server identifies the subscriber manager for each subscriber. The event server identifies the IP address and port for each relevant subscriber manager. The event server builds a notification event message and sends it to each relevant subscriber manager. Postconditions: The event message is received by each relevant subscriber manager or behalf of its managed subscribers.
Test
null
162
Test case: Event server constructs composite event message for a speculate event (5.6)(5.6.1)(5.6.2)(5.6.3)(5.6.4) Preconditions: The event server has received a speculative event message. The event server has identified a list of subscribers. Steps: For each identified subscriber the event server identifies all additional requirements that are linked to the same artifact. The event server polls DOORS to obtain additional quantitative information for each of these additional requirements. The event server constructs a composite event message that includes the requirement that has changed, plus quantitative constraints obtained from other related requirements. The customized event message is sent to the relevant subscriber.
Test
null
163
Test case: Events are displayed in the order in which they are received.(6.1) Preconditions: At least three event messages received for a single artifact. Steps: The user activates the notification process tool. The user selects the artifact. Event messages are displayed in the order in which they were received. Postconditions: none
Test
null
164
Test case: User attempts to process an event message in the incorrect order (6.1) Preconditions: At least three event messages have been received by a subscriber manager on behalf of a single subscriber. The notification processing tool is running. Steps: The user examines the event messages that have been received for a single subscriber. The user tries to process an event other than the first one received. The system prohibits the user from processing the events in the incorrect order. Post conditions No events are processed.
Test
null
165
Test case: User processes an event message (6.2)(6.3)(6.4) Preconditions: Event messages are displayed for a single artifact. Steps: The user examines the first event message. The user applies any information from the event message to update the artifact accordingly. The user selects which of the tentative links should be made permanent and which ones should be discarded. Postconditions: The links in the event server are changed according to the users directions. Any additional event messages that had previously been sent on the basis of a tentative link, and for which the tentative link has now been eliminated, are removed from the event processing list and display.
Test
null
46
private JPanel center Panel = null ; private JLabel des Label = null ; private JLabel change Label = null ; private JLabel from Label = null ; private JLabel to Label = null ; private JText Area des Text = null ; private JText Field c // Speculate Gui public Speculate Gui () { super (" Speculate GUI "); container = get Content Pane (); set Size ( 800 , 600 ); this . event Server IP = JOption Pane . show Input Dialog (" Please Enter the IP Address of eventserver // Submit Listener public void action Performed ( Action Event e ) { if ( e . get Source () == submit Button ) { send Query TO Server (); } if ( e . get Source () == fetch Button ) { System . out . println (" Fetch Button Pressed void send Query TO Server () { String ip = this . event Server IP ; int Port No = 1701 ; Socket socket ; try { socket = new Socket ( ip , Port No ); Output Stream os = socket . get Output Stream (); Output Stream public void pull Value From DOORS () { String server IP = new String ( doors server IP ); //" 140 . 192 . 37 . 150 "; String [] attribute = { " Value ", " Attribute " }; String project Name = this . proj Name Text . get public static void main ( String [] args ) { new Speculate Gui (); }
Code
null
47
47 "Impact Report private String server IP = "" local host ""; private JPanel center Panel = null ; private JPanel driver Panel = new JPanel (); private JPanel driver Inner Panel = null ; private JPanel impact Panel = null ; private JPanel impact Inner P public Impact Report () { super ("" Search Result GUI ""); container = get Content Pane (); set Size ( 800 , 250 ); panel = new JPanel (); panel . set Layout ( null ); this . server IP = JOption Pane . show In public static void main ( String [] args ) { Impact Report im = new Impact Report (); } public Vector search Date () { date Vector = new Vector (); date Vector . add ("" Select Query Date ""); Socket server ; String line = new String (); try { server = new Socket ( server IP , 1701 ); if ( server . is C public void search Query ID ( String date ) { pair Vector = new Vector (); query String Combo . remove All Items (); query String Combo . add Item ("" Select Query String ""); Socket server ; String line = new String (); // Select Actions public void action Performed ( Action Event e ) { if ( date Combo == ( JCombo Box ) e . get Source ()) { date = ( String ) date Combo . get Selected Item (); search Query ID ( date ); } } // Button Actions public void action Performed ( Action Event e ) { if ( submit Button == e . get Source ()) { for ( int i = 0 ; i < pair Vector . size (); i ++) { Pair pair = ( Pair ) pair Vector . get ( i ); if ( pair . get public void impact Report ( String id ) { // super ("" Impact Report ""); container = get Content Pane (); set Size ( 1020 , 740 ); this . query ID = id ; System . out . println ("" Impact Report Constructor ..... ID "" + public Vector get Constraint From Data Base () { Vector v = new Vector (); Socket server ; String line = new String (); try { server = new Socket ( server IP , 1701 ); if ( server . is Connected () ) { Buffered public Vector get Driver From Data Base () { Vector v = new Vector (); Socket server ; String line = new String (); try { server = new Socket ( server IP , 1701 ); if ( server . is Connected () ) { Buffered"
Code
null
48
48 "Constraint Inner Panel private String server IP = "" local host ""; private JLabel performance Model Label = null ; private JLabel project Name Label = null ; private JLabel module Path Label = null ; private JLabel requirement Id Label = null ; private JLabel public Constraint Inner Panel ( String performance Model Name , String project Name , String module Path , String requirement Id , String description , String logic , String units , String value , String impacted Value private void set goal Label Values ( String attribute , String logic , String value , String units ) { goal Label . set Text ( "" Goal : "" + attribute + "" "" + logic + "" "" + value + "" "" + units ); } public Vector get Values From Data Base () { Vector v = new Vector (); Socket server ; String line = new String (); try { server = new Socket ( server IP , 1701 ); if ( server . is Connected () ) { Buffered R private void set impacted Label Value ( String attribute , String value , String impacted Value , String units , String logic ) { if ( impacted Value ! = null ) { double value 1 = Double . parse Double ( value ); d public JPanel get Panel () { return panel ; }"
Code
null
49
49 "Constraints Description private String project Name = null ; private String module Path = null ; private String requirement ID = null ; private String value = null ; private String logic = null ; private String units = null ; private String description = null ; public Constraints Description ( String project Name , String module Path , String requirement ID ) { this . project Name = project Name ; this . module Path = module Path ; this . requirement ID = requirement ID ; } public String get Description () { return this . description ; } public String get Logic () { return this . logic ; } public String get Module Path () { return this . module Path ; } public String get Project Name () { return this . project Name ; } public String get Requirement ID () { return this . requirement ID ; } public String get Units () { return this . units ; } public String get Value () { return this . value ; } public void set Description ( String description ) { this . description = description ; } public void set Logic ( String logic ) { this . logic = logic ; } public void set Module Path ( String module Path ) { this . module Path = module Path ; } public void set Project Name ( String project Name ) { this . project Name = project Name ; } public void set Requirement ID ( String requirement ID ) { this . requirement ID = requirement ID ; } public void set Units ( String units ) { this . units = units ; } public void set Value ( String units ) { this . value = units ; } public String get Impacted Constraint () { return this . impacted Constraint ; } public void set Impacted Constraint ( String impacted Constraint ) { this . impacted Constraint = impacted Constraint ; } public String get Attribute () { return this . attribute ; } public void set Attribute ( String attribute ) { this . attribute = attribute ; } public String get Performance Model Name () { return this . performance Model Name ; } public void set Performance Model Name ( String performance Model Name ) { this . performance Model Name = performance Model Name ; } public String to String () { String str = ""\ n Project Name = "" + this . project Name + ""\ n "" + "" Module Path = "" + this . module Path + ""\ n "" + "" Requirement ID = "" + this . requirement ID + ""\ n "" public boolean equals ( Object o ) { if (!( o instance of Constraints Description )) return false ; Constraints Description cd = ( Constraints Description ) o ; if ( cd . project Name . equals Ignore Case ( this . project Na public int hash Code () { int hash Code = 0 ; if ( hash Code == 0 ) { int result = 17 ; result = 37 * result + this . project Name . hash Code (); result = 37 * result + this . module Path . hash Code (); result = 37 * "
Code
null
50
50 "Driver Description private String projectName = null; private String modulePath = null; private String requirementID = null; private String description = null; // Description of the requirement. private String changedArrtibute = null; private Strin public DriverDescription( String projectName, String modulePath, String requirementID, String description, String changedAttribute, String fromAttribute, String toAttribute) { this. projectName = projec public String getChangedAttribute() { return changedAttribute; } public String getDescription() { return description; } public String getFromAttribute() { return fromAttribute; } public String getModulePath() { return modulePath; } public String getProjectName() { return projectName; } public String getRequirementID() { return requirementID; } public String getToAttribute() { return toAttribute; } public void setChangedAttribute(String changedAttribute) { this. changedAttribute = changedAttribute; } public void setDescription(String description) { this. description = description; } public void setFromAttribute(String fromAttribute) { this. fromAttribute = fromAttribute; } public void setModulePath(String modulePath) { this. modulePath = modulePath; } public void setProjectName(String projectName) { this. projectName = projectName; } public void setRequirementID(String requirementID) { this. requirementID = requirementID; } public void setToAttribute(String toAttribute) { this. toAttribute = toAttribute; } public String createKey() { String key = this. projectName + this. modulePath + ""\\"" + this. requirementID; return key. toLowerCase(); } public boolean equals(Object o) { if (!( o instance of DriverDescription)) return false; DriverDescription dd = (DriverDescription) o; if ( dd. projectName. equalsIgnoreCase( this. projectName) && ddpublic String toString() { String str = ""\ nProject Name = "" + this. projectName + ""\ n"" + ""Module Path = "" + this. modulePath + ""\ n"" + ""Requirement ID = "" + this. requirementID + ""\ n"" public int hashCode() { int hashCode = 0; if ( hashCode == 0) { int result = 17; result = 37 * result + this. projectName. hashCode(); result = 37 * result + this. modulePath. hashCode(); result = 37 "
Code
null
51
51 "Driver Inner Panel private JLabel projectNameLabel = null; private JLabel modulePathLabel = null; private JLabel requirementIdLabel = null; private JLabel desLabel = null; private JLabel changeLabel = null; private JLabel fromLabel = null; String projectName, String modulePath, String requirementID, String description, String changeAttribute, String fromValue, String toValue) { panel = new JPanel(); panel. setBackground(Color.LIGHTpublic JPanel createPanel() { return panel; }"
Code
null
52
52 "Pair private String queryID; private String queryString; public Pair(String queryID, String queryString) { this. queryID = queryID; this. queryString = queryString; } public String getQueryID() { return this. queryID; } public String getQueryString() { return this. queryString; } public void setQueryID(String queryID) { this. queryID = queryID ; } public void setQueryString(String queryString) { this. queryString = queryString; } public String toString(){ return ""Query ID: "" + this. queryID + ""\ n"" +""Query String : "" + this. queryString + ""\ n""; }"
Code
null
53
53 "Performance Model private String name = null; private Vector driverVector = null; private Vector constraintVector = null; private long queryID = 0; public static int count = 0; public PerformanceModel(String name, long queryID) { this. name = name; this. queryID = queryID; this. driverVector = new Vector(); this. constraintVector = new Vector(); } public Vector getConstraints() { return constraintVector; } public Vector getDrivers() { return driverVector; } public String getName() { return name; } public void setName(String name) { this. name = name; } public void addDriver(DriverDescription driver) { if ( driverVector. contains( driver)) { } else this. driverVector. add( driver); } public void removeDriver(DriverDescription driver) { this. driverVector. remove( driver); } public boolean containsDriver(DriverDescription driver) { return this. driverVector. contains( driver); } public void addConstraint(ConstraintsDescription constraint) { this. constraintVector. add( constraint); } public boolean containsConstraint(ConstraintsDescription constraint) { return this. constraintVector. contains( constraint); } public void removeConstraint(ConstraintsDescription constraint) { this. constraintVector. remove( constraint); } public DriverDescription getDriver(DriverDescription driver) { DriverDescription dd = null; for ( int i = 0; i < this. driverVector. size(); i++) { dd = (DriverDescription) this. driverVector. get( i) public ConstraintsDescription getConstraint(ConstraintsDescription constraint) { ConstraintsDescription cd = null; for ( int i = 0; i < this. constraintVector. size(); i++) { cd = (ConstraintsDescription) this public long getQueryID() { return this. queryID; } public void setQueryID( long id) { this. queryID = id; } public String toString() { return ""performance modelName = "" + this. name + ""\ n"" + ""Query ID = "" + this. queryID + ""\ n"" + ""Drivers = "" + this. driverVector + ""\ n"" + ""Constraints = "" + this."
Code
null
54
54 "eventserver public static void (String args[]) { ThreadPool pool = new ThreadPool(1); int port = defaultPort; try { ServerSocket ss = new ServerSocket( port); for( int i=0; i<4; i++) { p public final static int defaultPort = 1701; ServerSocket theServer;"
Code
null
55
55 "eventserver Threadstatic private int count = 0; private int taskNumber; protected Done done; ServerSocket theServer; private Connection conn; private Statement stmt; private ResultSet rs; private EventParser ep; private int id; EventServerThread(ServerSocket ss) { theServer = ss; count++; taskNumber = count; ep = new EventParser(); } public void run() { while( true) { try { Socket client = theServer. accept(); BufferedReader input = new BufferedReader( new InputStreamReader( client. getInputStream())); PrintWriter output = new P public String getNextID() { try { Class. forName("" sun. jdbc. odbc.jdbcodbcDriver""); this. conn = DriverManager. getConnection("" jdbc: odbc:EBT"",""EBT"",""EBT""); this. stmt = conn public String searchDate() { String dateString = new String(); Vector dateVector = new Vector(); try { Class. forName("" sun. jdbc. odbc.jdbcodbcDriver""); Connection conn = DriverManager. getConnectio public String searchQueryID(String date) { Vector queryVector = new Vector(); String searchQuery = new String(); try { Class. forName("" sun. jdbc. odbc.JdbcOdbcDriver""); conn = DriverManager. get public String getConstraintFromDataBase(String queryID) { String ConstString = new String(); try { Class. forName("" sun. jdbc. odbc.JdbcOdbcDriver""); conn = DriverManager. getConnection("" j public String getDriverFromDataBase(String queryID) { String driverString = new String(); try { Class. forName("" sun. jdbc. odbc.JdbcOdbcDriver""); conn = DriverManager. getConnection("" jdbc "
Code
null
56
56 "Event Parser private Connection conn; private ResultSet rs; private Statement stmt; //EventParser Constructor // initializes the Database connection public EventParser() { try { Class. forName("" sun. jdbc. odbc.JdbcOdbcDriver""); this. conn = DriverManager. getConnection("" jdbc: odbc: public void updateEvent(String str, String ID) { String mProject; String mEvent; String mType; String mNum; String mrequirement ; String mModule; String mSQL; String mDate; String mReqtext; //Check if a subscription exists public boolean CheckSubscription(String str) { StringTokenizer tokens = new StringTokenizer( str, ""|""); String Message type = tokens. nextToken(); String SubscriberName = tokens. next //Insert a subscription into the ""Subscription"" table public void AddSubscription(String str, int ID) { // Parse the message string and get the fields StringTokenizer tokens = new StringTokenizer( str, ""|""); String Messag //DeleteSubscription from the ""Subscription"" table public void DeleteSubscription(String str, int ID) { // Parse the message string and get the fields StringTokenizer tokens = new StringTokenizer( str, ""|""); String Messag //Speculate method will receive a string from the Speculative GUI // tool and parse it using CallBack class to identify the // performance models public void speculate(String str) { System. out. println(""Speculate""); CallBack public void impactReport(String str) { CallBack cb = new CallBack(); cb. parseImpactReport( str); }// end impactReport()"
Code
null
57
57 "Event Notifier // Variables to process the requirement private String requirement No;//Requirement No. private String ProjName; //Project name private String ModPath;//Modular path private String requirement Text;/ public EventNotifier(String rno, String proj, String mod, String rtext,String eID, String em, String eventType) { requirement No = rno;//Requirement number ProjName = proj;// project name ModPath = mo // finds the subscribers for this requirement public void IdentifySubscribers() { String mSQL; // Create an SQL statement that will limit the selection as much as possible // If a subscription is to a specific requirement - check for requi //Reads the result from IdentifySubscribers method selection // and adds each result into ActualSubscribers Vector. void ProcessResultSet() { String sName, sReqno, sModule, sKey1, sKey2; try { System. o // Send messages to all subscribers listed in ActualSubscriber Vector // Possible that a sort routine can be added later so that all notification to // the same subscribermanager can be batched.This is not implemented yet. public void Dispatch public String getErrorMessage() { return errMsg; } public boolean Contains(String ContextString, String SearchString) { int cLen = ContextString. length(); int sLen = SearchString. length(); if (SearchString. length() == 0) return false; for ( int i = 0"
Code
null
58
58 "Subscribed Model private String SubscriberName; private String SubscriberReqno; private String SubscriberModule; private String SubscriberKeyword1; private String SubscriberKeyword2; public SubscribedModel(String sn, String sr, String sm, String sk1, String sk2) { SubscriberName = sn; SubscriberReqno = sr; SubscriberModule = sm; SubscriberKeyword1 = sk1; SubscriberKeyword2 = s public String GetSubscriberName() { return SubscriberName;} public String GetSubscriberReqno() { return SubscriberReqno;} public String GetSubscriberModule() { return SubscriberModule;} public String GetSubscriberKeyword1() { return SubscriberKeyword1;} public String GetSubscriberKeyword2() { return SubscriberKeyword2;}"
Code
null
59
59 "Done /** * The number of Worker object * threads that are currently working * on something. */ private int _ activeThreads = 0; /** * This boolean keeps track of if * the very first thread has started * or not. This prevents this objec /** * This method can be called to block * the current thread until the ThreadPool * is done. */ synchronized public void waitDone() { try { while ( _ activeThreads>0 ) { wait(); } } catch ( InterruptedException /** * Called to wait for the first thread to * start. Once this method returns the * process has begun. */ synchronized public void waitBegin() { try { while ( !_ started ) { wait(); } } catch ( InterruptedException e /** * Called by a Worker object * to indicate that it has begun * working on a workload. */ synchronized public void workerBegin() { _ activeThreads++; _ started = true; notify(); } /** * Called by a Worker object to * indicate that it has completed a * workload. */ synchronized public void workerEnd() { _ activeThreads--; notify(); } /** * Called to reset this object to * its initial state. */ synchronized public void reset() { _ activeThreads = 0; }"
Code
null
60
60 "Thread Pool /** * The threads in the pool. */ protected Thread threads[] = null; /** * The backlog of assignments, which are waiting * for the thread pool. */ Collection assignments = new ArrayList(3); /** * A Done object that is /** * The constructor. * * @param sizeHow many threads in the thread pool. */ public ThreadPool( int size) { threads = new WorkerThread[ size]; for ( int i=0; i< threads. length; i++) { thr /** * Add a task to the thread pool. Any class * which implements the Runnable interface * may be assigned. When this task runs, its * run method will be called. * * @param r An object that implements the Runnable interface */ pub /** * Get a new work assignment. * * @return A new assignment */ public synchronized Runnable getAssignment() { try { while ( ! assignments. iterator(). hasNext() ) wait(); Runnable r = (Runnable) assignments. /** * Called to block the current thread until * the thread pool has no more work. */ public void complete() { done. waitBegin(); done. waitDone(); } protected void finalize() { done. reset(); for ( int i=0; i< threads. length; i++) { threads[ i]. interrupt(); done. workerBegin(); threads[ i]. destroy(); } done. waitDone(); } }"
Code
null
61
61 "Worker Thread /** * True if this thread is currently processing. */ public boolean busy; /** * The thread pool that this object belongs to. */ public ThreadPool owner; /** * The constructor. * * @param o the thread pool */ WorkerThread(ThreadPool o) { owner = o; } /** * Scan for and execute tasks. */ public void run() { Runnable target = null; do { target = owner. getAssignment(); if ( target!=null) { target. run(); owner. done. worker"
Code
null
62
62 "Call Back private Hash table requirementDescTable = new Hash table(); private Hash table constraintDescTable = new Hash table(); private Hash table performanceModelTable = new Hash table(); private PerformanceModel performance model= null public void parseSpeculateInformation(String str) { System. out. println(""Received String = "" + str); Connection conn = null; Statement stmt = null; DriverDescription dd = null; String eventType = null; // public void identifyPerformanceModels() { Connection conn = null; ResultSet rs = null; Statement stmt = null; String subscriberName = null; DriverDescription dd = null; Enumeration subscriberTableEnumeration = nu public void pullInformationFromDoors() { String serverIP = ""140.192.37.150""; String[] attribute = { ""Value"", ""Logic"", ""Units"", ""Attribute"" }; String subscriberName = null; Vector constraints = n public void insertValuesInDataBase() { Connection conn = null; Statement stmt = null; String subscriberName = null; DriverDescription dd = null; Vector driverVector = null; ConstraintsDescription cd = null; public void createExecuteString() { Connection conn = null; Statement stmt = null; ResultSet rs = null; StringBuffer sb = null; String subscriberName = null; DriverDescription dd = null; Vector driverVector public void parseImpactReport(String str) { Connection conn = null; Statement stmt = null; Vector constraintsVector = null; Vector driversVector = null; ConstraintsDescription constraint = null; int driverLoop"
Code
null
63
63 "Doors Thread static private int count = 0; private int taskNumber; protected Done done; ServerSocket theServer; private Connection conn; private Statement stmt; private ResultSet rs; DOORsThread(ServerSocket ss) { theServer = ss; count++; taskNumber = count; } public void run() { while( true) { try { Socket client = theServer. accept(); BufferedReader input = new BufferedReader( new InputStreamReader( client. getInputStream())); PrintWriter output = new P"
Code
null
64
64 "DOORs Thread Pool public final static int defaultPort = 2347; ServerSocket theServer; // static int numberOfThreads = 3; //@param argsNo arguments are used. public static void main(String args[]) { ThreadPool pool = new ThreadPool(1); int port = defaultPort; try { ServerSocket ss = new ServerSocket( port); for"
Code
null
65
65 "About Dialog public AboutDialog(JFrame parent, boolean modal) { super ( parent, modal); getContentPane (). setLayout ( new BorderLayout ()); setTitle (""About""); setName ("" aboutDialog""); private JTextArea text;"
Code
null
66
66 "Config Dialog public ConfigDialog(Notification_Processing parent, boolean modal) { super ( parent, modal); setTitle(""Config Dialog Box""); getContentPane (). setLayout ( new GridLayout(5,2)); private void closeDialog(WindowEvent evt) { setVisible ( false); dispose (); } // event listener for ""Ok"" button private void okButtonActionPerformed (ActionEvent evt) { if( UserName. getText(). equals("""") || DSN. getText(). equals("""") || EventServerIP. getText(). equa// event listener for ""Cancel"" button private void cancelButtonActionPerformed (ActionEvent evt) { setVisible ( false); dispose (); } // configuration entries private JLabel UserNameLabel; private JTextField UserName; private JLabel DSN Label; private JTextField DSN; private JLabel EventServerIP Label; private JTextField EventSe"
Code
null
67
67 "Event Detail Dialog private GridBagLayout grid bag; private GridBagConstraints c; // objects in top panel private JPanel topPanel; private JLabel modelLabel; private JLabel typeLabel; private JTextField modelField; p public EventDetailDialog(EventsProcessor parent, boolean modal,Notification_Event nEvt, boolean mode) { super ( parent, modal); setTitle(""Event Details""); getContentPane (). setLayout (private void closeDialog(WindowEvent evt) { setVisible ( false); dispose (); } // event listener for ""Ok/Update"" button private void okButtonActionPerformed (ActionEvent evt) { if ( displayMode == true) { // m_ parent.DeleteEvent( m_Evt. m_SubscriberName, m_ // event listener for ""Cancel"" button private void cancelButtonActionPerformed (ActionEvent evt) { setVisible ( false); dispose (); } private void LeftListClicked(MouseEvent e){ if (!LeftList. isSelectionEmpty()) { int index = LeftList. getSelectedIndex(); Requirement requirement= (Requirement) m_Evt. m_LeftSide private void RightListClicked(MouseEvent e){ if (!RightList. isSelectionEmpty()) { int index = RightList. getSelectedIndex(); Requirement requirement= (Requirement) m_Evt. m_RightS"
Code
null
68
68 "Events Processor // event list private JList eventList; private DefaultListModel listModel; private ArrayList events; // popup menu private JPopupMenu popup; // Subscriber name String m_SubscriberName; // list of requirements to be d public EventsProcessor(Notification_Processing parent, boolean modal, String SubsName) { setTitle(""EventsProcessor""); addWindowListener( new WindowAdapter() { public void windowClosing(WindowEve void exitApplication() { m_ parent.UpdateDisplayList(); this. setVisible( false); this. dispose(); } // action for "" double click on Event List"" private void doubleClickEventList (MouseEvent evt) { int index = eventList. getSelectedIndex(); if ( index != -1) { try { Notification // action for ""Open First Record"" in popup menu private void popupOpenActionPerformed (ActionEvent evt) { if (! listModel. isEmpty()) { int index =0; try { Notification_Event nEvt1 = (Notificati / action for ""View Current Record"" in popup menu private void popupViewActionPerformed (ActionEvent evt) { int index = eventList. getSelectedIndex(); if ( index != -1) { try { N void DeleteEvent(String SubscriberName, String EventID) { try { int i, j=-1; for ( i=0; i< events. size(); i++) { Notification_Event nEvt = (Notification_Event) events. get( i); i void DeleteRelatedEvents() { while ( m_Deleterequirement List. size()!=0) { Requirement requirement= (Requirement)( m_Deleterequirement List. get(0)); m_Deleterequirement List. remove(0); void AddSubscription(String SubscriberName, Requirement requirement ) { String SubscriberDependency = ""Requirements""; String Message = ""ADD_SUBSCRIPTION""+""|""; Message += m_UserName + ""|""; Message += Subscribervoid DeleteSubscription(String SubscriberName, Requirement requirement ) { String Message = ""REMOVE_SUBSCRIPTION""+""|""; Message += SubscriberName + ""|""; Message += requirement . m_RequirementID + "",""; Message += req void UpdateDisplayList() { listModel. removeAllElements(); for ( int j=0; j< events. size(); j++) { Notification_Event nEvt = (Notification_Event) events. get( j); String displayStri // Passes a CHECK_SUBSCRIPTION message to the eventserver and waits for a response private boolean Check_Subscription(String ip, int PortNo, String SubscriberName, String Requirement // Takes an event string returned from the eventserver and // extracts True or False response private boolean Analyze_CheckSubscription(String str) { StringTokenizer tokens = new StringTokenizer( str,""|""); String Messag"
Code
null
69
69 "Notification Event public String m_SubscriberName = """"; public String m_EventID = """"; public String m_Message type = """"; public String m_EventType = """"; public int m_NumberOfRequirements = 0; public String m_EventTim public Notification_Event() { m_LeftSide = new ArrayList(); m_RightSide = new ArrayList(); } public Object clone() throws CloneNotSupportedException { Notification_Event nEvt = (Notification_Event) super. clone(); nEvt. m_LeftSide = new ArrayList(); nEvt. m_RightSide = new ArrayLis public void ParseEvent(String TextLine) { StringTokenizer LineSt; // Tokenizer for the line int i=0; LineSt = new StringTokenizer(TextLine, ""|""); m_SubscriberName = LineSt. nextToken// Set the other members before calling this function public void ParseLeftAndRightLists(String LeftLine, String RightLine) { m_LeftSide = new ArrayList(); m_RightSide = new ArrayList(); if ( m_Eve public void DisplayValues() { System. out. println(""\ r\ nValues of the event:\ r\ n""); System. out. println("" m_SubscriberName: ""+ m_SubscriberName); System. out. println("" m_EventI"
Code
null
70
70 "Notification Processing // member variables for menu private JMenuBar menuBar; // subscriber list private JList SubscriberList; private DefaultListModel listModel; // popup menu private JPopupMenu popup; // database and eventserver information S public Notification_Processing() { setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); addWindowListener( new WindowAdapter() { public void windowClosing(WindowEvent evt) { try public static void main(String args[]) { try { Notification_Processing mainFrame = new Notification_Processing(); mainFrame. setSize(600, 400); mainFrame. setLocation(100, 100); mainFrame. void exitApplication() { try { int reply = JOptionPane. showConfirmDialog( this, ""Do you really want to exit?"", ""No // action for ""Open log database"" private void openMenuItemActionPerformed (ActionEvent evt) { new ConfigDialog( this, true). show(); if( m_DSN. equals("""") || m_EventServerIP. equals("""") || m_// action for ""Close log database"" private void saveMenuItemActionPerformed (ActionEvent evt) { try { m_ conn. close(); m_DSN=""""; m_EventServerIP=""""; m_EventServerPort=""""; // action for "" exit"" private void exitMenuItemActionPerformed (ActionEvent evt) { exitApplication(); } // action for ""Open Events"" in popup menu private void popupOpenActionPerformed (ActionEvent evt) { openEventsMenuItemActionPerformed( evt); } // action for ""Open Events"" private void openEventsMenuItemActionPerformed (ActionEvent evt) { if (! listModel. isEmpty()) { int index = SubscriberList. getSelectedIndex(); if ( index != -1) // action for "" double click on Subscriber List"" private void doubleClickSubscriberList (MouseEvent evt) { if (! listModel. isEmpty()) { int index = SubscriberList. getSelectedIndex(); if ( index != -1 // action for ""About"" private void aboutMenuItemActionPerformed (ActionEvent evt) { new AboutDialog ( this, true). show(); } void UpdateDisplayList() { listModel. removeAllElements(); String mSQL = ""SELECT distinct SubscriberName FROM EventDetails""; try { rs = stmt. executeQuery( mSQL); while ( rs. next()) { "
Code
null
71
71 "Requirement public String m_RequirementID =""""; public String m_Project =""""; public String m_ModulePath=""""; public String m_Content = """"; public String m_RegFlag = ""N""; public Requirement() { } public Object clone() throws CloneNotSupportedException { Requirement requirement= (Requirement) super. clone(); return requirement ; } public void ReadValues(String RequirementID, String Project, String ModulePath, String Content, String RegFlag) { this. m_RequirementID = RequirementID; this. m_Project = Project; this. m_ModulePath public void ParseRequirement(String TextLine) { StringTokenizer LineSt; LineSt = new StringTokenizer(TextLine, "",""); m_RequirementID=LineSt. nextToken(); m_Project=LineSt. "
Code
null
72
72 "Balance /** * Symbol represents what will be placed on the stack. */ private static class Symbol { public chartoken; public int theLine; public Symbol( char tok, int line ) { token = /** * Constructor. * @param inStream the stream containing a program. */ public Balance( Reader inStream ) { errors = 0; tok = new Tokenizer( inStream ); } /** * Print an error message for unbalanced symbols. * @return number of errors detected. */ public int checkBalance( ) { char ch; Symbol match = null; Stack pendingTokens = new Stack( ); private Tokenizer tok; private int errors; /** * Print an error message if clSym does not match opSym. * Update errors. */ private void checkMatch( Symbol opSym, Symbol clSym ) { if( opSym. token == '(' && clSym. token != ')' || /** * main routine for balanced symbol checker. * Slightly different from text. * If no command line parameters, standard input is used. * Otherwise, files in command line are used. */ public static void main( St"
Code
null
73
73 "Constraints String id; String name; double value; String logic; Constraints(String id, String name, double value, String logic){ this. id = id; this. name = name; this. value = value; this. logic = logic; } public String toString(){ String temp; temp = ""ID = "" + id + "", Name = "" + name +"", value = "" + value + "", Logic = "" + logic; return temp; } /** * Returns the id. * @return int */ public String getId() { return id; } /** * Returns the logic. * @return String */ public String getLogic() { return logic; } /** * Returns the name. * @return String */ public String getName() { return name; } /** * Returns the value. * @return double */ public double getValue() { return value; } /** * Sets the id. * @param id The id to set */ public void setId(String id) { this. id = id; } ** * Sets the logic. * @param logic The logic to set */ public void setLogic(String logic) { this. logic = logic; } /** * Sets the name. * @param name The name to set */ public void setName(String name) { this. name = name; } /** * Sets the value. * @param value The value to set */ public void setValue( double value) { this. value = value; }"
Code
null
74
74 "database QueryConnection conn=null; ResultSet rs=null; Statement stmt=null; String mSQL=""""; Vector structVector = new Vector(); // for holding the dummy variable objects used in executeStructure() Variable v;// create this object and /** * Construct a connection object. * @param Returns an object of type Connection */ public Connection getConnection() { System. out. println("" in get Connection""); Connection connect=null; try { Class. fo /** * Returns GraphId as int * @param graphName performance modelHandler calls this method with graphName * as parameter, performance modelHandler parse the EventServer message and get the * graphName */ public int get /** * Copy data from one set of columns to other in table Variable * @param graphId is the id of graph for which you want to save the * current state of variables */ public void saveCurrentModel( int graphId) { conn = this. getConnect /** * Injects new value into Variable table, using Data stored in * Vector of Variable object * @param graphId is the id of graph * @param Vector var is the Vector that stores the Object of type Variable */ public void injectVa /** * this method will pick up the structure id from SPE Structure * If DependentStructureId is 0 then select StructureID * and invoke the executeStructure method on Selected * StructureId * Who Invokes this method: performance model // this method is about executing the structure // based on StructureId find all the data related to given StructureId // and using the equation in string format call the method equationParser. //I am passing Vector that has all the data abou public void solveStructure( int StructureId, Vector vr) { System. out. println(""Inside solveStructure()&&&&&&&&&&&&&&&&&&&&&&&""); Connection conn1 = this. getConnection(); System. out. println("" in solveStru public void solveStructureEquation() { System. out. println(""Inside solveStructureEquation()%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%""); //Based on that result find out the equation and replace the name by its value System public void getTrackVariableName() { System. out. println(""Inside getTrackVariableName()$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$""); //This will get the variable name from SPE Graph and find the same name in variable // and inse public void setCalculatedValues() { System. out. println(""Inside setCalculatedValues()>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>""); // and at matching location put the calculated values System. out. println("" enter calcValue // this method creates the token for each variable name in the string // and store that variable into vector // it also creates the vector called varValues // varValues has values of each variable stored in varName //So equation has variable n public Vector getImpactReport() { //This SPE Graph works on the assumption that each model tracks // the effect of changes on one variable Vector report = new Vector(); report. add( trackVariableName); report. add(Stri"
Code
null
75
75 "Driver String id; double valueFrom; double valueTo; String name; Driver(String id, double valueFrom, double valueTo, String name) { this. id = id; this. valueFrom = valueFrom; this. valueTo = valueTo; this. name = name; } public String toString() { String temp; temp = ""ID = "" + id + "", valueFrom = "" + valueFrom + "", valueTo = "" + valueTo + "", Name = "" + name; return temp; } /** * Returns the id. * @return int */ public String getId() { return id; } /** * Returns the name. * @return String */ public String getName() { return name; } /** * Returns the value. * @return double */ public double getValueFrom() { return valueFrom; } public double getValueTo() { return valueTo; } /** * Sets the id. * @param id The id to set */ public void setId(String id) { this. id = id; } ** * Sets the name. * @param name The name to set */ public void setName(String name) { this. name = name; } ** * Sets the value. * @param value The value to set */ public void setValueFrom( double value) { this. valueFrom = valueFrom; } public void setValueTo( double value) { this. valueTo = valueTo; }"
Code
null
76
76 "Evaluator private static final int EOL = 0; private static final int VALUE = 1; private static final int OPAREN= 2; private static final int CPAREN= 3; private static final int EXP = 4; private static final int MULT= private static class Precedence { public int inputSymbol; // refers to the precedence level of operator public int topOfStack; // stores the operator in the form of integer public Precedence( int inSymbol, int // PrecTable matches order of Token enumeration private static Precedence [ ] precTable = new Precedence[ ] { new Precedence( 0, -1 ),// EOL new Precedence( 0,0 ),// VALUE new Precedence( 100 private static class Token { public Token( ) { this( EOL ); } public Token( int t ) { this( t, 0 ); } public Token( int t, double v ) { System. out. println("" INSIDE Token.Token()""); private static class EvalTokenizer { public EvalTokenizer( StringTokenizer is ) { System. out. println(""INSIDE EvalTokenizer""); str = is; } /** * Find the next token, skipping blanks, and return it. * For VALUE token, place the processed value in currentValue. * Print error message if input is unrecognized. */ public Token getToken /** * Construct an evaluator object. * @param s the string containing the expression. */ public Evaluator( String s ) { opStack = new Stack( ); postfixStack = new Stack( ); str = new StringTokeni // The only publicly visible routine /** * Public routine that performs the evaluation. * Examine thepostfix machine to see if a single result is * left and if so, return it; otherwise print error. * @return the result. private Stack opStack; // Operator stack for conversion private Stack postfixStack;// Stack for postfix machine that stores the numbers could be values or result private StringTokenizer str; // StringTokenizer stream, conte /** * Internal method that hides type-casting. * Changed the method to support double */ private double postFixTopAndPop( ) { System. out. println(""INSIDE postFixTopAndPop method""); System /** * Another internal method that hides type-casting. */ private int opStackTop( ) { return ( (Integer) ( opStack. peek( ) ) ). intValue( ); } /** * After a token is read, use operator precedence parsing * approach to process it; missing opening parentheses * are detected here. */ private void processToken( Token lastToken ) { System. out. printl /* * topAndPop the postfix machine stack; return the result. * If the stack is empty, print an error message. */ private double getTop( ) { // change to support double System. out. println(""INSIDE GET TOP /** * Internal routine to compute x^ n. */ private static double pow( double x, double n ) { System. out. println(""INSIDE pow""); if( x == 0 ) { if( n == 0 ){ System. out. /** * Process an operator by taking two items off the postfix * stack, applying the operator, and pushing the result. * Print error if missing closing parenthesis or division by 0. */ private void binaryOp( int topOp/** * Simple main to exercise Evaluator class. */ public static void main( String [ ] args ) { String str; BufferedReader in = new BufferedReader( new InputStreamReader( System. in ) ); try { "
Code
null
77
77 "Model Driver String msg=""""; public ModelDriver(String text) { this. msg = text; init(); } public void init() { System. out. println(""MODEL DRIVER CLASS 1/10""); performance modelHandler pmh = new performance modelHandler( msg); System. out. println(""MODEL DRIVER CLASS 2/10""); pmh. messageParser"
Code
null
78
78 "Notification Event public String m_SubscriberName = """"; public String m_EventID = """"; public String m_Message type = """"; public String m_EventType = """"; public int m_NumberOfRequirements = 0; public String m_EventTim // constructor public Notification_Event() { m_LeftSide = new ArrayList(); m_RightSide = new ArrayList(); } // end of class Notification_Event public Object clone() throws CloneNotSupportedException { // create new object with the same type Notification_Event nEvt = (Notification_Event) super. clone(); nEvt. m_LeftSide = new ArrayList(); n public void ParseEvent(String TextLine) { String msg = TextLine; if( msg. startsWith(""Re-execute"") ) { ModelDriver md = new ModelDriver( msg ); md. init(); //ToDo: // divert all the calls fo // Set the other members before calling this function public void ParseLeftAndRightLists(String LeftLine, String RightLine) { m_LeftSide = new ArrayList(); m_RightSide = new ArrayList(); if ( m_Eve //Comment Added by Amit Uchat //This method displays the contents of two array list to console public void DisplayValues() { System. out. println(""\ r\ nValues of the event:\ r\ n""); System. out. println("" "
Code
null
79
79 "performance model Handler String strES; // string received from eventserver String impactReport;// string to be send to eventServer String commandStr; // represent the command ex. execute, re - execute etc String eventId;// refers to the eventId String performance model Handler(String msg) { this. strES = msg; } public void messageParser() { System. out. println(""INSIDE PARSER""); mainSto = new StringTokenizer( strES,""|""); // current ex will have 10 tokens in mainSto tempStr1 = mainSto. nextToken(); //Re-execut public String generateReport() { System. out. println(""INSIDE generateReport""); mainSto = new StringTokenizer( strES,""|""); // current ex will have 10 tokens in mainSto /* ""ImpactReport|1015818161020| int grId; public int getId(){ // get GraphId System. out. println(""database start""); int grId = database. getGraphId( modelName); return grId; } public void saveModel( int id) { // save current model database. saveCurrentModel( id); } public void insertData( int id){ // inject data into model database. injectVariables( id, variable); } public void execute( int id){ // inject data into model database. executeModel( id, variable); }"
Code
null

Overview

The following dataset contains the software artifacts used to evaluate the accuracy of traceability algorithms. It contains requirements, test cases, and source code with links established between requirements to code and requirements to test cases.

Source Files

Format

The following files contains three datasets:

  • artifacts: Contains all software artifacts including their ID and content.
  • traces: Contains list of positive trace links established in the project.
  • matrices: Details the artifacts types containing traces (e.g. requirements -> test cases)
  • train: Contains a dataset ready for training with each row containing source and target artifact content alongside the label between the artifacts.

Citation Information

@ARTICLE{1232285,
  author={Cleland-Huang, J. and Chang, C.K. and Christensen, M.},
  journal={IEEE Transactions on Software Engineering}, 
  title={Event-based traceability for managing evolutionary change}, 
  year={2003},
  volume={29},
  number={9},
  pages={796-810},
  keywords={Software maintenance;Software systems;Maintenance engineering;Control systems;Computer science;Computer Society;Project management;Software testing;System testing;Software engineering},
  doi={10.1109/TSE.2003.1232285}}
Downloads last month
678
Edit dataset card